compound-docs
Capture solved problems as categorized documentation with YAML frontmatter for fast lookup
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- compound-docs
- model
- inherit
- description
- Capture solved problems as categorized documentation with YAML frontmatter for fast lookup
- allowed-tools
- [ "Read", "Write", "Bash", "Grep" ]
- preconditions
- [ "Problem has been solved (not in-progress)", "Solution has been verified working" ]
- user-invocable
- true
02 资源文件 7
- 资产文件assets/critical-pattern-template.md875 B
- 资产文件assets/resolution-template.md3.1 KB
- 参考文档references/capture-process.md5.3 KB
- 参考文档references/decision-menu.md3.0 KB
- 参考文档references/quality-guidelines.md3.7 KB
- 参考文档references/yaml-schema.md3.0 KB
- 参考文档schema.yaml6.7 KB
03 SKILL.md 正文
compound-docs Skill
Purpose: Automatically document solved problems to build searchable institutional knowledge with category-based organization (enum-validated problem types).
Organization: Single-file architecture -- each problem documented as one markdown file in its symptom category directory (e.g., docs/solutions/performance-issues/n-plus-one-briefs.md). Files use YAML frontmatter for metadata and searchability.
Process Overview
Execute the 7-step capture process. Read capture-process.md for full step details.
| Step | What | Blocking? |
|---|---|---|
| 1 | Detect confirmation ("that worked", "it's fixed", /doc-fix) |
Yes |
| 2 | Gather context (module, symptom, root cause, solution) | Yes -- ask user if missing |
| 3 | Check existing docs for similar issues | No |
| 4 | Generate filename ([symptom]-[module]-[YYYYMMDD].md) |
Yes |
| 5 | Validate YAML schema against yaml-schema.md enums |
BLOCKING GATE |
| 6 | Create documentation file in category directory | Yes |
| 7 | Cross-reference and critical pattern detection | No |
After capture: Present decision menu from decision-menu.md and WAIT for user response.
Reference Files
Read the relevant reference file for each phase. All files are in ~/.claude/skills/compound-docs/references/.
| File | Content |
|---|---|
capture-process.md |
Full 7-step process with examples, blocking requirements, and bash commands |
yaml-schema.md |
YAML frontmatter schema -- required fields, enum values, validation rules, category mapping |
decision-menu.md |
Post-capture decision menu (7 options), integration points, skill handoff rules |
quality-guidelines.md |
Success criteria, error handling, execution guidelines, quality checklist, example scenario |
Key Rules
MUST do:
- Validate YAML frontmatter (BLOCK if invalid per Step 5)
- Extract exact error messages from conversation
- Include code examples in solution section
- Create directories before writing files (
mkdir -p) - Ask user and WAIT if critical context missing
MUST NOT do:
- Skip YAML validation (blocking gate)
- Use vague descriptions (not searchable)
- Omit code examples or cross-references
- Auto-promote to Required Reading (user decides)
Triggers
/compound-docsor/doc-fixcommand- Auto-invoke after: "that worked", "it's fixed", "working now", "problem solved", "that did it"
- Only for non-trivial problems (multiple attempts, tricky debugging, non-obvious solution)
Integration
- Invoked by: /compound command, manual invocation, confirmation phrase detection
- Invokes: None (terminal skill)
- Context: All needed context should be in conversation history before invocation
04 同仓库更多 Skills
zi-search
暂无简介
visualise
Render inline interactive visuals — SVG diagrams, HTML widgets, charts, and explainers — directly in the conversation. Use this skill whenever the user asks to visualize, diagram, chart, illustrate, or explain something visually, or when an explanation would genuinely benefit from a spatial/interactive diagram rather than text. Also triggers for: flowcharts, architecture diagrams, data visualizations, interactive explainers, comparison layouts, UI mockups, and any request containing 'show me', 'draw', 'map out', 'visualize', or 'diagram'. Even when the user doesn't explicitly ask for a visual, use this skill proactively when the topic has spatial, sequential, or systemic relationships that a diagram would clarify better than prose.
video
When the user wants to create, generate, or produce video content using AI tools or programmatic frameworks. Also use when the user mentions 'video production,' 'AI video,' 'Remotion,' 'Hyperframes,' 'HeyGen,' 'Synthesia,' 'Veo,' 'Runway,' 'Kling,' 'Pika,' 'video generation,' 'AI avatar,' 'talking head video,' 'programmatic video,' 'video template,' 'explainer video,' 'product demo video,' 'video pipeline,' or 'make me a video.' Use this for video creation, generation, and production workflows. For video content strategy and what to post, see social-content. For paid video ad creative, see ad-creative.
manim-video
Production pipeline for mathematical and technical animations using Manim Community Edition. Creates 3Blue1Brown-style explainer videos, algorithm visualizations, equation derivations, architecture diagrams, and data stories. Use when users request: animated explanations, math animations, concept visualizations, algorithm walkthroughs, technical explainers, 3Blue1Brown style videos, or any programmatic animation with geometric/mathematical content.
video-use
Edit any video by conversation. Transcribe, cut, color grade, generate overlay animations, burn subtitles — for talking heads, montages, tutorials, travel, interviews. No presets, no menus. Ask questions, confirm the plan, execute, iterate, persist. Production-correctness rules are hard; everything else is artistic freedom.
ui-improver
暂无简介