agentleFS
speakeasy-apispeakeasy-api/sdk-generation-skills/AGENTS.md

sdk-generation-skills

AGENTS.md17 starsChanged 10 months agoApache-2.0View on GitHub

This file provides guidance for AI coding agents working on the Speakeasy Agent Skills repository. It covers how to create, maintain, and improve skills for the Speakeasy CLI. 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: Required sections: Recommended sections: Skills are loaded on-demand. Only the name and description are loaded at startup; full SKILL.md loads when activated. Skills for the Speakeasy CLI…

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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
  1. Very specific:

    Use kebab-case for directory names (e.g., manage-openapi-overlays).

    line 31
  2. Very specific:

    Every skill must have a SKILL.md file with YAML frontmatter.

    line 35
  3. Very specific:

    SKILL.md: Always uppercase, exact filename

    line 67
  4. Very specific:

    Frontmatter name: Must match directory name exactly

    line 68
  5. Distinctive:

    Link to related skills: when appropriate

    line 88
  6. Distinctive:

    All diagnostic and fix skills should use this escalation path:

    line 92
  7. Distinctive:

    Document what the AI should not do:

    line 102
  8. Distinctive:

    Maintain backward compatibility: - Don't change skill behavior unexpectedly

    line 118
  9. Distinctive:

    Update related skills: if behavior changes affect them

    line 119
  10. Distinctive:

    Test trigger phrases work as expected

    line 131
  11. Distinctive:

    Verify command output is parseable

    line 132
  12. Distinctive:

    Use the AgentSkills validator if available:

    line 136
  13. Distinctive:

    Create a branch: - Don't push directly to master

    line 179
  14. Distinctive:

    Update README.md: if adding new skills

    line 181
  15. Distinctive:

    Test before submitting: - Verify skills work as expected

    line 182

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

This file provides guidance for AI coding agents working on the Speakeasy Agent Skills repository. It covers how to create, maintain, and improve skills for the Speakeasy CLI.

Repository 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                # This file (contributor guidance)
├── CLAUDE.md                # Claude-specific contributor guidance
├── README.md                # End-user documentation
└── LICENSE                  # Apache-2.0

Creating 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]. Include phrases like "X", "Y", or "Z".
---

Required sections:

SectionPurpose
# skill-nameTitle matching the directory name
## When to UseTrigger scenarios and example phrases
## CommandThe speakeasy command to run
## ExampleWorking example with explanation

Recommended sections:

SectionPurpose
## PrerequisitesRequired setup, env vars, dependencies
## Decision FrameworkTable mapping situations to actions
## What NOT to DoAnti-patterns the AI should avoid
## Related SkillsLinks to related skills

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:

  1. Always include --output console for structured, parseable output
  2. Pipe large output to reduce context: speakeasy run 2>&1 | tail -50
  3. Reference the Decision Framework for issue categorization
  4. Link to related skills when appropriate

Decision Framework Integration

All diagnostic and fix skills should use this escalation path:

Issue TypeActionExample
Naming issuesFix with overlaysBad operationIds, missing descriptions
Structural issuesAsk the userInvalid $ref, missing schemas
Design issuesProduce strategy documentAuthentication, 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 decisions

Updating Existing Skills

When modifying skills:

  1. Preserve the frontmatter format - Name and description are required
  2. Maintain backward compatibility - Don't change skill behavior unexpectedly
  3. Update related skills if behavior changes affect them
  4. Test with multiple agents - Claude Code, Cursor, Copilot if possible

Testing Skills

Manual Testing

  1. Install the skill locally:
    cp -r skills/{skill-name} ~/.claude/skills/
  2. Test trigger phrases work as expected
  3. Verify command output is parseable

Validation

Use the AgentSkills validator if available:

npx skills validate ./skills/{skill-name}

Common Speakeasy Commands

Reference for skill authors:

CommandPurpose
speakeasy quickstart -s <spec> -t <target>Initialize new project
speakeasy runGenerate SDK from workflow
speakeasy run --output consoleGenerate with structured output
speakeasy lint openapi -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 <specs...> -o <output>Merge multiple specs

Plugin Configuration

plugin.json

{
  "name": "speakeasy",
  "version": "1.0.0",
  "description": "SDK generation and OpenAPI tooling with Speakeasy CLI",
  "skills": "../skills/"
}

The name field sets the namespace prefix for all skills (e.g., speakeasy:start-new-sdk-project).

Adding a New Skill to the Plugin

Skills are auto-discovered from the skills/ directory. Just create the directory and SKILL.md file.

PR Guidelines

When submitting changes:

  1. Create a branch - Don't push directly to master
  2. Write clear commit messages - Describe what changed and why
  3. Update README.md if adding new skills
  4. Test before submitting - Verify skills work as expected

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.