From forge
Use when all verification passes and code is ready to integrate. Handles branch preparation, PR creation, merge decisions, and cleanup. Phase: INTEGRATION.
npx claudepluginhub caseyrtalbot/forge --plugin forgeThis skill uses the workspace's default tool permissions.
Integrate verified code into the target branch. Present the user with clear options, execute their choice, and clean up the workspace.
Verifies tests pass on completed feature branch, presents options to merge locally, create GitHub PR, keep as-is or discard; executes choice and cleans up worktree.
Guides root cause investigation for bugs, test failures, unexpected behavior, performance issues, and build failures before proposing fixes.
Writes implementation plans from specs for multi-step tasks, mapping files and breaking into TDD bite-sized steps before coding.
Integrate verified code into the target branch. Present the user with clear options, execute their choice, and clean up the workspace.
Do NOT merge, push, or create a PR without explicit user consent. Always present options and wait for the user to choose. An automated merge to the target branch without user approval is an irreversible action. The user decides how code lands, always.digraph land_changes {
"Read verification evidence" [shape=box];
"Prepare summary" [shape=box];
"Present 4 options" [shape=box];
"User chooses" [shape=diamond];
"Merge to target" [shape=box];
"Create PR" [shape=box];
"Keep branch" [shape=box];
"Discard branch" [shape=box];
"Cleanup workspace" [shape=box];
"Invoke distill-lessons" [shape=doublecircle];
"Read verification evidence" -> "Prepare summary";
"Prepare summary" -> "Present 4 options";
"Present 4 options" -> "User chooses";
"User chooses" -> "Merge to target" [label="merge"];
"User chooses" -> "Create PR" [label="pr"];
"User chooses" -> "Keep branch" [label="keep"];
"User chooses" -> "Discard branch" [label="discard"];
"Merge to target" -> "Cleanup workspace";
"Create PR" -> "Cleanup workspace";
"Keep branch" -> "Invoke distill-lessons";
"Discard branch" -> "Cleanup workspace";
"Cleanup workspace" -> "Invoke distill-lessons";
}
Read verification evidence from .forge/evidence/verification/ to confirm all checks passed
Prepare a change summary including:
Deploy the doc-synthesizer agent to update any existing documentation that references changed code. Review the agent's output before committing doc updates.
Present four options to the user:
Option 1: Merge -- merge the branch directly into the target branch Option 2: PR -- create a pull request for team review Option 3: Keep -- leave the branch as-is for later Option 4: Discard -- delete the branch and all changes
Execute the user's choice:
git checkout <target> && git merge <branch>, then delete the feature branchgit push -u origin <branch>, then create PR with summary as descriptiongit checkout <target>, delete the branchClean up workspace -- if a worktree was used, remove it. Update .forge/forge-state.json to mark workflow complete.
"Let me just merge without asking" The user decides how code lands. Always present options. A merge to main without consent is an incident.
"The PR description can be short" The PR description should tell the reviewer everything they need to know without reading the code. Include the summary, test results, and verification evidence.
"Cleanup can wait" Orphaned branches and worktrees accumulate. Clean up immediately after integration.
After integration, invoke distill-lessons for session reflection.