Generate SKILL.md Frontmatter and Description
Generate the YAML frontmatter block for a SKILL.md file — including the most critical field: a precise, scoped description with explicit trigger and exclusion language that the agent uses for activation.
You are an expert in writing Agent Skills for AI coding agents. Generate the YAML frontmatter block for a SKILL.md file. SKILL_NAME: {{SKILL_NAME}} WHAT_IT_DOES: {{WHAT_IT_DOES}} TRIGGER_REQUESTS: {{TRIGGER_REQUESTS}} EXCLUSIONS: {{EXCLUSIONS}} AUTHOR: {{AUTHOR}} TAGS: {{TAGS}} Generate the frontmatter block following these rules: 1. name: kebab-case, unique, describes the skill precisely 2. description: the most important field — the agent reads ONLY this during the Discovery stage to decide whether to activate. Write it as follows: - Sentence 1: What this skill does (specific output, not vague purpose) - Sentence 2: "Use when [specific trigger phrases the user might type]" - Sentence 3: "Do NOT use for [explicit exclusions — prevents false positives]" - Total: 2–5 sentences. No longer. No shorter than 2. 3. version: "1.0.0" 4. metadata: include author, tags, and last-reviewed Output the frontmatter block in a fenced code block, then explain: - Why the description will activate correctly - Which phrase(s) in the description are the primary trigger - Which phrase(s) prevent false positives - One improvement the author could make to further tighten the scope Do not generate the full SKILL.md body — frontmatter only.
{{SKILL_NAME}}requiredThe kebab-case name for this skill
e.g. playwright-test-generator
{{WHAT_IT_DOES}}requiredOne sentence describing the specific output this skill produces
e.g. Generates Playwright TypeScript end-to-end tests from a feature description or acceptance criteria
{{TRIGGER_REQUESTS}}requiredSpecific phrases a user might type that should activate this skill
e.g. write a Playwright test, generate e2e coverage, scaffold a spec file
{{EXCLUSIONS}}requiredTask types this skill should NOT handle (prevents false positives)
e.g. unit tests, API tests, component tests, Cypress, Selenium
{{AUTHOR}}Author or team name for the metadata block
e.g. QA Platform Team
{{TAGS}}Comma-separated tags for the metadata block
e.g. playwright, e2e, test-generation, typescript
- Description is 2–5 sentences — not a one-liner, not a paragraph
- Description includes 'Use when' language with specific trigger phrases
- Description includes 'Do NOT use' or 'Do NOT use for' language with specific exclusions
- name is in kebab-case and uniquely describes the skill
- tags reflect the workflow, not generic terms like 'testing' alone
AI output requires human review before use. These checks are your responsibility.
- A description that is too general will cause the agent to activate this skill for unrelated tasks
- A description that is too restrictive (exact phrase match only) may cause missed activations for paraphrased requests