/reapply-patches
Reapply local modifications after a PBR update
$ npx -y skills add SienkLogic/plan-build-run --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/reapply-patches
Context preview
What this command does when you run it.
Reapply local modifications after a PBR update
Command definition
reapply-patches.mddescription: "Reapply local modifications after a PBR update" allowed-tools: - Read - Write - Edit - Bash - Glob - Grep - AskUserQuestion
<objective> After a PBR update wipes and reinstalls files, merge user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed. </objective>
<process>
1. Detect Backed-up Patches
PATCHES_DIR="${HOME}/.claude/pbr-local-patches"
if [ ! -d "$PATCHES_DIR" ]; then
PATCHES_DIR="./.claude/pbr-local-patches"
fiRead `backup-meta.json` from the patches directory. If no patches found: "No local patches found. Nothing to reapply." Exit.
2. Show Patch Summary
List all backed-up files with status.
3. Merge Each File
For each file in backup-meta.json: 1. Read backed-up version (user's modified copy) 2. Read newly installed version (current file after update) 3. Compare and merge:
- Identical: skip (modification incorporated upstream)
- Different: identify user modifications, apply to new version
- Conflict: show both versions, ask user which to keep
4. Report
Display merge results table with status per file. </process>
Plan it. Build it. Run it. A Claude Code plugin for structured development with context-engineered agents.
Repo: SienkLogic/plan-build-run
Other commands on plan-build-run.
- /add-phase
Add phase to end of current milestone in roadmap
Open command - /add-todo
Capture idea or task as todo from current conversation context
Open command - /audit-fix
Run audit, prioritize findings, auto-fix via quick tasks, test, and commit.
Open command - /audit-milestone
Audit milestone completion against original intent before archiving
Open command - /audit
Review past Claude Code sessions for PBR workflow compliance and UX quality.
Open command - /autonomous
Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically.
Open command

