Skip to content
Development
Command

/reapply-patches

Reapply local modifications after a PBR update

From plugin
plan-build-run
1870 skills18 agents70 commands
$ npx -y skills add SienkLogic/plan-build-run --agent claude-code

Command definition

reapply-patches.md
description: "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"
fi

Read `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>

@sienklogic
Ships withplan-build-run

Plan it. Build it. Run it. A Claude Code plugin for structured development with context-engineered agents.

1847 skills18 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
18
Star history of SienkLogic/plan-build-run on GitHub, a chart by star-history.com

Other commands on plan-build-run.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command