From bb
End a coding session cleanly. Confirm the change works, capture decisions worth recording, write a short summary, run tests, then commit. Use when the user invokes /bb:dev-finish.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bb:dev-finishThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Finalize the current coding session. Run the steps in order — don't skip ahead.
Finalize the current coding session. Run the steps in order — don't skip ahead.
If the line below has content after the colon, treat it as user guidance to bear in mind throughout. Otherwise ignore.
Bear in mind: $ARGUMENTS
If this session produced a meaningful change (a new feature, a bug fix, a refactor with risk, a dependency update):
CLAUDE.md or the project's readme for how to bring it up. Run the user-visible flow that exercises the change.For trivial work (single-line fixes, doc edits, no behaviour change), say so in one line and skip.
Look over the conversation and the current diff. Check for:
TODO / FIXME left in the diff that shouldn't ship.If you find anything, present a short table summarizing each finding, walk through them one at a time, wait for the user's decision on each, then implement decisions in a single pass.
If nothing's missed, say so in one line and move on.
Review the session for architectural decisions worth writing down — choices that establish a principle, precedent, or convention that future work on this codebase should respect.
The bar is high. A decision record is a constraint on future work, not a project diary. Write one when:
Do not write one for: bug fixes, performance tweaks that solve one concrete problem, things obvious from reading the code, "here's how this currently works" descriptions.
If you can't articulate which future decision the record would constrain, don't write it.
If a candidate exists:
Propose it to the user in this shape — wait for approval before writing:
Title:
<kebab-case title naming the principle>Principle:<the rule, stated in the abstract>Today's instance:<the specific decision that surfaced it>
If the project has an existing decision-record location (ADR directory, design-docs folder), use it. Otherwise ask, defaulting to docs/decisions/<NNNN>-<slug>.md with sequential numbering — create the directory if missing.
Write the record. Keep it short — context, decision, consequences.
Write a short narrative of the session to docs/summaries/<YYYY-MM-DD>-<slug>.md (use the project's convention if it has one; create the directory if missing).
The summary captures why the code now looks the way it does — the reasoning that doesn't survive in the diff. See summary.md for the spec.
Skip when the session was purely mechanical — single-line fix, formatting, dependency bump with no debate, pre-decided rename. When in doubt, ask the user.
Run the project's test suite and any lint or type-check it uses.
CLAUDE.md or the project's README. Don't guess.--no-verify, etc.) without the user explicitly asking for it.git add <path>), not git add -A or git add . — keeps secrets and scratch files out of commits by accident.CLAUDE.md or recent git log). If there's no convention, write clear present-tense messages..env, credentials, keys). Flag them instead.After committing, hand back to the user. Pushing is the user's call.
--amend or --no-verify.npx claudepluginhub govtech-bb/team-skills --plugin bbProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.