aditya-deokar/agent-factory/skill-authoring
Claude Code and agent skill by aditya-deokar/agent-factory
- community
Checking that the SKILL.md file is still in the repository.
Write, audit, and fix agent skills so they load in every harness and survive review. Use when creating a new SKILL.md, when a skill is not being invoked or not discovered, when frontmatter fails validation, or before publishing a skills repo to npm or skills.sh.
Install
npx vskill@latest install aditya-deokar/agent-factory/skill-authoringSKILL.md
The same SKILL.md was published earlier as aditya-deokar/agent-factory/skill-authoring.
Skill authoring
A skill is a folder with a SKILL.md inside it. The folder name and the frontmatter name must match, and the description decides whether the agent ever loads the file. Most broken skills are broken in the description, not the body.
The description is the whole product
The agent sees only name and description until it decides to load the skill. The body might be perfect and never get read. Write the description as a trigger list, not a summary.
Bad, because it describes the skill instead of the moment it applies:
Good, because every clause is a situation the agent can recognise:
Rules that hold up:
- Lead with "Use when". The agent is pattern-matching on situations.
- Name the words a person would actually type. If someone says "screenshot
comparison", that phrase belongs in the description verbatim.
- Say what it does not cover, when the boundary is easy to get wrong.
- Keep it under roughly 500 characters. Longer descriptions get skimmed.
Frontmatter fields
Required by the spec:
| Field | Notes | |
|---|---|---|
name | Lowercase, hyphens. Must equal the folder name. | |
description | Trigger-focused. See above. |
Worth adding on anything you publish:
| Field | Notes | |
|---|---|---|
license | SPDX id. Vendored skills keep the upstream id, not yours. | |
compatibility | Every binary, runtime, credential, and OS assumption. | |
metadata.author | Who owns it. | |
metadata.version | Bump on every behaviour change. | |
allowed-tools | Narrow the blast radius. Claude Code and most others honour it. | |
metadata.internal | true hides it from discovery until INSTALL_INTERNAL_SKILLS=1. |
compatibility is the field people skip and then field bug reports about. Write it as if the reader has none of your tools installed, because they do not.
Layout that gets discovered
The skills CLI walks a fixed set of container directories up to three levels deep. Put skills in skills/<name>/SKILL.md at the repo root. That layout is discovered by every agent the CLI supports.
If no skills turn up in a known container the CLI falls back to a recursive search. Do not rely on that. It is slower and the fallback has bitten people who nested skills under examples/ or docs/.
Keep the body short and link out
The body is loaded into context every time the skill fires. Long bodies cost tokens on every invocation and get skimmed. Anything over roughly 200 lines should move to references/ and be linked from the body.
Good candidates for references/: API schemas, GraphQL queries, error-code tables, long worked examples, provider-specific setup.
Keep in the body: the decision rules, the execution order, the traps.
Paths inside a skill
Never write ./scripts/foo.sh in a skill body. Once installed, the skill lives in .claude/skills/<name>/ or ~/.claude/skills/<name>/ or one of fifty other agent directories, and ./ resolves against the user's repo instead. Tell the agent to resolve the skill directory first, then call scripts through it.
Scripts must be executable and should work on Linux, macOS, and Windows, or say plainly in compatibility which ones they do not support.
Audit checklist
Run this before publishing a skill or when one is not firing.
npx skills add . --listfrom the repo root. Every skill you expect should
be listed. A missing skill means bad frontmatter or a layout the walker never reaches.
- Folder name equals frontmatter
name. - Frontmatter is valid YAML. A colon inside an unquoted description is the
usual culprit. Use > block scalars for anything with punctuation.
- Description leads with a trigger and names real user phrasing.
compatibilitylists every external binary, credential, and OS constraint.- No bare relative paths to scripts in the body.
- Body is under ~200 lines, or the overflow lives in
references/. - Scripts referenced from the body actually exist and are executable.
allowed-toolscovers everything the body tells the agent to run, and
nothing more.
- Vendored skills keep their upstream
LICENSEfile and name the source in
metadata.vendored-from.
When a skill does not fire
Work down this list in order.
- Confirm it is installed where the agent looks:
npx skills list. - Confirm the frontmatter parses. Broken YAML makes the skill invisible with no
error shown to the user.
- Reread the description as the agent sees it. If it describes capability
instead of a triggering situation, rewrite it and try again.
- Check for a second skill with an overlapping description. Two skills
competing for the same trigger means neither fires reliably. Narrow one.
- As a last resort, invoke it explicitly by name to confirm the body works.
That separates a discovery problem from a content problem.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skill-authoring/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aditya-deokar/agent-factory/skill-authoring)