/dev:finish-work-on-local-worktreefrom dev
Completes a worktree branch lifecycle by squash-merging into main, updating related documentation statuses and project plan, and recommending next milestones.
Ships in dev. 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.
Complete a worktree lifecycle: squash-merge the branch into main, update all related documentation status, update the project plan, and recommend what to work on next.
Accept an optional branch name argument. If not provided, detect from the current worktree or ask the user.
Execute these phases in order. Stop and report if any phase fails.
Invoke the git-worktree:local-merge skill via the Skill tool, passing the branch name if provided as an argument.
Wait for the merge to complete before proceeding. If the merge fails (conflicts, dirty worktree, not in a worktree), stop and help the user resolve the issue.
After the merge succeeds, note the BRANCH name — it drives doc discovery in Phase 2.
Find all docs related to the merged branch and update their status to completed.
Step 2a: Find related docs
Use the Grep tool to search docs/ for files whose YAML frontmatter contains work: <BRANCH> (substituting the actual branch name from Phase 1). Also check the related: frontmatter array in those docs to find transitively related docs.
Step 2b: Update frontmatter status
For each related doc found:
status: and stage: frontmatter fieldsstatus: is not already completed, update it to completedstage: exists, update it to impl (implementation is done)completed or archivedStep 2c: Report changes
List each doc updated with its old and new status:
Updated docs:
- docs/2026-04-04-feature-design.md: active → completed
- docs/2026-04-04-feature-impl-plan.md: active → completed
Find and update the project plan to reflect the completed milestone. If no project plan is found, skip this phase entirely and note in the final report that no project plan was updated.
Step 3a: Locate the project plan
Search for the project plan file. Common patterns:
docs/project-plan*.mdtype: impl-plan or type: project-plan in frontmatter and work: mainStep 3b: Identify the milestone
Extract the milestone identifier from the branch name (e.g., m5.7-tier1-conditions maps to milestone M5.7). Search the project plan for the corresponding section header.
Step 3c: Update milestone status
In the project plan:
— COMPLETE to the milestone section header if not already present**Status: COMPLETE (<today's date>)** line after the acceptance criteria~~criteria~~ Done formatting**What shipped:** summary block listing key deliverables (read from the squash commit message and the related design/impl docs)See [doc title](doc-path) linkThese formatting conventions assume the project plan follows the standard doc template. Adapt if the plan uses a different structure.
Step 3d: Handle partially complete milestones
If the branch only implemented part of a milestone (e.g., one stream of three):
Analyze the project plan to recommend what to work on next.
Step 4a: Scan for next milestones
Read the project plan and identify:
Step 4b: Present recommendation
Format the recommendation as:
## What's Next
**Next milestones in order:**
| Milestone | What it adds |
|-----------|-------------|
| **M_X** | Brief description |
| **M_Y** | Brief description |
**Recommended:** M_X — [reason why this is the natural next step]
Include:
Do NOT include effort estimates or size labels unless the user explicitly requests them.
Stage and commit all doc changes made in Phases 2-3. Adapt the commit message to reflect what was actually changed (doc statuses only, or doc statuses + project plan):
git add docs/
git commit -m "docs: mark <MILESTONE> complete, update project plan"
Do NOT add a Claude Code signature to the commit message.
git-worktree:local-merge rules during Phase 1 (no remote ops, no --no-verify, etc.)completed or archivedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mayank-io/mstack --plugin dev13 skills in this plugin
/apply-feedbackApply tagged review comments (e.g. [REV], [EXT]) in the current document immediately, using per-tag interpretation rules from `~/.mstack/dev/feedback-tags.json`. Use when the user says "apply feedback", "apply REV comments", "apply review notes", "apply my edits", or wants tagged comments incorporated directly into a document without an approval gate./code-review-iterativeRun iterative code review with diminishing fix thresholds. Use when the user says "review my code", "iterative review", "code review", "review this iteratively", or after completing a feature implementation./complete-statusUse when the user says "status", "status?", "complete status", "complete-status", "full status", or asks where the project stands, and whenever a session that owns a project reports an event (a landing, a failure, a finished review, a new blocker). Produces the complete status report for the whole project the session owns - milestones, backlog, landing tables, decisions, blockers with time estimates, paused items, next project - re-read from source, never from memory./design-review-iterativeRun iterative design document review with diminishing fix thresholds. Use when the user says "review my design", "design review", "review this design doc", "review the design iteratively", or after completing a design document./explain-flowsGenerate an interactive, single-page HTML map of how an application's packages and components collaborate to complete its workflows, driven by a flows.json document. Clicking a flow ("Invite new user", "todesktop build", "POST /v1/invites", "/notes:clip <url>") highlights the path through the components and annotates what is passed at each hop. Works for UI/monorepo apps, API-first apps invoked via REST or CLI, and apps built from Claude Code skills/plugins. Use when the user says "explain the flows", "map the workflows", "document how the packages talk to each other", "flow diagram of the app", "how does X travel through the system", or wants an onboarding map of an unfamiliar codebase./ml-design-review-iterativeRun iterative ML design review with diminishing fix thresholds. Use when reviewing designs for ML systems, evaluation harnesses, automated search systems, scoring functions, data pipelines, or any design where statistical soundness, data leakage, overfitting risks, and metric validity are primary concerns.