Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add williamzujkowski/cognitive-toolworks --skill "Create a New Skill from Topic"
Install specific skill from multi-skill repository
# Description
Generate a production-ready SKILL.md + tiny examples, evals, and an index entry aligned to Anthropic Skills.
# SKILL.md
name: "Create a New Skill from Topic"
slug: "core-skill-authoring"
description: "Generate a production-ready SKILL.md + tiny examples, evals, and an index entry aligned to Anthropic Skills."
capabilities:
- "research authoritative sources"
- "draft tiered procedures with decision rules"
- "author SKILL.md metadata + examples"
- "emit tests and index entries"
inputs:
- name: "topic"
type: "string"
required: true
- name: "constraints"
type: "json"
required: false
- name: "org_context"
type: "json"
required: false
outputs:
- name: "skill_folder"
type: "file"
- name: "index_entry"
type: "json"
keywords: ["authoring", "generator", "skills.md", "progressive-disclosure"]
version: "1.0.0"
owner: "cognitive-toolworks"
license: "Apache-2.0"
security:
pii: "none"
secrets: "never embed; use env/cred mgr"
audit: "include sources with titles/URLs; normalize NIST time"
links:
docs:
- "https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview"
- "https://docs.claude.com/en/docs/agents-and-tools/agent-skills/best-practices"
- "https://docs.claude.com/en/docs/claude-code/skills"
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
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.