odjaramillo/custom-rules/api-design

Claude Code and agent skill by odjaramillo/custom-rules

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

API-First design patterns, user stories, and sequence diagrams. Trigger: When designing APIs with OpenAPI, user stories, or sequence diagrams.

Install

npx vskill@latest install odjaramillo/custom-rules/api-design

SKILL.md

The same SKILL.md was published earlier as odjaramillo/custom-rules/api-design.

Critical Patterns

API-First Approach (REQUIRED)
Design the API (OpenAPI Spec) BEFORE writing code or user stories.
Protocol: Assume HTTP RESTful by default unless specified (gRPC, EDA).
User Story Format (REQUIRED)
As [user role],
I want [specific objective],
So that [benefit and/or value].
Acceptance Criteria (REQUIRED)
gherkin
Scenario: [Scenario Name]
Given [pre-condition]
When [action]
Then [expected result]

Decision Tree

Need API design? → Start with OpenAPI spec
Need user story? → Use As/I want/So that format
Need test cases? → Use Gherkin Given/When/Then
Need flow visualization? → Use Mermaid sequenceDiagram

Code Examples

OpenAPI Endpoint
yaml
paths:
/users/{userId}:
get:
summary: Get user by ID
operationId: getUserById
parameters:
- name: userId
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: User found
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'404':
description: User not found
Sequence Diagram
mermaid
sequenceDiagram
Client->>API: POST /orders
API->>Service: validateOrder()
Service->>Database: INSERT order
Database-->>Service: orderId
Service-->>API: Order created
API-->>Client: 201 Created
User Story Example
As an authenticated user,
I want to view my order history,
So that I can track my past purchases.
Acceptance Criteria:
Scenario: View order history
Given I am logged in
When I navigate to /orders
Then I see a list of my orders sorted by date
And each order shows status and total amount

Success Metrics

  • Business: ROI, user adoption
  • Performance: Latency, throughput
  • Infrastructure: Error rates, uptime
  • SLIs/SLOs: Specific service level objectives

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/odjaramillo/custom-rules/api-design/badge)](https://verified-skill.com/skills/odjaramillo/custom-rules/api-design)

Something wrong with this skill or its page? Tell us.