/psenger-skills:review-api-design [paste or describe your API design]from psenger-skills
Reviews REST API designs during planning against security, resilience, design, and operational best practices. Use when vetting an API design, reviewing an OpenAPI spec, or evaluating endpoint structure.
Ships in psenger-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review the following API design: $ARGUMENTS
If no design was provided above, ask for an API design to review (OpenAPI spec, endpoint list, or verbal description).
This skill vets API designs before implementation — during the planning phase. It reviews contracts, endpoint structures, and architectural decisions against proven best practices. Reviews are constructive but thorough — challenging the design, flagging gaps, and surfacing trade-offs.
Before reviewing, gather context. Ask about anything not already clear:
Do not ask all of these mechanically. Read what was already provided and only ask what's missing and relevant. If given an OpenAPI spec, extract most of this from the spec itself.
When the input is a vague verbal description (no concrete endpoints, no spec, no endpoint list — just "I'm building an API for X"), asking clarifying questions is mandatory before producing any review. A vague description does not contain enough information to assign severity levels or make specific recommendations. Ask 3-5 targeted questions, wait for answers, then proceed to Step 2. Do not produce a full review from a verbal description alone.
Based on the design presented, read the reference files that are most relevant. Not all files need loading for every review.
Always load:
references/design-principles.md — naming, versioning, CRUD, idempotency, health checks, tracing, parametersreferences/payloads-errors.md — response structure, pagination, error format, identifiersLoad based on context:
references/security-auth.md — if the API handles auth, identity, tokens, or trust boundariesreferences/security-defense.md — if the API is public-facing, handles user input, or needs hardening (CSRF, CORS, enumeration, information disclosure)references/design-extensibility.md — if the design involves extensibility, metadata fields, backwards compatibility strategy, or arity decisionsreferences/resilience.md — if the API calls downstream services or needs high availabilityreferences/api-gateways.md — if there are multiple services or gateway architecture questionsreferences/api-communication-patterns.md — if weighing REST vs GraphQL vs WebSockets vs SSE, or the design shows signs that a different pattern might fit betterreferences/human-aspect.md — if adoption, documentation, or developer experience is a concernreferences/pragmatism.md — if there are technology choice or build-vs-buy decisionsSystematically evaluate the design against each relevant domain. For each finding:
Severity levels:
| Level | Meaning |
|---|---|
| Critical | Will cause production incidents, security vulnerabilities, or major integration pain. Must fix before building. |
| Warning | Likely to cause problems at scale or create tech debt. Should fix before building. |
| Suggestion | Would improve the design but not blocking. Consider for this iteration or next. |
| Good | Something done well worth reinforcing. |
Structure output as follows:
API Design Review: {API Name}
Review date: {date} Input: {what was provided — spec, endpoint list, description} Context: {1-2 sentence summary of the API's purpose and audience}
Summary of Findings
| # | Domain | Finding | Severity |
|---|---|---|---|
| 1 | Design | ... | Critical |
| 2 | Security | ... | Warning |
Detailed Findings
For each finding:
references/sources.md so the user has a concrete next step (e.g., "See OWASP CSRF Prevention Cheat Sheet in sources.md")Group findings by domain (Design Principles, Security, Resilience, etc.).
What's Missing?
Flag areas the design didn't address. Common gaps:
Readiness Assessment
Given input: POST /users, GET /users/{id}, DELETE /users/{id}, GET /orders
| # | Domain | Finding | Severity |
|---|---|---|---|
| 1 | Design | No versioning strategy — endpoints lack version prefix | Warning |
| 2 | Payloads | No error format defined — consider RFC 9457 Problem Details | Warning |
| 3 | Security | No auth model specified for a user-facing API | Critical |
| 4 | Design | DELETE /users/{id} is idempotent by nature | Good |
Finding 1 — No versioning strategy
/users instead of /v1/users)./v1/users, /v1/orders. Plan Sunset headers (RFC 8594) for future deprecation.references/api-communication-patterns.md (opens in a new tab)references/api-gateways.md (opens in a new tab)references/design-extensibility.md (opens in a new tab)references/design-principles.md (opens in a new tab)references/human-aspect.md (opens in a new tab)references/payloads-errors.md (opens in a new tab)references/pragmatism.md (opens in a new tab)references/resilience.md (opens in a new tab)references/security-auth.md (opens in a new tab)references/security-defense.md (opens in a new tab)references/sources.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
11 skills in this plugin
/agentic-skeleton-dir-structureScaffolds production-ready directory structures for agentic AI projects using Agent-OS v3 (Builder Methods). Use when the user asks to set up, scaffold, initialize, or restructure a project for agentic development — including mono-repos, single repos, multi-language repos, full-stack, backend, frontend, or middleware projects. Triggers on "scaffold directory", "project structure", "agentic scaffold", "project layout", "initialize AI project", "directory structure", "agent-os setup", "mono-repo layout", "IaC structure"./agent-os-profile-critiqueProvides the audit checklists, severity criteria (blocking/warning/suggestion), and artifact patterns needed to properly review Agent OS profiles and standards. Always invoke this skill before auditing - without it you can only give generic feedback, not structured severity-tagged findings. Invoke when the user pastes a standard and asks if it is good or what is wrong with it; when the user asks to review, audit, validate, or critique an agent-os profile or standard; or when the user mentions "agent-os profile", "agent-os standard", or "my agent-os setup" in a review or validation context./arch-lensExplores a codebase for architectural friction through the lens of Ousterhout's deep-module principle (small interface, large implementation). Seven-step interactive workflow: an Explore sub-agent navigates the codebase organically — the friction it experiences IS the signal. Surfaces candidate clusters with coupling reasons, call patterns, shared types, dependency categories, and existing tests that a boundary test would replace. User picks what to explore, frames the problem, then 3–4 parallel sub-agents design competing deep-module interfaces. Chosen design becomes a structured RFC action file readable by GitHub MCP or ROVO (Jira) MCP. Use when the user says "arch review", "find shallow modules", "module depth", "deep module", "Ousterhout", "testability audit", "surface coupling", "design interfaces", "RFC issues", or "architectural friction".
Generated from the plugin's indexed repository (psenger/ai-agent-skills) — no native marketplace selected
npx claudepluginhub p/psenger-psenger-skillsOther plugins' skills for the same job