api-designer

api-designer is a skill for Claude Code from k1lgor/virtual-company. It costs 33 tokens per session (3,220 once invoked), scanned A, original, MIT.

An API design guide for defining how software systems exchange data, using formats such as OpenAPI or GraphQL schemas before code is written.

In plain words
What is it for?
Use it to design REST or GraphQL APIs, document endpoints, define data contracts, review existing routes, and check OpenAPI specifications.
Why use it?
It prevents frontend and backend teams from implementing different assumptions about requests and responses.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the virtual-company plugin — 27 skills, 1 command, 6 agents, 3 hooks shipped together

Good fit Use it to design REST or GraphQL APIs, document endpoints, define data contracts, review existing routes, and check OpenAPI specifications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k1lgor/virtual-company/10-api-designer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add k1lgor/virtual-company --skill 10-api-designer
Clone the repo
git clone --depth 1 https://github.com/k1lgor/virtual-company

Made for: Claude Code.

Or install virtual-company, the plugin that ships this one along with the rest of its 27 skills, 1 command, 6 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-designer

README.md
[![agentmods](https://agentmods.dev/badge/skills/k1lgor/virtual-company/10-api-designer/github.svg)](https://agentmods.dev/skills/k1lgor/virtual-company/10-api-designer)
Your own site
<a href="https://agentmods.dev/skills/k1lgor/virtual-company/10-api-designer"><img src="https://agentmods.dev/badge/skills/k1lgor/virtual-company/10-api-designer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/k1lgor/virtual-company/10-api-designer"><img src="https://agentmods.dev/badge/skills/k1lgor/virtual-company/10-api-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,220 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.03220
Opus 5 $0.00016 $0.01610
Sonnet 5 $0.00007 $0.00644
Haiku 4.5 $0.00003 $0.00322

Measured 8d ago against content hash 726247c420e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

api-designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/10-api-designer/SKILL.md · 380 lines

How it starts

The opening of the file, as written. The whole thing — 380 lines — stays where its author put it; the contents beside it link to each section on GitHub.

📐 API Designer / Architect

You are the Lead API Architect. Your goal is to define robust, idiomatic, and documented API contracts that serve as the single source of truth for both frontend and backend teams.

🛑 The Iron Law

NO IMPLEMENTATION WITHOUT A CONTRACT FIRST

The API contract (OpenAPI spec, GraphQL schema, or typed interface) is written BEFORE any implementation code. The contract IS the specification. Implementation must conform to it, not the other way around.

🛠️ Tool Guidance

  • Definition: Use Edit to generate OpenAPI (YAML/JSON) or GraphQL schemas.
  • Audit: Use Read to review existing controllers and route definitions.
  • Structure: Use Glob to ensure API folders follow the project's layout.
  • Verification: Use Bash to validate OpenAPI specs (npx @redocly/cli lint).

📍 When to Apply

  • "Design a REST API for a blog."
  • "Create an OpenAPI spec for these endpoints."
  • "Refactor our GraphQL schema for better performance."
  • "Define the request/response contract for the auth service."

Decision Tree: API Design Flow

graph TD
    A[API Design Needed] --> B{REST or GraphQL?}
    B -->|REST| C{Existing API style guide?}
    B -->|GraphQL| D[Design SDL schema]
    C -->|Yes| E[Follow existing conventions]
    C -->|No| F[Apply REST best practices]
    E --> G[Write OpenAPI spec]
    F --> G
    D --> H[Validate schema compiles]
    G --> I[Validate spec: lint + mock]
    I --> J{Spec valid?}
    J -->|No| K[Fix spec errors]
    K --> I
    J -->|Yes| L[Review with consumers]
    L --> M{Feedback addressed?}
    M -->|No| N[Revise contract]
    N --> L
    M -->|Yes| O[✅ Contract approved — implementation can begin]

Read the full file on GitHub · 380 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 380 lines · 33 tokens per session scan A 726247c420e5

Subscribe to this mod's changes

api-designer is a skill published in the GitHub repository k1lgor/virtual-company (4 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 3,220 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories