Skill File Conventions
August 7, 2026 · View on GitHub
Detailed guidelines for writing and maintaining agent skills.
File Naming
| Prefix | Category | Example |
|---|---|---|
js- | JavaScript/React | js-profile-react.md |
native- | iOS/Android native | native-turbo-modules.md |
bundle- | Bundling & app size | bundle-barrel-exports.md |
Use lowercase, hyphen-separated names that describe the action or topic.
YAML Frontmatter
Required fields:
---
title: Human-readable title
impact: CRITICAL | HIGH | MEDIUM
tags: comma, separated, searchable, keywords
---
Section Order
- Quick Pattern / Quick Command / Quick Config / Quick Reference — Choose one based on skill type
- When to Use — Conditions that trigger this skill
- Prerequisites — Required tools, versions, setup
- Step-by-Step Instructions — Numbered, actionable steps
- Code Examples — Before/after patterns
- Common Pitfalls — What to avoid
- Related Skills — Links to complementary skills
Quick Section Types
| Type | Use When | Example |
|---|---|---|
| Quick Pattern | Code transformation | Incorrect → Correct code |
| Quick Command | Shell/tool invocation | npx source-map-explorer |
| Quick Config | Configuration change | metro.config.js snippet |
| Quick Reference | Conceptual overview | Summary table |
Writing Style
- Imperative voice: "Run this command" not "You should run this command"
- Scannable: Bullet points over paragraphs
- Specific: Include version numbers, exact commands
- Testable: Every instruction should be verifiable
Images
Store in references/images/ with descriptive names:
devtools-flamegraph.png
bundle-treemap-source-map-explorer.png
Reference with relative paths:

Add a note for agent-runnable visual or device checks:
> **Note**: This skill involves interpreting visual profiler output.
> Use `agent-device` to drive the app, capture snapshots/screenshots, and collect evidence. If it is missing and device verification is needed, install it through the environment's approved/trusted path or ask the user to install or enable it. Profiler-specific GUI analysis may still require exported reports or human review.
Linking
Use relative paths for internal links:
See [bundle analysis](./bundle-analyze-js.md) for verification.
Maintain bidirectional links in Related Skills sections.
Impact Ratings
| Rating | Meaning | User Action |
|---|---|---|
| CRITICAL | Major performance impact | Fix immediately |
| HIGH | Significant improvement | Prioritize |
| MEDIUM | Worthwhile optimization | Address when possible |
SKILL.md Structure
The main SKILL.md file should contain:
- YAML frontmatter with
nameanddescription; addlicensewhen needed. Do not includemetadatain skills bundled for the Codex plugin directory. - Overview — What the skill covers
- Skill Format — Explain the reference file structure
- When to Apply — Trigger conditions
- Priority-Ordered Guidelines — Table with priority, category, impact, prefix
- Quick Reference — Most common commands/patterns
- References — Tables linking to all reference files
- Problem → Skill Mapping — Symptom to solution lookup