alpha

Sets guidelines for writing good Agent Skills for GitHub Copilot: folder layout, SKILL.md frontmatter, writing the body, bundled resources and quality checks.
description: 'Guidelines for creating high-quality Agent Skills for GitHub Copilot'
applyTo: '/skills//SKILL.md'
Instructions for creating effective and portable Agent Skills that enhance GitHub Copilot with specialized capabilities, workflows, and bundled resources.
Agent Skills are self-contained folders with instructions and bundled resources that teach AI agents specialized capabilities. Unlike custom instructions (which define coding standards), skills enable task-specific workflows that can include scripts, examples, templates, and reference data.
Key characteristics:
Skills are stored in specific locations:
| Location | Scope | Recommendation |
|----------|-------|----------------|
| .github/skills/<skill-name>/ | Project/repository | Recommended for project skills |
| .claude/skills/<skill-name>/ | Project/repository | Legacy, for backward compatibility |
| ~/.copilot/skills/<skill-name>/ | Personal (user-wide) | Recommended for personal skills |
| ~/.agents/skills/<skill-name>/ | Personal (user-wide) | Alternative supported personal skills directory |
| ~/.claude/skills/<skill-name>/ | Personal (user-wide) | Legacy, for backward compatibility |
Each skill must have its own subdirectory containing at minimum a SKILL.md file.
---
name: webapp-testing
description: 'Toolkit for testing local web applications using Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, check for visual regressions, or view browser console logs. Supports Chrome, Firefox, and WebKit browsers.'
license: Complete terms in LICENSE.txt
---
| Field | Required | Constraints |
|-------|----------|-------------|
| name | Yes | Lowercase, hyphens for spaces, max 64 characters (e.g., webapp-testing) |
| description | Yes | 10–1024 characters, clear capabilities AND use cases, wrapped in single quotes |
| license | No | Reference to LICENSE.txt (e.g., Complete terms in LICENSE.txt) or SPDX identifier |
CRITICAL: The description field is the PRIMARY mechanism for automatic skill discovery. Copilot reads ONLY the name and description to decide whether to load a skill. If your description is vague, the skill will never be activated.
What to include in description:
Good description:
description: 'Toolkit for testing local web applications using Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, check for visual regressions, or view browser console logs. Supports Chrome, Firefox, and WebKit browsers.'
Poor description:
description: 'Web testing helpers'
The poor description fails because:
The body contains detailed instructions that Copilot loads AFTER the skill is activated. Recommended sections:
| Section | Purpose |
|---------|---------|
| # Title | Brief overview of what this skill enables |
| ## When to Use This Skill | List of scenarios (reinforces description triggers) |
| ## Prerequisites | Required tools, dependencies, environment setup (if applicable) |
| ## Step-by-Step Workflows | Numbered steps for repeatable procedures (build, deploy, setup) |
| ## Gotchas | Proactive warnings about non-obvious behavior ("never do X because Y") |
| ## Troubleshooting | Reactive fixes for known issues ("if you see X, try Y") |
| ## References | Links to bundled docs or external resources |
Not every skill needs every section. Skip ## Prerequisites if there are no external dependencies. Skip ## Step-by-Step Workflows if the skill is purely advisory. Include ## Gotchas whenever the skill involves external tools, APIs, or platform-specific behavior.
For content quality principles (what to include and what to leave out), see [Writing High-Impact Skills](#writing-high-impact-skills) below.
# Title — One sentence stating what the skill enables. Avoid generic phrasing; be specific about the domain.
## When to Use This Skill — A bullet list of concrete scenarios that reinforce the description triggers. This helps Copilot confirm it loaded the right skill.
## When to Use This Skill
- User asks to test a web application in a browser
- User needs to capture screenshots for visual regression testing
- User wants to debug frontend behavior with browser console logs
## Prerequisites — Only include if the skill requires tools, services, or configuration that Copilot cannot assume are available. List exact install commands.
## Prerequisites
- [Playwright](https://playwright.dev/) installed: `npm install -D @playwright/test`
- At least one browser engine installed: `npx playwright install chromium`
## Step-by-Step Workflows — Numbered steps for repeatable procedures where sequence matters (build, deploy, environment setup). Describe WHAT to accomplish at each stage, not hardcoded file paths or line numbers — steps should be adaptable to different project structures. For complex workflows (>5 steps), split into references/ files and link to them.
## Step-by-Step Workflows
### Deploy to Staging
1. Build the project: `npm run build`
2. Run pre-deploy validation: `npm run validate`
3. Deploy to staging: `npm run deploy -- --env staging`
4. Verify the health endpoint returns 200
## Gotchas — Proactive warnings that prevent mistakes. Document non-obvious defaults, API quirks, version-specific behavior, and common traps. Bold the key constraint, then explain why.
## Gotchas
- **Never** call `billing.charge()` without checking `user.hasPaymentMethod` first —
the SDK throws an unrecoverable error instead of returning a failure.
- The `currency` field expects ISO 4217 codes, not display names.
Copilot often writes "dollars" instead of "USD".
## Troubleshooting — Reactive fixes for known issues, presented as a table of symptom → solution pairs. Each row should be self-contained and actionable.
## Troubleshooting
| Issue | Solution |
|-------|----------|
| Plugin won't connect | Check servers are running (`npm run start:all`) |
| Browser blocks localhost | Allow local network access, or try a different browser |
| Tool execution times out | Ensure the plugin UI is open and shows "Connected" |
## References — Links to bundled docs in references/, external documentation, or related skills. Use relative paths for bundled files.
Skills can include additional files that Copilot accesses on-demand:
| Folder | Purpose | Loaded into Context? | Example Files |
|--------|---------|---------------------|---------------|
| scripts/ | Executable automation that performs specific operations | When executed | helper.py, validate.sh, build.ts |
| references/ | Documentation the AI agent reads to inform decisions | Yes, when referenced | api_reference.md, schema.md, workflow_guide.md |
| assets/ | Static files used AS-IS in output (not modified by the AI agent) | No | logo.png, brand-template.pptx, custom-font.ttf |
| templates/ | Starter code/scaffolds that the AI agent MODIFIES and builds upon | Yes, when referenced | viewer.html (insert algorithm), hello-world/ (extend) |
.github/skills/my-skill/
├── SKILL.md # Required: Main instructions
├── LICENSE.txt # Recommended: License terms (Apache 2.0 typical)
├── scripts/ # Optional: Executable automation
│ ├── helper.py # Python script
│ └── helper.ps1 # PowerShell script
├── references/ # Optional: Documentation loaded into context
│ ├── api_reference.md
│ ├── workflow-setup.md # Detailed workflow (>5 steps)
│ └── workflow-deployment.md
├── assets/ # Optional: Static files used AS-IS in output
│ ├── baseline.png # Reference image for comparison
│ └── report-template.html
└── templates/ # Optional: Starter code the AI agent modifies
├── scaffold.py # Code scaffold the AI agent customizes
└── config.template # Config template the AI agent fills in
LICENSE.txt: When creating a skill, download the Apache 2.0 license text from https://www.apache.org/licenses/LICENSE-2.0.txt and save as
LICENSE.txt. Update the copyright year and owner in the appendix section.
Assets are static resources consumed unchanged in the output:
logo.png that gets embedded into a generated documentreport-template.html copied as output formatcustom-font.ttf applied to text renderingTemplates are starter code/scaffolds that the AI agent actively modifies:
scaffold.py where the AI agent inserts logicconfig.template where the AI agent fills in values based on user requirementshello-world/ project directory that the AI agent extends with new featuresRule of thumb: If the AI agent reads and builds upon the file content → templates/. If the file is used as-is in output → assets/.
Use relative paths to reference files within the skill directory:
## Available Scripts
Run the [helper script](./scripts/helper.py) to automate common tasks.
See [API reference](./references/api_reference.md) for detailed documentation.
Use the [scaffold](./templates/scaffold.py) as a starting point.
Skills use three-level loading for efficiency:
| Level | What Loads | When |
|-------|------------|------|
| 1. Discovery | name and description only | Always (lightweight metadata) |
| 2. Instructions | Full SKILL.md body | When request matches description |
| 3. Resources | Scripts, examples, docs | Only when Copilot references them |
This means:
When including scripts, prefer cross-platform languages:
| Language | Use Case |
|----------|----------|
| Python | Complex automation, data processing |
| pwsh | PowerShell Core scripting |
| Node.js | JavaScript-based tooling |
| Bash/Shell | Simple automation tasks |
Best practices:
--help flag)Include scripts in your skill when:
Scripts enable evolution: even simple operations benefit from being implemented as scripts when they may grow in complexity, need consistent behavior across invocations, or require future extensibility.
--force flags only for destructive operationsDo not include information Copilot already knows from its training data — standard language syntax, common library usage, or well-documented API behavior. Every line in a skill should teach something Copilot would otherwise get wrong or miss entirely. If the information is on the first page of official docs, leave it out. Focus on internal conventions, non-obvious defaults, version-specific quirks, and domain-specific workflows that change Copilot's behavior.
All skill descriptions share a limited portion of the available context window during discovery. Your description competes with every other installed skill for Copilot's attention. Keep descriptions concise and keyword-dense — aim for the shortest text that still communicates WHAT, WHEN, and relevant KEYWORDS. Verbose descriptions don't just waste your own budget; they reduce visibility for every other skill in the system.
The ## Gotchas section is consistently the most valuable part of any skill — proactive warnings that prevent mistakes before they happen. This is distinct from ## Troubleshooting, which provides reactive fixes after something goes wrong. Treat gotchas as a living section: every time Copilot produces a wrong result, add a gotcha. Bold the key constraint, then explain why (e.g., "Never call X() without checking Y first — the SDK throws an unrecoverable error").
Use numbered steps only for concrete, repeatable procedures (build, deploy, environment setup) where the sequence genuinely matters. For open-ended tasks (debugging, refactoring, code review), provide decision criteria and reference information instead — Copilot needs flexibility to adapt to the user's specific situation.
# ❌ Too rigid
1. Open the file at src/api/handlers.ts
2. Find the function named processOrder
3. Add a try-catch block around lines 45-60
# ✅ Flexible
When fixing error handling in API handlers:
- Ensure all database operations have proper error handling
- Use the project's ErrorHandler utility (see ./references/error-handling.md)
- Log errors with enough context to debug in production
If your SKILL.md exceeds ~200 lines, consider splitting detailed content into subdirectories. This reduces context consumption — Copilot loads only the core instructions initially and pulls reference material on demand.
## Reference Files
- `references/api.md` — complete function signatures and return types
- `references/error-codes.md` — every error code this service can return
- `scripts/validate.sh` — run this after making changes to verify correctness
Read these files as needed for your current task. Do not read them all upfront.
Document parameters clearly:
| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| `--input` | Yes | - | Input file or URL to process |
| `--action` | Yes | - | Action to perform |
| `--verbose` | No | `false` | Enable verbose output |
When executing multi-step workflows, create a TODO list where each step references the relevant documentation:
## TODO
- [ ] Step 1: Configure environment - see [workflow-setup.md](./references/workflow-setup.md#environment)
- [ ] Step 2: Build project - see [workflow-setup.md](./references/workflow-setup.md#build)
- [ ] Step 3: Deploy to staging - see [workflow-deployment.md](./references/workflow-deployment.md#staging)
- [ ] Step 4: Run validation - see [workflow-deployment.md](./references/workflow-deployment.md#validation)
- [ ] Step 5: Deploy to production - see [workflow-deployment.md](./references/workflow-deployment.md#production)
This ensures traceability and allows resuming workflows if interrupted.
Before publishing a skill:
SKILL.md has valid frontmatter with name and descriptionname is lowercase with hyphens, ≤64 charactersdescription clearly states WHAT it does, WHEN to use it, and relevant KEYWORDSdescription is concise and keyword-dense (respects context budget)## Gotchas section present if skill involves non-obvious behavior, API quirks, or common trapsreferences/ at ~200 lines; 500 is the hard maximum)references/ folder with clear links from SKILL.md© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com


Sea turtle carrying floating film studio island
Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.
image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost
Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.
video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

Cozy Pixel Art Farm Island Village
Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.
image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape
Loading reviews…
Loading comments…