SKILL.md spec changelog
Dated changes to the docs that define how a SKILL.md should look, with the lines that changed. These are the pages the validator rules quote and the free tools are built on. Updated November 26, 2026. RSS feed.
Tracked docs
The spec, its reference validator and the two skill creators are public Git repositories, so their history goes back to the first commit. The Claude, Codex and Cursor docs pages have no public history: each weekly run saves the page and logs what differs from the last copy, starting on the date shown.
November 2026
- * For cloud sessions, you can instead commit the skill to the repository's `.claude/skills/`. For a project, check [which threads load it](https://code.claude.com/docs/en/claude-projects.md#what-threads-pick-up-from-your-repositories). Plugins declared in the repository's `.claude/settings.json` and plugins enabled only in your user settings [don't load in cloud sessions](https://code.claude.com/docs/en/cloud-environments.md#what-carries-over-from-your-setup).+ * For cloud sessions, you can instead commit the skill to the repository's `.claude/skills/`. For a project, check [which threads load it](https://code.claude.com/docs/en/claude-projects.md#what-threads-pick-up-from-your-repositories). Plugins enabled only in your user settings [don't load in cloud sessions](https://code.claude.com/docs/en/cloud-environments.md#what-carries-over-from-your-setup).
August 2026
Clarify metadata in the frontmatter overview (opens in new window)
- | `metadata` | No | Arbitrary key-value mapping for additional metadata. |+ | `metadata` | No | Arbitrary key-value mapping for additional metadata (a map from string keys to string values). |
May 2026
docs: fix name field character range to include digits (opens in new window)
- - May only contain unicode lowercase alphanumeric characters (`a-z`) and hyphens (`-`)+ - May only contain unicode lowercase alphanumeric characters (`a-z`, `0-9`) and hyphens (`-`)
April 2026
Point "progressive disclosure" links at specification.mdx (opens in new window)
- The key is telling the agent *when* to load each file. "Read `references/api-errors.md` if the API returns a non-200 status code" is more useful than a generic "see references/ for details." This lets the agent load context on demand rather than up front, which is how [progressive disclosure](/what-are-skills#how-skills-work) is designed to work.- Agents use [progressive disclosure](/what-are-skills#how-skills-work) to manage context. At startup, they load only the `name` and `description` of each available skill — just enough to decide when a skill might be relevant. When a user's task matches a description, the agent reads the full `SKILL.md` into context and follows its instructions.+ The key is telling the agent *when* to load each file. "Read `references/api-errors.md` if the API returns a non-200 status code" is more useful than a generic "see references/ for details." This lets the agent load context on demand rather than up front, which is how [progressive disclosure](/specification#progressive-disclosure) is designed to work.+ Agents use [progressive disclosure](/specification#progressive-disclosure) to manage context. At startup, they load only the `name` and `description` of each available skill — just enough to decide when a skill might be relevant. When a user's task matches a description, the agent reads the full `SKILL.md` into context and follows its instructions.
Remove link to what-are-skills.mdx from quickstart.mdx (opens in new window)
- This process uses **progressive disclosure** to let the agent access many skills without loading all their instructions up front. For more detail, see [How skills work](/what-are-skills#how-skills-work).+ This process uses **progressive disclosure** to let the agent access many skills without loading all their instructions up front.
Point "progressive disclosure" links at specification.mdx (opens in new window)
- Skills should be structured for efficient use of context:+ Agents load skills *progressively*, pulling in more detail only as a task calls for it. Skills should be structured to take advantage of this:
March 2026
Use precise type name for allowed-tools field (opens in new window)
- | `allowed-tools` | No | Space-delimited list of pre-approved tools the skill may use. (Experimental) |- - A space-delimited list of tools that are pre-approved to run+ | `allowed-tools` | No | Space-separated string of pre-approved tools the skill may use. (Experimental) |+ - A space-separated string of tools that are pre-approved to run
Replace shuf with $RANDOM in quickstart for broader compatibility (opens in new window)
- In this tutorial, you'll create a skill that gives an agent the capability to roll dice using true randomness.- description: Roll dice with true randomness. Use when asked to roll a die (d6, d20, etc.), roll dice, or generate a random dice roll.- shuf -i 1-<sides> -n 1+ In this tutorial, you'll create a skill that gives an agent the capability to roll dice using a random number generator.+ description: Roll dice using a random number generator. Use when asked to roll a die (d6, d20, etc.), roll dice, or generate a random dice roll.+ echo $((RANDOM % <sides> + 1))
Clarify that optional directories are not an exhaustive list (opens in new window)
+ A skill directory may contain any files and directories beyond the required `SKILL.md`. The conventions below are recommendations for organizing common types of content.Add runtime version example to compatibility field (opens in new window)
+ ```yaml+ compatibility: Requires Python 3.14+ and uv+ ```
Add gotchas section to best practices guide (opens in new window)
+ ### Gotchas sections+ The highest-value content in many skills is a list of gotchas — environment-specific facts that defy reasonable assumptions. These aren't general advice ("handle errors appropriately") but concrete corrections to mistakes the agent will make without being told otherwise:+ ````markdown+ ## Gotchas+ - The `users` table uses soft deletes. Queries must include+ `WHERE deleted_at IS NULL` or results will include deactivated accounts.+ - The user ID is `user_id` in the database, `uid` in the auth service,+ and `accountId` in the billing API. All three refer to the same value.+ - The `/health` endpoint returns 200 as long as the web server is running,+ even if the database connection is down. Use `/ready` to check full+ service health.+ ````+ Keep gotchas in `SKILL.md` where the agent reads them before encountering the situation. A separate reference file works if you tell the agent when to load it, but for non-obvious issues, the agent may not recognize the trigger.+ <Tip>+ When an agent makes a mistake you have to correct, add the correction to the gotchas section. This is one of the most direct ways to improve a skill iteratively (see [Refine with real execution](#refine-with-real-execution)).+ </Tip>
Add quickstart guide for skill creators (opens in new window)
+ ---+ title: "Quickstart"+ description: "Create your first Agent Skill and see it work in VS Code."+ ---+ In this tutorial, you'll create a skill that gives an agent the capability to roll dice using true randomness.+ ## Prerequisites+ - [VS Code](https://code.visualstudio.com/) with [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot)+ <Note>+ This tutorial uses VS Code, but Agent Skills are an open format. The same skill works in any compatible agent, including Claude Code and OpenAI Codex.+ </Note>+ ## Create the skill+ A skill is a folder containing a `SKILL.md` file. VS Code looks for skills in `.agents/skills/` by default. Create `.agents/skills/roll-dice/SKILL.md` in your project:+ ````markdown .agents/skills/roll-dice/SKILL.md+ ---+ name: roll-dice+ description: Roll dice with true randomness. Use when asked to roll a die (d6, d20, etc.), roll dice, or generate a random dice roll.+ ---+ To roll a die, use the following command that generates a random number from 1+ to the given number of sides:+ ```bash34 more changed lines in the commit
Add skill directory to structure diagram in evaluating skills doc (opens in new window)
+ csv-analyzer/+ ├── SKILL.md+ └── evals/+ └── evals.json
Add best practices guide for skill creators (opens in new window)
+ ---+ title: "Best practices for skill creators"+ sidebarTitle: "Best practices"+ description: "How to write skills that are well-scoped and calibrated to the task."+ ---+ ## Start from real expertise+ A common pitfall in skill creation is asking an LLM to generate a skill without providing domain-specific context — relying solely on the LLM's general training knowledge. The result is vague, generic procedures ("handle errors appropriately," "follow best practices for authentication") rather than the specific API patterns, edge cases, and project conventions that make a skill valuable.+ Effective skills are grounded in real expertise. The key is feeding domain-specific context into the creation process.+ ### Extract from a hands-on task+ Complete a real task in conversation with an agent, providing context, corrections, and preferences along the way. Then extract the reusable pattern into a skill. Pay attention to:+ - **Steps that worked** — the sequence of actions that led to success+ - **Corrections you made** — places where you steered the agent's approach (e.g., "use library X instead of Y," "check for edge case Z")+ - **Input/output formats** — what the data looked like going in and coming out+ - **Context you provided** — project-specific facts, conventions, or constraints the agent didn't already know+ ### Synthesize from existing project artifacts+ When you have a body of existing knowledge, you can feed it into an LLM and ask it to synthesize a skill. A data-pipeline skill synthesized from your team's actual incident reports and runbooks will outperform one synthesized from a generic "data engineering best practices" article, because it captures *your* schemas, failure modes, and recovery procedures. The key is project-specific material, not generic references.+ Good source material includes:+ - Internal documentation, runbooks, and style guides+ - API specifications, schemas, and configuration files+ - Code review comments and issue trackers (captures recurring concerns and reviewer expectations)147 more changed lines in the commit
Fix example description to include "when to use" guidance (opens in new window)
- description: Extract text and tables from PDF files, fill forms, merge documents.+ description: Extract PDF text, fill forms, merge files. Use when handling PDFs.
Remove redundant intro sentence from specification doc (opens in new window)
- This document defines the Agent Skills format.Add ... entry to directory tree in specification doc (opens in new window)
- A skill is a directory containing at minimum a `SKILL.md` file:- └── assets/ # Optional: templates, resources+ A skill is a directory containing, at minimum, a `SKILL.md` file:+ ├── assets/ # Optional: templates, resources+ └── ... # Any additional files or directories
Move frontmatter field table above examples in specification doc (opens in new window)
- ### Frontmatter (required)- **With optional fields:**- | Field | Required | Constraints |- |-------|----------|-------------|- | `name` | Yes | Max 64 characters. Lowercase letters, numbers, and hyphens only. Must not start or end with a hyphen. |- | `description` | Yes | Max 1024 characters. Non-empty. Describes what the skill does and when to use it. |- | `license` | No | License name or reference to a bundled license file. |- | `compatibility` | No | Max 500 characters. Indicates environment requirements (intended product, system packages, network access, etc.). |- | `metadata` | No | Arbitrary key-value mapping for additional metadata. |- | `allowed-tools` | No | Space-delimited list of pre-approved tools the skill may use. (Experimental) |+ ### Frontmatter+ | Field | Required | Constraints |+ |-------|----------|-------------|+ | `name` | Yes | Max 64 characters. Lowercase letters, numbers, and hyphens only. Must not start or end with a hyphen. |+ | `description` | Yes | Max 1024 characters. Non-empty. Describes what the skill does and when to use it. |+ | `license` | No | License name or reference to a bundled license file. |+ | `compatibility` | No | Max 500 characters. Indicates environment requirements (intended product, system packages, network access, etc.). |+ | `metadata` | No | Arbitrary key-value mapping for additional metadata. |+ | `allowed-tools` | No | Space-delimited list of pre-approved tools the skill may use. (Experimental) |+ <Card>+ **Minimal example:**+ **Example with optional fields:**+ </Card>
Add SKILL.md filename annotations to code blocks in specification doc (opens in new window)
- ```yaml- ```yaml- ```markdown+ ```markdown SKILL.md+ ```markdown SKILL.md+ ```markdown SKILL.md
Wrap examples in <Card> components in specification doc (opens in new window)
- With optional fields:- Valid examples:- Invalid examples:- Good example:- Poor example:- Example:- Examples:- Example:- Example:+ **With optional fields:**+ <Card>+ **Valid examples:**+ **Invalid examples:**+ </Card>+ <Card>+ **Good example:**+ **Poor example:**+ </Card>+ <Card>+ **Example:**+ </Card>+ <Card>+ **Examples:**+ </Card>+ <Card>+ **Example:**+ </Card>+ <Card>+ **Example:**1 more changed line in the commit
Expand directory tree in specification doc (opens in new window)
- └── SKILL.md # Required- <Tip>- You can optionally include [additional directories](#optional-directories) such as `scripts/`, `references/`, and `assets/` to support your skill.- </Tip>+ ├── SKILL.md # Required: metadata + instructions+ ├── scripts/ # Optional: executable code+ ├── references/ # Optional: documentation+ └── assets/ # Optional: templates, resources
Improve clarity of name field constraints in specification doc (opens in new window)
- - May only contain unicode lowercase alphanumeric characters and hyphens (`a-z` and `-`)- - Must not start or end with `-`+ - May only contain unicode lowercase alphanumeric characters (`a-z`) and hyphens (`-`)+ - Must not start or end with a hyphen (`-`)
Format directory and file names as inline code in specification doc (opens in new window)
- ## SKILL.md format- ### scripts/- ### references/- ### assets/+ ## `SKILL.md` format+ ### `scripts/`+ ### `references/`+ ### `assets/`
- description: Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.- This handles the full optimization loop automatically. It splits the eval set into 60% train and 40% held-out test, evaluates the current description (running each query 3 times to get a reliable trigger rate), then calls Claude with extended thinking to propose improvements based on what failed. It re-evaluates each new description on both train and test, iterating up to 5 times. When it's done, it opens an HTML report in the browser showing the results per iteration and returns JSON with `best_description` — selected by test score rather than train score to avoid overfitting.+ description: Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.+ This handles the full optimization loop automatically. It splits the eval set into 60% train and 40% held-out test, evaluates the current description (running each query 3 times to get a reliable trigger rate), then calls Claude to propose improvements based on what failed. It re-evaluates each new description on both train and test, iterating up to 5 times. When it's done, it opens an HTML report in the browser showing the results per iteration and returns JSON with `best_description` — selected by test score rather than train score to avoid overfitting.+ **Updating an existing skill**: The user might be asking you to update an existing skill, not create a new one. In this case:+ - **Preserve the original name.** Note the skill's directory name and `name` frontmatter field -- use them unchanged. E.g., if the installed skill is `research-helper`, output `research-helper.skill` (not `research-helper-v2`).+ - **Copy to a writeable location before editing.** The installed skill path may be read-only. Copy to `/tmp/skill-name/`, edit there, and package from the copy.+ - **If packaging manually, stage in `/tmp/` first**, then copy to the output directory -- direct writes may fail due to permissions.+ - **Updating an existing skill**: The user might be asking you to update an existing skill, not create a new one. Follow the update guidance in the claude.ai section above.
Add "Optimizing descriptions" guide for skill creators (opens in new window)
+ ---+ title: "Optimizing skill descriptions"+ sidebarTitle: "Optimizing descriptions"+ description: "How to improve your skill's description so it triggers reliably on relevant prompts."+ ---+ A skill only helps if it gets activated. The `description` field in your `SKILL.md` frontmatter is the primary mechanism agents use to decide whether to load a skill for a given task. An under-specified description means the skill won't trigger when it should; an over-broad description means it triggers when it shouldn't.+ This guide covers how to systematically test and improve your skill's description for triggering accuracy.+ ## How skill triggering works+ Agents use [progressive disclosure](/what-are-skills#how-skills-work) to manage context. At startup, they load only the `name` and `description` of each available skill — just enough to decide when a skill might be relevant. When a user's task matches a description, the agent reads the full `SKILL.md` into context and follows its instructions.+ This means the description carries the entire burden of triggering. If the description doesn't convey when the skill is useful, the agent won't know to reach for it.+ One important nuance: agents typically only consult skills for tasks that require knowledge or capabilities beyond what they can handle alone. A simple, one-step request like "read this PDF" may not trigger a PDF skill even if the description matches perfectly, because the agent can handle it with basic tools. Tasks that involve specialized knowledge — an unfamiliar API, a domain-specific workflow, or an uncommon format — are where a well-written description can make the difference.+ ## Writing effective descriptions+ Before testing, it helps to know what a good description looks like. A few principles:+ - **Use imperative phrasing.** Frame the description as an instruction to the agent: "Use this skill when..." rather than "This skill does..." The agent is deciding whether to act, so tell it when to act.+ - **Focus on user intent, not implementation.** Describe what the user is trying to achieve, not the skill's internal mechanics. The agent matches against what the user asked for.+ - **Err on the side of being pushy.** Explicitly list contexts where the skill applies, including cases where the user doesn't name the domain directly: "even if they don't explicitly mention 'CSV' or 'analysis.'"+ - **Keep it concise.** A few sentences to a short paragraph is usually right — long enough to cover the skill's scope, short enough that it doesn't bloat the agent's context across many skills. The [specification](/specification#description-field) enforces a hard limit of 1024 characters.+ ## Designing trigger eval queries+ To test triggering, you need a set of eval queries — realistic user prompts labeled with whether they should or shouldn't trigger your skill.+ ```json eval_queries.json114 more changed lines in the commit
Add "Evaluating skills" guide for skill creators (opens in new window)
+ ---+ title: "Evaluating skill output quality"+ sidebarTitle: "Evaluating skills"+ description: "How to test whether your skill produces good outputs using eval-driven iteration."+ ---+ You wrote a skill, tried it on a prompt, and it seemed to work. But does it work reliably — across varied prompts, in edge cases, better than no skill at all? Running structured evaluations (evals) answers these questions and gives you a feedback loop for improving the skill systematically.+ ## Designing test cases+ A test case has three parts:+ - **Prompt**: a realistic user message — the kind of thing someone would actually type.+ - **Expected output**: a human-readable description of what success looks like.+ - **Input files** (optional): files the skill needs to work with.+ Store test cases in `evals/evals.json` inside your skill directory:+ ```json evals/evals.json+ {+ "skill_name": "csv-analyzer",+ "evals": [+ {+ "id": 1,+ "prompt": "I have a CSV of monthly sales data in data/sales_2025.csv. Can you find the top 3 months by revenue and make a bar chart?",+ "expected_output": "A bar chart image showing the top 3 months by revenue, with labeled axes and values.",209 more changed lines in the commit
February 2026
Add "Using scripts" guide for skill creators (#196) (opens in new window)
+ ---+ title: "Using scripts in skills"+ sidebarTitle: "Using scripts"+ description: "How to run commands and bundle executable scripts in your skills."+ ---+ Skills can instruct agents to run shell commands and bundle reusable scripts in a `scripts/` directory. This guide covers one-off commands, self-contained scripts with their own dependencies, and how to design script interfaces for agentic use.+ ## One-off commands+ When an existing package already does what you need, you can reference it directly in your `SKILL.md` instructions without a `scripts/` directory. Many ecosystems provide tools that auto-resolve dependencies at runtime.+ <Tabs sync={false}>+ <Tab title="uvx">+ [uvx](https://docs.astral.sh/uv/guides/tools/) runs Python packages in isolated environments with aggressive caching. It ships with [uv](https://docs.astral.sh/uv/).+ ```bash+ uvx ruff@0.8.0 check .+ uvx black@24.10.0 .+ ```+ - Not bundled with Python — requires a separate install.+ - Fast. Caches aggressively so repeat runs are near-instant.+ </Tab>+ <Tab title="pipx">+ [pipx](https://pipx.pypa.io/) runs Python packages in isolated environments. Available via OS package managers (`apt install pipx`, `brew install pipx`).200 more changed lines in the commit
- description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.- license: Complete terms in LICENSE.txt- This skill provides guidance for creating effective skills.- ## About Skills- Skills are modular, self-contained packages that extend Claude's capabilities by providing- specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific- domains or tasks—they transform Claude from a general-purpose agent into a specialized agent- equipped with procedural knowledge that no model can fully possess.- ### What Skills Provide- 1. Specialized workflows - Multi-step procedures for specific domains- 2. Tool integrations - Instructions for working with specific file formats or APIs- 3. Domain expertise - Company-specific knowledge, schemas, business logic- 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks- ## Core Principles- ### Concise is Key- The context window is a public good. Skills share the context window with everything else Claude needs: system prompt, conversation history, other Skills' metadata, and the actual user request.- **Default assumption: Claude is already very smart.** Only add context Claude doesn't already have. Challenge each piece of information: "Does Claude really need this explanation?" and "Does this paragraph justify its token cost?"- Prefer concise examples over verbose explanations.- ### Set Appropriate Degrees of Freedom- Match the level of specificity to the task's fragility and variability:+ description: Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, update or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.+ A skill for creating new skills and iteratively improving them.+ At a high level, the process of creating a skill goes like this:+ - Decide what you want the skill to do and roughly how it should do it+ - Write a draft of the skill+ - Create a few test prompts and run claude-with-access-to-the-skill on them+ - Help the user evaluate the results both qualitatively and quantitatively+ - While the runs happen in the background, draft some quantitative evals if there aren't any (if there are some, you can either use as is or modify if you feel something needs to change about them). Then explain them to the user (or if they already existed, explain the ones that already exist)+ - Use the `eval-viewer/generate_review.py` script to show the user the results for them to look at, and also let them look at the quantitative metrics+ - Rewrite the skill based on feedback from the user's evaluation of the results (and also if there are any glaring flaws that become apparent from the quantitative benchmarks)+ - Repeat until you're satisfied+ - Expand the test set and try again at larger scale+ Your job when using this skill is to figure out where the user is in this process and then jump in and help them progress through these stages. So for instance, maybe they're like "I want to make a skill for X". You can help narrow down what they mean, write a draft, write the test cases, figure out how they want to evaluate, run all the prompts, and repeat.+ On the other hand, maybe they already have a draft of the skill. In this case you can go straight to the eval/iterate part of the loop.+ Of course, you should always be flexible and if the user is like "I don't need to run a bunch of evaluations, just vibe with me", you can do that instead.+ Then after the skill is done (but again, the order is flexible), you can also run the skill description improver, which we have a whole separate script for, to optimize the triggering of the skill.+ Cool? Cool.+ ## Communicating with the user+ The skill creator is liable to be used by people across a wide range of familiarity with coding jargon. If you haven't heard (and how could you, it's only very recently that it started), there's a trend now where the power of Claude is inspiring plumbers to open up their terminals, parents and grandparents to google "how to install npm". On the other hand, the bulk of users are probably fairly computer-literate.+ So please pay attention to context cues to understand how to phrase your communication! In the default case, just to give you some idea:481 more changed lines in the commit
Remove stale references in skill-creator (#110) (opens in new window)
- #### Learn Proven Design Patterns- Consult these helpful guides based on your skill's needs:- - **Multi-step processes**: See references/workflows.md for sequential workflows and conditional logic- - **Specific output formats or quality standards**: See references/output-patterns.md for template and example patterns- These files contain established best practices for effective skill design.
Update skill-creator and make scripts executable (#350) (opens in new window)
- │ │ └── description: (required)- - **Frontmatter** (YAML): Contains `name` and `description` fields. These are the only fields that Claude reads to determine when the skill gets used, thus it is very important to be clear and comprehensive in describing what the skill is, and when it should be used.+ │ │ ├── description: (required)+ │ │ └── compatibility: (optional, rarely needed)+ - **Frontmatter** (YAML): Contains `name` and `description` fields (required), plus optional fields like `license`, `metadata`, and `compatibility`. Only `name` and `description` are read by Claude to determine when the skill triggers, so be clear and comprehensive about what the skill is and when it should be used. The `compatibility` field is for noting environment requirements (target product, system packages, etc.) but most skills don't need it.
January 2026
Add support for agents/openai.yaml in skill-creator (#76) (opens in new window)
+ ├── agents/ (recommended)+ │ └── openai.yaml - UI metadata for skill lists and chips+ #### Agents metadata (recommended)+ - UI-facing metadata for skill lists and chips+ - Read references/openai_yaml.md before generating values and follow its descriptions and constraints+ - Create: human-facing `display_name`, `short_description`, and `default_prompt` by reading the skill+ - Generate deterministically by passing the values as `--interface key=value` to `scripts/generate_openai_yaml.py` or `scripts/init_skill.py`+ - On updates: validate `agents/openai.yaml` still matches SKILL.md; regenerate if stale+ - Only include other optional interface fields (icons, brand color) if explicitly provided+ - See references/openai_yaml.md for field definitions and examples+ - Creates `agents/openai.yaml` using agent-generated `display_name`, `short_description`, and `default_prompt` passed via `--interface key=value`+ Generate `display_name`, `short_description`, and `default_prompt` by reading the skill, then pass them as `--interface key=value` to `init_skill.py` or regenerate with:+ ```bash+ scripts/generate_openai_yaml.py <path/to/skill-folder> --interface key=value+ ```+ Only include other optional interface fields when the user explicitly provides them. For full field descriptions and examples, see references/openai_yaml.md.
Remove zipped .skill packaging from skill-creator (#74) (opens in new window)
- Skills are modular, self-contained packages that extend Codex's capabilities by providing- 5. Package the skill (run package_skill.py)- Skip this step only if the skill being developed already exists, and iteration or packaging is needed. In this case, continue to the next step.- ### Step 5: Packaging a Skill- Once development of the skill is complete, it must be packaged into a distributable .skill file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements:- scripts/package_skill.py <path/to/skill-folder>- Optional output directory specification:- ```bash- scripts/package_skill.py <path/to/skill-folder> ./dist- ```- The packaging script will:- 1. **Validate** the skill automatically, checking:- - YAML frontmatter format and required fields- - Skill naming conventions and directory structure- - Description completeness and quality- - File organization and resource references- 2. **Package** the skill if validation passes, creating a .skill file named after the skill (e.g., `my-skill.skill`) that includes all files and maintains the proper directory structure for distribution. The .skill file is a zip file with a .skill extension.- If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again.+ Skills are modular, self-contained folders that extend Codex's capabilities by providing+ 5. Validate the skill (run quick_validate.py)+ Skip this step only if the skill being developed already exists. In this case, continue to the next step.+ ### Step 5: Validate the Skill+ Once development of the skill is complete, validate the skill folder to catch basic issues early:+ scripts/quick_validate.py <path/to/skill-folder>+ The validation script checks YAML frontmatter format, required fields, and naming rules. If validation fails, fix the reported issues and run the command again.
December 2025
Update max length on skill names in skill-creator (#15) (opens in new window)
- - When generating names, generate a name under 30 characters (letters, digits, hyphens).+ - When generating names, generate a name under 64 characters (letters, digits, hyphens).
+ """YAML frontmatter parsing for SKILL.md files."""+ from pathlib import Path+ from typing import Optional+ import strictyaml+ from .errors import ParseError, ValidationError+ from .models import SkillProperties+ def find_skill_md(skill_dir: Path) -> Optional[Path]:+ """Find the SKILL.md file in a skill directory.+ Prefers SKILL.md (uppercase) but accepts skill.md (lowercase).+ Args:+ skill_dir: Path to the skill directory+ Returns:+ Path to the SKILL.md file, or None if not found+ """+ for name in ("SKILL.md", "skill.md"):+ path = skill_dir / name+ if path.exists():+ return path+ return None+ def parse_frontmatter(content: str) -> tuple[dict, str]:190 more changed lines in the commit
+ ## Validation+ Use the [skills-ref](https://github.com/agentskills/agentskills/tree/main/skills-ref) reference library to validate your skills:+ ```bash+ skills-ref validate ./my-skill+ ```+ This checks that your `SKILL.md` frontmatter is valid and follows all naming conventions.
+ ---+ title: "Specification"+ description: "The complete format specification for Agent Skills."+ ---+ This document defines the Agent Skills format.+ ## Directory structure+ A skill is a directory containing at minimum a `SKILL.md` file:+ ```+ skill-name/+ └── SKILL.md # Required+ ```+ <Tip>+ You can optionally include [additional directories](#optional-directories) such as `scripts/`, `references/`, and `assets/` to support your skill.+ </Tip>+ ## SKILL.md format+ The `SKILL.md` file must contain YAML frontmatter followed by Markdown content.+ ### Frontmatter (required)+ ```yaml+ ---+ name: skill-name143 more changed lines in the commit
Add short descriptions to system skills (#7) (opens in new window)
- The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxilary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.+ metadata:+ short-description: Create or update a skill+ The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxiliary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.
+ ---+ name: skill-creator+ description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.+ ---+ # Skill Creator+ This skill provides guidance for creating effective skills.+ ## About Skills+ Skills are modular, self-contained packages that extend Codex's capabilities by providing+ specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific+ domains or tasks—they transform Codex from a general-purpose agent into a specialized agent+ equipped with procedural knowledge that no model can fully possess.+ ### What Skills Provide+ 1. Specialized workflows - Multi-step procedures for specific domains+ 2. Tool integrations - Instructions for working with specific file formats or APIs+ 3. Domain expertise - Company-specific knowledge, schemas, business logic+ 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks+ ## Core Principles+ ### Concise is Key+ The context window is a public good. Skills share the context window with everything else Codex needs: system prompt, conversation history, other Skills' metadata, and the actual user request.+ **Default assumption: Codex is already very smart.** Only add context Codex doesn't already have. Challenge each piece of information: "Does Codex really need this explanation?" and "Does this paragraph justify its token cost?"217 more changed lines in the commit
November 2025
Update example skills and rename 'artifacts-builder' (#112) (opens in new window)
- **Metadata Quality:** The `name` and `description` in YAML frontmatter determine when Claude will use the skill. Be specific about what the skill does and when to use it. Use the third-person (e.g. "This skill should be used when..." instead of "Use this skill when...").- 3. **Bundled resources** - As needed by Claude (Unlimited*)- *Unlimited because scripts can be executed without reading into context window.- To create a skill, follow the "Skill Creation Process" in order, skipping steps only if there is a clear reason why they are not applicable.- When editing the (newly-generated or existing) skill, remember that the skill is being created for another instance of Claude to use. Focus on including information that would be beneficial and non-obvious to Claude. Consider what procedural knowledge, domain-specific details, or reusable assets would help another Claude instance execute these tasks more effectively.- Also, delete any example files and directories not needed for the skill. The initialization script creates example files in `scripts/`, `references/`, and `assets/` to demonstrate structure, but most skills won't need all of them.- **Writing Style:** Write the entire skill using **imperative/infinitive form** (verb-first instructions), not second person. Use objective, instructional language (e.g., "To accomplish X, do Y" rather than "You should do X" or "If you need to do X"). This maintains consistency and clarity for AI consumption.- To complete SKILL.md, answer the following questions:- 1. What is the purpose of the skill, in a few sentences?- 2. When should the skill be used?- 3. In practice, how should Claude use the skill? All reusable skill contents developed above should be referenced so that Claude knows how to use them.- Once the skill is ready, it should be packaged into a distributable zip file that gets shared with the user. The packaging process automatically validates the skill first to ensure it meets all requirements:- 2. **Package** the skill if validation passes, creating a zip file named after the skill (e.g., `my-skill.zip`) that includes all files and maintains the proper directory structure for distribution.+ ## Core Principles+ ### Concise is Key+ The context window is a public good. Skills share the context window with everything else Claude needs: system prompt, conversation history, other Skills' metadata, and the actual user request.+ **Default assumption: Claude is already very smart.** Only add context Claude doesn't already have. Challenge each piece of information: "Does Claude really need this explanation?" and "Does this paragraph justify its token cost?"+ Prefer concise examples over verbose explanations.+ ### Set Appropriate Degrees of Freedom+ Match the level of specificity to the task's fragility and variability:+ **High freedom (text-based instructions)**: Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach.+ **Medium freedom (pseudocode or scripts with parameters)**: Use when a preferred pattern exists, some variation is acceptable, or configuration affects behavior.+ **Low freedom (specific scripts, few parameters)**: Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed.+ Think of Claude as exploring a path: a narrow bridge with cliffs needs specific guardrails (low freedom), while an open field allows many routes (high freedom).+ Every SKILL.md consists of:+ - **Frontmatter** (YAML): Contains `name` and `description` fields. These are the only fields that Claude reads to determine when the skill gets used, thus it is very important to be clear and comprehensive in describing what the skill is, and when it should be used.+ - **Body** (Markdown): Instructions and guidance for using the skill. Only loaded AFTER the skill triggers (if at all).+ #### What to Not Include in a Skill+ A skill should only contain essential files that directly support its functionality. Do NOT create extraneous documentation or auxiliary files, including:+ - README.md+ - INSTALLATION_GUIDE.md+ - QUICK_REFERENCE.md+ - CHANGELOG.md84 more changed lines in the commit
October 2025
+ ---+ name: skill-creator+ description: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.+ license: Complete terms in LICENSE.txt+ ---+ # Skill Creator+ This skill provides guidance for creating effective skills.+ ## About Skills+ Skills are modular, self-contained packages that extend Claude's capabilities by providing+ specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific+ domains or tasks—they transform Claude from a general-purpose agent into a specialized agent+ equipped with procedural knowledge that no model can fully possess.+ ### What Skills Provide+ 1. Specialized workflows - Multi-step procedures for specific domains+ 2. Tool integrations - Instructions for working with specific file formats or APIs+ 3. Domain expertise - Company-specific knowledge, schemas, business logic+ 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks+ ### Anatomy of a Skill+ Every skill consists of a required SKILL.md file and optional bundled resources:+ ```115 more changed lines in the commit