SKILL.md Template: Copy-Paste, Generate and Download
A ready SKILL.md template with correct YAML frontmatter — copy the starter below, fill the live generator, or grab a domain-specific template. Everything here follows the open standard, so it works in Claude Code, Codex, and Gemini CLI.
The minimal SKILL.md template
Start from this copy-paste skeleton. Replace the placeholders and you have a valid skill in every agent that follows the open standard:
---
name: my-skill
description: What this skill does and when the agent should use it.
---
# My skill
Step-by-step instructions the agent should follow:
1. ...
2. ...
3. ...Save it as SKILL.md inside a folder with the same name as name — my-skill/SKILL.md — and put that folder in your agent's skills directory.
my-skill/
- SKILL.mdmetadata + instructionsrequired
- scripts/code the agent can runoptional
- references/docs read only when neededoptional
- assets/templates, images, dataoptional
SKILL.md
Frontmatter · always visible
---
name: my-skill
description: What it does + when to use it
---
Body · read when the skill fires
# Instructions
1. …
2. …
SKILL.md frontmatter fields explained
The open standard defines two required fields and four optional ones:
| Field | Required? | Rules and tips |
|---|---|---|
name | Yes | 1–64 characters: lowercase letters, numbers, and hyphens; no leading, trailing, or double hyphens; same as the folder name |
description | Yes | 1–1,024 characters. Say what the skill does and when to use it, with the words a user would type |
license | No | A license name such as MIT, or the name of a bundled license file |
compatibility | No | Up to 500 characters on what the skill needs — a product, packages, network access. Most skills skip it |
metadata | No | Free-form key–value pairs. Put author and version here |
allowed-tools | No | Experimental. Tools the skill may use without asking — a pre-approval, not a restriction |
allowed-tools doesn't sandbox anything
In Claude Code, allowed-tools only pre-approves the listed tools for the turn that runs the skill; every other tool stays callable under your normal permission rules. Use it to save prompts, never as a security boundary.
Agent-specific extras. Agents add their own fields on top of the standard. Claude Code reads disable-model-invocation (manual-only skills), user-invocable, when_to_use, and paths, among others; Codex reads an optional agents/openai.yaml file inside the skill folder for a display name, icon, and invocation policy. Claude Code silently skips fields it doesn't recognize, and other agents simply don't use another agent's extras. For strict, validator-clean portability, the standard's home for anything extra is metadata.
ProfessorGPT catalog fields. If you publish to ProfessorGPT, add category (one of our categories, such as coding, devops, security, writing, or productivity) and tags (3–6 lowercase keywords, hyphenated). They decide where your skill appears in the catalog; without a category it lands in "other".
A fuller, publishable SKILL.md
The same skeleton with the optional fields filled in — valid in any agent, and ready for the ProfessorGPT catalog:
---
name: code-reviewer
description: Reviews a diff for bugs, security issues, and style. Use when the user asks to review code or a pull request.
license: MIT
metadata:
author: your-handle
version: "1.0.0"
category: coding
tags: [code-review, security, pull-requests]
---
# Code reviewer
1. Read the diff and note the intent of the change.
2. Flag correctness bugs first, then security, then style.
3. Give each finding a severity and a file:line reference.
4. Suggest a concrete fix for anything blocking.Generate and download your SKILL.md
Fill the fields below to build a valid SKILL.md live, then copy it or download the file:
Fill the fields — your SKILL.md updates live. Frontmatter follows the open standard (lowercase, kebab-case name; description states what + when).
---
name: my-skill
description: Describe what this skill does and when it should trigger.
---
# My Skill
Add step-by-step instructions the agent should follow.
Domain-specific templates
Generic skeletons are everywhere; these vertical starters are what most people actually need. Each one says when not to fire, so it doesn't compete with your other skills.
Security review
---
name: security-review
description: Audits a code change for injection, auth, secrets, and unsafe defaults. Use when reviewing a diff or PR for security. Not for general style reviews.
---
# Security review
1. Check inputs for injection: SQL, shell, path, template.
2. Verify authorization on every new endpoint and mutation.
3. Flag hardcoded secrets and unsafe default configs.
4. Report each finding with severity and a file:line reference.Customer support reply
---
name: support-reply
description: Drafts an on-brand support reply from a customer ticket. Use when answering a customer message. Not for internal notes.
---
# Support reply
1. Restate the customer's issue in one sentence.
2. Give the fix or next step in plain language.
3. Keep the tone warm, concise, and free of jargon.
4. End with a clear call to action.E-commerce product description
---
name: product-description-writer
description: Writes SEO-friendly e-commerce product descriptions from a spec sheet. Use when drafting or rewriting a product listing.
---
# Product description writer
1. Read the product's attributes, materials, and key benefits.
2. Write a one-line hook, then 2–3 benefit sentences, then a bulleted spec list.
3. Use the target keyword naturally in the first sentence; no keyword stuffing.
4. Keep the tone on-brand and end with a short call to action.SaaS onboarding
---
name: saas-onboarding-guide
description: Drafts a step-by-step onboarding message for a new SaaS user. Use when welcoming a signup or explaining first setup.
---
# SaaS onboarding guide
1. Identify the user's plan and primary use case.
2. Give the three highest-value first actions, in order.
3. Link each step to the relevant setting or doc.
4. Close with the tip that drives the "aha" moment and an offer to help.Multi-model compatibility
Every template here is model-agnostic. The same folder installs into each agent's skills directory:
- Claude Code~/.claude/skills/<name>/
- Codex~/.agents/skills/<name>/
- Gemini CLI~/.gemini/skills/<name>/
…and other agents that read the open standard, such as GitHub Copilot, Cursor, and VS Code.
See the Claude, Codex, and Gemini CLI guides for project folders and the exact steps per tool.
Common frontmatter mistakes
The mistakes that break skills most often
namedoesn't match the folder, or uses spaces, capitals, or underscores.- A vague
description("helps with code") — the agent can't tell when to use it. State what and when. - The opening
---isn't the first line of the file, or a colon has no space after it — the YAML won't parse. - The body runs past ~500 lines — move long references into a
references/folder and link to them.
Prefer a wizard?
The Skill Builder walks you through the same fields with validation, or browse real skills to adapt one.
Before you save the template
- Folder name and
nameare identical descriptionanswers what and when- Optional fields only where they add something
authorandversionsit undermetadata- Tested with one real request