agentleFS
patfornapatforna/auto-task/skills/ship-task/SKILL.md

ship-task

Skill10 starsChanged 3 months agoMITView on GitHub

Use to wrap up a finished task - set status to done, merge, clean up.

  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. aiatelie/ai-atelie★ 11same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository13 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 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.

  • 3

    Very specific

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

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

    If merge --squash conflicts, stop and flag it to the user.

    line 63
  2. Very specific:

    Run the project's verification command from $primary on the post-squash commit, before pushing.

    line 67
  3. Distinctive:

    If verification fails, stop and fix on main before pushing — do not push a red tree.

    line 71
  4. Very specific:

    If the project config defines a transcript-capture command, re-run it now — the ship commits post-date any capture taken at auto-task …

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Ship Task

Usage

/at:ship-task <task-path>

Goal

Wrap up a finished task - set status to done, merge, clean up.

Context

This skill is typically run as part of a larger workflow:

create-task → clarify-task → plan-task → impl-task → review-code → review-task → ship-task

As steps (e.g. clarify, plan, impl, review) typically run in new sessions, it's imperative that the task file plus repo state carry everything the next agent needs.

Task files live in the project's task store. Project config can override its location and other defaults: read .claude/auto-task.config.md (project, committed) and .claude/auto-task.config.local.md (personal overrides — win on conflict) if they exist. /at:config owns the defaults and the precedence rules.

Guidance

  • main throughout this skill means the repo's default branch — substitute yours (e.g. master) if it differs.
  • Squash-merge by default — the task's commits collapse into a single commit on main.
  • Push is automatic — invoking ship-task authorises the merge and push. No separate approval needed.
  • Untracked files in the worktree are fine. Refuse only on uncommitted tracked changes.
  • After the merge, re-install dependencies in the primary repo if the branch changed a dependency manifest — the primary's installed deps (node_modules/, a virtualenv, etc.) don't update on merge. Run the ecosystem's install for each changed manifest (e.g. lockfile → package-manager install; regenerate any gitignored generated artefacts that depend on changed sources). The project config may list the exact commands.

Protocol

Step 1: Pre-Flight

Branch must be task/NNN-... with no uncommitted tracked changes.

Step 2: Mark Done

Set the task status to done. By default (in-repo task store), edit the frontmatter status: field and commit on the task branch with a (task/NNN) subject suffix — the squash in Step 3 carries it to main. If the config routes tasks to a separate repo, use its task-status command; the bump then commits there and the squash carries code only.

Step 3: Merge into Main

Squash the task branch into a single commit on main.

git -C "$primary" pull --rebase origin main            # bring local main up to date with origin (keeps any unpushed local-main commits)
git -C "$primary" merge --squash task/NNN-<slug>       # stage the task's combined diff onto main — no commit yet
git -C "$primary" commit                               # write the squash commit (message below)

$primary resolves to the worktree where main is checked out — needed because merge only updates the branch checked out in the worktree it runs in. See § $primary below. The pull --rebase first reconciles local main with origin (requires the primary worktree to be clean); if origin/main is merely behind local main, it's a no-op. (No remote configured? Skip the pull and the Step 5 push.)

Squash-commit message — follow the repo's own commit conventions first (style, tense, prefixes). Defaults where the repo has none:

  • Subject: a concise summary of what the task delivered, ending with the task-link suffix (default (task/NNN); config can change or drop it — it's what ties the commit back to the task).
  • Body: one bullet per logical change the task made (derive from the squashed commits' subjects), so the single commit still records what happened.

If merge --squash conflicts, stop and flag it to the user.

Step 4: Verify the Integrated Tree

Run the project's verification command from $primary on the post-squash commit, before pushing. The command comes from the config; absent that, use the project's canonical check (a just/make check recipe, the CI workflow's steps, or at minimum the full test suite).

A green task branch is not enough: the pull --rebase in Step 3 folds in whatever landed on main since the branch forked, and a parallel change can break the task's code or tests with zero textual conflict (e.g. a renamed helper silently invalidates an assertion in an untouched test file). Git merges them cleanly; only re-running the verification on the combined tree catches it.

If verification fails, stop and fix on main before pushing — do not push a red tree. (CI is the backstop, not the gate.)

Step 5: Push

  • Push: git push origin main (any worktree — push is repo-wide).
  • Cleanup (after push): git -C "$primary" worktree remove --force <task_worktree> and git -C "$primary" branch -D task/NNN-<slug> (-D, not -d — squash-merge leaves the branch tip a non-ancestor of main, so -d refuses it as "not merged").

Step 6: Refresh Transcript (Only If Bound)

If the project config defines a transcript-capture command, re-run it now — the ship commits post-date any capture taken at auto-task wrap-up, and this final capture supersedes it.

Step 7: Output

One-sentence summary.

$primary

A git repo can have multiple worktrees, each with a different branch checked out. The "primary" is the original one — where main lives. Task worktrees have the task branch checked out.

Resolve once:

primary=$(git worktree list --porcelain | awk '/^worktree / {print $2; exit}')

Why it's needed:

  • git merge, git checkout, git rebase mutate the branch checked out in the worktree they run in. To advance main, you must run from the primary worktree (or -C "$primary").
  • git worktree remove <wt> refuses if you're inside <wt>. Call it from the primary.
  • git branch -d <branch> refuses if <branch> is checked out anywhere. Easier to delete from the primary after the task worktree is gone.
  • git push and git fetch are repo-wide — no $primary needed.

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.