[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M758F2W6682MAQEKE56B4PJ9":3,"skill-same:01M758F2W6682MAQEKE56B4PJ9":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M758F2W6682MAQEKE56B4PJ9","project-run-scripts",null,"DEFINITIVE canonical template for .\u002Frun — single bash CLI entrypoint covering Docker lifecycle, dev servers, testing, database management, linting, and utility commands. Applies to ANY tech stack: Python\u002FFastAPI, Rails, Go, Node\u002FNext.js, Rust. Every repo MUST have this file.","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fproject-run-scripts\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: project-run-scripts\nversion: 1.0.0\ndescription: \"DEFINITIVE canonical template for .\u002Frun — single bash CLI entrypoint covering Docker lifecycle, dev servers, testing, database management, linting, and utility commands. Applies to ANY tech stack: Python\u002FFastAPI, Rails, Go, Node\u002FNext.js, Rust. Every repo MUST have this file.\"\nrelated_skills:\n  - python-dependency-management\n  - docker-compose-common-issues\ntrigger:\n  - \"creating a .\u002Frun script\"\n  - \"adding a CLI to a project\"\n  - \"standardizing project commands\"\n  - \"setting up dev workflow\"\n  - \"modeling after another project's run script\"\n  - \"what commands should a .\u002Frun have\"\n  - \"how to structure a .\u002Frun file\"\n  - \"agents consistently create and update run file\"\n---\n\n# Project Run Scripts — Canonical Specification\n\nA single `.\u002Frun` entrypoint MUST cover ALL common developer workflows. Every project — regardless of tech stack (Python, Rails, Go, Node, Rust) — MUST use the same command interface so a developer switching between repos never has to re-learn the entry point.\n\n## Non-Negotiable Command Contract\n\nEvery `.\u002Frun` MUST implement these commands with identical semantics:\n\n| Command | Semantics | Implementation |\n|---------|-----------|----------------|\n| `.\u002Frun up` | Start Docker environment (detached) | `docker compose up -d --remove-orphans` |\n| `.\u002Frun down` | Stop Docker environment | `docker compose down --remove-orphans` |\n| `.\u002Frun restart` | Down then Up (full restart) | `cmd_down && cmd_up` |\n| `.\u002Frun restart \u003Csvc>` | Restart single service | `docker compose restart \u003Csvc>` |\n| `.\u002Frun logs` | Show last 50 lines of logs | `docker compose logs --tail=50` |\n| `.\u002Frun logs -f` | Follow all logs | `docker compose logs --tail=50 -f` |\n| `.\u002Frun logs \u003Csvc>` | Tail logs for a service | `docker compose logs --tail=50 \u003Csvc>` |\n| `.\u002Frun build` | Build Docker images | `docker compose build` |\n| `.\u002Frun build --no-cache` | Build with no cache | `docker compose build --no-cache` |\n| `.\u002Frun build \u003Csvc>` | Build specific service | `docker compose build \u003Csvc>` |\n| `.\u002Frun ps` | List running containers | `docker compose ps` |\n| `.\u002Frun health` | Check health of all services | Loop over services + connectivity checks |\n| `.\u002Frun exec \u003Csvc> \u003Ccmd>` | Run command in container | `docker compose exec -T \u003Csvc> \u003Ccmd>` |\n| `.\u002Frun pgsql` | Interactive psql | `docker compose exec -it postgres psql -U \u003Cuser> -d \u003Cdb>` |\n| `.\u002Frun pgsql -c \"SQL\"` | Run SQL non-interactive | `docker compose exec -T postgres psql -U \u003Cuser> -d \u003Cdb> -c \"SQL\"` |\n| `.\u002Frun test` | Run all tests | Aggregates sub-test commands |\n| `.\u002Frun test:api` | Run API tests | pytest \u002F rspec \u002F go test |\n| `.\u002Frun test:web` | Run web tests | vitest \u002F playwright |\n| `.\u002Frun lint` | Run all linters | ruff \u002F rubocop \u002F eslint |\n| `.\u002Frun db:reset` | Drop → create → migrate → seed | Via Docker psql or host |\n| `.\u002Frun migrate` | Apply pending migrations | alembic \u002F rails \u002F drizzle |\n| `.\u002Frun seed` | Load seed data | Python \u002F pnpm \u002F rails |\n| `.\u002Frun clean` | Remove all build artifacts | rm -rf .venv node_modules .next __pycache__ |\n| `.\u002Frun help` | Show help | |\n\n### Variation policy\n\n- **Non-Docker projects** (standalone Go tools, scripts): omit Docker commands, implement only test\u002Flint\u002Fclean\u002Fhelp.\n- **Rails projects** — use the **Taskfile pattern** (`time \"${@:-help}\"` + bare function names), NOT the bash case-dispatch template.\n- **Rails projects** MUST add: `rails \u003Ccmd>`, `bundle:install`, `yarn:build`, `psql`, `test`, `migrate`, `seed`.\n- **Multi-compose projects** MUST route service names to the correct compose file. Use a `case` dispatch in the build function.\n- **Platform dispatchers** use a root dispatcher + per-component `.\u002Frun` scripts. Each component's `.\u002Frun` implements the same interface above.\n\n> ⚠️ **Skill-dir assets:** the canonical assets live in the shared repo, NOT inside this skill's directory:\n> - Template → `~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Ftemplates\u002Frun.sh`\n> - `check-alembic-heads.py` → `~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py`\n> Both deploy to `~\u002F.steadfaste-fleet\u002Fscripts\u002Fproject-run-scripts\u002F...` via `fleet-update.sh`. Check the repo path exists before relying on it. If either is absent, write `.\u002Frun` from the Template Structure below — every required piece (check-alembic-heads.py, entrypoint.sh, test_migrations.py) is fully inlined in this SKILL.md so no external asset is a hard dependency.\n\n## Migration Head Integrity — Fail-Fast, No Auto-Merge\n\nMultiple Alembic heads MUST be resolved at PR\u002Fmerge time — never at deploy or\ncontainer-start time. Auto-merging inside a container produces ephemeral state\nthat disappears on rebuild and masks genuine migration chain problems. It can\nalso generate corrupt merge files with `revision = None`, crashing every subsequent\nAlembic operation with `TypeError: 'NoneType' object is not iterable`.\n\n### Required Files\n\nEvery project with Alembic migrations MUST have these two files:\n\n| File | Purpose | Provided by skill |\n|------|---------|-------------------|\n| `scripts\u002Fcheck-alembic-heads.py` | Static-analysis script: checks for multiple heads, validates revision ID length (max 32 chars) | `~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py` — copy to your repo's `scripts\u002F` |\n| `tests\u002Ftest_migrations.py` | Pytest: asserts `len(script.get_heads()) == 1` at runtime | Template below — include in your test suite |\n\n### Policy\n\n| Layer | Behavior |\n|-------|----------|\n| **`.\u002Frun build`** | Runs `check-alembic-heads.py` before building Docker images. Aborts on multi-head. |\n| **`.\u002Frun migrate`** | Validate single head before upgrade. Fail with instructions if >1 head. |\n| **`.\u002Frun check:alembic`** | Manual alias: inline head check (code below). |\n| **`entrypoint.sh`** | Run `alembic upgrade head` directly. If multiple heads or corruption, fail loudly. |\n| **CI (`test_migrations.py`)** | Assert `len(script.get_heads()) == 1`. Block deploy on divergence. |\n| **Local dev** | Developer runs `alembic merge heads` or rebases before pushing. |\n\n### `.\u002Frun check:alembic` — on-demand head check\n\nNo bundled script ships with this skill. Inline the check directly in `cmd_check_alembic`:\n\n```bash\ncmd_check_alembic() {\n    python3 - \u003C\u003C'EOF'\nfrom alembic.config import Config\nfrom alembic.script import ScriptDirectory\nimport sys\nconfig = Config(\"alembic.ini\")\nscript = ScriptDirectory.from_config(config)\nheads = script.get_heads()\nif len(heads) != 1:\n    print(f\"✗ {len(heads)} Alembic heads detected: {heads}\")\n    print(\"  Fix: alembic merge heads -m 'merge' (or rebase your branch).\")\n    sys.exit(1)\nprint(f\"✓ single head: {heads[0]}\")\nEOF\n}\n```\n\nWhen writing `check-alembic-heads.py` yourself, use `re.DOTALL` to correctly parse multiline `down_revision` tuples (e.g., merge revisions with two parents spread across multiple lines).\n\n### `scripts\u002Fcheck-alembic-heads.py`\n\nCopy this script from the repo's `ops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002F` directory:\n\n```bash\n# Pick the file we already have on disk (repo path beats $HOME fallback):\nCHECKER=\"${HOME}\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py\"\n[ -f \"$CHECKER\" ] || CHECKER=\"${HOME}\u002F.steadfaste-fleet\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py\"\nmkdir -p scripts && cp \"$CHECKER\" scripts\u002F\n```\n\n### `.\u002Frun migrate` — Fail-Fast\n\n```bash\ncmd_migrate() {\n    info \"Applying Alembic migrations...\"\n    local HEADS\n    HEADS=$(_alembic_runner heads 2>\u002Fdev\u002Fnull | wc -l)\n    if [ \"$HEADS\" -ne 1 ]; then\n        error \"$HEADS migration heads detected. Expected exactly 1.\"\n        error \"Run 'alembic heads' to see them, then create a merge revision.\"\n        return 1\n    fi\n    _alembic_runner upgrade head\n    ok \"Migrations applied\"\n}\n```\n\n### `entrypoint.sh` — Direct, No Auto-Heal\n\n```bash\necho \"[1\u002F3] Checking Alembic migrations...\"\nPYTHONPATH=. alembic upgrade head 2>&1 || {\n    rc=$?\n    echo \"  ✗ Alembic migration failed (exit $rc).\"\n    echo \"  Possible causes: multiple heads, corrupt merge revision, stale migration file.\"\n    echo \"  Action: rebase your branch, resolve heads locally, and rebuild.\"\n    exit $rc\n}\necho \"  ✓ Migrations up to date\"\n```\n\n### CI Test — `tests\u002Ftest_migrations.py`\n\n```python\nfrom alembic.config import Config\nfrom alembic.script import ScriptDirectory\n\ndef test_single_migration_head():\n    config = Config(\"alembic.ini\")\n    script = ScriptDirectory.from_config(config)\n    heads = script.get_heads()\n    assert len(heads) == 1, (\n        f\"Expected 1 Alembic head, found {len(heads)}: {heads}. \"\n        \"Run `alembic merge heads -m 'merge'` or rebase your branch.\"\n    )\n```\n\n### Auto-Merge Failure Mode (for context)\n\nThe old auto-merge pattern failed because:\n1. `alembic merge heads` can generate a file with `revision: str | None = None`\n2. Every subsequent `upgrade`\u002F`heads`\u002F`check` crashes with `TypeError: 'NoneType' object is not iterable`\n3. The corrup file persists across container starts unless explicitly deleted\n4. The entrypoint's `2>\u002Fdev\u002Fnull || true` silently swallows the error, making it look like the DB is uninitialized\n\n**Recovery from a broken auto-merge file inside a running container:**\n```bash\ndocker compose exec api sh -c \"rm -f \u002Fapp\u002Falembic\u002Fversions\u002F*auto_merge* \u002Fapp\u002Falembic\u002Fversions\u002F*merge*\"\n```\n\nThen verify the root cause (migration chain fork, wrong `down_revision`, corrupt file).\n\n## psql — Dual-Mode\n\nMust support both interactive and non-interactive:\n\n```bash\ncmd_pgsql() {\n    local user=\"${POSTGRES_USER:-app}\"\n    local db=\"${POSTGRES_DB:-app}\"\n    if [ \"${1:-}\" = \"-c\" ]; then\n        shift\n        docker compose exec -T postgres psql -U \"$user\" -d \"$db\" \"$@\"\n    else\n        docker compose exec -it postgres psql -U \"$user\" -d \"$db\" \"$@\"\n    fi\n}\n```\n\n### `--no-cache` Passthrough\n\nBuild must handle `--no-cache` mixed with service names, and MUST check Alembic migration integrity before building:\n\n```bash\ncmd_build() {\n    # Pre-check: abort on multiple Alembic heads\n    if ! python3 \"$PROJECT_ROOT\u002Fscripts\u002Fcheck-alembic-heads.py\" \"$API_DIR\u002Falembic\u002Fversions\" 2>&1; then\n        echo \"✗ Build aborted: fix Alembic migration heads before building.\"\n        return 1\n    fi\n    local no_cache=\"\"\n    local services=()\n    for arg in \"$@\"; do\n        if [[ \"$arg\" == \"--no-cache\" ]]; then\n            no_cache=\"--no-cache\"\n        else\n            services+=(\"$arg\")\n        fi\n    done\n    if [ ${#services[@]} -eq 0 ]; then\n        info \"Building all Docker images...\"\n        docker compose build ${no_cache:+\"$no_cache\"}\n    else\n        info \"Building Docker image(s): ${services[*]}\"\n        docker compose build ${no_cache:+\"$no_cache\"} \"${services[@]}\"\n    fi\n}\n```\n\n## Template Structure\n\nEvery `.\u002Frun` follows this structure:\n\n```\n1. shebang + set -euo pipefail\n2. PROJECT_ROOT detection\n3. Source .env\n4. Color helpers (info\u002Fok\u002Fwarn\u002Ferror)\n5. show_help() — complete command list\n6. activate_venv() + _pytest_runner() + _alembic_runner() helpers\n7. Vitest cleanup (_cleanup_vitest + _run_vitest)\n8. Docker commands (cmd_up through cmd_pgsql)\n9. Dev commands (cmd_pip, cmd_dev_api, cmd_dev_web)\n10. Test commands (cmd_test, cmd_test_api, etc.)\n11. Database commands (cmd_db_reset, cmd_migrate, cmd_check_alembic, cmd_seed)\n12. Lint\u002Fformat commands (cmd_lint, cmd_fmt, cmd_fmt_fix)\n13. Clean\u002Frebuild commands (cmd_clean, cmd_rebuild)\n14. Main case dispatch\n```\n\n## Canonical Template\n\nThe canonical template lives at\n`~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Ftemplates\u002Frun.sh` — verify it\nexists (`ls` the path) and read it before writing a new `.\u002Frun`; it is the\ndefinitive starting point for every new project. Customize: PROJECT_ROOT paths, service names, env var defaults, test runner commands. If the template is\nmissing, build from the Template Structure section above instead of guessing.\n\n## Version Increment Convention (recommended — Rails \u002F release-tracking repos)\n\nA `.\u002Frun version` command keeps releases repeatable and discoverable. Pattern\n(from koscap-mwi): `.\u002Frun version next|+minor|+major` bumps the version in a\n`.proj-version` file, then prints the tag + changelog release steps so the\ndeveloper (or a release cron) knows exactly what to run next:\n\n```bash\n# .proj-version holds the current version, e.g. \"1.4.2\"\ncmd_version() {\n  local mode=\"${1:-next}\"\n  local f=\".proj-version\"\n  [[ -f \"$f\" ]] || { error \"No $f found\"; return 1; }\n  local cur; cur=\"$(tr -d '[:space:]' \u003C \"$f\")\"\n  local next=\"\"\n  case \"$mode\" in\n    next)    next=\"$(echo \"$cur\" | awk -F. '{printf \"%d.%d.%d\", $1, $2, $3+1}')\" ;;\n    +minor)  next=\"$(echo \"$cur\" | awk -F. '{printf \"%d.%d.0\", $1, $2+1}')\" ;;\n    +major)  next=\"$(echo \"$cur\" | awk -F. '{printf \"%d.0.0\", $1+1}')\" ;;\n    *)       error \"Usage: .\u002Frun version next|+minor|+major\"; return 1 ;;\n  esac\n  printf '%s\\n' \"$next\" > \"$f\"\n  ok \"Bumped $cur → $next (written to $f)\"\n  echo \"  Next: tag + push the release:\" \n  echo \"    git tag v$next && git push origin v$next\"\n  echo \"    # then run the project's release\u002Fchangelog step (ggt\u002Fggc):\"\n  echo \"    ggt bump  # or your release tooling\"\n  echo \"    ggc -g    # generate changelog, or your equivalent\"\n}\n```\n\nRegister it in the dispatch (`version) cmd_version \"$@\" ;;`). Adopt the same\n`next` \u002F `+minor` \u002F `+major` semantics in any repo that wants scripted releases.\n\n## Reference: Multi-Repo Audit\n\n`references\u002Fmulti-repo-audit-2026-06.md` documents the actual state of every `.\u002Frun` file across all user repos as of June 2026 — what was changed, what was preserved, and which repos were skipped (and why). Consult this before updating an existing repo's `.\u002Frun` to understand its specific structure.\n\n## Vitest Cleanup (ALL repos with web tests)\n\nEvery repo with vitest tests MUST include `_cleanup_vitest` and `_run_vitest` functions. Orphaned vitest workers accumulate and block ports. Pattern (exact code in canonical template).\n\n## Update Workflow\n\nWhen writing a `.\u002Frun` for a repo that lacks one, or updating one that's incomplete:\n1. Read the canonical template: `cat ~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Ftemplates\u002Frun.sh` (verify it exists first)\n2. Determine which tech stack(s) the project uses (Python\u002FFastAPI? Rails? Go? Node?)\n3. Customize: service names, env var defaults, test paths, db credentials\n4. Copy `scripts\u002Fcheck-alembic-heads.py` from the skill (see Migration Head Integrity section above) if the project uses Alembic\n5. Remove irrelevant commands (e.g., remove `cmd_dev_web` if no frontend)\n6. Add stack-specific commands (e.g., `rails` for Rails, `batch` for Rust)\n7. Run `chmod +x run && .\u002Frun help` to verify\n\n## Strategy: Rewrite vs Patch\n\nUpdating an existing `.\u002Frun` across many repos requires a strategy:\n\n- **Full rewrite** for files under 250 lines — safer than patching, preserves all custom commands in one pass. Write the file entirely from the template, preserving custom commands (test subdomains, search, backup, etc.).\n- **Targeted patch** for files over 300 lines — use `patch(mode='replace')` on specific function bodies. Batch related patches with `execute_code` for speed.\n- **Never use bundled dispatch** (e.g., `up|down|restart|build|logs|ps)` — this pattern prevents fixing individual commands like `restart` (should be down+up, not `docker compose restart`). Break them into individual cases.\n- **Function boundary caution with patch** — patches that replace multi-line function bodies can accidentally consume\u002Fsubstring-match adjacent function definitions. If patch drops a neighboring function's `name() {`, revert by re-adding the definition line. Prefer full-file writes for functions over 8 lines to avoid this.\n\n## Pitfalls\n\n| Pitfall | Symptom | Fix |\n|---------|---------|------|\n| **Rails Taskfile pattern** — Rails repos use `time \"${@:-help}\"` + bare function names as commands (e.g., `function up {` called via `.\u002Frun up`). They don't use case-dispatch with `cmd_` prefix. | Forcing case-dispatch conversion breaks the repo | Leave Rails Taskfile pattern repos alone. They already implement the standard Docker lifecycle commands as functions. Only add missing commands (pgsql, lint, migrate) as new functions, keeping the `time` dispatch. Use `run.rails.sh` template for new Rails projects. |\n| **Custom compose variables** — Some repos (e.g., acme-metadata) define `DOCKER_COMPOSE=\"docker compose -p acme-metadata -f $COMPOSE_FILE\"` and use `$DOCKER_COMPOSE` instead of raw `docker compose`. | Patching with `docker compose` literal breaks the command because the flag\u002Fformat is wrong | Inspect how compose is called in `cmd_up()`. If it uses a variable, ALL docker compose calls in the file must preserve it. Use the same variable name when patching. |\n| **Bundled dispatch** — `up|down|restart|build|logs|ps)` in a single case arm prevents fixing individual semantics | `.\u002Frun restart` calls `docker compose restart` instead of down+up; `.\u002Frun build` has no --no-cache | Break into individual cases: `up) ... ;; down) ... ;; restart) ... ;;` etc. |\n| **psql vs pgsql naming** — Some repos (e.g., acme-matching) use `psql` and `psql:cmd` instead of `pgsql` | `.\u002Frun pgsql` fails with \"Unknown command\" | Add `pgsql` as the canonical name with `pgsql) shift; cmd_pgsql \"$@\" ;;` AND keep `psql` as an alias pointing to the same function. The `pgsql` name is canonical across all repos. |\n| **Self-healing migrate needs `_alembic_runner`** — The self-healing migrate function uses `_alembic_runner`, which requires `activate_venv` helper. | Repos without `_alembic_runner` or that run migrations inside Docker (via `docker compose exec -T api ...`) get errors | Check how db:reset runs migrations. If it uses `_alembic_runner` (local venv), mirror that. If it runs inside Docker, create cmd_migrate that also runs inside Docker. |\n| **No-compose fallback** — Repos like `example-website` and `other-app` check `[ -f docker-compose.yml ]` and fall back to `docker run` individual containers | Standardizing the compose case breaks the no-compose fallback | Preserve the `HAS_DC` \u002F `DC` variable pattern for repos that need compose-optional behavior. Only add new commands (lint, pgsql) inside the existing fallback structure. |\n","# Project Run Scripts — Canonical Specification\n\nA single `.\u002Frun` entrypoint MUST cover ALL common developer workflows. Every project — regardless of tech stack (Python, Rails, Go, Node, Rust) — MUST use the same command interface so a developer switching between repos never has to re-learn the entry point.\n\n## Non-Negotiable Command Contract\n\nEvery `.\u002Frun` MUST implement these commands with identical semantics:\n\n| Command | Semantics | Implementation |\n|---------|-----------|----------------|\n| `.\u002Frun up` | Start Docker environment (detached) | `docker compose up -d --remove-orphans` |\n| `.\u002Frun down` | Stop Docker environment | `docker compose down --remove-orphans` |\n| `.\u002Frun restart` | Down then Up (full restart) | `cmd_down && cmd_up` |\n| `.\u002Frun restart \u003Csvc>` | Restart single service | `docker compose restart \u003Csvc>` |\n| `.\u002Frun logs` | Show last 50 lines of logs | `docker compose logs --tail=50` |\n| `.\u002Frun logs -f` | Follow all logs | `docker compose logs --tail=50 -f` |\n| `.\u002Frun logs \u003Csvc>` | Tail logs for a service | `docker compose logs --tail=50 \u003Csvc>` |\n| `.\u002Frun build` | Build Docker images | `docker compose build` |\n| `.\u002Frun build --no-cache` | Build with no cache | `docker compose build --no-cache` |\n| `.\u002Frun build \u003Csvc>` | Build specific service | `docker compose build \u003Csvc>` |\n| `.\u002Frun ps` | List running containers | `docker compose ps` |\n| `.\u002Frun health` | Check health of all services | Loop over services + connectivity checks |\n| `.\u002Frun exec \u003Csvc> \u003Ccmd>` | Run command in container | `docker compose exec -T \u003Csvc> \u003Ccmd>` |\n| `.\u002Frun pgsql` | Interactive psql | `docker compose exec -it postgres psql -U \u003Cuser> -d \u003Cdb>` |\n| `.\u002Frun pgsql -c \"SQL\"` | Run SQL non-interactive | `docker compose exec -T postgres psql -U \u003Cuser> -d \u003Cdb> -c \"SQL\"` |\n| `.\u002Frun test` | Run all tests | Aggregates sub-test commands |\n| `.\u002Frun test:api` | Run API tests | pytest \u002F rspec \u002F go test |\n| `.\u002Frun test:web` | Run web tests | vitest \u002F playwright |\n| `.\u002Frun lint` | Run all linters | ruff \u002F rubocop \u002F eslint |\n| `.\u002Frun db:reset` | Drop → create → migrate → seed | Via Docker psql or host |\n| `.\u002Frun migrate` | Apply pending migrations | alembic \u002F rails \u002F drizzle |\n| `.\u002Frun seed` | Load seed data | Python \u002F pnpm \u002F rails |\n| `.\u002Frun clean` | Remove all build artifacts | rm -rf .venv node_modules .next __pycache__ |\n| `.\u002Frun help` | Show help | |\n\n### Variation policy\n\n- **Non-Docker projects** (standalone Go tools, scripts): omit Docker commands, implement only test\u002Flint\u002Fclean\u002Fhelp.\n- **Rails projects** — use the **Taskfile pattern** (`time \"${@:-help}\"` + bare function names), NOT the bash case-dispatch template.\n- **Rails projects** MUST add: `rails \u003Ccmd>`, `bundle:install`, `yarn:build`, `psql`, `test`, `migrate`, `seed`.\n- **Multi-compose projects** MUST route service names to the correct compose file. Use a `case` dispatch in the build function.\n- **Platform dispatchers** use a root dispatcher + per-component `.\u002Frun` scripts. Each component's `.\u002Frun` implements the same interface above.\n\n> ⚠️ **Skill-dir assets:** the canonical assets live in the shared repo, NOT inside this skill's directory:\n> - Template → `~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Ftemplates\u002Frun.sh`\n> - `check-alembic-heads.py` → `~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py`\n> Both deploy to `~\u002F.steadfaste-fleet\u002Fscripts\u002Fproject-run-scripts\u002F...` via `fleet-update.sh`. Check the repo path exists before relying on it. If either is absent, write `.\u002Frun` from the Template Structure below — every required piece (check-alembic-heads.py, entrypoint.sh, test_migrations.py) is fully inlined in this SKILL.md so no external asset is a hard dependency.\n\n## Migration Head Integrity — Fail-Fast, No Auto-Merge\n\nMultiple Alembic heads MUST be resolved at PR\u002Fmerge time — never at deploy or\ncontainer-start time. Auto-merging inside a container produces ephemeral state\nthat disappears on rebuild and masks genuine migration chain problems. It can\nalso generate corrupt merge files with `revision = None`, crashing every subsequent\nAlembic operation with `TypeError: 'NoneType' object is not iterable`.\n\n### Required Files\n\nEvery project with Alembic migrations MUST have these two files:\n\n| File | Purpose | Provided by skill |\n|------|---------|-------------------|\n| `scripts\u002Fcheck-alembic-heads.py` | Static-analysis script: checks for multiple heads, validates revision ID length (max 32 chars) | `~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py` — copy to your repo's `scripts\u002F` |\n| `tests\u002Ftest_migrations.py` | Pytest: asserts `len(script.get_heads()) == 1` at runtime | Template below — include in your test suite |\n\n### Policy\n\n| Layer | Behavior |\n|-------|----------|\n| **`.\u002Frun build`** | Runs `check-alembic-heads.py` before building Docker images. Aborts on multi-head. |\n| **`.\u002Frun migrate`** | Validate single head before upgrade. Fail with instructions if >1 head. |\n| **`.\u002Frun check:alembic`** | Manual alias: inline head check (code below). |\n| **`entrypoint.sh`** | Run `alembic upgrade head` directly. If multiple heads or corruption, fail loudly. |\n| **CI (`test_migrations.py`)** | Assert `len(script.get_heads()) == 1`. Block deploy on divergence. |\n| **Local dev** | Developer runs `alembic merge heads` or rebases before pushing. |\n\n### `.\u002Frun check:alembic` — on-demand head check\n\nNo bundled script ships with this skill. Inline the check directly in `cmd_check_alembic`:\n\n```bash\ncmd_check_alembic() {\n    python3 - \u003C\u003C'EOF'\nfrom alembic.config import Config\nfrom alembic.script import ScriptDirectory\nimport sys\nconfig = Config(\"alembic.ini\")\nscript = ScriptDirectory.from_config(config)\nheads = script.get_heads()\nif len(heads) != 1:\n    print(f\"✗ {len(heads)} Alembic heads detected: {heads}\")\n    print(\"  Fix: alembic merge heads -m 'merge' (or rebase your branch).\")\n    sys.exit(1)\nprint(f\"✓ single head: {heads[0]}\")\nEOF\n}\n```\n\nWhen writing `check-alembic-heads.py` yourself, use `re.DOTALL` to correctly parse multiline `down_revision` tuples (e.g., merge revisions with two parents spread across multiple lines).\n\n### `scripts\u002Fcheck-alembic-heads.py`\n\nCopy this script from the repo's `ops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002F` directory:\n\n```bash\n# Pick the file we already have on disk (repo path beats $HOME fallback):\nCHECKER=\"${HOME}\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py\"\n[ -f \"$CHECKER\" ] || CHECKER=\"${HOME}\u002F.steadfaste-fleet\u002Fscripts\u002Fproject-run-scripts\u002Fscripts\u002Fcheck-alembic-heads.py\"\nmkdir -p scripts && cp \"$CHECKER\" scripts\u002F\n```\n\n### `.\u002Frun migrate` — Fail-Fast\n\n```bash\ncmd_migrate() {\n    info \"Applying Alembic migrations...\"\n    local HEADS\n    HEADS=$(_alembic_runner heads 2>\u002Fdev\u002Fnull | wc -l)\n    if [ \"$HEADS\" -ne 1 ]; then\n        error \"$HEADS migration heads detected. Expected exactly 1.\"\n        error \"Run 'alembic heads' to see them, then create a merge revision.\"\n        return 1\n    fi\n    _alembic_runner upgrade head\n    ok \"Migrations applied\"\n}\n```\n\n### `entrypoint.sh` — Direct, No Auto-Heal\n\n```bash\necho \"[1\u002F3] Checking Alembic migrations...\"\nPYTHONPATH=. alembic upgrade head 2>&1 || {\n    rc=$?\n    echo \"  ✗ Alembic migration failed (exit $rc).\"\n    echo \"  Possible causes: multiple heads, corrupt merge revision, stale migration file.\"\n    echo \"  Action: rebase your branch, resolve heads locally, and rebuild.\"\n    exit $rc\n}\necho \"  ✓ Migrations up to date\"\n```\n\n### CI Test — `tests\u002Ftest_migrations.py`\n\n```python\nfrom alembic.config import Config\nfrom alembic.script import ScriptDirectory\n\ndef test_single_migration_head():\n    config = Config(\"alembic.ini\")\n    script = ScriptDirectory.from_config(config)\n    heads = script.get_heads()\n    assert len(heads) == 1, (\n        f\"Expected 1 Alembic head, found {len(heads)}: {heads}. \"\n        \"Run `alembic merge heads -m 'merge'` or rebase your branch.\"\n    )\n```\n\n### Auto-Merge Failure Mode (for context)\n\nThe old auto-merge pattern failed because:\n1. `alembic merge heads` can generate a file with `revision: str | None = None`\n2. Every subsequent `upgrade`\u002F`heads`\u002F`check` crashes with `TypeError: 'NoneType' object is not iterable`\n3. The corrup file persists across container starts unless explicitly deleted\n4. The entrypoint's `2>\u002Fdev\u002Fnull || true` silently swallows the error, making it look like the DB is uninitialized\n\n**Recovery from a broken auto-merge file inside a running container:**\n```bash\ndocker compose exec api sh -c \"rm -f \u002Fapp\u002Falembic\u002Fversions\u002F*auto_merge* \u002Fapp\u002Falembic\u002Fversions\u002F*merge*\"\n```\n\nThen verify the root cause (migration chain fork, wrong `down_revision`, corrupt file).\n\n## psql — Dual-Mode\n\nMust support both interactive and non-interactive:\n\n```bash\ncmd_pgsql() {\n    local user=\"${POSTGRES_USER:-app}\"\n    local db=\"${POSTGRES_DB:-app}\"\n    if [ \"${1:-}\" = \"-c\" ]; then\n        shift\n        docker compose exec -T postgres psql -U \"$user\" -d \"$db\" \"$@\"\n    else\n        docker compose exec -it postgres psql -U \"$user\" -d \"$db\" \"$@\"\n    fi\n}\n```\n\n### `--no-cache` Passthrough\n\nBuild must handle `--no-cache` mixed with service names, and MUST check Alembic migration integrity before building:\n\n```bash\ncmd_build() {\n    # Pre-check: abort on multiple Alembic heads\n    if ! python3 \"$PROJECT_ROOT\u002Fscripts\u002Fcheck-alembic-heads.py\" \"$API_DIR\u002Falembic\u002Fversions\" 2>&1; then\n        echo \"✗ Build aborted: fix Alembic migration heads before building.\"\n        return 1\n    fi\n    local no_cache=\"\"\n    local services=()\n    for arg in \"$@\"; do\n        if [[ \"$arg\" == \"--no-cache\" ]]; then\n            no_cache=\"--no-cache\"\n        else\n            services+=(\"$arg\")\n        fi\n    done\n    if [ ${#services[@]} -eq 0 ]; then\n        info \"Building all Docker images...\"\n        docker compose build ${no_cache:+\"$no_cache\"}\n    else\n        info \"Building Docker image(s): ${services[*]}\"\n        docker compose build ${no_cache:+\"$no_cache\"} \"${services[@]}\"\n    fi\n}\n```\n\n## Template Structure\n\nEvery `.\u002Frun` follows this structure:\n\n```\n1. shebang + set -euo pipefail\n2. PROJECT_ROOT detection\n3. Source .env\n4. Color helpers (info\u002Fok\u002Fwarn\u002Ferror)\n5. show_help() — complete command list\n6. activate_venv() + _pytest_runner() + _alembic_runner() helpers\n7. Vitest cleanup (_cleanup_vitest + _run_vitest)\n8. Docker commands (cmd_up through cmd_pgsql)\n9. Dev commands (cmd_pip, cmd_dev_api, cmd_dev_web)\n10. Test commands (cmd_test, cmd_test_api, etc.)\n11. Database commands (cmd_db_reset, cmd_migrate, cmd_check_alembic, cmd_seed)\n12. Lint\u002Fformat commands (cmd_lint, cmd_fmt, cmd_fmt_fix)\n13. Clean\u002Frebuild commands (cmd_clean, cmd_rebuild)\n14. Main case dispatch\n```\n\n## Canonical Template\n\nThe canonical template lives at\n`~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Ftemplates\u002Frun.sh` — verify it\nexists (`ls` the path) and read it before writing a new `.\u002Frun`; it is the\ndefinitive starting point for every new project. Customize: PROJECT_ROOT paths, service names, env var defaults, test runner commands. If the template is\nmissing, build from the Template Structure section above instead of guessing.\n\n## Version Increment Convention (recommended — Rails \u002F release-tracking repos)\n\nA `.\u002Frun version` command keeps releases repeatable and discoverable. Pattern\n(from koscap-mwi): `.\u002Frun version next|+minor|+major` bumps the version in a\n`.proj-version` file, then prints the tag + changelog release steps so the\ndeveloper (or a release cron) knows exactly what to run next:\n\n```bash\n# .proj-version holds the current version, e.g. \"1.4.2\"\ncmd_version() {\n  local mode=\"${1:-next}\"\n  local f=\".proj-version\"\n  [[ -f \"$f\" ]] || { error \"No $f found\"; return 1; }\n  local cur; cur=\"$(tr -d '[:space:]' \u003C \"$f\")\"\n  local next=\"\"\n  case \"$mode\" in\n    next)    next=\"$(echo \"$cur\" | awk -F. '{printf \"%d.%d.%d\", $1, $2, $3+1}')\" ;;\n    +minor)  next=\"$(echo \"$cur\" | awk -F. '{printf \"%d.%d.0\", $1, $2+1}')\" ;;\n    +major)  next=\"$(echo \"$cur\" | awk -F. '{printf \"%d.0.0\", $1+1}')\" ;;\n    *)       error \"Usage: .\u002Frun version next|+minor|+major\"; return 1 ;;\n  esac\n  printf '%s\\n' \"$next\" > \"$f\"\n  ok \"Bumped $cur → $next (written to $f)\"\n  echo \"  Next: tag + push the release:\" \n  echo \"    git tag v$next && git push origin v$next\"\n  echo \"    # then run the project's release\u002Fchangelog step (ggt\u002Fggc):\"\n  echo \"    ggt bump  # or your release tooling\"\n  echo \"    ggc -g    # generate changelog, or your equivalent\"\n}\n```\n\nRegister it in the dispatch (`version) cmd_version \"$@\" ;;`). Adopt the same\n`next` \u002F `+minor` \u002F `+major` semantics in any repo that wants scripted releases.\n\n## Reference: Multi-Repo Audit\n\n`references\u002Fmulti-repo-audit-2026-06.md` documents the actual state of every `.\u002Frun` file across all user repos as of June 2026 — what was changed, what was preserved, and which repos were skipped (and why). Consult this before updating an existing repo's `.\u002Frun` to understand its specific structure.\n\n## Vitest Cleanup (ALL repos with web tests)\n\nEvery repo with vitest tests MUST include `_cleanup_vitest` and `_run_vitest` functions. Orphaned vitest workers accumulate and block ports. Pattern (exact code in canonical template).\n\n## Update Workflow\n\nWhen writing a `.\u002Frun` for a repo that lacks one, or updating one that's incomplete:\n1. Read the canonical template: `cat ~\u002Fsteadfaste-fleet\u002Fops\u002Fscripts\u002Fproject-run-scripts\u002Ftemplates\u002Frun.sh` (verify it exists first)\n2. Determine which tech stack(s) the project uses (Python\u002FFastAPI? Rails? Go? Node?)\n3. Customize: service names, env var defaults, test paths, db credentials\n4. Copy `scripts\u002Fcheck-alembic-heads.py` from the skill (see Migration Head Integrity section above) if the project uses Alembic\n5. Remove irrelevant commands (e.g., remove `cmd_dev_web` if no frontend)\n6. Add stack-specific commands (e.g., `rails` for Rails, `batch` for Rust)\n7. Run `chmod +x run && .\u002Frun help` to verify\n\n## Strategy: Rewrite vs Patch\n\nUpdating an existing `.\u002Frun` across many repos requires a strategy:\n\n- **Full rewrite** for files under 250 lines — safer than patching, preserves all custom commands in one pass. Write the file entirely from the template, preserving custom commands (test subdomains, search, backup, etc.).\n- **Targeted patch** for files over 300 lines — use `patch(mode='replace')` on specific function bodies. Batch related patches with `execute_code` for speed.\n- **Never use bundled dispatch** (e.g., `up|down|restart|build|logs|ps)` — this pattern prevents fixing individual commands like `restart` (should be down+up, not `docker compose restart`). Break them into individual cases.\n- **Function boundary caution with patch** — patches that replace multi-line function bodies can accidentally consume\u002Fsubstring-match adjacent function definitions. If patch drops a neighboring function's `name() {`, revert by re-adding the definition line. Prefer full-file writes for functions over 8 lines to avoid this.\n\n## Pitfalls\n\n| Pitfall | Symptom | Fix |\n|---------|---------|------|\n| **Rails Taskfile pattern** — Rails repos use `time \"${@:-help}\"` + bare function names as commands (e.g., `function up {` called via `.\u002Frun up`). They don't use case-dispatch with `cmd_` prefix. | Forcing case-dispatch conversion breaks the repo | Leave Rails Taskfile pattern repos alone. They already implement the standard Docker lifecycle commands as functions. Only add missing commands (pgsql, lint, migrate) as new functions, keeping the `time` dispatch. Use `run.rails.sh` template for new Rails projects. |\n| **Custom compose variables** — Some repos (e.g., acme-metadata) define `DOCKER_COMPOSE=\"docker compose -p acme-metadata -f $COMPOSE_FILE\"` and use `$DOCKER_COMPOSE` instead of raw `docker compose`. | Patching with `docker compose` literal breaks the command because the flag\u002Fformat is wrong | Inspect how compose is called in `cmd_up()`. If it uses a variable, ALL docker compose calls in the file must preserve it. Use the same variable name when patching. |\n| **Bundled dispatch** — `up|down|restart|build|logs|ps)` in a single case arm prevents fixing individual semantics | `.\u002Frun restart` calls `docker compose restart` instead of down+up; `.\u002Frun build` has no --no-cache | Break into individual cases: `up) ... ;; down) ... ;; restart) ... ;;` etc. |\n| **psql vs pgsql naming** — Some repos (e.g., acme-matching) use `psql` and `psql:cmd` instead of `pgsql` | `.\u002Frun pgsql` fails with \"Unknown command\" | Add `pgsql` as the canonical name with `pgsql) shift; cmd_pgsql \"$@\" ;;` AND keep `psql` as an alias pointing to the same function. The `pgsql` name is canonical across all repos. |\n| **Self-healing migrate needs `_alembic_runner`** — The self-healing migrate function uses `_alembic_runner`, which requires `activate_venv` helper. | Repos without `_alembic_runner` or that run migrations inside Docker (via `docker compose exec -T api ...`) get errors | Check how db:reset runs migrations. If it uses `_alembic_runner` (local venv), mirror that. If it runs inside Docker, create cmd_migrate that also runs inside Docker. |\n| **No-compose fallback** — Repos like `example-website` and `other-app` check `[ -f docker-compose.yml ]` and fall back to `docker run` individual containers | Standardizing the compose case breaks the no-compose fallback | Preserve the `HAS_DC` \u002F `DC` variable pattern for repos that need compose-optional behavior. Only add new commands (lint, pgsql) inside the existing fallback structure. |\n",{"name":5,"trigger":24,"version":33,"description":7,"related_skills":34},[25,26,27,28,29,30,31,32],"creating a .\u002Frun script","adding a CLI to a project","standardizing project commands","setting up dev workflow","modeling after another project's run script","what commands should a .\u002Frun have","how to structure a .\u002Frun file","agents consistently create and update run file","1.0.0",[35,36],"python-dependency-management","docker-compose-common-issues","main","2e6aa8d15ab0a366c90be54f61bf9c6e97015e83","skills\u002Fdevops\u002Fproject-run-scripts",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill project-run-scripts",{"tool":52,"command":53},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill project-run-scripts",{"tool":55,"command":56},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill project-run-scripts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fproject-run-scripts\u002FSKILL.md",true,[],[61,69,76,83,90,97],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":68},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":68},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":68},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":68},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":68},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":68},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]