← ClaudeAtlas

mindforge-reapply-patcheslisted

Reapply local modifications after a MindForge update
sairam0424/MindForge · ★ 0 · AI & Automation · score 66
Install: claude install-skill sairam0424/MindForge
<purpose> After a MindForge update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed. </purpose> <process> ## Step 1: Detect backed-up patches Check for local patches directory: ```bash # Global install — detect runtime config directory if [ -d "$HOME/.config/opencode/mindforge-local-patches" ]; then PATCHES_DIR="$HOME/.config/opencode/mindforge-local-patches" elif [ -d "$HOME/.opencode/mindforge-local-patches" ]; then PATCHES_DIR="$HOME/.opencode/mindforge-local-patches" elif [ -d "$HOME/.gemini/mindforge-local-patches" ]; then PATCHES_DIR="$HOME/.gemini/mindforge-local-patches" else PATCHES_DIR=".agent/mindforge-local-patches" fi # Local install fallback — check all runtime directories if [ ! -d "$PATCHES_DIR" ]; then for dir in .config/opencode .opencode .gemini .claude; do if [ -d "./$dir/mindforge-local-patches" ]; then PATCHES_DIR="./$dir/mindforge-local-patches" break fi done fi ``` Read `backup-meta.json` from the patches directory. **If no patches found:** ``` No local patches found. Nothing to reapply. Local patches are automatically saved when you run /mindforge-update after modifying any MindForge workflow, command, or agent files. ``` Exit. ## Step 2: Show patch summary ``` ## Local Patches to Reapply **Backed up from:** v{from_version} **Current version:** {read VERSION fil