Agent skill
merge-back
Merge changes from an isolated project copy back to the original project. Use after finishing work in a forked copy.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/merge-back
SKILL.md
Merge Back
Brings changes from a forked project copy back to the original project.
What it does
- Validates the copy exists and has no uncommitted changes
- Runs checks (
pnpm checkorpnpm test) in the copy to ensure quality - Adds the copy as a temporary git remote in the original
- Merges the copy's
work/<feature-name>branch into a newmerge/<feature-name>branch - Cleans up the temporary remote
Usage
/merge-back <feature-name>
How to execute
This must be run from the ORIGINAL project directory (not the copy).
bash .claude/skills/merge-back/scripts/merge-back.sh "<feature-name>"
Where <feature-name> matches the name used when running /fork-project.
Important
- The copy must have all changes committed (no dirty working tree)
- Tests/checks are run in the copy before merging - if they fail, the merge is aborted
- If there are merge conflicts, the script stops and gives instructions for manual resolution
- After merging, you'll be on branch
merge/<feature-name>- review before proceeding - The merge preserves full commit history from the copy
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?