From superpowers-memory
Use after completing a development branch or when prompted by Stop hook — incrementally updates project knowledge base from recent changes
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-memory:updateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Incrementally update the project knowledge base based on changes from the current iteration.
Incrementally update the project knowledge base based on changes from the current iteration.
Announce at start: "I'm updating the project knowledge base."
docs/project-knowledge/ must exist. If not, tell the user to run superpowers-memory:rebuild first.Gather context:
docs/project-knowledge/docs/superpowers/plans/ sorted by modification time and pick the most recently modified file. If there are multiple files modified within the last 24 hours or no plan files exist, ask the user which plan triggered this update.docs/superpowers/specs/)git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||' and fall back to main if the command fails. Then run git diff <base-branch>...HEAD --stat to see what files changed.Analyze what changed:
features.mdarchitecture.mdtech-stack.mdconventions.mddecisions.mdApply updates:
last_updated: today's date (YYYY-MM-DD)updated_by: superpowers-memory:updatetriggered_by_plan: the plan filename that triggered this update (e.g., 2026-03-31-superpowers-memory.md); if no plan triggered this update, preserve the existing value — do not overwrite with null or "none"Regenerate MEMORY.md index:
Always regenerate docs/project-knowledge/MEMORY.md in full (full overwrite — any file's key points may have changed):
docs/project-knowledge/MEMORY.md following the format in templates/MEMORY.md, setting updated_by: superpowers-memory:update and triggered_by_plan: <plan-filename>Size constraint: Keep MEMORY.md under 30 lines total.
Report changes:
Knowledge files follow the structure defined in the plugin templates. If you need to add a new section that doesn't exist in the current file, refer to the template for the expected format:
architecture.md → System Overview, Module Structure, Data Flow, Key Design Decisionstech-stack.md → Languages & Frameworks, Key Dependencies, Build & Dev Tools, Infrastructurefeatures.md → Implemented (with spec/plan links), In Progressconventions.md → Coding Standards, Architecture Rules, Testing Conventions, Git & Workflowdecisions.md → ADR format (Context, Decision, Alternatives, Reason)docs/project-knowledge/ does not exist, run superpowers-memory:rebuild instead.superpowers-memory:load before brainstorming or architectural work to surface the updated knowledge.After updating, commit the changes:
git add docs/project-knowledge/
git commit -m "docs: update project knowledge base from [plan-name]"
npx claudepluginhub jacexh/skill-workshop --plugin superpowers-memoryUpdates or creates CLAUDE.md files across projects after significant changes. Reads config.json, identifies what changed (APIs, tables, components, env vars), and appends new entries under the correct sections.
Orchestrates knowledge workflow after commits, pushes, PRs, or decisions: triages context, syncs existing docs, captures new items with topology hints to keep docs accurate.
Curates durable knowledge from delivery cycles, refactors, and reviews into canonical repository memory docs like module cards, contracts, decisions, runbooks, and lessons. Updates existing docs first.