/cog-second-brain:knowledge-consolidationfrom cog-second-brain
Transforms scattered insights from braindumps, daily briefs, and check-ins into coherent frameworks through pattern recognition and systematic synthesis. Useful for periodic knowledge base maintenance or before major decisions.
Ships in cog-second-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Transform scattered insights from braindumps, daily briefs, and check-ins into coherent frameworks and "single source of truth" knowledge documents through pattern recognition and systematic synthesis.
Check agent_mode in 00-inbox/MY-PROFILE.md frontmatter:
agent_mode: team — delegate scanning and pattern extraction to parallel sub-agents (e.g., one per domain: personal braindumps, professional braindumps, project-specific content, daily briefs). Each agent identifies themes and patterns, then a synthesis agent combines findings into frameworks.agent_mode: solo (default) — handle all scanning, pattern recognition, and framework building directly. No delegation.Get current timestamp (REQUIRED before generating any files):
date '+%Y-%m-%d %H:%M' using Bash to get the actual current date and timecreated: frontmatter fielddate commandScan vault for unprocessed or partially processed content:
All braindumps since last consolidation:
02-personal/braindumps/03-professional/braindumps/04-projects/*/braindumps/00-inbox/braindump-*.md and 00-inbox/url-*.md where status is captured (mixed domain)Daily briefs and check-ins:
01-daily/briefs/01-daily/checkins/Any meeting transcripts or project documents in:
04-projects/*/planning/04-projects/*/resources/Determine scope:
status: "captured" or missing consolidation metadata)Gather statistics:
Apply systematic pattern detection across all content:
What comes up repeatedly?
What insights emerged together?
What patterns cross domains?
Where does thinking conflict?
Do the declared links between notes still hold?
relations: list in each note's frontmatter. The format and the four types (depends_on, supports, contradicts, supersedes) live in docs/brain-conventions.md.scripts/brain-lint.py exists, run python3 scripts/brain-lint.py relations first. It checks the type and that each target exists.target that does not exist.contradicts pair that has no supersedes between the two notes and no note that links both and records the resolution. Look in both directions, because each note stores only its own relations.supersedes target that still sits at its original path, outside 00-inbox/archive/. A target that exists only as an archived copy is fine.depends_on target that a newer note now supersedes.supersedes. This is how COG tracks errors.Meta-patterns across all dimensions:
Synthesize patterns into actionable frameworks:
From scattered insights to fundamental truths:
Validate frameworks with source material:
When does framework apply/not apply?
How to use this framework:
Update and create knowledge base documents:
For each framework that needs updating, use the consolidated-knowledge template in references/templates.md.
Save to: 05-knowledge/consolidated/[framework-name]-framework.md
For newly identified frameworks, use the new-framework template in references/templates.md.
When a new framework replaces an older one, add a supersedes entry to the relations: list of the new framework. Do not edit the older note except through the archive step below.
Save to: 05-knowledge/consolidated/[framework-name]-framework.md
Document the pattern using the pattern template in references/templates.md.
Save to: 05-knowledge/patterns/pattern-[name].md
Build the timeline entry using the thinking-evolution template in references/templates.md.
Save to: 05-knowledge/timeline/[topic]-evolution-YYYY-MM.md
Create the master consolidation document using the report template in references/templates.md.
Save to: 05-knowledge/consolidated/consolidation-YYYY-MM-DD.md
Mark processed braindumps: Update frontmatter in processed braindumps:
status: "consolidated"
consolidated_in: "[[consolidation-YYYY-MM-DD]]"
consolidated_date: "YYYY-MM-DD"
Offer to file consolidated inbox captures:
A capture in 00-inbox/ that you just marked consolidated stays where it is. List these files and offer to move each one to the folder that RESOLVER.md names. Ask first. The default is to leave the file in place. Never move a note without a yes.
Archive outdated content:
Move superseded frameworks or insights to:
00-inbox/archive/[filename]-archived-YYYY-MM-DD.md
Keep the original file name inside the archive name, so a supersedes link on the newer note still resolves (brain-lint.py relations accepts the archived copy). Add a note explaining why it was archived and what supersedes it. 00-inbox/archive/ is created on first use.
Maintain clean knowledge base:
After consolidation:
Consolidation is a loop-until-dry extraction with a completeness critic, not a single scan. See .claude/skills/loop-engineering/SKILL.md for the shared vocabulary.
The loop: scan a batch of in-scope documents → extract themes, patterns, and candidate framework principles → run the completeness critic ("any in-scope doc not yet read? any theme recurring across N+ docs that no framework captures yet?") → if the critic surfaces something new, run another extraction pass → stop when 2 passes in a row surface nothing new (dry). In agent_mode: team, the first scan fans out as one worker per domain (personal / professional / per-project / briefs); each returns its conclusions only, and a synthesis pass merges them.
The verifier (deterministic where it can be):
[[source]] is dropped, not published. This is mechanical and is COG's verification-first rule for consolidation.status: "consolidated" with a consolidated_in backlink.relations: target exists, and every contradicts pair is resolved or listed in the report as open.05-knowledge/consolidated/ so an existing framework is updated, not duplicated.Termination conditions (layered):
Patterns: loop-until-dry (the spine) + plan-execute-verify (each pass) + orchestrator-workers (team-mode domain scans) + completeness critic.
In-loop context: write the consolidation report incrementally and dedup new themes against the running set, not against the conversation. Externalizing to the report file is what keeps a large corpus from overflowing the window.
relations: frontmatter, report dangling, open, and superseded linksThe knowledge consolidation skill embodies COG's self-evolving intelligence:
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid input, repository: Invalid input: expected string, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
49 skills in this plugin
/auto-researchDeep strategic research engine — decomposes questions into parallel research threads, spawns multiple agents, and synthesizes into actionable strategic analysis/best-of-nSelector stage before a verification gate - generate N candidates in parallel, pick the best with a pivot tournament of pairwise judgements, then gate the winner. For high-variance, non-mutating deliverables only/blog-publishWrite and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".
Other plugins' skills for the same job