agentleFS
Sagargupta16Sagargupta16/agent-brain/skills/ship/SKILL.md

ship

Skill2 starsChanged 11 days agoMITView on GitHub

Land the current work on one of your own repos end to end. Stage by name, conventional commit, push, open or update the single PR for this work stream, wait for checks, merge only when every gate is green, delete the branch, and hand off to prod-check when the repo deploys. Use when the user says "merge it", "push and create PR", "if all green merge", "ship it", "open PR to main", "merge all", "create PR once done", "delete stale branches", or "push it". Never merges red, never force-pushes, never opens a second PR for the same branch, never merges a dependency PR whose lockfile did not change with its manifest. Own repos only; forks go through the oss skill.

  • Reads credentials
  • 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 ios-sync, open-gstack-browser 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.
  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 6 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 10 projects that use this

  • 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 19 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 9 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

  • 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 23 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 6 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Every gate must pass before merge.

    line 33
  2. Very specific:

    Check nothing sensitive is staged (.env*, .mcp.json, tokens).

    line 50
  3. Very specific:

    Commit: conventional, lowercase, imperative, one line, no trailers, no dash characters.

    line 51
  4. Distinctive:

    Never mark a check as skipped to get green.

    line 62
  5. Very specific:

    Update STATUS.md if the PR was listed there.

    line 73
  6. Very specific:

    Never force-push to main, amend a published commit, or pass --no-verify.

    line 97
  7. Distinctive:

    Never enable auto-merge; merge on green, not on a timer.

    line 98
  8. Very specific:

    Never merge with a red check, an UNSTABLE or BLOCKED merge state, or an open security finding.

    line 99
  9. Distinctive:

    Never open a second PR for a branch that already has one.

    line 101
  10. Very specific:

    Never run this on a fork of someone else's repo.

    line 102
  11. Distinctive:

    Never claim "merged" or "deployed" without the API field or the live URL that proves it.

    line 104
  12. Distinctive:

    Never write an em or en dash character in commit messages or PR bodies.

    line 106
  13. Very specific:

    No code review (that is code-review), no test writing, no release tagging (release-please owns that where configured), no changelog editing …

    line 110

“Common” is measured: kept by at least 6 in 10 of the 180 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

ship

"merge it" is one of the most common bare messages a user sends, and the flow behind it (commit, push, one PR, wait, merge, clean up, check the deploy) is easy to get subtly wrong. This skill owns it end to end, gated.

Read first

  • Your user-level rules (git, secrets, honesty and verification)
  • The workspace or repo git-workflow doc, if one exists
  • STATUS.md in the workspace root, if present (which PRs are already open for this repo)
  • Any protected-branch list in the brain (brain recall protected branch): branches that workflows write to (e.g. a profile repo's generated-output branch) must never be deleted or retargeted

Gates, in order

Every gate must pass before merge. Report which one failed and stop there.

GateCheckWhy
G1 branchcurrent branch is not main; if it is, branch first (feat/, fix/, chore/)never commit on main
G2 one PRgh pr list --head <branch>; if a PR exists, push to it, never open a secondone PR per work stream
G3 checksgh pr checks <n> --watch, every check pass; mergeStateStatus == CLEANgreen CI is the merge authority
G4 lockfileif package.json, pyproject.toml, requirements*.txt or Cargo.toml changed, the matching lockfile changed in the same PRthe stale-lockfile trap: GitHub reports MERGEABLE when there is no textual conflict, not when the lockfile is consistent with the manifest
G5 securityno open Dependabot or code-scanning alert introduced by this PR; renovate/artifacts check not failingnever merge with unresolved security findings
G6 hooksno --no-verify, no force-push, no amend of a pushed commithard rules

Procedure

  1. Identify scope: repo, branch, what changed (git status --porcelain, git diff --stat origin/main...HEAD). If nothing changed and no PR exists, say so and stop.
  2. G1. Then stage by name only: git add <file> <file>; never -A or .. Check nothing sensitive is staged (.env*, .mcp.json, tokens).
  3. Commit: conventional, lowercase, imperative, one line, no trailers, no dash characters. fix(deps): bump next to 16.3.5 for two critical rce advisories.
  4. Push with an explicit refspec: git push -u origin <branch>:<branch>. A branch created from origin/main tracks main, so a bare git push can target main. Confirm the branch name in the output.
  5. G2. Create or update the PR with gh pr create --base main --head <branch> --title ... --body-file <path> (a heredoc piped into gh can hang on some shells; always --body-file). Body: what and why, the diff scope, what was verified and what was not.
  6. G3. gh pr checks <n> --watch. On failure read the log (gh run view <id> --log-failed), fix on the same branch, push, repeat. Never mark a check as skipped to get green.
  7. G4 and G5. Run the lockfile and security checks explicitly; print the result of each.
  8. Merge: gh pr merge <n> --squash --delete-branch. Confirm with gh pr view <n> --json state,mergedAt,mergeCommit; mergedAt non-null is the proof, not the command's exit code.
  9. Local cleanup: git checkout main, git pull --ff-only, git branch -D <branch>, git fetch --prune.
  10. Deploy hand-off: if the repo has a deploy target (repo CLAUDE.md or a deployments doc), run prod-check and include its result. "Merged" is not "deployed".
  11. Update STATUS.md if the PR was listed there.

"merge all"

Enumerate first: gh pr list --author @me --state open across the repos in question, print the count, then apply gates G3 to G5 to each PR and merge the ones that pass. Report per PR. Bot PRs (Renovate, Dependabot) follow the same gates; a failing renovate/artifacts check means the lockfile was not regenerated and the PR does not merge. Major version bumps are deferred and flagged, never merged in a sweep.

Output

| repo | PR | gates | result | proof |
| owner/repo | #N (url) | G1..G6 pass | merged 2026-09-22T11:40:16Z | mergeCommit abcd1234 |
| owner/repo | #M (url) | G4 FAIL | not merged: lockfile pins js-yaml 4.3.1 | sha identical to main |

deploy: <prod-check result or "no deploy target">
branches deleted: remote <branch>, local <branch>

Must not

  • Never force-push to main, amend a published commit, or pass --no-verify.
  • Never enable auto-merge; merge on green, not on a timer.
  • Never merge with a red check, an UNSTABLE or BLOCKED merge state, or an open security finding.
  • Never open a second PR for a branch that already has one.
  • Never run this on a fork of someone else's repo; that is the oss skill, and commenting on upstream PRs needs the user's explicit permission.
  • Never claim "merged" or "deployed" without the API field or the live URL that proves it.
  • Never write an em or en dash character in commit messages or PR bodies.

Non-goals

No code review (that is code-review), no test writing, no release tagging (release-please owns that where configured), no changelog editing unless the repo's convention requires one for the change and the user asked for it.

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.