| agent | agent |
|---|---|
| description | Create a new skill (SKILL.md) for VS Code Copilot. Analyzes existing skills for patterns, guides through design decisions, creates the skill file with supporting resources, and validates against best practices. |
Create a new skill for VS Code Copilot. This prompt guides the creation of reusable, domain-specific knowledge for test automation, end-to-end testing, and quality assurance workflows. The user's message following this prompt may contain specific skill requirements or a description of the desired skill.
If the user did not provide specific requirements, ask clarifying questions to determine the skill's purpose, target domain, workflows, and supporting resources. Use the following guidelines to design and create the skill:
-
Research existing skills: Analyze skills in the
skills/directory for patterns and conventions:- Naming conventions and folder structure
- Frontmatter fields and description format
- Body structure (progressive disclosure: principles, workflows, templates, references)
- How skills reference supporting files (scripts/, references/, assets/)
- Testing domain specificity β how existing skills approach test strategies
-
Clarify requirements: Determine the skill's design parameters with the user:
- Core purpose and target domain (e.g., test automation strategy, Playwright patterns, CI/CD testing)
- What triggers activation β when should agents load this skill?
- Primary workflows and step-by-step processes the skill teaches
- Supporting resources needed (templates, code examples, reference documentation)
- If the user's message already contains requirements, confirm understanding before proceeding
-
Design the skill: Make design decisions based on research findings and user input:
- Skill name in gerund form (e.g.,
testing-playwright-patterns,implementing-e2e-workflows, note2e-testing-guide) - Folder structure and file organization (SKILL.md, supporting templates/references/examples)
- Progressive disclosure tiers: discovery (~100 tokens), activation (< 500 lines), resources (as needed)
- Domain focus β how this skill fits within the testing ecosystem and relates to other skills
- Max body size β keep SKILL.md under 500 lines; move detailed content to separate files in references/ or scripts/
- Skill name in gerund form (e.g.,
-
Create the skill files: Build the skill directory and SKILL.md following established conventions:
- Create folder:
skills/<skill-name>/ - Create
SKILL.mdwith YAML frontmatter (name, description, user-invokable) - Create supporting directories as needed:
references/,scripts/,assets/ - Structure SKILL.md body: principles, workflows, templates, reference sections
- Apply progressive disclosure β link to supporting files rather than embedding everything
- Reference supporting files with descriptive names and relative paths
- Create folder:
-
Populate supporting resources: Create supporting files if the skill is complex:
- references/ β detailed documentation, decision matrices, rule sets, checklists
- scripts/ β executable code, CLI tools, test templates
- assets/ β configuration files, sample data, downloadable resources
- Keep file references shallow (one level deep from SKILL.md)
-
Review and validate: Review the created skill against best practices:
- Verify gerund naming convention is followed (e.g.,
creating-agents,testing-patterns) - Confirm SKILL.md frontmatter has all required fields:
name,description,user-invokable - Check folder name matches the
namefield in frontmatter - Verify structural consistency with existing skills in the workspace
- Ensure supporting files are referenced and organized appropriately
- Validate that the skill is domain-coherent and not mixing unrelated workflows
- Confirm the skill adds value without duplicating existing skills
- Verify gerund naming convention is followed (e.g.,
- Naming conventions: Use gerund form (verb + -ing):
testing-playwright-e2e,implementing-component-tests,analyzing-test-coverage - Skill names vs. topics: A skill name describes an activity ("creating agents"), not a topic ("agents")
- Max name length: 64 characters, aim for under 20 (will be used as
/slash-commands) - File names: Use descriptive kebab-case names:
assertion-patterns.md,ci-integration.md, notdoc1.md - Supporting files: Move detailed reference material out of SKILL.md to keep it under 500 lines
- YAML frontmatter: Required fields are
name,description,user-invokable(set tofalsefor agent-loaded skills) - Description field: Concise, action-oriented. Should explain what workflows the skill enables, not just the topic.
If the user attaches files, provides skill descriptions, or references existing patterns, use them as input for skill design.
When in doubt about design decisions (naming, structure, scope), ask the user for clarification rather than guessing. Ask one clarifying question at a time for better conversational flow.