Agent skill
finish-feature
Finish a feature by merging changes back, cleaning up the copy, and creating a release. This is the high-level workflow that orchestrates merge-back, cleanup-copy, and release-pr.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/finish-feature
SKILL.md
Finish Feature
High-level workflow to complete a feature: merge back, clean up, and optionally release.
What it does
This is a workflow that orchestrates multiple skills in sequence:
- Merge back - Brings changes from the copy to the original (
/merge-back) - Review - Shows a summary of changes for the user to review
- Cleanup - Deletes the copy after confirmation (
/cleanup-copy) - Release (optional) - Creates a tag and pushes to main (
/release-pr)
Usage
/finish-feature <feature-name>
How to execute
This MUST be run from the ORIGINAL project directory (not the copy).
Step 1: Merge back
bash .claude/skills/merge-back/scripts/merge-back.sh "<feature-name>"
If this fails (tests fail, merge conflicts), STOP and help the user resolve the issue before continuing.
Step 2: Show changes for review
After a successful merge, show the user what changed:
git log --oneline main..merge/<feature-name>
echo "---"
git diff main..merge/<feature-name> --stat
Tell the user: "Here are the changes from <feature-name>. Review them and confirm to proceed with cleanup and release."
Step 3: Wait for user confirmation
IMPORTANT: Do NOT proceed to cleanup without explicit user confirmation. Ask: "Changes look good? Should I proceed to clean up the copy and create a release?"
Step 4: Cleanup copy
Only after user confirms:
bash .claude/skills/cleanup-copy/scripts/cleanup-copy.sh "<feature-name>"
Step 5: Ask about release
Ask the user: "Do you want to create a release? I can auto-detect the version bump (patch/minor/major) based on commit messages, or you can specify one."
Step 6: Release (if user wants)
Only if the user confirms:
bash .claude/skills/release-pr/scripts/release-pr.sh [patch|minor|major]
Important
- This workflow is interactive - it pauses for user confirmation at key points
- If ANY step fails, STOP and help the user resolve the issue
- The merge-back step runs tests in the copy before merging
- The cleanup step warns about unmerged changes
- The release step is OPTIONAL - the user may want to review more before releasing
- Never add
Co-Authored-Byheaders to any commits
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?