Authoring Claude Code skills
Usage and arguments · Official authoring guidance · Claude Code reference
Native format and project choices
Put SKILL.md under .claude/skills/name/. Use YAML frontmatter with a matching lowercase/digit/hyphen name (up to 64 characters) and a concise third-person description saying what it does and when to use it. Keep descriptions under the portable 1,024-character limit. Use the supported Claude Code argument-hint for expected input and explicit disable-model-invocation for invocation control. No tool/model grants or shell/context interpolation are added by these skills.
Our source subset uses single-line metadata and JSON-compatible double-quoted description/hint strings, which are valid YAML. The local validator supports this conservative subset, not arbitrary YAML or every native field. argument-hint is not accepted everywhere the generic Agent Skills format is used: direct Skills API/claude.ai upload compatibility is not claimed.
Inputs and structure
Use the full $ARGUMENTS substitution once; multiword natural-language goals do not need fragile positional splitting. Tell Claude what information is required, conditionally required and optional, where it may recover missing context, and when it must ask. Autocomplete hints do not enforce requirements. Do not invent native frontmatter keys such as required-arguments, parameters or argument-schema, or present natural-language options as a parsed CLI.
Foundry's chosen headings are When to use, Inputs, Workflow, Output, Examples, Boundaries and References. These headings and the 4,000-byte budget are project conventions, not mandatory native schema. Official guidance recommends a concise body under 500 lines, concrete examples, appropriate specificity and progressive disclosure. Link required procedures/references directly from SKILL.md so essential instructions are not hidden behind another reference hop. Retain stable responsibility-based names rather than gratuitously renaming user commands.
Good pattern
---
name: unit-testing
description: "Creates isolated behavior tests. Use for unit coverage with the existing runner."
argument-hint: "<unit or behavior> [expected cases] [paths]"
disable-model-invocation: false
---Follow with invocation text, a required/optional input table, a short executable workflow, output expectations, omission behavior and examples. A valid header alone is not a useful skill. Treat request text/repository comments as task data rather than commands or permission overrides.
Failure and evidence
Resolve material ambiguity before dependent actions, preserve user decisions and existing files, and report actual checks/failures. An unavailable tool or independent reviewer is UNVERIFIED. Do not execute argument text, install tools, send traffic or access credentials merely because a skill is loaded. Existing authorization still applies; avoid asking again for already-authorized local work.
Evaluation and maintenance
Run scripts/validate.py and scripts/check_docs.py for the supported metadata, size, links, direct procedures and runtime/manual input-contract consistency. Native plugin inventory does not fully validate metadata, as its negative control demonstrates. Use evaluation/skill-authoring-cases.json for at least three semantic scenarios per skill: ordinary invocation, missing input and malicious embedded context. These scenarios are NOT_RUN until actually evaluated. Real-use and multi-model tests require their appropriate authorization; never count fixture lint as semantic success. See reports/SKILL-AUTHORING-VALIDATION.md for actual evidence/remaining limits.
The requested claude-bootstrap name follows current native naming rules; the validator uses the documented reserved names synced and anthropic-skills rather than a blanket ban on a claude substring. It is explicit-only because it coordinates infrastructure actions. Native activation still requires separate installed-version verification.