Get the FREE Ultimate OpenClaw Setup Guide →

knowledge-curation

Scanned
npx machina-cli add skill a5c-ai/babysitter/knowledge-curation --openclaw
Files (1)
SKILL.md
1.6 KB

Knowledge Curation

Overview

Two-phase knowledge management: prime context before work starts, and extract learnings after work completes. Knowledge persists in JSONL files for cross-session continuity.

When to Use

  • Before starting any work (prime mode)
  • After completing work, BEFORE PR creation (reflect mode)
  • When recovering from context loss (recovery priming)

Knowledge Categories

CategoryFileContent
Critical Rulesfacts.jsonlMUST FOLLOW constraints
Gotchasgotchas.jsonlCommon pitfalls
Patternspatterns.jsonlCodebase best practices
Decisionsdecisions.jsonlArchitectural choices with rationale
Anti-Patternsanti-patterns.jsonlWhat NOT to do
Codebase Factscodebase-facts.jsonlStructural information
API Behaviorsapi-behaviors.jsonlUndocumented quirks

Process

Prime Mode

  1. Load knowledge base files for work type
  2. Surface MUST FOLLOW rules first
  3. Present GOTCHAS and PATTERNS
  4. Load relevant DECISIONS

Reflect Mode

  1. Extract patterns from completed work
  2. Identify gotchas from review failures
  3. Record architectural decisions with rationale
  4. Persist to .beads/knowledge/

Tool Use

Invoke via babysitter process: methodologies/metaswarm/metaswarm-knowledge-cycle

Source

git clone https://github.com/a5c-ai/babysitter/blob/main/plugins/babysitter/skills/babysit/process/methodologies/metaswarm/skills/knowledge-curation/SKILL.mdView on GitHub

Overview

Knowledge Curation is a two-phase process: prime context before work and reflect after completion to capture patterns, gotchas, and decisions into a centralized knowledge base. The knowledge persists in JSONL files to ensure cross-session continuity.

How This Skill Works

In Prime Mode, the system loads knowledge base files for the current work type, surfaces MUST FOLLOW rules first, and presents GOTCHAS and PATTERNS, then loads relevant DECISIONS. In Reflect Mode, it extracts patterns from completed work, identifies gotchas from review failures, records architectural decisions with rationale, and persists updates to .beads/knowledge/.

When to Use It

  • Before starting any work (prime mode)
  • After completing work, BEFORE PR creation (reflect mode)
  • When recovering from context loss (recovery priming)
  • During onboarding or knowledge transfer to a new teammate
  • After major codebase changes to refresh patterns, rules, and decisions

Quick Start

  1. Step 1: Load knowledge base files for the current work type
  2. Step 2: Step into Prime Mode to surface MUST FOLLOW, GOTCHAS, PATTERNS, and load DECISIONS
  3. Step 3: After completion, run Reflect Mode and persist updates to .beads/knowledge/

Best Practices

  • Load knowledge base files for the current work type at the start of a task
  • Always surface MUST FOLLOW rules first, then GOTCHAS and PATTERNS
  • Load and review relevant DECISIONS before proceeding
  • Persist learnings to .beads/knowledge/ after Reflect Mode
  • Use recovery priming to prevent context loss during long-running tasks

Example Use Cases

  • Prime context before a feature rewrite, then reflect post-implementation to capture decisions and gotchas
  • After submitting a PR, perform reflect steps to codify learnings and architectural rationales
  • Run recovery priming after a context loss to restore critical constraints and patterns
  • Onboard a new teammate by pre-loading knowledge base with critical rules and patterns
  • After a large codebase refactor, refresh patterns, anti-patterns, and decisions with rationales

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers