Skip to content
Skills Library
DevOps & cloud · Writing

corgi

/corgi

Author and explain corgi-compose.yml files and the corgi CLI. Use when writing or editing a corgi-compose.yml, picking db drivers, healthchecks or tunnels, or explaining corgi concepts, commands, and flags. Corgi is a Go CLI that starts databases, services, and required tools from one yml file. NOT for starting a stack (run skill) or diagnosing a broken one (debug skill).

Repository
corgi ↗
Licence
MIT
Last repository change
26.10.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
0
HTML comments
0
URLs in SKILL.md
7
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Author and explain corgi-compose.yml files and the corgi CLI. Use when writing or editing a corgi-compose.yml, picking db drivers, healthchecks or tunnels, or explaining corgi concepts, commands, and flags. Corgi is a Go CLI that starts databases, services, and required tools from one yml file. NOT for starting a stack (run skill) or diagnosing a broken one (debug skill).

Original author description

Author and explain corgi-compose.yml files and the corgi CLI. Use when writing or editing a corgi-compose.yml, picking db drivers, healthchecks or tunnels, or explaining corgi concepts, commands, and flags. Corgi is a Go CLI that starts databases, services, and required tools from one yml file. NOT for starting a stack (run skill) or diagnosing a broken one (debug skill).

How it works

  1. Critical: corgi run is long-running
  2. Routing: when to read what
  3. Common workflows
  4. Quick command cheatsheet
Original SKILL.md headings · 112 lines, 1,326 words
SKILL.md preview
---
name: corgi
description: Author and explain corgi-compose.yml files and the corgi CLI. Use when writing or editing a corgi-compose.yml, picking db drivers, healthchecks or tunnels, or explaining corgi concepts, commands, and flags. Corgi is a Go CLI that starts databases, services, and required tools from one yml file. NOT for starting a stack (run skill) or diagnosing a broken one (debug skill).
---

# Corgi

Corgi (https://github.com/Andriiklymiuk/corgi) runs multi-service projects from a single `corgi-compose.yml`. It handles: cloning service repos, starting databases in Docker, seeding from dumps, generating `.env` files with cross-service URLs, and running all services concurrently.

Don't fall back to generic docker-compose / npm advice if a `corgi-compose.yml` is present - corgi is the authoritative entry point for that project.

## Critical: `corgi run` is long-running

`corgi run` blocks indefinitely and streams logs. **Never run it synchronously** - it will hang your shell. For agents, prefer `corgi run --detach` (returns immediately; see the lifecycle line below). See `references/long-running.md` before invoking it foreground.

Safe synchronous probes:
- `corgi doctor` (alias `check`) - preflight: tools installed, Docker up, ports free
- `corgi status` (aliases `health`, `healthcheck`) - post-run: TCP/HTTP probe each port

Both exit 0 on success, 1 on failure. Add global `--json` for machine-readable output. Driving corgi from an agent: see `https://github.com/Andriiklymiuk/corgi/blob/main/docs/agents.md`.

### Driving corgi as an agent

Corgi auto-detects non-interactive mode (CI/agent env vars like `CLAUDECODE`, or no TTY) and errors with exit code 2 instead of prompting; `--interactive` forces prompts back. Global `--json` emits pure JSON on stdout (`doctor`, `status`, `list`, `config`, `ps`, `docs --json-schema`; `run --json` prints a startup summary then streams logs to stderr). Exit codes: 0 success, 1 failure, 2 usage/missing input. Full guide + recipes: `https://github.com/Andriiklymiuk/corgi/blob/main/docs/agents.md`.

Detached lifecycle (preferred for agents): `corgi run --detach` (starts services that outlive corgi, returns immediately, errors `E_ALREADY_RUNNING` if already running - use `--force`), then `corgi ps`/`status` for real running/crashed status, `corgi stop [--service x]` to tear down, `corgi restart` for full-stack restart. See the "Lifecycle (detached)" section in `https://github.com/Andriiklymiuk/corgi/blob/main/docs/agents.md`.

`corgi tunnel` is also long-running (one tunnel subprocess per service, blocks until Ctrl+C). Background it the same way you background `corgi run`. See `references/long-running.md` if invoking from an agent.

## Routing: when to read what

| Task | Read |
|------|------|
| Writing a new `corgi-compose.yml` | `references/yml-schema.md` then `references/db-drivers.md` |
| Service repo has a Dockerfile / own docker-compose (run without `start:` scripts, `--docker` flag, runner options) | `references/yml-schema.md#dockerfile-services-when-start-is-optional` |
| Picking a db driver (port, image, env prefix) | `references/db-drivers.md` |
| Adding `healthCheck:` to a service or db | `references/healthchecks.md` |
| `corgi doctor` or `corgi run` failed | `references/debugging.md` |
| Explaining / choosing a CLI flag | `references/commands.md` |
| Setting up webhook tunnels (Stripe/GitHub/e-sign/etc.) | `https://github.com/Andriiklymiuk/corgi/blob/main/docs/tunnel.md` (full) or `references/commands.md#corgi-tunnel-services` |
| Producing a service map / relation diagram for the project | run `/corgi-describe` (see `references/describe-output.md`) |
| Running `corgi run` inside an agent loop | `references/long-running.md` |
| Driving corgi non-interactively (`--json`, exit codes, scaffolding flags) | `https://github.com/Andriiklymiuk/corgi/blob/main/docs/agents.md` |
| Driving corgi from an MCP client (Claude Code / Desktop / the phone connector) | `references/mcp-tools.md`; transport, auth and tunnels in `https://github.com/Andriiklymiuk/corgi/blob/main/docs/mcp.md` |
| Persisting / re-reading service logs after a crash | `references/commands.md#corgi-logs` (`corgi run --logs` + `corgi logs`) |
| Opening a DB shell (psql / redis-cli / mongosh / …) | `references/commands.md#corgi-db-shell-service-name` |
| Running corgi in CI / disabling spinners and color | `references/commands.md#corgi-run-flags` (`--ci`, auto-detected from `CI` env) |
| Booting the whole stack in a CI job / cross-repo e2e on PR branches | the `ci` skill |
| Desktop notifications on service crash | `references/commands.md#corgi-notifications` (`corgi notifications on\|off\|test`) |

Load only what the task needs. Do not read every reference every time.

## Common workflows

**Fresh project from scratch:** use the `/corgi-new` slash command, or: write `corgi-compose.yml` → `corgi doctor` → start `corgi run` in background → `corgi status`.

**Document an existing project:** `/corgi-describe` parses `corgi-compose.yml` and writes a detailed Markdown doc (services, dbs, env wiring, tunnels, scripts) plus a Mermaid relationship diagram to `docs/corgi-services.md`. Read-only - does not touch services. Built-in `corgi --describe` only prints per-service JSON during parse (and does **not** short-circuit - the underlying command, e.g. `run`, still executes); the slash command is the richer, side-effect-free alternative.

**Existing repo with `corgi-compose.yml`:** this file is the single source of truth for how services start. Do not invent `npm run dev`, `docker compose up`, or per-service shell commands - use `corgi run`. Look at `db_services:` to know what databases exist and at `services:` to know what service repos are expected.

**User says "start the project" / "run the backend":** check for `corgi-compose.yml` first (preflight in `../_shared/conventions.md`). If present, corgi is the answer.

## Quick command cheatsheet

```
corgi run                  # start everything (long-running, background it); persists stdout/stderr to .corgi/corgi_services/.logs/
corgi run --logs=false     # opt out of log capture for this run
corgi run --docker         # run docker-capable services (Dockerfile / repo compose) in containers instead of start scripts
corgi run --dry-run        # plan only; prints each service's resolved mode (native | docker (Dockerfile) | docker (repo compose) | docker (image))
corgi build                # pre-build all docker-capable service images in parallel, start nothing (CI cache warmer)
corgi run --ci             # CI-friendly: suppress spinners, banners, colors (auto-on when CI=true)
corgi run --service-branch api=feat/x   # run a service on a branch in an isolated reused worktree (non-destructive)
corgi run --service-dir api=/path       # run a service from an existing dir (e.g. a git worktree); repeatable, mix freely
corgi run --feature ABC-123             # every repo that has this branch runs from a worktree for it; the rest stay put
corgi worktree list|prune               # list / remove worktrees corgi made for --service-branch
corgi init --depth 1                    # shallow-clone every service repo (CI)
corgi logs --dump ./ci-logs             # copy each service's newest run into a dir (CI artifacts)
corgi logs                 # interactive picker: browse + tail persisted logs (needs a prior corgi run)
corgi logs --service api   # skip service picker, jump to run picker for "api"
corgi logs --all           # merge newest run of every service into one timestamp-sorted stream
corgi logs --idle 0        # tail forever (default exits after 30s of dead-air)
corgi logs --prune         # delete all captured logs
corgi doctor               # preflight checks (tools, docker, ports)
corgi validate             # statically validate corgi-compose.yml
corgi test --service api   # run a service's `test` script in its resolved env (--ensure-deps waits on deps)
corgi exec api -- <cmd>    # one-off command in a service's resolved env (migrate/seed/etc); --ensure-deps to wait on deps
corgi env api              # print a service's fully-resolved environment (read-only)
corgi config               # show current user settings (~/.corgi/config.yml)
corgi notifications on|off|test            # toggle/test desktop crash notifications
corgi status               # health check (one-shot)
corgi status --ready       # block until all healthy / timeout (CI-friendly)
corgi status --watch       # BLOCKS until Ctrl+C - interactive only; agents use --ready --timeout
corgi tunnel               # public HTTPS tunnels (long-running) - default cloudflared
corgi db shell [name]                       # interactive DB shell inside running container (psql/redis-cli/mongosh/…)
corgi db shell [name] -e "SELECT 1"         # one-shot query, exit; CI-friendly
corgi db snapshot [name] [svc]              # fast physical Postgres snapshot (built indexes+matviews); postgres family only
corgi db restore  [name|path] [svc]         # restore pgdata from a snapshot → up on built data, zero recompute
corgi init                 # scaffold db_services/ + cloned repos
corgi create               # interactive yml editor
corgi clean -i db          # stop+remove db containers (also: services, corgi_services, all)
corgi pull                 # git pull in every service dir
corgi checkout main        # every repo → main (or its own default branch), then pull
corgi context --json       # one-call orientation: topology + health + every repo's branch/dirty
corgi why api --json       # why one service is down: deps, port owner, exit code, env, log tail
corgi logs --service api --wait-for "Listening on" --timeout 90s   # block, don't poll
corgi checkpoint before-x  # mark every repo · corgi restore before-x puts it all back
corgi test --changed       # only the repos that differ from --base
corgi env api --explain DATABASE_URL     # which source won
corgi events --follow --json             # lifecycle stream instead of polling status
corgi run --isolate agent-a --detach     # own ports/db/containers; corgi leases lists them
corgi version              # show installed version
corgi --describe           # built-in: per-service JSON during parse; does NOT short-circuit. Use /corgi-describe for a rendered doc + Mermaid diagram
```

Full surface in `references/commands.md`.
Files in this package (9)
  • SKILL.md 10 KB
  • references/commands.md 38 KB
  • references/db-drivers.md 11 KB
  • references/debugging.md 8 KB
  • references/describe-output.md 8 KB
  • references/healthchecks.md 5 KB
  • references/long-running.md 7 KB
  • references/mcp-tools.md 9 KB
  • references/yml-schema.md 17 KB

Versions

The database has no other skills named corgi.

Database snapshot: 13.11.2026 · package version 7718cf30c3b9 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100run
    Use when the user wants to bring up a corgi-compose stack: \"run the stack\", \"run with tunnel and logs\", \"run web + mobile against the remote backend\", \"run just the api\", \"run for the android emulator\". Boots detached, waits until healthy, reports URLs and how to stop.…
  • 100setup
    Use when the user wants corgi set up end to end: \"set up corgi for me\", \"I just installed corgi, what now\", \"get corgi agent running\", \"connect my phone, Telegram, menu bar\", \"connect Jira, Linear, GitHub to corgi\", \"onboard me to corgi\". Runs every step a program…
  • 90docker-compose-helper
    Use when the user asks to create, debug, or modify Docker Compose files, compose.yaml, docker-compose.yml, service dependencies, healthchecks, ports, volumes, networks, environment variables, or local multi-container development stacks. Use this skill even if the user says…
  • 100docker-expert
    Use when working with Dockerfile, docker-compose.yml, .dockerignore, or multi-stage builds. Build, debug, secure, and optimize Docker 27+ images and Docker Compose services.
  • 100import-compose
    Import Docker Compose files into Kurtosis. Convert docker-compose.yml to Starlark packages or run them directly. Use when migrating existing Docker Compose workflows to Kurtosis.
  • 100docker-integration
    ACTIVATE when integrating a new Docker image, writing docker-compose.yml services, or adding external tools to a Docker stack. ACTIVATE for 'docker-compose', 'Docker image', 'container setup', 'service integration'. Covers: mandatory RTFM checklist before writing any…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.