AgentSkillsCN

compound-knowledge

构建团队知识积累的难题记录方法。以结构化的元数据记录已解决的问题,便于搜索、模式识别与预防。

SKILL.md
--- frontmatter
name: compound-knowledge
description: Problem documentation methodology for compounding team knowledge. Captures solved problems with structured metadata for searchability, pattern detection, and prevention.

Compound Knowledge

This skill provides the methodology for documenting solved problems so they compound into team knowledge over time. Every solved problem becomes a searchable, referenceable document that helps prevent recurrence and informs future work.

When to Use

  • /blueprint-dev:bp:compound — after solving a problem
  • Auto-suggested by the Stop hook when confirmation phrases are detected
  • Manually when a developer wants to document a significant debugging session

Knowledge Loop

code
Solve problem → /compound → docs/solutions/ → /plan reads solutions → avoids repeating mistakes

The research-scout agent (used in /plan) searches docs/solutions/ before planning new features. This closes the loop — past learnings compound into future plans.

5-Agent Parallel Swarm

AgentExtractsOutput
context-analyzerProblem metadata: module, symptom, environment, timelineProblem Context section
solution-extractorRoot cause, code changes, verificationRoot Cause + Solution sections
related-docs-finderCross-references in docs/solutions/Related Solutions section
prevention-strategistTests, lint rules, monitoring to prevent recurrencePrevention section
category-classifierCategory, severity, tags for searchabilityYAML frontmatter

Document Structure

markdown
---
title: "Brief description"
date: YYYY-MM-DD
category: {enum}
severity: {enum}
module: {name}
tags: [tag1, tag2, tag3]
root_cause: "One-line root cause"
prevention: "One-line prevention"
---

## Problem Context
{From context-analyzer}

## Root Cause
{From solution-extractor}

## Solution
{From solution-extractor}

## Prevention Strategy
{From prevention-strategist}

## Related Solutions
{From related-docs-finder}

References

  • references/yaml-schema.md — YAML frontmatter enum validation
  • references/category-taxonomy.md — Category definitions and tagging guidelines