skills
CLAUDE.md18 starsChanged 10 months agoApache-2.0View on GitHub
Claude-specific instructions for working on the Speakeasy Agent Skills repository. Use kebab-case for directory names (e.g., manage-openapi-overlays). Every skill must have a SKILL.md file with YAML frontmatter. See templates/SKILL.template.md for a complete example. Required structure: Spec Reference: Skills follow the agentskills.io specification. Required sections: Recommended sections: Our skills follow the agentskills.io specification. Key constraints: Note: Trigger phrases belong in the description field, not in metadata (which only supports string values, not arrays). Standard section order: Skills are loaded on-demand. Only…
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- speakeasy-api/sdk-generation-skillsword for word, first seen Feb 7, 2026
Other versions1 project uses a version of this.
Word for word · 1
- speakeasy-api/sdk-generation-skills★ 17100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
24 rules. About 0 are common, 12 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 44
Use kebab-case for directory names (e.g., manage-openapi-overlays).
- Very specific: line 48
Every skill must have a SKILL.md file with YAML frontmatter.
- Very specific: line 120
SKILL.md: Always uppercase, exact filename
- Very specific: line 121
Frontmatter
name: Must match directory name exactly - Very specific: line 141
Link to related skills: when appropriate
- Very specific: line 145
All diagnostic and fix skills should use this escalation path:
- Distinctive: line 155
Document what the AI should not do:
- Distinctive: line 172
Maintain backward compatibility: - Don't change skill behavior unexpectedly
- Very specific: line 173
Update related skills: if behavior changes affect them
- Distinctive: line 178
When testing or demonstrating commands:
- Very specific: line 234
All skills are namespaced under speakeasy: via .claude-plugin/plugin.json:
- Distinctive: line 274
Check if a related skill exists
- Distinctive: line 276
Follow the template structure
- Distinctive: line 278
Add decision framework if diagnostic
- Distinctive: line 279
Update README.md skill table
- Distinctive: line 283
Read the current skill
- Very specific: line 286
Check for breaking changes to related skills
- Very specific: line 290
Check the description field has trigger phrases
- Distinctive: line 291
Ensure phrases match how users ask
- Distinctive: line 292
Add more keyword variations
- Distinctive: line 293
Test with actual trigger phrases
- Distinctive: line 316
Create a branch: - Don't push directly to master
- Very specific: line 318
Update README.md: if adding new skills
- Very specific: line 319
Test before submitting: - Verify skills work as expected
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
Claude-specific instructions for working on the Speakeasy Agent Skills repository.
Quick Reference
# Create a new skill
mkdir skills/{skill-name}
cp templates/SKILL.template.md skills/{skill-name}/SKILL.md
# Test a skill locally
cp -r skills/{skill-name} ~/.claude/skills/
# Reload Claude Code and test trigger phrasesRepository Structure
speakeasy-api/skills/
├── .claude-plugin/ # Claude Code plugin configuration
│ ├── plugin.json # Plugin manifest (namespace: "speakeasy")
│ └── marketplace.json # Marketplace metadata
├── skills/ # Skill definitions
│ └── {skill-name}/
│ └── SKILL.md # Skill instructions
├── templates/ # Skill templates
│ └── SKILL.template.md # Template for new skills
├── AGENTS.md # General agent guidance
├── CLAUDE.md # This file (Claude-specific guidance)
├── README.md # End-user documentation
└── LICENSE # Apache-2.0Creating a New Skill
1. Directory Structure
mkdir skills/{skill-name}Use kebab-case for directory names (e.g., manage-openapi-overlays).
2. SKILL.md Format
Every skill must have a SKILL.md file with YAML frontmatter. See templates/SKILL.template.md for a complete example.
Required structure:
---
name: skill-name
description: Use when [trigger condition]. Triggers on "X", "Y", or "Z".
license: Apache-2.0
---Spec Reference: Skills follow the agentskills.io specification.
Required sections:
| Section | Purpose |
# skill-name | Title matching the directory name |
## When to Use | Trigger scenarios and example phrases |
## Inputs | Table of required/optional inputs |
## Outputs | Table of what the skill produces |
## Command | The speakeasy command to run |
## Example | Working example with explanation |
Recommended sections:
| Section | Purpose |
## Prerequisites | Required setup, env vars, dependencies |
## Decision Framework | Table mapping situations to actions |
## What NOT to Do | Anti-patterns the AI should avoid |
## Troubleshooting | Common errors and solutions |
## Related Skills | Links to related skills (always last) |
agentskills.io Spec Compliance
Our skills follow the agentskills.io specification. Key constraints:
| Field | Constraint |
name | Max 64 chars, lowercase + hyphens only, must match directory name |
description | Max 1024 chars, describe what AND when to use (include trigger phrases here) |
license | Simple string (we use Apache-2.0) |
metadata | String keys to string values only (no arrays) |
compatibility | Plain string, max 500 chars (optional) |
| Body content | No format restrictions, keep under 500 lines |
Note: Trigger phrases belong in the description field, not in metadata (which only supports string values, not arrays).
Standard section order:
1. Frontmatter (name, description)
2. # Title
3. Intro paragraph
4. ## When to Use
5. ## Inputs
6. ## Outputs
7. ## Prerequisites (if needed)
8. ## Command
9. ## Example
10. ... other content sections ...
11. ## Decision Framework (if needed)
12. ## What NOT to Do (if needed)
13. ## Troubleshooting (if needed)
14. ## Related Skills (always last)3. Naming Conventions
- Directory:
kebab-case(e.g.,start-new-sdk-project) - SKILL.md: Always uppercase, exact filename
- Frontmatter
name: Must match directory name exactly
Skill Design Principles
Context Efficiency
Skills are loaded on-demand. Only the name and description are loaded at startup; full SKILL.md loads when activated.
- Keep SKILL.md under 500 lines - Large files waste context
- Write specific descriptions - Include trigger phrases for better activation
- Use progressive disclosure - Reference supporting files for details
- Prefer commands over inline code - Command output is smaller than code
Speakeasy CLI Patterns
Skills for the Speakeasy CLI should follow these patterns:
- Always include
--output consolefor structured, parseable output - Pipe large output to reduce context:
speakeasy run 2>&1 | tail -50 - Reference the Decision Framework for issue categorization
- Link to related skills when appropriate
Decision Framework Integration
All diagnostic and fix skills should use this escalation path:
| Issue Type | Action | Example |
| Naming issues | Fix with overlays | Bad operationIds, missing descriptions |
| Structural issues | Ask the user | Invalid $ref, missing schemas |
| Design issues | Produce strategy document | Authentication, API restructuring |
Anti-Patterns for Skills
Document what the AI should not do:
## What NOT to Do
- **Do NOT** modify source OpenAPI specs directly
- **Do NOT** disable lint rules to hide errors
- **Do NOT** assume you can fix structural problems
- **Do NOT** proceed without user input on design decisionsModifying Existing Skills
When modifying skills:
- Read the skill first - Understand current behavior before changing
- Preserve the frontmatter format - Name and description are required
- Maintain backward compatibility - Don't change skill behavior unexpectedly
- Update related skills if behavior changes affect them
- Keep under 500 lines - Large skills waste context
Running Speakeasy Commands
When testing or demonstrating commands:
# Use --output console for structured output
speakeasy run --output console
# Pipe large output to reduce context
speakeasy lint openapi -s spec.yaml 2>&1 | tail -50
# Filter for errors only
speakeasy lint openapi -s spec.yaml 2>&1 | grep -E "(error|warning)"Skill Writing Guidelines
Description Field
The description in frontmatter is critical for skill activation. Include:
- Trigger condition: "Use when X"
- Trigger phrases: Exact phrases users might say
- Keywords: Terms that should activate this skill
Good example - see skills/diagnose-generation-failure/SKILL.md
Bad: description: Helps with generation issues (too vague, no trigger phrases)
Template Sections
See templates/SKILL.template.md for the complete structure including:
- Inputs/Outputs tables
- Decision Framework table
- What NOT to Do section
- Troubleshooting section
- Related Skills links
Common Speakeasy Commands
Reference for skill authors:
| Command | Purpose |
speakeasy quickstart -s <spec> -t <target> | Initialize new project |
speakeasy run | Generate SDK from workflow |
speakeasy run --output console | Generate with structured output |
speakeasy lint openapi --non-interactive -s <spec> | Validate OpenAPI spec |
speakeasy suggest operation-ids -s <spec> | AI suggestions for operation IDs |
speakeasy overlay apply -s <spec> -o <overlay> | Apply overlay to spec |
speakeasy overlay validate -o <overlay> | Validate overlay file |
speakeasy merge -s <spec1> -s <spec2> -o <output> | Merge multiple specs |
speakeasy pull --list --format json | List registry sources |
Plugin Configuration
Namespace
All skills are namespaced under speakeasy: via .claude-plugin/plugin.json:
{
"name": "speakeasy",
"version": "1.0.0",
"description": "SDK generation and OpenAPI tooling with Speakeasy CLI",
"skills": "../skills/"
}Skills appear as speakeasy:skill-name in Claude Code.
Adding Skills
Skills are auto-discovered from the skills/ directory. Just create the directory and SKILL.md file.
Testing Skills
Local Testing
# Copy to Claude's skills directory
cp -r skills/{skill-name} ~/.claude/skills/
# Reload Claude Code and test trigger phrasesValidation
Manual validation checklist:
- Frontmatter has
nameanddescriptionfields - Description includes trigger phrases ("Use when...")
- Commands match actual CLI (
speakeasy <command> --helpto verify) - Related skills links are valid
Common Tasks
Add a new skill for a speakeasy command
- Check if a related skill exists
- Create
skills/{command-name}/SKILL.md - Follow the template structure
- Include trigger phrases in description
- Add decision framework if diagnostic
- Update README.md skill table
Update an existing skill
- Read the current skill
- Make minimal changes
- Preserve frontmatter format
- Check for breaking changes to related skills
Fix a skill that isn't triggering
- Check the
descriptionfield has trigger phrases - Ensure phrases match how users ask
- Add more keyword variations
- Test with actual trigger phrases
Commit Guidelines
# Create a branch first
git checkout -b feat/add-new-skill
# Commit with clear message
git commit -m "Add skill for [purpose]
- Created skills/{name}/SKILL.md
- Added trigger phrases for [scenarios]
- Linked to related skills"
# Push and create PR
git push -u origin feat/add-new-skillPR Guidelines
When submitting changes:
- Create a branch - Don't push directly to master
- Write clear commit messages - Describe what changed and why
- Update README.md if adding new skills
- Test before submitting - Verify skills work as expected
File Reference
| File | Purpose |
skills/*/SKILL.md | Skill definitions |
templates/SKILL.template.md | Template for new skills |
.claude-plugin/plugin.json | Plugin manifest (namespace) |
README.md | End-user documentation |
AGENTS.md | General agent guidance |
CLAUDE.md | This file |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

