agentleFS
dmzoneilldmzoneill/skills/local-dev-environment/SKILL.md

local-dev-environment

Skill2 starsChanged 19 days agoApache-2.0View on GitHub

Start, stop, or check status of local dev environment using Podman Compose. Database, app services, migrations, health checks. Use when user says "start local env", "podman compose up", "dev environment status".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start, stop, or check status of local development environment using Podman Compose.

    line 8
  2. Very specific:

    If action in [stop, restart]: podman_compose_down(project_dir=repo)

    line 34
  3. Very specific:

    If action in [start, restart]: podman_compose_up(project_dir=repo, detach=true)

    line 35
  4. Very specific:

    If run_migrations and action in [start, restart]: podman_exec(container="{repo_basename}-app-1", command="python manage.py migrate")

    line 42
  5. Very specific:

    Run migrations: include run_migrations: true in inputs

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Local Dev Environment

Start, stop, or check status of local development environment using Podman Compose.

Inputs

InputTypeDefaultPurpose
repostringrequiredPath to repo with podman-compose.yaml
actionstring"status"start, stop, status, restart
run_migrationsboolfalseRun DB migrations after start
health_checkbooltrueRun health check after start

Persona

Load devops persona (podman, systemd). May need developer for curl; database for psql.

Workflow

1. Bootstrap

  • persona_load("devops") — podman tools
  • systemctl_is_active(unit="podman.socket") — ensure Podman socket active

2. Current Status

  • podman_compose_status(project_dir=repo) — compose status
  • podman_ps() — running containers

3. Perform Action

  • If action in [stop, restart]: podman_compose_down(project_dir=repo)
  • If action in [start, restart]: podman_compose_up(project_dir=repo, detach=true)

4. Post-Start (if action != status)

  • podman_compose_status(project_dir=repo) — verify status
  • podman_logs(container="{repo_basename}-app-1", tail=30) — recent logs

5. Database

  • If run_migrations and action in [start, restart]: podman_exec(container="{repo_basename}-app-1", command="python manage.py migrate")
  • psql_tables() — list tables (verify DB ready)
  • psql_query(query="SELECT 1 as health_check;") — connectivity

6. Health Check (if health_check)

  • curl_get(url="http://localhost:8000/api/v1/health/") — API health
  • curl_timing(url="http://localhost:8000/api/v1/health/") — response time

7. Error Handling

  • On "port already in use": stop conflicting process or podman_compose_down first
  • On "connection refused": wait for container startup, check podman_logs

8. Session Log

  • memory_session_log("Local dev environment: {action}", "repo={repo}")

Quick Actions

  • View logs: podman_logs(container="<name>", tail=50)
  • Run migrations: include run_migrations: true in inputs
  • Restart: skill_run("local_dev_environment", '{"repo": "...", "action": "restart"}')

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.