Code review, documentation, and merge workflow for completed branches. Use this instead of generic branch-completion skills — performs code review, runs quality checks (format, lint, types, test), creates session documentation in docs/projects/, writes memory docs, checks test plan results, squash-merges to develop. Triggers when user says "finalize branch", "merge to develop", "finish this branch", "ready to merge", "wrap up this work", or wants to complete feature work with documentation and code review.
From project-docsnpx claudepluginhub ichabodcole/project-docs-scaffold-template --plugin project-docsThis skill uses the workspace's default tool permissions.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Retrieves current documentation, API references, and code examples for libraries, frameworks, SDKs, CLIs, and services via Context7 CLI. Ideal for API syntax, configs, migrations, and setup queries.
Uses ctx7 CLI to fetch current library docs, manage AI coding skills (install/search/generate), and configure Context7 MCP for AI editors.
Code review, documentation, and merge workflow for completed branches.
Playbook reference: Follow the workflow in docs/playbooks/branch-finalization-playbook.md
Review commits, files changed, and overall accomplishment.
git log develop..HEAD --oneline
git diff --stat develop
Run these in sequence, fixing issues as they arise. This is a hard gate — do not proceed to documentation or merge with failing checks.
pnpm run format
pnpm run lint
pnpm run check-types
pnpm run test
Always create in the relevant project's docs/projects/<project-name>/sessions/
folder. If no project folder exists for this work, create the session in a new
or existing project folder. See docs/projects/README.md for conventions.
Create a short memory in docs/memories/ summarizing what was done. Use the
template at docs/memories/TEMPLATE.md. Name it
YYYY-MM-DD-short-description.md. Skip for trivial changes where the commit
message alone provides sufficient context.
Present recommendations to user and get confirmation before creating:
handoff.md in the project folder using
docs/projects/TEMPLATES/HANDOFF.template.md.docs/specifications/ exists and whether
changes affect documented behavior. Flag any that may need updating.docs/projects/<project-name>/test-plan.md exists, verify
that a Results Addendum section is present with pass/fail/blocked statuses.
Flag any Tier 1 or Tier 2 scenarios without results. This is a soft check —
don't block the merge, but surface it to the user.Stage and commit any new docs.
git reset --soft develop
git commit -m "<single descriptive commit message>"
After documentation and squash are done, present these options:
Ready to integrate. What would you like to do?
1. Merge to develop (default)
2. Push and create a Pull Request
3. Keep the branch as-is (I'll handle it later)
4. Discard this work
Option 1: Merge to develop (default workflow)
git checkout develop
git merge --ff-only <branch>
Then delete branch and remove worktree if applicable.
Option 2: Push and create PR
git push -u origin <branch>
gh pr create --title "<title>" --body "<summary>"
Keep worktree intact — user may need to address review feedback.
Option 3: Keep as-is
Report the branch name and worktree path. Do not merge, push, or clean up.
Option 4: Discard
Confirm before proceeding — list the branch name, commits that will be lost, and worktree path. Require explicit confirmation from the user.
git checkout develop
git branch -D <branch>
# Remove worktree if applicable
Delete branch and remove worktree if applicable (Options 1 and 4 only).
Ask for user confirmation at these points:
At completion, summarize: