/garage:finalizefrom garage
Wraps up finished work: lints, tests, cleans up, commits, and optionally pushes or opens a PR. Reads repo policy for branch naming, commit format, and PR base.
Ships in garage. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wrap up finished work: check, lint, test, clean up, commit, and only then the delivery steps the user asked for. Nothing ships with failing checks, and nothing goes further than requested.
## Ship policy block if present),
CONTRIBUTING, PR templates. It decides branch naming, commit format, whether commits go on a
feature branch, PR base, and whether attribution trailers are allowed or required.Inputs, asked only if unclear: the feature or branch name, the PR base (from policy, else the detected default branch), and files to exclude.
git status --short
git worktree list
DEFAULT=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's@^origin/@@')
git branch --no-merged "${DEFAULT:-main}"
find . -path ./node_modules -prune -o \( -name '*.orig' -o -name '*.bak' -o -name '.DS_Store' \) -print
Report what you found before changing anything.
Read git diff for the files you will commit and fix: leftover debug output, commented-out code,
unused imports, to-do comments with no tracked follow-up, secrets or credentials, unrelated
changes. Only code in this change; pre-existing issues get mentioned, not fixed.
Use the commands the repo defines, in this order: project instructions, CI config,
package.json scripts, Makefile or task runner, the build tool's aggregate task (./gradlew check, mvn verify). Fall back to a stack default only for tools the repo actually configures:
| Stack | Lint | Test |
|---|---|---|
| Java (Gradle / Maven) | configured Checkstyle, SpotBugs, or Spotless tasks | ./gradlew test / mvn test |
| TypeScript / React | npx eslint . and npx tsc --noEmit | npx vitest run or npx jest --ci |
| Flutter / Dart | dart analyze, dart format --set-exit-if-changed . | flutter test |
| Android / Kotlin | configured ktlint or detekt | ./gradlew testDebugUnitTest |
| E2E (if the change touches flows it covers) | - | npx playwright test |
Independent stacks can run in parallel. Show the real output with counts. Apply auto-fixes
(eslint --fix, formatters), fix the rest, and re-run until clean. Do not continue with lint
errors or failing tests.
Destructive steps run only after the user confirms the list:
git worktree prune drops entries whose directories are gone. Remove a worktree
with git worktree remove <path> only when its branch is merged; never rm -rf .worktrees/.git branch --merged <default branch> (excluding the current and default branch) and
delete with git branch -d only the ones the user approves.e2e/.captures.json: delete after confirmation..gitignore covers build output (node_modules, target, build, .gradle,
.dart_tool).git add <specific paths> # never git add -A or git add . blindly
git diff --cached --stat
Show the staged list. Exclude .env, credentials, keys, large binaries, build output.
Commit in the repo's format (default: Conventional Commits <type>(<scope>): <description>,
type from the change, scope from the main area touched).
Push the branch, then open the PR against the base from policy:
gh pr create --base <base> --title "<title>" --body "<body>"
Body: summary bullets, test results (actual counts), a design reference if a handoff manifest has
stitch.project_id or a figma: block, and the repo's PR template sections if it has one.
Return the PR URL. Do not merge unless the user asked for that too.
Follow the handoff lifecycle: archive only manifests whose lifecycle.archivable_after skills
have all consumed them.
ARCHIVE="claudedocs/.archive/$(date +%Y%m%d-%H%M%S)-<feature>"
mkdir -p "$ARCHIVE"
mv claudedocs/<feature>-*.md "$ARCHIVE/" 2>/dev/null
# design/ only after the user confirms nothing still uses it
Keep claudedocs/handoff-*.yaml, e2e/test-plan.yaml, e2e/reports/, and verification
screenshots. Make sure claudedocs/.archive/ is ignored by git.
spec-to-impl, verify-impl, or manual implementation work.verify-impl, a full review to code-audit.release-notes (PR description) and code review on the opened PR.produces:
- type: git_commit
ref: "<commit SHA>"
- type: pull_request # only when a PR was requested and created
url: "<PR URL>"
branch: "<branch name>"
- type: evidence
lint_output: "<actual linter stdout>"
test_output: "<actual test runner stdout>"
files_committed: ["<list>"]
handoff: "Write claudedocs/handoff-finalize-<timestamp>.yaml - suggest: code-review, release-notes"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub omexit/claude-skills-pack --plugin garage48 skills in this plugin
/adrUse when the user wants to record an architecture decision, write an ADR or decision record, or explain why a technology, data model, boundary, or pattern was chosen over alternatives./api-designUse when the user is designing, reviewing, or changing an API contract (REST, GraphQL, or RPC): endpoint shape, naming, errors, versioning, pagination, or developer experience, before or apart from implementing it./api-firstUse when the user wants to scaffold or implement a REST endpoint or resource in a Spring Boot project, especially from an OpenAPI snippet or spec: create endpoint, add API, add CRUD, generate controller, or implement POST/GET/PUT/PATCH/DELETE on a resource./arch-reviewUse when the user asks for an architecture review of existing Java or Spring Boot code: clean or hexagonal architecture boundaries, module boundaries, dependency direction, domain leakage, transaction boundaries, or business logic in controllers./code-auditUse when existing implementation code needs a rigorous review: code audit, code review, code quality, code smells, SOLID or duplication concerns, security or performance of a module, production readiness, or a second opinion on code that already exists./competitive-analysisUse when the user asks for a competitive analysis, competitor review, market landscape, feature comparison against rivals, or who else solves this problem.Other plugins' skills for the same job