AGENT SKILL
compound-docs
Capture solved problems as categorized documentation with YAML frontmatter for fast lookup
- License 许可
- MIT
- 最近更新
- 2026-07-28
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- compound-docs
- model
- claude-sonnet-5
- description
- Capture solved problems as categorized documentation with YAML frontmatter for fast lookup
- disable-model-invocation
- true
02 资源文件 5
- 参考文档agents/openai.yaml500 B
- 资产文件assets/critical-pattern-template.md875 B
- 资产文件assets/resolution-template.md3.1 KB
- 参考文档references/yaml-schema.md3.0 KB
- 参考文档schema.yaml6.7 KB
03 SKILL.md 正文
compound-docs Skill
Capture non-trivial solved problems as searchable documentation in docs/solutions/. Keep the file short, structured, and schema-valid so future sessions can actually find and trust it.
When to use
- A bug, migration issue, incident, or tricky setup problem is confirmed fixed.
- The solution required real investigation, multiple attempts, or a non-obvious insight.
- The team would benefit from preserving the failure mode, root cause, and prevention guidance.
- Skip trivial typos, obvious syntax mistakes, and fixes that needed no meaningful investigation.
Workflow
- Detect a confirmed fix. Auto-invoke on clear success phrases such as "that worked", "it's fixed", or "problem solved", or run manually.
- Gather the required context: module, exact symptom/error, failed attempts, root cause, fix, prevention guidance, file references, and relevant environment details.
- If critical context is missing, stop and ask for it before writing anything.
- Search
docs/solutions/for similar documents. Reuse or cross-link only when the root cause genuinely matches. - Build a filename as
[sanitized-symptom]-[module]-[YYYYMMDD].md. - Validate YAML frontmatter against
schema.yamlusing the enum guidance inreferences/yaml-schema.md. - Create the solution doc with
assets/resolution-template.md, then offer the post-capture menu.
Required context
- Module or subsystem name.
- Exact symptom or error message.
- Stage or execution context.
- What failed during investigation.
- Root cause and what changed to fix it.
- Prevention guidance and any follow-up actions.
Validation rules
problem_type,component,root_cause, andseveritymust match the schema exactly.- Use category mapping from
references/yaml-schema.mdto place the file underdocs/solutions/<category>/. - Block on invalid YAML, missing required fields, or vague symptoms.
- Include concrete examples or commands whenever the fix would be hard to repeat without them.
Post-capture menu
After writing the document, present a terse next-step menu:
- Continue workflow.
- Add to Required Reading using
assets/critical-pattern-template.md. - Link related issues.
- Add the learning to an existing skill.
- Create a new skill seeded by this solution.
- View the captured document.
- Other.
Output
- A validated file in
docs/solutions/<category>/[filename].md. - Cross-references when similar issues exist.
- A short summary of what was captured and the next-step menu.
Guardrails
- Do not proceed when module, symptom, stage, or resolution steps are missing.
- Do not skip schema validation.
- Do not write vague titles, vague symptoms, or root causes like "fixed code".
- Do not auto-promote to critical patterns; offer the option and let the user choose.
- Prefer one high-signal document over scattered notes across multiple files.
04 同仓库更多 Skills
skill-one
Shared reusable skill.
★ 1
skill-one
Sample skill
★ 1
disabled-skill
A skill with model invocation disabled
★ 1
default-skill
暂无简介
★ 1
custom-skill
暂无简介
★ 1
workflow-next-step
This skill should be used at the end of core compound-engineering workflows to inspect completed artifacts, show the workflow progress checklist, and give the exact next-session command with inputs.
★ 1