ship-it
Finish a feature on a worktree branch — loop review-and-fix until clean, ff-merge to main, cut and publish a release, clean up the worktree, and log any instruction friction. Use when implementation is done and make all passes.
- License 许可
- MIT
- 所属仓库
- kfet/fir
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- ship-it
- builtin
- true
- override
- true
- description
- Finish a feature on a worktree branch — loop review-and-fix until clean, ff-merge to main, cut and publish a release, clean up the worktree, and log any instruction friction. Use when implementation is done and make all passes.
03 SKILL.md 正文
ship-it
Pure orchestration. No loop logic of your own — review-and-fix owns the
iterate-until-clean loop; trust it.
Run only on a worktree feature branch with implementation complete and
make all passing. Not on main.
Steps
- review-and-fix — invoke the
review-and-fixskill. It loops internally until a pass finds zero new issues, then commits. Always run it: an urgent or "quick" brief, or a small diff, does not waive it. Skipped reviews have shipped bugs. - merge-to-main — invoke the
merge-to-mainskill (squash, rebase, verify no main content lost, ff-merge, build). - release — in the main worktree (the branch is already merged there),
invoke the
releaseskill: it determines the version from the## [Unreleased]entries inCHANGELOG.md, runsmake all, updatesCHANGELOG.mdandVERSION, commits, tags, and installs. Invokingship-itis the confirmation that skill asks for — do not stop to ask again. - deploy — complete the
releaseskill's Publishing step:make publish(pushes the commit and tag; GoReleaser CI builds and uploads the release), followed by its post-publish workflow monitoring. Rolling the new version out to hosts is thenfir updaterun on each host, once CI is green — never an scp/cp of a build artifact onto a host'sfir.make deploy HOST=<host>is the exception, not the rollout: use it only when the release has no artifact for that platform, or for deliberate pre-release testing, say so out loud, and clean up the~/.local/bin/fir.prevfile it leaves behind once the new binary is verified. - Cleanup — remove the worktree and branch.
- Instruction friction log — see below.
Writing
Comments only where the code cannot be understood without them. Commit: subject line only. PR description: one sentence.
Instruction friction log
Empty by default. Silence is the signal. Only act if something actively got in the way this task: an AGENTS.md rule that misdirected you, a skill instruction that was ambiguous and led to a wrong turn, a contradiction between instructions, an unhelpful or unclear task prompt, or dead-weight guidance that never applied. No score, no summary, no "here are three thoughts".
If — and only if — there is real friction, append one JSON object per
observation (one line each) to ~/.config/fir/instruction-feedback.jsonl,
creating the file and ~/.config/fir/ if needed:
mkdir -p ~/.config/fir
cat >> ~/.config/fir/instruction-feedback.jsonl <<'EOF'
{"ts":"<RFC3339>","project":"<abs project path>","host":"<hostname>","branch":"<branch>","target":"AGENTS.md | skills/<name>/SKILL.md | task-prompt","issue":"<short>","evidence":"<what made the friction visible>"}
EOF
target: "task-prompt" is for friction in the spawning task text itself (no file
to edit; it aggregates into prompt-writing patterns). These entries are processed
later, deliberately, by the instruction-tune skill — do not act on them now.
Output
Report: review-and-fix summary, merge result + commit, release version + tag, deploy result (published release or host deployed to), confirmation the worktree was removed, and any friction entries logged (or "no friction logged").
04 同仓库更多 Skills
wt
Spawn a fresh fir agent in its own tmux session on its own git worktree. Use whenever the user wants the work — or the conversation about the work — to happen over there, not here. If the user points at this skill, or has directly loaded it in the context, that alone is the cue — spawn, don't inline.
wrap-up
Wrap up work on a project branch — review, fix, and simplify in a loop until clean, then ff-merge to main.
tmux-observer
Attach a tmux window to an already-running fir session — observe its transcript and drive its input via tmux send-keys. Use when you need to watch or steer another fir agent.
tmux-driver
Drive interactive CLIs (python, gdb, etc.) via named tmux sessions with multi-window support. Falls back to fir's built-in PTY driver when tmux is unavailable.
telegram-bot-setup
Set up a new Telegram bot channel for a fir project — install the telegram MCP, create a per-project state dir, drop in the bot token, wire .fir/mcp.json with TELEGRAM_STATE_DIR, pair the user, and verify. Use when the user asks to add, configure, or onboard a Telegram bot for a fir worktree/project.
sync
Sync with an upstream source repo — detect changed files, apply equivalent downstream edits, update the baseline, and report any new features or non-trivial changes picked up.