/craft-skills:finishfrom craft-skills
Integrates completed work by committing, opening a PR, merging, or cleaning up branches. The final step after implementation and verification.
Ships in craft-skills. 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.
Integrate completed work. The craft pipeline builds and verifies a feature but stops at "Report" — this skill takes it the last step: commit, PR, merge, or cleanup. It is the craft-native equivalent of branch-finishing, operating on the current checkout and this project's conventions.
The user input is: $ARGUMENTS — an optional hint (pr, merge, commit, cleanup). If empty, detect state and present options.
FIRST ACTION: read the project's CLAUDE.md for git/commit conventions (commit message style, whether to add or omit a Co-Authored-By trailer, branch/PR norms). Follow them exactly — they override this skill's defaults.
Do NOT offer to commit work that isn't done:
git status --short.develop run just finished, its Step 4 verification already ran — confirm it was clean. Otherwise run whatever checks the project actually uses (lint/typecheck/build/test from package.json scripts, a Makefile, or a repo-specific check like npm run sync:check); if the repo has no automated checks, confirm the tree is sound by its own means. STOP if anything fails..shared-state.md, .craft-progress.md, .craft-review.diff, .craft-profile, .llm-task-*.txt left in the tree (develop Step 5 removes these; if invoked standalone, remove any stragglers — they are gitignored but shouldn't be committed).BRANCH=$(git branch --show-current)
# Resolve the REAL default branch — do NOT assume "main".
DEFAULT=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null | sed 's@^origin/@@')
[ -z "$DEFAULT" ] && git remote set-head origin -a >/dev/null 2>&1 && DEFAULT=$(git symbolic-ref --quiet --short refs/remotes/origin/HEAD 2>/dev/null | sed 's@^origin/@@')
[ -z "$DEFAULT" ] && DEFAULT=$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name 2>/dev/null)
[ -z "$DEFAULT" ] && DEFAULT=main # last-resort guess — verify before relying on it
echo "branch: $BRANCH | default: $DEFAULT"
git status --short
git log --oneline "$DEFAULT..HEAD" 2>/dev/null | head -20 # commits ahead of default
git remote -v | head -1 # is there a remote?
If $DEFAULT fell through to the main guess, confirm it's actually the repo's default (git branch -r) before merging or opening a PR against it.
git checkout -b <name>), never commit feature work straight to the default branch unless the user insists.$ARGUMENTS or ask)Present the applicable options and let the user choose. Do NOT push or open a PR without explicit confirmation — these are outward-facing.
| Option | What it does |
|---|---|
| commit | Stage + commit the remaining changes on the current branch with a conventional message (follow CLAUDE.md). Stop there. |
| pr | Commit if needed, push the branch, open a PR against the default branch via gh pr create (title + body summarizing the feature). Requires a remote + gh auth — confirm the active gh/git account can actually push to the remote (a mismatch fails the push). |
| merge | Commit if needed, then merge the feature branch into the default branch locally (fast-forward when possible). Pushing the default branch is a separate, explicitly-confirmed step. |
| cleanup | After a merged PR: delete the local feature branch, prune, return to the default branch. |
Commit messages: conventional, imperative, scoped. Honor the project's Co-Authored-By policy from CLAUDE.md (some repos require omitting it, some keep it).
git add -A && git commit (message per conventions). Report the SHA.git push -u origin "$BRANCH" then gh pr create --base "$DEFAULT" --title "..." --body "...". If push fails on auth, STOP and tell the user which account is needed — do not silently retry.git checkout "$DEFAULT" && git merge --ff-only "$BRANCH" (fall back to a merge commit if not fast-forwardable, after confirming). Leave pushing $DEFAULT to an explicit follow-up.gh pr view or git branch --merged), then git branch -d "$BRANCH".Report what was done (SHA / PR URL / merge result), the branch state, and any follow-up the user still owns (e.g. "push main to trigger release", "delete the remote branch").
.worktrees/ directory. It operates on the current checkout as-is — which may itself be a git worktree; that's fine, all its git commands are checkout-relative.[skip release] if they want to hold it).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
git-workflow, commit, pull-request, merge, branch-cleanup, craft-pipeline
18 skills in this plugin
/aesthetic-directionGenerate or verify the project's one-time AESTHETIC_DIRECTION.md — a design-language contract used by ux-brief and design-review. Invoked automatically by architect/craft when UI work is planned and .claude/aesthetic-direction.md does not yet exist. Auto-generates without blocking; user can refine the file later./architectUse when the user needs to plan and architect a new feature before implementation begins. This includes analyzing requirements, asking clarifying questions, and creating a detailed implementation plan aligned with the project's architecture. Invoke BEFORE any coding work starts./bootstrapLoaded at session start. Establishes awareness of craft-skills so the assistant invokes relevant skills before acting. Not invoked directly./browser-testUse when a feature has been built and needs browser-based UI testing. Plans test scenarios, groups them into parallel batches, and dispatches multiple browser-tester agents simultaneously./craftUse when starting a new feature that needs thorough design exploration. This is the most comprehensive workflow: collaborative brainstorming with the user, then planning, then parallel agent development, then browser testing. Use for complex features, unclear requirements, or when the user wants to explore approaches before committing./craft-aceCost-optimized craft variant: Qwen3.6-35B-A3B handles implementation and reviews locally, Opus orchestrates, Sonnet as fallback. Requires LM Studio running. Targets ~45-60% API cost reduction vs base /craft.npx claudepluginhub alexiolan/craft-skills --plugin craft-skillsOther plugins' skills for the same job