Rust/PostgreSQL Infrastructure Scaffolder

VerifiedSafe

Scaffolds docker-compose.yml files for dev and test PostgreSQL databases, plus a .env.example tailored for a Rust project. Use it when setting up local infrastructure for a new Rust/PostgreSQL project, such as creating the database configuration and Docker Compose setup.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude Code
#infrastructure#postgresql#docker-compose#rust#scaffolding

Recommended for

Automated summary

Generates Docker Compose configuration and .env.example for a local PostgreSQL development environment with Rust.

Strengths

  • Ready-to-use configuration with default ports and volumes
  • Clear separation between dev and test databases (ports 6432/6433)

Limitations

  • Only supports PostgreSQL, not other databases
  • Requires Podman or Docker Compose to be installed
When to use it

When starting a new Rust project that needs a local PostgreSQL database for development and testing.

When not to use it

For projects using a remote database or a different database management system.

Security analysis

Safe
Quality score92/100

The skill merely scaffolds development configuration files (Docker Compose, .env.example) using a local Python script. It does not execute any destructive actions, exfiltrate data, or disable safety features. The usage of Bash is limited to running the script and providing helpful reminders, posing no security risk.

No concerns found

How this analysis is made

Examples

Scaffold infra for a new project
Scaffold infra for myproject
Set up Docker Compose for Rust project
Set up Docker Compose for a new Rust project
Create dev database config
Create dev database config for myapp

name: malky-infra-scaffolder description: Scaffolds the infra/ directory and .env.example for a new Rust/PostgreSQL project. Use when setting up a new project's local infrastructure, asked to "scaffold infra", "set up docker compose", "create dev database config", or "set up postgres for a new project". argument-hint: <project_name> [destination_dir] allowed-tools: Bash

Infra Scaffolder

Generates the local dev/test PostgreSQL infra and .env.example for a new project.

What gets generated

<dest>/
  infra/
    docker-compose.yml        # dev DB on :6432, persistent named volume
    docker-compose.test.yml   # test DB on :6433, tmpfs (ephemeral, no logging)
  .env.example                # DATABASE_URL + DATABASE_TEST_ADMIN_URL + RUST_LOG

Key conventions baked in

  • Dev DB: user/password/dbname all = <project_name>, port 6432
  • Test DB: user/password = <project_name>_test, dbname = <project_name>_test, port 6433
  • Test DB uses tmpfs (wiped on container stop) and log_statement=none to keep test runs quiet
  • DATABASE_TEST_ADMIN_URL points to the postgres system DB so TestApp::spawn() can CREATE DATABASE test_<uuid> dynamically
  • Managed with podman compose (drop-in for docker compose)

How to run

  1. Get project name from the user (required). Get destination directory (optional, default .).
  2. Run the scaffold script:
python3 ~/.claude/skills/malky-infra-scaffolder/scaffold.py <project_name> [destination_dir]
  1. Show the user the output and remind them:
# Start dev DB
podman compose -f infra/docker-compose.yml up -d

# Start test DB (before running integration tests)
podman compose -f infra/docker-compose.test.yml up -d

# Copy env
cp .env.example .env

Pairing with the Rust scaffolder

This skill is the infra counterpart to malky-rust-scaffolder. Run both when starting a new project:

  1. malky-rust-scaffolder → creates the Rust crate
  2. malky-infra-scaffolder → creates the compose files and .env.example

The .env.example generated here is the correct one to use — it supersedes the one placed by the rust scaffolder (which uses generic placeholder URLs).

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/rust-postgresql-infrastructure-scaffolder-mm8o52aa/download' --output '.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa/SKILL.md.part' && mv '.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa/SKILL.md.part' '.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa/SKILL.md' && test -s '.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/malky-infra-scaffolder' && cp -R '.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa' '.claude/skills/malky-infra-scaffolder'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa'

openskills read 'rust-postgresql-infrastructure-scaffolder-mm8o52aa'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/rust-postgresql-infrastructure-scaffolder-mm8o52aa/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills