Knowledge consolidation

From huytieu/COG-second-brain · View interactive version

Knowledge consolidation is an AI agent skill from the GitHub repository huytieu/COG-second-brain. Build frameworks from scattered insights across all braindumps and notes

How to use this skill

Skill file

COG Knowledge Consolidation Skill

Purpose

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.

When to Invoke

Agent Mode Awareness

Check agent_mode in 00-inbox/MY-PROFILE.md frontmatter:

Pre-Flight Check

Get current timestamp (REQUIRED before generating any files):

  1. Run date '+%Y-%m-%d %H:%M' using Bash to get the actual current date and time
  2. Store this value and use it for the created: frontmatter field
  3. NEVER guess or fabricate the time — always use the value returned by the date command

Process Flow

1. Data Gathering

Scan vault for unprocessed or partially processed content:

Determine scope:

Gather statistics:

2. Pattern Recognition

Apply systematic pattern detection across all content:

Frequency Analysis

What comes up repeatedly?

Temporal Clustering

What insights emerged together?

Domain Correlation

What patterns cross domains?

Contradiction Analysis

Where does thinking conflict?

Cross-Cutting Patterns

Meta-patterns across all dimensions:

3. Framework Development

Synthesize patterns into actionable frameworks:

Identify Core Principles

From scattered insights to fundamental truths:

Test Against Evidence

Validate frameworks with source material:

Define Boundaries

When does framework apply/not apply?

Create Applications

How to use this framework:

4. Knowledge Integration

Update and create knowledge base documents:

Update Existing Frameworks

For each framework that needs updating, use the consolidated-knowledge template in references/templates.md.

Save to: 05-knowledge/consolidated/[framework-name]-framework.md

Create New Frameworks

For newly identified frameworks, use the new-framework template in references/templates.md.

Save to: 05-knowledge/consolidated/[framework-name]-framework.md

Update Pattern Documentation

Document the pattern using the pattern template in references/templates.md.

Save to: 05-knowledge/patterns/pattern-[name].md

Create Timeline Entries

Build the timeline entry using the thinking-evolution template in references/templates.md.

Save to: 05-knowledge/timeline/[topic]-evolution-YYYY-MM.md

5. Generate Consolidation Report

Create the master consolidation document using the report template in references/templates.md.

Save to: 05-knowledge/consolidated/consolidation-YYYY-MM-DD.md

6. Cleanup and Archival

Mark processed braindumps:

Update frontmatter in processed braindumps:

status: "consolidated"
consolidated_in: "[[consolidation-YYYY-MM-DD]]"
consolidated_date: "YYYY-MM-DD"

Archive outdated content:

Move superseded frameworks or insights to:

00-inbox/archive/[filename]-archived-YYYY-MM-DD.md

Add note explaining why archived and what supersedes it.

Maintain clean knowledge base:

7. Confirm Completion

After consolidation:

Loop Engineering

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):

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.

Consolidation Guidelines

Quality Over Quantity

Preserve Nuance

Maintain Traceability

Living Documents

Analysis Techniques Reference

Pattern Detection Methods

  1. Frequency Analysis: Count mentions, cluster topics
  2. Temporal Clustering: Group by time, track evolution
  3. Domain Correlation: Cross-domain connections
  4. Contradiction Analysis: Identify conflicts, track resolution
  5. Energy Pattern Detection: Emotional and practical patterns

Framework Synthesis Process

  1. Identify Core Principles: Extract fundamental truths
  2. Test Against Evidence: Validate with sources
  3. Define Boundaries: Establish applicability
  4. Create Applications: Develop use cases
  5. Document Evolution: Track development over time

Timeline Construction Method

  1. Mark Inflection Points: When thinking shifted
  2. Identify Catalysts: What triggered changes
  3. Document Evolution: How understanding developed
  4. Extract Learnings: What evolution teaches

Success Metrics

Common Use Cases

Philosophy

The knowledge consolidation skill embodies COG's self-evolving intelligence:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.