Generate a QA Agent Skill (SKILL.md)
Generate a complete SKILL.md for a QA workflow — frontmatter, precise description, when-to-use / when-NOT-to-use, inputs, step-by-step instructions, output format, examples, anti-patterns, and safety notes.
You are a senior QA engineer and AI agent-skills author. Generate a complete, production-quality SKILL.md file for the QA workflow described below. WORKFLOW: {{WORKFLOW}} PURPOSE: {{PURPOSE}} TARGET_AGENT: {{TARGET_AGENT}} TESTING_STACK: {{TESTING_STACK}} REPOSITORY_CONTEXT: {{REPOSITORY_CONTEXT}} TEAM_STANDARDS: {{TEAM_STANDARDS}} Generate a SKILL.md with the following structure. Output ONLY the SKILL.md content — no explanatory prose outside the file. ``` --- name: <kebab-case-name> description: | <2–5 sentence description that answers: what this skill does, when the agent should use it (specific trigger phrases), and when the agent should NOT use it (explicit exclusions). This field is the activation trigger — make it precise.> version: "1.0.0" metadata: author: <team or author name> tags: [<comma-separated tags>] last-reviewed: "<YYYY-MM>" --- ## When to use - <Specific user request pattern 1 that triggers this skill> - <Specific user request pattern 2> - <Specific user request pattern 3 if applicable> ## When NOT to use - <Explicit exclusion 1 — prevents false positives> - <Explicit exclusion 2> ## Inputs - <Input 1: what the user must provide, e.g. feature description, spec file path, route> - <Input 2> - <Input 3 if applicable> ## Instructions 1. <Step 1 — specific and atomic> 2. <Step 2> 3. <Step 3> 4. <Step 4> 5. <Step 5 if applicable> ## Output format <Describe the expected output: file name, structure, any required sections, any follow-up summary> ## Examples <One short worked example showing the ideal output format or a key decision point> ## Anti-patterns - <Common mistake 1 the agent must avoid> - <Common mistake 2> ## Safety - Do not include credentials, tokens, API keys, or personal data in the skill or its outputs. - Generated code is a draft — review before committing or running in a non-test environment. - <Any workflow-specific safety constraint> ``` After generating, provide a brief review checklist (5 items) a QA engineer should use to verify this skill before committing it.
{{WORKFLOW}}requiredThe name of the QA workflow this skill automates (e.g. 'Playwright test generation', 'API test authoring')
e.g. Playwright TypeScript end-to-end test generation
{{PURPOSE}}requiredWhat the skill should accomplish — the problem it solves
e.g. Generate a complete Page Object Model Playwright test file from a feature description or acceptance criteria
{{TARGET_AGENT}}Which AI coding agent(s) will use this skill
e.g. Claude Code, GitHub Copilot
{{TESTING_STACK}}requiredTest framework, language, and any relevant libraries
e.g. Playwright with TypeScript, @playwright/test, faker-js for test data
{{REPOSITORY_CONTEXT}}Relevant repo details — folder structure, fixtures location, naming conventions
e.g. Tests in tests/, page objects in tests/pages/, fixtures in tests/fixtures/. Spec files named *.spec.ts.
{{TEAM_STANDARDS}}Any team-specific rules the agent must follow (naming, style, review process)
e.g. Always use auto-waiting assertions. Never use page.waitForTimeout(). All tests must be independent and idempotent.
- Description is 2–5 sentences and includes both 'Use when' and 'Do NOT use' trigger language
- Every input the agent needs is listed with a clear description
- Instructions are numbered, sequential, and each step is atomic
- Output format section specifies the exact file name(s), structure, and any follow-up summary
- Safety section explicitly prohibits secrets, credentials, and direct production writes
AI output requires human review before use. These checks are your responsibility.
- A vague description causes the agent to activate the skill at the wrong time or miss it entirely — review the description first
- Missing anti-patterns can cause the agent to produce output that violates team standards
- Skills are executed by real agents — review all scripts/ content before committing