Writing - PomPrompt Guides
Agent Skill Description Best Practices
Write precise SKILL.md descriptions with clear trigger conditions and useful boundaries.
A good Agent Skill description tells an AI agent what a Skill does and when to use it. The wording should be specific enough to identify the right task without making the Skill appear relevant to everything in the same subject area.
Consider a Skill that reviews technical documentation. A description such as "Helps with documentation" could refer to writing, translation, proofreading, or auditing. Compare that with:
description: Reviews existing READMEs and installation guides for missing prerequisites, unclear steps, and contradictions. Use when asked to audit supplied technical documentation.
The second version gives the agent something useful to match against a request: a defined activity, recognizable inputs, and a reason to select the Skill.
That distinction matters because the description can be available before the agent reads the complete instructions. It helps the agent identify which workflow to load, not how every step of that workflow should be performed.
Clearer wording does not guarantee activation. The host's configuration, available Skills, and the wording of the user's request also affect selection. Still, description quality is something a Skill author can directly improve.
This guide covers the writing rules, practical examples, overlapping triggers, and a testing method you can apply to your own SKILL.md files.
Table of Contents
- Why Agent Skill Descriptions Matter
- A Practical Framework for Writing Better Descriptions
- Infographic: Agent Skill Description Best Practices
- SKILL.md Description Examples
- How to Write Trigger Conditions Without Overmatching
- Description Length and Platform-Specific Rules
- How to Test Skill Description Triggering
- What to Check When a Skill Does Not Activate
- Review Your Description Before Publishing
- Frequently Asked Questions
- Sources and Verification Notes
Why Agent Skill Descriptions Matter
An Agent Skill is a directory containing a SKILL.md file with metadata and instructions. The metadata identifies the Skill and describes its purpose. The Markdown body contains the procedure the agent should follow after selecting it.
The official Agent Skills specification requires two frontmatter fields: name and description. The description must explain what the Skill does and when it should be used.
Here is a minimal example:
---
name: documentation-quality-review
description: Reviews existing technical guides for missing prerequisites, ambiguous instructions, and contradictions. Use when asked to audit a supplied README or installation guide.
---
# Documentation Quality Review
Review the supplied document and identify:
- Missing prerequisites
- Unclear instructions
- Contradictory steps
- Claims requiring verification
The description makes the workflow recognizable. The instructions define the work.
How agents discover and load Skills
This separation is part of progressive disclosure, the approach described in the official Agent Skills overview. A compatible agent can initially receive the names and descriptions of available Skills, then load the full instructions when it selects one.
The documented model has three stages:
- Discovery: The agent receives lightweight metadata about available Skills, including their names and descriptions.
- Activation: When a Skill is selected, the agent loads its instructions.
- Execution: The agent follows those instructions using the resources and tools available in its environment.
Actual selection and loading behavior depends on the host, but the description has the same basic responsibility: communicate the Skill's use case before the complete procedure is needed.
There is a practical consequence for authors. A description has to make sense on its own.
If a Skill is called python-review, a description saying "Helps with Python development" adds little information. An agent still has to distinguish reviewing existing code from writing a new function, generating tests, or fixing dependencies.
"Reviews supplied Python code for correctness, maintainability, and potential defects" gives it a clearer starting point.
For readers building their first Skill, PomPrompt's guide on how to create a SKILL.md file covers the complete file structure and required metadata.
A Practical Framework for Writing Better Descriptions
Before drafting a description, answer four questions. What work does the Skill perform? What input or context does it require? What kind of request should cause the agent to consider it? And which closely related task falls outside its responsibility?
These questions form a useful writing framework: Action + Input + Trigger + Boundary.
It is an editorial method, not a mandatory formula in the Agent Skills specification. Some Skills need only a short statement of purpose and usage. Others benefit from an explicit boundary because their responsibilities overlap with another workflow.
Start with the actual action
Consider a Skill intended to prepare incident postmortems.
The first draft might be:
description: Helps with incident management.
That is too broad. Incident management includes monitoring, investigation, communication, recovery, and retrospective reporting.
Start by defining the action: drafting a postmortem report. Next, identify the input: an incident timeline and investigation notes. The triggering request follows naturally. Someone asks the agent to document a resolved incident.
Finally, distinguish retrospective reporting from live incident response.
The revised description becomes:
description: Drafts incident postmortem reports from supplied timelines and investigation notes. Use when asked to document a resolved incident, not to diagnose or respond to an ongoing outage.
Each part has a purpose. The description does not attempt to explain how to investigate an incident, calculate its impact, or structure the entire report. Those instructions belong in the body of SKILL.md.
Include inputs that help identify the task
Input details are useful when several Skills operate on similar material but produce different results.
A code-review Skill might accept source files. A dependency auditor might inspect manifests and lockfiles. A technical SEO reviewer might work from supplied HTML files or crawl reports.
There is no need to list every supported file extension. Include the information that helps an agent recognize the intended work.
Describe the request, not just the subject
"Use when working with databases" is broad enough to match unrelated tasks such as writing queries, designing schemas, and reviewing migrations.
"Use when adding or changing a database migration" points to a more specific responsibility.
The description should reflect how someone would naturally ask for the Skill's work, without relying on one exact phrase.
Add boundaries where responsibilities overlap
The incident-reporting example benefits from an exclusion because drafting a postmortem and responding to an active outage are different workflows.
Not every description needs this treatment. An exclusion is useful when it resolves a realistic conflict, not when it merely lists activities the Skill obviously cannot perform.
The aim is to include enough information to recognize the right task. A description is not the place for a complete operating manual.
Infographic: Agent Skill Description Best Practices at a Glance
Use this visual reference while reviewing your SKILL.md descriptions, then compare the examples and trigger-testing method below before deciding whether a rewrite works.
Download the Agent Skill description infographic.
SKILL.md Description Examples: What to Change and Why
A useful revision does more than replace vague language with technical terminology. It gives the agent a better basis for distinguishing one task from another.
The following descriptions are illustrative candidates, not results from recorded activation experiments.
Before and after: Four common Skill descriptions
| Task | Weak description | More specific description |
|---|---|---|
| Documentation review | Helps with technical documentation. |
Audits existing READMEs and technical guides for missing prerequisites, ambiguous steps, and contradictory instructions. Use when asked to assess the clarity or completeness of supplied documentation. |
| Technical SEO review | Analyzes websites and improves SEO. |
Reviews supplied HTML files and crawl reports for technical SEO issues, including metadata, canonical tags, and internal links. Use when asked to assess technical SEO using available page evidence. |
| Python code review | Improves Python code. |
Reviews supplied Python code for correctness, maintainability, and potential defects. Use when asked to inspect or critique existing code rather than implement a new feature. |
| Release notes | Helps with software releases. |
Drafts release notes from supplied commit summaries and completed issue records. Use when asked to prepare a summary of changes for a software release. |
What makes these revisions more useful?
The documentation example identifies an audit rather than any activity involving written material. It also establishes that the Skill works with existing documentation, which helps distinguish it from a documentation-writing Skill.
The technical SEO description is more careful about evidence. It does not suggest that the agent can independently crawl a website or retrieve Google Search Console data. Those activities require actual tools, access, or information supplied by the user.
The full Skill instructions should explain what happens when evidence is unavailable. The agent may need to request a crawl report, limit its assessment, or identify checks that could not be performed. A well-written description should not promise more than the workflow can support.
The Python example distinguishes reviewing an implementation from creating one. "Review this function for possible bugs" fits the revised description. "Add an authentication endpoint" does not describe the same task, even though both requests involve Python.
The release-notes example establishes both a deliverable and the records used to create it. A release-notes Skill should not automatically be selected whenever someone mentions software deployment.
When two Skills share the same vocabulary
Descriptions become harder to write when two Skills handle closely related tasks.
Imagine a project with a dependency auditor and a dependency updater.
Dependency auditor:
description: Reviews dependency manifests and lockfiles for version conflicts and outdated packages. Use when asked to assess existing dependencies and recommend changes.
Dependency updater:
description: Updates dependency declarations and lockfiles to requested versions. Use when asked to implement package upgrades in an accessible project.
Both descriptions refer to dependencies, but their responsibilities differ. One examines the current state and recommends changes. The other makes requested modifications.
"Find conflicting package versions" should favor the auditor. "Update these packages to the specified versions" should favor the updater.
"Improve the dependencies in this project" is less clear. The user might want an assessment, actual changes, or both. Depending on the context, clarification may be necessary.
Repeating the same keywords in both descriptions does not resolve this ambiguity. The useful distinction is the work each Skill performs.
How to Write Trigger Conditions Without Overmatching
A trigger condition describes when an agent should consider a Skill. It does not have to reproduce the exact words a user will type.
OpenAI's September 2026 engineering article, Rethinking Skills and Prompts for GPT-6 Astra, discusses problems caused by overly broad descriptions and overlapping Skill guidance. When several Skills appear relevant to a general topic, an agent may load instructions that do not help with the user's actual request.
A useful description therefore needs a recognizable task boundary.
Positive trigger cases
For a documentation-review Skill, "Audit this README for missing setup steps" is a positive case. So are requests to identify contradictions in installation instructions or review a technical guide for unclear prerequisites.
These requests have a common objective: evaluate existing documentation.
Negative trigger cases
Now consider "Translate this README into French," "Write an installation guide from these requirements," or "Summarize this document in three paragraphs."
Each request involves documentation, but none necessarily calls for an audit. The review Skill should not be selected simply because the subject is familiar.
A Skill that correctly remains inactive for an unrelated task is behaving appropriately. More frequent activation is not automatically better activation.
Ambiguous requests
"Make this documentation better" might mean proofreading, restructuring, technical auditing, or rewriting.
A description cannot eliminate uncertainty from every natural-language request. Sometimes the appropriate response is to clarify the intended outcome.
For projects with several Skills, review the descriptions together. Look for cases where two Skills claim the same responsibility or where one description is broad enough to absorb another's work.
Often, the solution is a narrower description, not a longer one.
Description Length and Platform-Specific Rules
The open Agent Skills specification allows a nonempty description of up to 1,024 characters. It must explain the Skill's purpose and when to use it.
That is a format requirement, not an ideal length to aim for. A shorter description is preferable when it communicates the same useful information without unnecessary detail.
Anthropic's Skill authoring best practices also recommends third-person descriptions. For example, "Reviews technical documents" is preferred over "I can review your technical documents."
This is an authoring recommendation, not an additional requirement of the open specification.
Claude Code and Codex use different invocation controls
The standard defines the portable Skill format. Individual hosts can add controls that determine whether a Skill can be selected automatically.
Claude Code supports disable-model-invocation: true in SKILL.md frontmatter:
---
name: deployment-check
description: Reviews deployment readiness before a release. Use when explicitly asked to run a deployment readiness check.
disable-model-invocation: true
---
With this setting, Claude Code does not automatically invoke the Skill. The user can still invoke it directly using the appropriate slash command.
OpenAI Codex provides a separate option through the optional agents/openai.yaml file:
policy:
allow_implicit_invocation: false
When implicit invocation is disabled, Codex does not select the Skill automatically from the user's prompt. Explicit invocation remains available.
These are different, host-specific mechanisms. Neither setting is required for an ordinary portable Skill.
Metadata limits are not the same as description limits
Claude Code documents a combined listing limit for its description and optional when_to_use fields. Codex has its own initial Skill-list context budget.
In large Skill collections, the metadata exposed to the model may be shortened or omitted to fit the available budget.
This is another reason to place the essential use case early. A description should not require several sentences of background information before revealing what the Skill does.
These host-specific listing limits do not replace the open specification's 1,024-character constraint on the description field.
How to Test Whether a Skill Description Triggers Correctly
A description can read well and still behave inconsistently in an agent. Testing establishes what happened in a particular environment instead of relying on how convincing the wording sounds.
Two questions need separate answers. Did the agent select the intended Skill? And, after selection, did the Skill complete the task correctly?
A correct selection does not prove that the resulting work was accurate. An agent may also produce an acceptable response without invoking the Skill you expected it to use.
Prepare positive, negative, and ambiguous requests
Start with a small set of requests that clearly require the Skill, requests that clearly do not, and requests whose intent is uncertain.
For a documentation-review Skill, an initial test set might look like this:
| Test request | Expected behavior | Category |
|---|---|---|
| Review this README for missing prerequisites. | Select review Skill | Positive |
| Identify contradictions in this setup guide. | Select review Skill | Positive |
| Audit these installation instructions. | Select review Skill | Positive |
| Translate this README into Spanish. | Do not select review Skill | Negative |
| Write a new README from these requirements. | Do not select review Skill | Negative |
| Summarize this guide without evaluating it. | Do not select review Skill | Negative |
| Improve these installation instructions. | Context-dependent | Ambiguous |
| Make this README better. | Context-dependent | Ambiguous |
These are proposed test cases, not recorded results from Claude Code, Codex, or Cursor.
Compare the original and revised descriptions
To evaluate a rewrite, change the description without unnecessarily changing other parts of the test.
- Save the original Skill and record its version.
- Record the agent host, model, installed Skills, available tools, permissions, and invocation settings.
- Run the test requests in fresh, comparable sessions where the host supports them.
- Record whether the intended Skill was invoked, using host logs or other available evidence.
- Replace only the description, leaving the Skill's instructions unchanged.
- Repeat the same requests under comparable conditions.
- Compare the outcomes and repeat important cases to check for variation.
Do not explicitly invoke the Skill during a test intended to measure automatic selection. Using a slash command or explicit Skill selector changes the behavior being evaluated.
Include related Skills in the test environment when overlap is the concern. A description may appear unambiguous when it is the only available Skill but compete with another description when both are installed.
Interpret the outcomes correctly
Suppose a documentation-review Skill activates for "Translate this README into Spanish." That would be a false positive. The agent selected a workflow the request did not require.
If the Skill is available but is skipped for a clear documentation-audit request, that would be a false negative.
If the Skill activates correctly but overlooks obvious problems in the document, selection succeeded while task execution failed.
If the host does not expose enough information to establish whether the Skill was selected, the result is inconclusive. Do not record it as a success or failure based only on the final answer.
A useful test record distinguishes expected invocation from observed invocation. It should also capture the environment, relevant logs, and any limitations in the evidence.
For a fuller procedure, PomPrompt's guide on how to test AI agent skills covers structural validation, activation tests, task-quality evaluation, and reproducible result logging.
What to Check When a Skill Does Not Activate
Rewriting the description is not always the right first step. Before making another change, identify where the process failed.
Check whether the Skill was discovered
Is the Skill installed in a directory recognized by the host? Does it appear among the available Skills?
If the host cannot discover the Skill, changing its description will not fix the installation or visibility problem.
Check the metadata
Confirm that SKILL.md contains valid YAML frontmatter, the required fields, and the correct Skill name.
The open specification requires both name and description, although individual implementations may tolerate certain omissions.
Claude Code, for example, documents fallback behavior when frontmatter cannot be parsed. A Skill may remain available for manual invocation even when its metadata is not usable for normal selection.
PomPrompt's guide to SKILL.md validation errors and fixes covers these structural problems in more detail.
Check invocation restrictions
A Skill configured for manual-only use should not be expected to activate automatically.
Where supported, try invoking it explicitly. If manual invocation works but automatic selection does not, you have narrowed the problem without proving that the description itself is defective.
Check whether the description was available
Large Skill collections can encounter host-specific metadata budgets. Some descriptions may be shortened or omitted.
This is a discovery or context-management limitation, not necessarily a writing failure.
Check execution separately
The agent may select the correct Skill but fail because required files, permissions, tools, or external data are unavailable.
A technical SEO Skill, for example, cannot establish live crawl findings without relevant website access or supplied evidence.
Use this diagnostic order:
- Was the Skill discovered?
- Was it eligible for invocation?
- Was it selected?
- Could it complete the requested work?
Find the failed stage before changing the next one.
Review Your Description Before Publishing
A final review should focus on a few practical questions. Can someone reading only the Skill's name and description tell what it actually does? Are the relevant inputs and triggering circumstances clear? Would the same wording accidentally fit another Skill in the project?
Check the frontmatter against the applicable specification and review any host-specific invocation settings. Then test requests that should select the Skill alongside related requests that should not.
Keep observed results separate from expectations. If a revised description appears to improve selection in one run, repeat the test before treating that observation as reliable.
The aim is not to make a Skill activate as often as possible. It is to describe its responsibility clearly enough that an agent can select it when the work calls for it and leave it inactive when another workflow is more appropriate.
A precise description gives the agent a useful starting point. A properly designed test tells you whether that starting point works in your environment.
Frequently Asked Questions
How long should an Agent Skill description be?
The open Agent Skills specification permits a nonempty description of up to 1,024 characters. There is no universally established ideal length. Use enough detail to identify the task and its triggering context, but avoid filling the field with procedural instructions or loosely related keywords.
Should every Skill description include negative triggers?
No. Negative conditions are useful when they distinguish closely related workflows, but they are not mandatory. A clear positive description is often sufficient for a narrowly defined Skill.
Why does my Skill activate for unrelated requests?
The description may cover too broad a subject, or several Skills may claim overlapping responsibilities. Compare the competing descriptions and test requests that are related to the topic but outside the intended task. Host-specific selection behavior may also contribute.
Does passing SKILL.md validation mean the Skill will activate?
No. Validation checks the format and applicable metadata requirements. Activation depends on discovery, host configuration, available context, and the user's request. Task execution requires a separate evaluation.
Can the same description work in Claude Code and Codex?
A description that follows the open Agent Skills specification is a reasonable portable starting point. However, Claude Code and Codex have different invocation controls and context-management behavior. Test the Skill separately in each environment where you intend to use it.
Sources and Verification Notes
The following official sources support the technical requirements, platform behavior, and authoring recommendations discussed in this article.
1. Agent Skills, Official Specification. Defines SKILL.md, required metadata, description limits, directory structure, and supporting files.
2. Agent Skills Overview. Explains progressive disclosure, Skill discovery, activation, and execution.
3. Anthropic, Skill Authoring Best Practices. First-party guidance on description specificity, third-person wording, appropriate triggers, and Skill evaluation.
4. Claude Code, Extend Claude with Skills. Documents invocation controls, metadata handling, Skill discovery, and troubleshooting.
5. OpenAI, Build Skills. Documents Codex Skill discovery, explicit and implicit invocation, configuration, and testing recommendations.
6. OpenAI, Rethinking Skills and Prompts for GPT-6 Astra. Published September 11, 2026. Provides engineering guidance on concise Skill descriptions, overlapping triggers, and context usage.
Technical documentation reviewed on October 29, 2026. The example descriptions and test scenarios are illustrative. They are not recorded activation results or performance benchmarks.
Use this in your own Skill.
Draft a SKILL.md file, check basic structure and download the source. Test real host behavior before shipping a Skill.
Try the AI Skill Creator