Agent skill
compound-apply-spec
Write a CompoundSpec v2 JSON payload and apply it via compound_apply to create/update skills, instincts, and docs.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/compound-apply-spec
Metadata
Additional technical details for this skill
- tags
- skills,compounding,schema
- version
- 1
- created at
- 2026-01-27T17:03:09.731823+00:00
- updated at
- 2026-01-27T17:03:09.731823+00:00
SKILL.md
Why this exists
The plugin is deterministic. The agent is not. So we separate:
- Agent: decides what to learn (writes the spec).
- Tool (
compound_apply): validates and applies changes safely.
CompoundSpec v2
Top-level keys (all optional except schema_version):
schema_version: must be2auto:{ reason, sessionID }
instincts
create[]:{ id, title, trigger, action, confidence }update[]:{ id, confidence_delta, evidence_note }
skills
create[]:{ name, description, body }update[]:{ name, description?, body }
Notes:
namemust match^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$.bodyis markdown without frontmatter.- If updating a skill:
skills.update[].bodymust be the entire final managed body (no snippets/diffs).
docs
sync: boolean (refresh derived indexes/blocks)blocks.upsert[]:{ file, id, content }
Only upsert AI-managed blocks; do not rewrite human-owned text.
When writing markdown content inside docs.blocks.upsert[].content:
- Use repo-root-relative paths when referencing files/dirs (no absolute paths).
changelog
{ note }: a single sentence describing the memory delta.
Apply
- Draft the CompoundSpec v2 as a single JSON object.
- Output JSON only (no code fences, no commentary).
- Run
compound_apply()to validate and write the memory/doc updates.
Manual notes
This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?