Consolidate Lessons — Git skill for Claude Code
Consolidate the lessons/ archive: merge near-duplicate lessons, split compound ones, prune superseded files, refresh INDEX.
How to install Consolidate Lessons
Installs to ~/.claude/commands/runnithan-claudex-setup-consolidate-lessons.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/runnithan/claudex-setup/HEAD/.claude/commands/consolidate-lessons.md -o ~/.claude/commands/runnithan-claudex-setup-consolidate-lessons.md Restart Claude Code, or start a new session, for it to be picked up.
What Consolidate Lessons does
description: "Consolidate the lessons/ archive: merge near-duplicate lessons, split compound ones, prune superseded files, refresh INDEX. Counterpart to /extract-lessons." argument-hint: "[category-or-glob]"
Consolidate Lessons
`/extract-lessons` only ever *adds* (newer supersedes older on direct contradiction). Over many runs the archive accumulates near-duplicate active lessons and dead superseded files. This command does the periodic cleanup the extract loop can't: it merges overl
Alternatives in Git
- Self Reflect — Extract learnings from recent PR reviews, conversations, and session patterns to update the knowledge base 402 ★
- Drive Acquisition — Work GitHub issues that drive acquisition — verify relevance, close stale ones, fan out at most two engineer a 324 ★
- Lore — git memory for coding agents — a local, searchable archive of your Claude Code and Codex sessions 142 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Close Sprint
Archive sprint artifacts, generate retrospective, update living Lessons Learned document, consolidate ALL repo
Saucestack Feedback
Send a generalizable learning from this project back to the saucestack starter as a PR (or an issue). The upst
Dedup Merge
Use when finding and merging duplicate or near-duplicate notes, consolidating notes that cover the same thing,
Pantheon Consolidate
Find and merge duplicate or similar memory entries. /pantheon-consolidate scans for duplicates, shows preview,
Extract Git Lessons
Analyze the git repository history to extract lessons, patterns, and preferences for compounding engineering.
Factory Retro
Lessons-learned pass on the factory itself. Reads run records and PR outcomes, proposes small edits to the age
Related Agents
Acx Shipper
AgentCortex /ship phase executor. Use when delegating final ship work that must consolidate evidence, update S
Cecil
Use to audit an area for dead, legacy, superseded or duplicate code with grep evidence, or in refactor mode to
Project Steward
WRITE-access sole owner of documentation, the knowledge base, ADRs, the lessons log, and release process. The