From compound-learning
Execute consolidation actions (merge, archive, delete, rescope, get)
How this skill is triggered — by the user, by Claude, or both
Slash command
/compound-learning:consolidate-actionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute consolidation operations on learnings. All destructive operations create backups.
Execute consolidation operations on learnings. All destructive operations create backups.
# Fetch full content for review
python3 consolidate-actions.py get --ids=id1,id2
# Delete with backup
python3 consolidate-actions.py delete --ids=id1,id2
# Move to archive
python3 consolidate-actions.py archive --ids=id1,id2
# Change scope (repo -> global)
python3 consolidate-actions.py rescope --id=abc123 --scope=global
# Merge multiple into one
python3 consolidate-actions.py merge --ids=id1,id2,id3 --name=jwt-patterns
# Merge with explicit output directory (overrides scope logic)
python3 consolidate-actions.py merge --ids=id1,id2 --name=patterns --output-dir=/path/to/repo/.projects/learnings/
# Dry run (show what would happen)
python3 consolidate-actions.py merge --ids=id1,id2 --name=patterns --dry-run
Fetch full document content for specified IDs. Use before merge/delete to review.
Remove learnings from filesystem and SQLite. Creates backup in ~/.projects/archive/learnings/YYYY-MM-DD/.
Move learnings to archive directory (removes from active learnings but preserves content).
Move a learning between scopes. Currently supports repo -> global only.
Combine multiple learnings into a single file. Creates new merged document, backs up and deletes originals.
Options:
--output-dir: Override output directory (useful when merging global-scoped files into a repo)--dry-run: Show what would happen without executingAll actions return JSON:
{
"status": "success|error",
"message": "...",
...action-specific fields...
}
~/.projects/archive/learnings/YYYY-MM-DD/get action to review full content before destructive actionsnpx claudepluginhub connsulting/claude-code-plugins --plugin compound-learningConsolidates redundant entries in LEARNINGS.md or DECISIONS.md by grouping overlapping topics via keywords and merging into denser versions with user approval, archiving originals. Use on high ctx drift counts.
Captures learnings from completed development sessions into reusable knowledge files organized by pattern, pitfall, decision, tool insight, and process improvement.
Manages project learnings across sessions: search, list, delete, promote, and export. Activates on queries like "what have we learned" or "show learnings".