agentleFS
AhmedTmorganAhmedTmorgan/crew/skills/ship/SKILL.md

ship

Skill1 starsChanged 3 months agoMITView on GitHub

Take verified work from a branch to production safely with git and GitHub. Stage "pr": commit, push, open a PR, watch CI, and fix failures until green. Stage "release", only after the user explicitly approves in chat: merge, run the project's production migrations and deploy command, verify the live site, record problems in BUGS.md, and clean up branches and worktrees. Use for "ارفع الشغل", "push", "open a PR", "ship it", "deploy", or as the ship and release phases of crew:run.

  • Commits and pushes

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-deploy, debug-fix and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 23 projects that use this

  • zebbernSkill

    debug-fix

    Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)

    Also in 4 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 12 projects that use this

  • ayudaySkill

    unfreeze

    Clear the freeze boundary set by /freeze, allowing edits to all directories again. Use when you want to widen edit scope without ending the session. Use when asked to "unfreeze", "unlock edits", "remove freeze", or "allow all edits".

    Also in 26 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 11 projects that use this

  • ramybarsoumSkill

    document-release

    Post-ship documentation update. Reads all project docs, cross-references the diff, updates README/ARCHITECTURE/CONTRIBUTING/CLAUDE.md to match what shipped, polishes CHANGELOG voice, cleans up TODOS, and optionally bumps VERSION. Use when asked to "update the docs", "sync documentation", or "post-ship docs". Proactively suggest after a PR is merged or code is shipped.

    Also in 25 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 184 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .crew/config.json first.

    line 15
  2. Distinctive:

    Run it in the background. When it finishes, check the result.

    line 45
  3. Very specific:

    after limits.ciFixRounds rounds, stop and report

    line 50
  4. Distinctive:

    If CI is red for a reason unrelated to this PR, say so with evidence.

    line 52
  5. Very specific:

    If review bots or people comment, run the crew:babysit-pr skill: verify, fix, reply, resolve.

    line 54
  6. Very specific:

    Production migrations,: if any: dispatch crew:migration-runner with target migrateProd.

    line 74
  7. Distinctive:

    Merge: Use the repo's allowed method:

    line 76
  8. Very specific:

    Deploy: Run commands.deploy exactly, from the state it requires (for example, a clean checkout of the latest base).

    line 80
  9. Distinctive:

    Check any logs or health endpoint the project has.

    line 86
  10. Distinctive:

    Commit on the base branch through a follow-up PR if the base branch is protected.

    line 92

“Common” is measured: kept by at least 6 in 10 of the 184 edited versions of this file we could read. “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

crew:ship

Read .crew/config.json first. The baseBranch and commands in it are the only commands you use for gates, migrations, and deploys. Never improvise a production command. If one is null, stop and ask.

Stage pr

  1. Preconditions. The work is committed on a non-base branch, and the gates pass in this tree: run typecheck, lint, test from the config yourself. Don't take anyone's word for it.
  2. Journal. The problems this work hit are in BUGS.md (crew:bugs). Commit the journal on the same branch.
  3. Sync. git fetch origin then rebase on or merge origin/<base>. Resolve conflicts and re-run the gates. If BUGS.md conflicted or merged, run node "${CLAUDE_PLUGIN_ROOT}/scripts/bugs.mjs" check --fix.
  4. Push. git push -u origin <branch>. If a sandbox blocks the network, retry that one command with the sandbox disabled. Never --force a shared branch; --force-with-lease only on your own crew branch after a rebase.
  5. Open the PR.
    gh pr create --base <base> --head <branch> --title "<type>: <summary>" --body-file <file>
    PR body sections, short:
    • What & why: from the brief.
    • How: the plan, including who built what and any fallbacks.
    • Review: the reviewer's verdict and what was fixed.
    • Migrations: which files; applied to dev yes or no.
    • Journal: the BUGS ids added or updated, open security issues first.
    • Test plan: the acceptance criteria.
  6. CI.

    gh pr checks <n> --watch --interval 30

    Run it in the background. When it finishes, check the result. On failure:

    • gh run view <run-id> --log-failed
    • find the cause and route the fix to the role that owns that code (in crew:feature), or fix a trivial gate issue yourself
    • re-run the gates locally, push, and watch again
    • after limits.ciFixRounds rounds, stop and report

    If CI is red for a reason unrelated to this PR, say so with evidence. Don't "fix" unrelated code.

  7. Bot reviews (optional).
    • If review bots or people comment, run the crew:babysit-pr skill: verify, fix, reply, resolve.
    • For a posted two-model review, run crew:debate-review on the PR.
  8. Report. PR link, CI status, open review threads, what's needed for release.

Stage release: only after explicit approval

Approval must be the user's own words in this conversation, given after they saw what will run:

  • the PR
  • CI status
  • the migrations for PROD
  • the deploy command

"Ship it" earlier in the task doesn't count as approval to deploy. Ask at the gate. The guard hook also prompts on the production commands themselves. That is a second lock, not a substitute.

  1. Re-check. The PR is mergeable, CI is green on the latest head, and nothing was pushed after the approval. No open critical problem and no open high/critical security entry in BUGS.md — run node "${CLAUDE_PLUGIN_ROOT}/scripts/bugs.mjs" list --status open and look. If there is one, there is no release, whatever was approved earlier: fix it, or the owner marks it mitigated with a note saying why, in their own words.
  2. Production migrations, if any: dispatch crew:migration-runner with target migrateProd. It stops on the first error. Don't deploy if migrations failed. Report and ask.
  3. Merge. Use the repo's allowed method:
    • gh repo view --json squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed
    • then gh pr merge <n> --squash --delete-branch (or the allowed method)
    • then git fetch origin
  4. Deploy. Run commands.deploy exactly, from the state it requires (for example, a clean checkout of the latest base). If the project's deploy guard refuses, fix the precondition. Never bypass the guard.
  5. Verify. curl returning 200 is not proof.
    • Load commands.verifyUrl for real: the browser tool if available, otherwise fetch it and check for expected content.
    • Check any logs or health endpoint the project has.
    • Then check the specific acceptance criteria that are observable in production.
  6. If verification fails: tell the user immediately. Give what failed, the evidence, and the options (gh pr revert <n> then deploy, or a forward fix). Don't choose for them unless it's an outage and they approved rollbacks in advance.
  7. Journal. Mark fixed entries with the merge commit, and log any deploy or migration problem. Commit on the base branch through a follow-up PR if the base branch is protected.
  8. Clean up.
    • git worktree remove each crew worktree for this task
    • git branch -d for the crew branches (their remotes were deleted with the merge)
    • git worktree prune
    • leave nothing behind
  9. Report to the user in their language: what is live, the evidence, the journal changes, and the follow-ups.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.