Agent skill

Openapi Spec Patterns

by revfactory in revfactory/harness-100

OpenAPI 3.x spec analysis patterns, schema normalization, authentication method mapping, pagination/error pattern extraction, and GraphQL/gRPC spec interpretation guide.

Apache-2.0Auto-check passedBackend & APIs

Install Openapi Spec Patterns

skills CLI
$ npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install revfactory/harness-100 openapi-spec-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/35-api-client-generator/.claude/skills/openapi-spec-patterns .claude/skills/openapi-spec-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
openapi-spec-patterns
GitHub stars
1.3k
Token cost
~1.6k tokens
SKILL.md length
207 words
Files
1
Skills in repo
464
Repo updated
First seen
Licence
Apache-2.0

At a glance

OpenAPI 3.x spec analysis patterns, schema normalization, authentication method mapping, pagination/error pattern extraction, and GraphQL/gRPC spec interpretation guide.

  • Works in 4 steps: Endpoint Grouping → Authentication Method Mapping → Pagination Pattern Detection → …
  • Requests involving OpenAPI
  • SKILL.md covers OpenAPI 3.x Analysis Procedure, Schema Normalization, GraphQL Schema Analysis and gRPC Proto Analysis
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Openapi Spec Patterns is an agent skill from revfactory/harness-100. OpenAPI 3.x spec analysis patterns, schema normalization, authentication method mapping, pagination/error pattern extraction, and GraphQL/gRPC spec interpretation guide. Use this skill for requests involving 'OpenAPI', 'Swagger', 'spec analysis', 'schema normalization', 'API authentication', 'pagination patterns', 'GraphQL schema', 'gRPC proto', etc. Enhances spec-parser's spec analysis capabilities. Note: SDK code generation and test authoring are outside the scope of this skill.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering OpenAPI specifications, GraphQL and gRPC and Protobuf. It works with OpenAPI, GraphQL and gRPC. The licence is Apache-2.0.

When your agent uses it

  • Requests involving OpenAPI
  • Schema normalization
  • API authentication
  • Pagination patterns

Example prompts

  • “OpenAPI”
  • “Swagger”
  • “spec analysis”
  • “/openapi-spec-patterns”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Endpoint Grouping
  2. Authentication Method Mapping
  3. Pagination Pattern Detection
  4. Error Response Patterns

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml, graphql and protobuf).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Openapi Spec Patterns loads about 1.6k tokens when it runs. Until then it costs about 127 tokens; SKILL.md has 207 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~127
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 207 words, ~1,608 tokens.

Download SKILL.mdSave it as .claude/skills/openapi-spec-patterns/SKILL.md (or your agent's skills folder).
name
openapi-spec-patterns
description
OpenAPI 3.x spec analysis patterns, schema normalization, authentication method mapping, pagination/error pattern extraction, and GraphQL/gRPC spec interpretation guide. Use this skill for requests involving 'OpenAPI', 'Swagger', 'spec analysis', 'schema normalization', 'API authentication', 'pagination patterns', 'GraphQL schema', 'gRPC proto', etc. Enhances spec-parser's spec analysis capabilities. Note: SDK code generation and test authoring are outside the scope of this skill.

OpenAPI Spec Patterns — API Spec Analysis Patterns Guide

Methodology for effectively analyzing OpenAPI/GraphQL/gRPC specs and extracting the metadata needed for SDK generation.

OpenAPI 3.x Analysis Procedure

1. Endpoint Grouping
yaml
# Tag-based grouping -> SDK class mapping
paths:
  /users:
    get:
      tags: [Users]         # -> UsersClient.list()
    post:
      tags: [Users]         # -> UsersClient.create()
  /users/{id}:
    get:
      tags: [Users]         # -> UsersClient.get(id)
    put:
      tags: [Users]         # -> UsersClient.update(id, data)
    delete:
      tags: [Users]         # -> UsersClient.delete(id)
  /users/{id}/orders:
    get:
      tags: [Users, Orders] # -> UsersClient.listOrders(id)
Mapping Rules
HTTP MethodPatternSDK Method Name
GET /resourcesListlist()
GET /resources/{id}Detailget(id)
POST /resourcesCreatecreate(data)
PUT /resources/{id}Full updateupdate(id, data)
PATCH /resources/{id}Partial updatepatch(id, data)
DELETE /resources/{id}Deletedelete(id)
POST /resources/{id}/actionActionactionName(id, data)
2. Authentication Method Mapping
yaml
securitySchemes:
  BearerAuth:
    type: http
    scheme: bearer
    bearerFormat: JWT
  ApiKeyAuth:
    type: apiKey
    in: header
    name: X-API-Key
  OAuth2:
    type: oauth2
    flows:
      authorizationCode:
        authorizationUrl: https://auth.example.com/authorize
        tokenUrl: https://auth.example.com/token
        scopes:
          read: Read access
          write: Write access
Auth TypeSDK ImplementationCode Pattern
BearerHeader interceptorAuthorization: Bearer {token}
API KeyHeader/query interceptorX-API-Key: {key}
OAuth2Token manager + refreshAuto refresh_token handling
BasicHeaderAuthorization: Basic {base64}
3. Pagination Pattern Detection
yaml
# Pattern 1: Offset-based
parameters:
  - name: offset
    in: query
    schema: { type: integer }
  - name: limit
    in: query
    schema: { type: integer, default: 20 }

# Pattern 2: Cursor-based
parameters:
  - name: cursor
    in: query
    schema: { type: string }
  - name: limit
    in: query
    schema: { type: integer }

# Pattern 3: Page-based
parameters:
  - name: page
    in: query
    schema: { type: integer }
  - name: per_page
    in: query
    schema: { type: integer }
Detection PatternSDK Implementation
offset/limitlistAll() auto page traversal
cursor/afteriterate() iterator
page/per_pagelistPage(page)
Link headerHTTP Link header parsing
4. Error Response Patterns
yaml
# Standard error structure extraction
responses:
  '400':
    content:
      application/json:
        schema:
          $ref: '#/components/schemas/Error'

components:
  schemas:
    Error:
      type: object
      properties:
        code: { type: string }
        message: { type: string }
        details: { type: array, items: { $ref: '#/components/schemas/ErrorDetail' } }
SDK Error Class Mapping
HTTP StatusSDK ExceptionRetry
400BadRequestErrorNo
401AuthenticationErrorNo (once after token refresh)
403PermissionErrorNo
404NotFoundErrorNo
409ConflictErrorNo
422ValidationErrorNo
429RateLimitErrorYes (Retry-After)
500InternalErrorYes (exponential backoff)
502/503/504ServiceUnavailableErrorYes

Schema Normalization

Circular Reference Handling
yaml
# Circular: User -> Order -> User
User:
  properties:
    orders:
      type: array
      items: { $ref: '#/components/schemas/Order' }
Order:
  properties:
    user: { $ref: '#/components/schemas/User' }  # Circular!

# Resolution: Lazy Reference
# TypeScript: type User = { orders: () => Order[] }
# Python: User = ForwardRef('User')
allOf/oneOf/anyOf Interpretation
yaml
# allOf -> Intersection (inheritance/extension)
UpdateUser:
  allOf:
    - $ref: '#/components/schemas/BaseUser'
    - type: object
      properties:
        password: { type: string }
# -> class UpdateUser extends BaseUser { password?: string }

# oneOf -> Union (exclusive choice)
Pet:
  oneOf:
    - $ref: '#/components/schemas/Cat'
    - $ref: '#/components/schemas/Dog'
  discriminator:
    propertyName: petType
# -> type Pet = Cat | Dog (discriminated union)

# anyOf -> Flexible union
Filter:
  anyOf:
    - type: string
    - type: integer
    - type: array
      items: { type: string }
# -> type Filter = string | number | string[]

GraphQL Schema Analysis

graphql
# Query -> SDK read methods
type Query {
    user(id: ID!): User        # -> client.users.get(id)
    users(first: Int, after: String): UserConnection  # -> client.users.list()
}

# Mutation -> SDK write methods
type Mutation {
    createUser(input: CreateUserInput!): User  # -> client.users.create(input)
    updateUser(id: ID!, input: UpdateUserInput!): User
}

# Connection pattern -> Auto-pagination
type UserConnection {
    edges: [UserEdge!]!
    pageInfo: PageInfo!
}

gRPC Proto Analysis

protobuf
service UserService {
    rpc GetUser (GetUserRequest) returns (User);           // -> client.getUser(id)
    rpc ListUsers (ListUsersRequest) returns (ListUsersResponse);
    rpc CreateUser (CreateUserRequest) returns (User);
    rpc StreamUsers (StreamRequest) returns (stream User); // -> Streaming API
}
gRPC PatternSDK Implementation
UnaryStandard async method
Server StreamAsyncIterator
Client StreamStream send method
BidirectionalBidirectional stream

© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in en/35-api-client-generator/.claude/skills/openapi-spec-patterns of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Openapi Spec Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Openapi Spec Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openapi Spec Patterns this skillrevfactory/harness-1001.3k—~1.6kAutomated safety check: PassApache-2.0
API Architectcuriositech/some_claude_skills2431 repos~1.4kAutomated safety check: PassMIT
SpikardGoldziher/spikard123—~799Automated safety check: PassMIT
Uxcholon-run/uxc115—~1.8kAutomated safety check: PassMIT
API Contract Detectionprime-radiant-inc/greenfield292—~4.2kAutomated safety check: PassApache-2.0
API Designmajiayu000/spellbook286—~2.1kAutomated safety check: PassMIT

Similar skills

  • API Architect

    curiositech/some_claude_skills

    Expert API designer for REST, GraphQL, gRPC architectures. An agent skill from curiositech/some_claude_skills.

    243 GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Spikard

    Goldziher/spikard

    Scaffold Spikard projects and generate code from OpenAPI, AsyncAPI, OpenRPC, GraphQL, and Protobuf schemas using the Spikard CLI or its MCP server.

    123 GitHub stars~799 tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Uxc

    holon-run/uxc

    Discover and call remote schema-exposed interfaces with UXC.

    115 GitHub stars~1.8k tokensUpdated 22 days ago
    Backend & APIsAuto-check passed
  • API Contract Detection

    prime-radiant-inc/greenfield

    Finds OpenAPI, GraphQL, Protobuf and JSON Schema files in a codebase and extracts behavioral claims from them as part of a reverse-engineering workflow.

    292 GitHub stars~4.2k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • API Design

    majiayu000/spellbook

    REST/GraphQL/gRPC API design best practices. An agent skill from majiayu000/spellbook.

    286 GitHub stars~2.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • API Forge

    EliasOulkadi/shokunin

    Design REST/GraphQL APIs with OpenAPI 3.1, error handling, pagination, rate limiting, webhooks, and idempotency.

    114 GitHub stars~2.9k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed

More from revfactory/harness-100

All 464 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Categories

Questions about Openapi Spec Patterns

What does Openapi Spec Patterns do?

OpenAPI 3.x spec analysis patterns, schema normalization, authentication method mapping, pagination/error pattern extraction, and GraphQL/gRPC spec interpretation guide. Openapi Spec Patterns is an agent skill from revfactory/harness-100.x spec analysis patterns, schema normalization, authentication method mapping, pagination/error pattern extraction, and GraphQL/gRPC spec interpretation guide.

When should I use Openapi Spec Patterns?

Openapi Spec Patterns fits situations like: requests involving OpenAPI; schema normalization; API authentication; pagination patterns.

How do I install Openapi Spec Patterns in Claude Code?

Run `npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a claude-code`. Or copy the skill folder (en/35-api-client-generator/.claude/skills/openapi-spec-patterns in revfactory/harness-100) into .claude/skills/openapi-spec-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Openapi Spec Patterns in Codex?

Run `npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a codex`. Or copy the skill folder (en/35-api-client-generator/.claude/skills/openapi-spec-patterns in revfactory/harness-100) into .agents/skills/openapi-spec-patterns in your project. Codex loads it when a task matches its description.

Can I use Openapi Spec Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill openapi-spec-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openapi-spec-patterns, .gemini/skills/openapi-spec-patterns, .github/skills/openapi-spec-patterns and .opencode/skills/openapi-spec-patterns in your project.

What does Openapi Spec Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Openapi Spec Patterns is instructions for the agent only.

Does Openapi Spec Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Openapi Spec Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Openapi Spec Patterns use?

Openapi Spec Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Openapi Spec Patterns use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Openapi Spec Patterns?

Skills that share tags, products or a category with Openapi Spec Patterns: API Architect (curiositech/some_claude_skills, 243 stars), Spikard (Goldziher/spikard, 123 stars), Uxc (holon-run/uxc, 115 stars) and API Contract Detection (prime-radiant-inc/greenfield, 292 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openapi Spec Patterns?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.

Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.