agent-skill-template
Supply the repository scaffold when creating a new single-purpose skill manually.
SKILL.mdskills/agent-skill-template/SKILL.md
GitHubPurpose
Provide the reference shape for a review-ready skill at the canonical
authoring target while keeping output-facing path wording aligned.
Trigger / When to use
Use this skill when:
- a new skill needs a clean starting point
- you want the canonical section layout for
SKILL.md - you need the minimum companion files for a stable skill
Do not use this skill when:
- the task is to review a finished skill
- the task only needs a small edit to an existing skill
Inputs
- the skill name
- the single responsibility
- the trigger situations
- any truly local assets
- the expected risk, branching, or external-tool profile if it is already known
Process
- Read
template.mdandfolder-contract.md. - Classify the expected validation weight and
complexitybefore copying the skeleton: lightweight (low), medium-complexity (medium), or higher-risk (high). - Identify applicable
risk_profiletags for medium and high complexity skills. - Copy the folder shape and section layout for
.<platform>/skills/<skill-name>/, while authoring the canonical source underskills/<skill-name>/. - Replace placeholders with one clear responsibility.
- Add concise positive and negative examples to
SKILL.md. - Add
reference.mdorexamples.md. - Use
references/only as a split-reference supplement, not as a replacement for the required companion-file rule. - Split oversized reference material into
references/when onereference.mdmixes independent topics that callers need separately. - If
reference.mdis the chosen companion file and becomes too broad, keep it focused or reduce it to a short overview while moving detailed topics intoreferences/. - Add
examples.mdwhen the skill has high-risk branches not explained by the concise examples. - Add stronger validation signals only when the skill's risk, branching, tooling, or downstream impact justifies them.
- If you add optional files or folders, declare each role in
Local references. - If the projected entrypoint does not yet exist, mention
skills/<skill-name>/only as an explicitly labeled bootstrap fallback. - If truthful guidance would require hardcoding
.codex/...,.github/..., or another concrete platform root, roll back to alignment wording instead of choosing a default platform. - If downstream planning-spine skills or other consumers still assume a
platform-specific
.<platform>/skills/surface, record that as a follow-up implication instead of editing those surfaces in this phase. - Stop at
review-ready. - Let a human or external workflow pass the draft to
agent-skill-reviewer.
Examples
- Positive: Use this template to draft a focused skill with concise positive and negative examples in
SKILL.md, then add stronger verification guidance only when the topic is higher-risk. - Negative: Use this template as if it could approve a finished skill or as if every simple skill needed the same heavyweight validation as a release gate.
Outputs
- a copyable projected skill folder shape at
.<platform>/skills/<skill-name>/ - canonical source guidance for
skills/<skill-name>/ - a
SKILL.mdskeleton - a minimal companion file set
- a
review-readydraft target
Boundaries
- Do not use this as a broad catch-all skill.
- Do not remove the explicit trigger section.
- Do not depend on repository-global reference files when a local file will do.
- Do not force heavyweight validation onto a lightweight skill without a clear risk-based reason.
- Do not use
skills/<skill-name>/as the default runnable or copy-pasteable path. - Do not treat any
.<platform>/skills/compatibility/projection, promotion, or runtime/tooling cutover as part of this template. - Do not hardcode
.codex/...,.github/..., or another concrete platform root unless context explicitly injects it. - Do not claim
approvedorstable.
Local references
template.md: copyable folder and section skeletonfolder-contract.md: required core and optional role rulesreference.md: lifecycle, split signals, promotion rules, example depth rules, and risk-based validation guidance