Purpose & When-To-Use
Use when a developer specifies a new Skill topic and needs a compliant, token-efficient SKILL.md with a tiny example, tests, and an index entry.
Pre-Checks
- Authoritative time: Set
NOW_ETto ISO 8601 inAmerica/New_Yorkusing NIST/time.gov semantics. IncludeNOW_ETin citations’ access dates. - Scope: Extract intended users, inputs/outputs, success criteria, and token budgets.
- Sources: Identify primary standards/docs. Prefer authoritative sources; record title, URL, and access date (
NOW_ET). - Footprint: Default to Tier 1 unless ambiguity or regulation requires expansion.
Procedure
Tier 1 — Draft Minimal Skill (T1≤2000 tokens)
- Write METADATA: concise
name,slug, ≤160-chardescription,capabilities,inputs,outputs,keywords,version,owner,license,security,links. - Author compact sections:
Purpose & When-To-Use,Pre-Checks,Procedure (Tiered),Decision Rules,Output Contract,Quality Gates,Resources. - Add one short runnable example (≤30 lines) or precise pseudo-code.
- Produce
index_entryJSON forindex/skills-index.json.
Tier 2 — Source-Backed Enrichment (T2≤6000 tokens)
- Gather 2–4 primary sources; add citations with titles, URLs, and
NOW_ETaccess dates. - Add explicit Decision Rules (ambiguity thresholds, abort conditions).
- Link small
resources/artifacts (schemas/templates) without pasting large texts.
Tier 3 — Deep Validation (T3≤12000 tokens)
- Create
tests/evals_<slug>.yamlwith 3–5 scenarios (happy path, missing input, edge case). - Add security notes (secrets handling, PII posture, auditability).
- Emit
CHANGELOG.md(v1.0.0) and finalizeindex_entry.
Decision Rules
- If regulated domains (NIST/OMB/FedRAMP) are involved → require Tier 2.
- If schemas/versions are unknown → emit TODO and stop with
needs-input. - If example exceeds 30 lines → truncate and link to
resources/.
Output Contract
- Create
skills/<slug>/containing:SKILL.md(this format)examples/<slug>-example.txt(≤30 lines)resources/(optional, linked)CHANGELOG.md
- Emit
index_entryJSON with:slug,name,summary(≤160 chars),keywords,owner,version,entry.
Examples
Minimal example (pseudo-code, ≤30 lines):
INPUT:
topic: "OSCAL SSP validator for FedRAMP Moderate"
constraints: { "strict": true }
OUTPUT (files):
skills/compliance-oscal-validator/SKILL.md
skills/compliance-oscal-validator/examples/compliance-oscal-validator-example.txt
tests/evals_oscal-ssp-validate.yaml
index_entry (JSON fragment)
INDEX_ENTRY:
{
"slug": "compliance-oscal-validator",
"name": "OSCAL SSP Validator for FedRAMP Moderate",
"summary": "Validates OSCAL SSP against FedRAMP Moderate baseline requirements.",
"keywords": ["oscal", "ssp", "fedramp", "validation"],
"owner": "cognitive-toolworks",
"version": "1.0.0",
"entry": "skills/compliance-oscal-validator/SKILL.md"
}
Quality Gates
- Token budgets: T1≤2k, T2≤6k, T3≤12k — enforce via
validate_skill.py. - Example size: ≤30 lines runnable/pseudo-code; longer samples →
resources/. - Metadata:
description≤160 chars; all required front-matter keys present. - Sources: T2+ requires 2–4 authoritative links with titles/URLs and access dates (
NOW_ET). - Safety: No secrets, PII, or long pasted texts;
validate_skill.pychecks for secret patterns. - Determinism: Index entries must be unique slugs;
build_index.pyenforces no duplicates. - Evals: 3–5 scenarios in
tests/evals_<slug>.yaml; must pass basic sanity checks.
Resources
- Anthropic Skills Overview (accessed 2025-10-25): https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview
- Anthropic Skills Best Practices (accessed 2025-10-25): https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices
- Claude Code Skills Documentation (accessed 2025-10-25): https://docs.claude.com/en/docs/claude-code/skills
- NIST Time Services (accessed 2025-10-25): https://www.nist.gov/pml/time-and-frequency-division/time-services
- ISO 8601 Date/Time Format (accessed 2025-10-25): https://www.iso.org/iso-8601-date-and-time-format.html