Creator · alirezarezvani
Last updated · Sep 1, 2026
Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existin
Creator · alirezarezvani
Last updated · Sep 1, 2026
Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existin
Creator · alirezarezvani
Last updated · Sep 1, 2026
Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existin
Creator · alirezarezvani
Last updated · Sep 1, 2026
Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existin
Sandbox only
Install targets
Codex install prompt
Install the "api-design-reviewer" agent skill from https://github.com/alirezarezvani/claude-skills/tree/main/.gemini/skills/api-design-reviewer. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"alirezarezvani-api-design-reviewer","task":"Install api-design-reviewer","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 79/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 3.6K forks
Maintenance
6d since push
License
MIT
Install
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add alirezarezvani/claude-skills --skill api-design-reviewerDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
Agent should check
Copy prompt
Task: Use api-design-reviewer in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install
Install command: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
LLM text format
/api/skills/alirezarezvani-api-design-reviewer/install?format=text
Find alternatives
/api/skills/search?q=api-design-reviewer&limit=3
Agent prompt
Use api-design-reviewer for this task. Review https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install, then install with: npx skills add alirezarezvani/claude-skills --skill api-design-reviewerRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/alirezarezvani-api-design-reviewer
LLM text
/api/registry/manifest/alirezarezvani-api-design-reviewer?format=text
Install alias
/api/registry/install/alirezarezvani-api-design-reviewer
Recommend
/api/registry/recommend?task=Use%20api-design-reviewer%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: "api-design-reviewer" description: "Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team." ---
# API Design Reviewer
**Tier:** POWERFUL **Category:** Engineering / Architecture **Maintainer:** Claude Skills Team
## Overview
The API Design Reviewer skill provides comprehensive analysis and review of API designs, focusing on REST conventions, best practices, and industry standards. This skill helps engineering teams build consistent, maintainable, and well-designed APIs through automated linting, breaking change detection, and design scorecards.
## Quick Start — run the tools first
```bash # 1. Lint an OpenAPI/Swagger spec for convention violations python3 scripts/api_linter.py openapi.json --format json -o lint.json
# 2. Detect breaking changes between two spec versions (gate: exits non-zero with --exit-on-breaking) python3 scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json --format json --exit-on-breaking -o breaking.json
# 3. Score overall design quality (gate: --min-grade fails below threshold) python3 scripts/api_scorecard.py openapi.json --format json --min-grade B -o scorecard.json ```
Review flow: run all three, report linter findings + breaking changes + grade to the user, fix, then re-run until the linter is clean, `--exit-on-breaking` passes (or breaking changes are version-bumped), and the scorecard meets the agreed `--min-grade`. Never sign off an API review on prose alone — attach the tool outputs.
## Core Capabilities
### 1. API Linting and Convention Analysis - **Resource Naming Conventions**: Enforces kebab-case for resources, camelCase for fields - **HTTP Method Usage**: Validates proper use of GET, POST, PUT, PATCH, DELETE - **URL Structure**: Analyzes endpoint patterns for consistency and RESTful design - **Status Code Compliance**: Ensures appropriate HTTP status codes are used - **Error Response Formats**: Validates consistent error response structures - **Documentation Coverage**: Checks for missing descriptions and documentation gaps
### 2. Breaking Change Detection - **Endpoint Removal**: Detects removed or deprecated endpoints - **Response Shape Changes**: Identifies modifications to response structures - **Field Removal**: Tracks removed or renamed fields in API responses - **Type Changes**: Catches field type modifications that could break clients - **Required Field Additions**: Flags new required fields that could break existing integrations - **Status Code Changes**: Detects changes to expected status codes
### 3. API Design Scoring and Assessment - **Consistency Analysis** (30%): Evaluates naming conventions, response patterns, and structural consistency - **Documentation Quality** (20%): Assesses completeness and clarity of API documentation - **Security Implementation** (20%): Reviews authentication, authorization, and security headers - **Usability Design** (15%): Analyzes ease of use, discoverability, and developer experience - **Performance Patterns** (15%): Evaluates caching, pagination, and efficiency patterns
## REST Design Principles
### Resource Naming Conventions ``` ✅ Good Examples: - /api/v1/users - /api/v1/user-profiles - /api/v1/orders/123/line-items
❌ Bad Examples: - /api/v1/getUsers - /api/v1/user_profiles - /api/v1/orders/123/lineItems ```
### HTTP Method Usage - **GET**: Retrieve resources (safe, idempotent) - **POST**: Create new resources (not idempotent) - **PUT**: Replace entire resources (idempotent) - **PATCH**: Partial resource updates (not necessarily idempotent) - **DELETE**: Remove resources (idempotent)
### URL Structure Best Practices ``` Collection Resources: /api/v1/users Individual Resources: /api/v1/users/123 Nested Resources: /api/v1/users/123/orders Actions: /api/v1/users/123/activate (POST) Filtering: /api/v1/users?status=active&role=admin ```
## Versioning Strategies
### 1. URL Versioning (Recommended) ``` /api/v1/users /api/v2/users ``` **Pros**: Clear, explicit, easy to route **Cons**: URL proliferation, caching complexity
### 2. Header Versioning ``` GET /api/users Accept: application/vnd.api+json;version=1 ``` **Pros**: Clean URLs, content negotiation **Cons**: Less visible, harder to test manually
### 3. Media Type Versioning ``` GET /api/users Accept: application/vnd.myapi.v1+json ``` **Pros**: RESTful, supports multiple representations **Cons**: Complex, harder to implement
### 4. Query Parameter Versioning ``` /api/users?version=1 ``` **Pros**: Simple to implement **Cons**: Not RESTful, can be ignored
## Pagination Patterns
### Offset-Based Pagination ```json { "data": [...], "pagination": { "offset": 20, "limit": 10, "total": 150, "hasMore": true } } ```
### Cursor-Based Pagination ```json { "data": [...], "pagination": { "nextCursor": "eyJpZCI6MTIzfQ==", "hasMore": true } } ```
### Page-Based Pagination ```json { "data": [...], "pagination": { "page": 3, "pageSize": 10, "totalPages": 15, "totalItems": 150 } } ```
## Error Response Formats
### Standard Error Structure ```json { "error": { "code": "VALIDATION_ERROR", "message": "The request contains invalid parameters", "details": [ { "field": "email", "code": "INVALID_FORMAT", "message": "Email address is not valid" } ], "requestId": "req-123456", "timestamp": "2026-02-16T13:00:00Z" } } ```
### HTTP Status Code Usage - **400 Bad Request**: Invalid request syntax or parameters - **401 Unauthorized**: Authentication required - **403 Forbidden**: Access denied (authenticated but not authorized) - **404 Not Found**: Resource not found - **409 Conflict**: Resource conflict (duplicate, version mismatch) - **422 Unprocessable Entity**: Valid syntax but semantic errors - **429 Too Many Requests**: Rate limit exceeded - **500 Internal Server Error**: Unexpected server error
## Authentication and Authorization Patterns
### Bearer Token Authentication ``` Authorization: Bearer <token> ```
### API Key Authentication ``` X-API-Key: <api-key> Authorization: Api-Key <api-key> ```
### OAuth 2.0 Flow ``` Authorization: Bearer <oauth-access-token> ```
### Role-Based Access Control (RBAC) ```json { "user": { "id": "123", "roles": ["admin", "editor"], "permissions": ["read:users", "write:orders"] } } ```
## Rate Limiting Implementation
### Headers ``` X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 999 X-RateLimit-Reset: 1640995200 ```
### Response on Limit Exceeded ```json { "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Too many requests", "retryAfter": 3600 } } ```
## HATEOAS (Hypermedia as the Engine of Application State)
### Example Implementation ```json { "id": "123", "name": "John Doe", "email": "john@example.com", "_links": { "self": { "href": "/api/v1/users/123" }, "orders": { "href": "/api/v1/users/123/orders" }, "profile": { "href": "/api/v1/users/123/profile" }, "deactivate": { "href": "/api/v1/users/123/deactivate", "method": "POST" } } } ```
## Idempotency
### Idempotent Methods - **GET**: Always safe and idempotent - **PUT**: Should be idempotent (replace entire resource) - **DELETE**: Should be idempotent (same result) - **PATCH**: May or may not be idempotent
### Idempotency Keys ``` POST /api/v1/payments Idempotency-Key: 123e4567-e89b-12d3-a456-426614174000 ```
## Backward Compatibility Guidelines
### Safe Changes (Non-Breaking) - Adding optional fields to requests - Adding fields to responses - Adding new endpoints - Making required fields optional - Adding new enum values (with graceful handling)
### Breaking Changes (Require Version Bump) - Removing fields from responses - Making optional fields required - Changing field types - Removing endpoints - Changing URL structures - Modifying error response formats
## OpenAPI/Swagger Validation
### Required Components - **API Information**: Title, description, version - **Server Information**: Base URLs and descriptions - **Path Definitions**: All endpoints with methods - **Parameter Definitions**: Query, path, header parameters - **Request/Response Schemas**: Complete data models - **Security Definitions**: Authentication schemes - **Error Responses**: Standard error formats
### Best Practices - Use consistent naming conventions - Provide detailed descriptions for all components - Include examples for complex objects - Define reusable components and schemas - Validate against OpenAPI specification
## Performance Considerations
### Caching Strategies ``` Cache-Control: public, max-age=3600 ETag: "123456789" Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT ```
### Efficient Data Transfer - Use appropriate HTTP methods - Implement field selection (`?fields=id,name,email`) - Support compression (gzip) - Implement efficient pagination - Use ETags for conditional requests
### Resource Optimization - Avoid N+1 queries - Implement batch operations - Use async processing for heavy operations - Support partial updates (PATCH)
## Security Best Practices
### Input Validation - Validate all input parameters - Sanitize user data - Use parameterized queries - Implement request size limits
### Authentication Security - Use HTTPS everywhere - Implement secure token storage - Support token expiration and refresh - Use strong authentication mechanisms
### Authorization Controls - Implement principle of least privilege - Use resource-based permissions - Support fine-grained access control - Audit access patterns
## Tools and Scripts
### api_linter.py Analyzes API specifications for compliance with REST conventions and best practices.
**Features:** - OpenAPI/Swagger spec validation - Naming convention checks - HTTP method usage validation - Error format consistency - Documentation completeness analysis
### breaking_change_detector.py Compares API specification versions to identify breaking changes.
**Features:** - Endpoint comparison - Schema change detection - Field removal/modification tracking - Migration guide generation - Impact severity assessment
### api_scorecard.py Provides comprehensive scoring of API design quality.
**Features:** - Multi-dimensional scoring - Detailed improvement recommendations - Letter grade assessment (A-F) - Benchmark comparisons - Progress tracking
## Integration Examples
### CI/CD Integration ```yaml - name: "api-linting" run: python scripts/api_linter.py openapi.json
- name: "breaking-change-detection" run: python scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json
- name: "api-scorecard" run: python scripts/api_scorecard.py openapi.json ```
### Pre-commit Hooks ```bash #!/bin/bash python engineering/skills/api-design-reviewer/scripts/api_linter.py api/openapi.json if [ $? -ne 0 ]; then echo "API linting failed. Please fix the issues before committing." exit 1 fi ```
## Best Practices Summary
1. **Consistency First**: Maintain consistent naming, response formats, and patterns 2. **Documentation**: Provide comprehensive, up-to-date API documentation 3. **Versioning**: Plan for evolution with clear versioning strategies 4. **Error Handling**: Implement consistent, informative error responses 5. **Security**: Build security into every layer of the API 6. **Performance**: Design for scale and efficiency from the start 7. **Backward Compatibility**: Minimize breaking changes and provide migration paths 8. **Testing**: Implement comprehensive testing including contract testing 9. **Monitoring**: Add observability for API usage and performance 10. **Developer Experience**: Prioritize ease of use and clear documentation
## Common Anti-Patterns to Avoid
1. **Verb-based URLs**
Source provenance
Decision snapshot
25,373 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-design-reviewer, ready for a manual X post.
api-design-reviewer: Comprehensive REST API design review with automated linting, breaking-change detection, and d... 25.4K stars https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x
Listing + install path for api-design-reviewer: https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x Install: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to alirezarezvani but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer/audit)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)alirezarezvani
@alirezarezvani
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "api-design-reviewer" agent skill from https://github.com/alirezarezvani/claude-skills/tree/main/.gemini/skills/api-design-reviewer. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"alirezarezvani-api-design-reviewer","task":"Install api-design-reviewer","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 79/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 3.6K forks
Maintenance
6d since push
License
MIT
Install
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add alirezarezvani/claude-skills --skill api-design-reviewerDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
Agent should check
Copy prompt
Task: Use api-design-reviewer in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install
Install command: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
LLM text format
/api/skills/alirezarezvani-api-design-reviewer/install?format=text
Find alternatives
/api/skills/search?q=api-design-reviewer&limit=3
Agent prompt
Use api-design-reviewer for this task. Review https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install, then install with: npx skills add alirezarezvani/claude-skills --skill api-design-reviewerRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/alirezarezvani-api-design-reviewer
LLM text
/api/registry/manifest/alirezarezvani-api-design-reviewer?format=text
Install alias
/api/registry/install/alirezarezvani-api-design-reviewer
Recommend
/api/registry/recommend?task=Use%20api-design-reviewer%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: "api-design-reviewer" description: "Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team." ---
# API Design Reviewer
**Tier:** POWERFUL **Category:** Engineering / Architecture **Maintainer:** Claude Skills Team
## Overview
The API Design Reviewer skill provides comprehensive analysis and review of API designs, focusing on REST conventions, best practices, and industry standards. This skill helps engineering teams build consistent, maintainable, and well-designed APIs through automated linting, breaking change detection, and design scorecards.
## Quick Start — run the tools first
```bash # 1. Lint an OpenAPI/Swagger spec for convention violations python3 scripts/api_linter.py openapi.json --format json -o lint.json
# 2. Detect breaking changes between two spec versions (gate: exits non-zero with --exit-on-breaking) python3 scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json --format json --exit-on-breaking -o breaking.json
# 3. Score overall design quality (gate: --min-grade fails below threshold) python3 scripts/api_scorecard.py openapi.json --format json --min-grade B -o scorecard.json ```
Review flow: run all three, report linter findings + breaking changes + grade to the user, fix, then re-run until the linter is clean, `--exit-on-breaking` passes (or breaking changes are version-bumped), and the scorecard meets the agreed `--min-grade`. Never sign off an API review on prose alone — attach the tool outputs.
## Core Capabilities
### 1. API Linting and Convention Analysis - **Resource Naming Conventions**: Enforces kebab-case for resources, camelCase for fields - **HTTP Method Usage**: Validates proper use of GET, POST, PUT, PATCH, DELETE - **URL Structure**: Analyzes endpoint patterns for consistency and RESTful design - **Status Code Compliance**: Ensures appropriate HTTP status codes are used - **Error Response Formats**: Validates consistent error response structures - **Documentation Coverage**: Checks for missing descriptions and documentation gaps
### 2. Breaking Change Detection - **Endpoint Removal**: Detects removed or deprecated endpoints - **Response Shape Changes**: Identifies modifications to response structures - **Field Removal**: Tracks removed or renamed fields in API responses - **Type Changes**: Catches field type modifications that could break clients - **Required Field Additions**: Flags new required fields that could break existing integrations - **Status Code Changes**: Detects changes to expected status codes
### 3. API Design Scoring and Assessment - **Consistency Analysis** (30%): Evaluates naming conventions, response patterns, and structural consistency - **Documentation Quality** (20%): Assesses completeness and clarity of API documentation - **Security Implementation** (20%): Reviews authentication, authorization, and security headers - **Usability Design** (15%): Analyzes ease of use, discoverability, and developer experience - **Performance Patterns** (15%): Evaluates caching, pagination, and efficiency patterns
## REST Design Principles
### Resource Naming Conventions ``` ✅ Good Examples: - /api/v1/users - /api/v1/user-profiles - /api/v1/orders/123/line-items
❌ Bad Examples: - /api/v1/getUsers - /api/v1/user_profiles - /api/v1/orders/123/lineItems ```
### HTTP Method Usage - **GET**: Retrieve resources (safe, idempotent) - **POST**: Create new resources (not idempotent) - **PUT**: Replace entire resources (idempotent) - **PATCH**: Partial resource updates (not necessarily idempotent) - **DELETE**: Remove resources (idempotent)
### URL Structure Best Practices ``` Collection Resources: /api/v1/users Individual Resources: /api/v1/users/123 Nested Resources: /api/v1/users/123/orders Actions: /api/v1/users/123/activate (POST) Filtering: /api/v1/users?status=active&role=admin ```
## Versioning Strategies
### 1. URL Versioning (Recommended) ``` /api/v1/users /api/v2/users ``` **Pros**: Clear, explicit, easy to route **Cons**: URL proliferation, caching complexity
### 2. Header Versioning ``` GET /api/users Accept: application/vnd.api+json;version=1 ``` **Pros**: Clean URLs, content negotiation **Cons**: Less visible, harder to test manually
### 3. Media Type Versioning ``` GET /api/users Accept: application/vnd.myapi.v1+json ``` **Pros**: RESTful, supports multiple representations **Cons**: Complex, harder to implement
### 4. Query Parameter Versioning ``` /api/users?version=1 ``` **Pros**: Simple to implement **Cons**: Not RESTful, can be ignored
## Pagination Patterns
### Offset-Based Pagination ```json { "data": [...], "pagination": { "offset": 20, "limit": 10, "total": 150, "hasMore": true } } ```
### Cursor-Based Pagination ```json { "data": [...], "pagination": { "nextCursor": "eyJpZCI6MTIzfQ==", "hasMore": true } } ```
### Page-Based Pagination ```json { "data": [...], "pagination": { "page": 3, "pageSize": 10, "totalPages": 15, "totalItems": 150 } } ```
## Error Response Formats
### Standard Error Structure ```json { "error": { "code": "VALIDATION_ERROR", "message": "The request contains invalid parameters", "details": [ { "field": "email", "code": "INVALID_FORMAT", "message": "Email address is not valid" } ], "requestId": "req-123456", "timestamp": "2026-02-16T13:00:00Z" } } ```
### HTTP Status Code Usage - **400 Bad Request**: Invalid request syntax or parameters - **401 Unauthorized**: Authentication required - **403 Forbidden**: Access denied (authenticated but not authorized) - **404 Not Found**: Resource not found - **409 Conflict**: Resource conflict (duplicate, version mismatch) - **422 Unprocessable Entity**: Valid syntax but semantic errors - **429 Too Many Requests**: Rate limit exceeded - **500 Internal Server Error**: Unexpected server error
## Authentication and Authorization Patterns
### Bearer Token Authentication ``` Authorization: Bearer <token> ```
### API Key Authentication ``` X-API-Key: <api-key> Authorization: Api-Key <api-key> ```
### OAuth 2.0 Flow ``` Authorization: Bearer <oauth-access-token> ```
### Role-Based Access Control (RBAC) ```json { "user": { "id": "123", "roles": ["admin", "editor"], "permissions": ["read:users", "write:orders"] } } ```
## Rate Limiting Implementation
### Headers ``` X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 999 X-RateLimit-Reset: 1640995200 ```
### Response on Limit Exceeded ```json { "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Too many requests", "retryAfter": 3600 } } ```
## HATEOAS (Hypermedia as the Engine of Application State)
### Example Implementation ```json { "id": "123", "name": "John Doe", "email": "john@example.com", "_links": { "self": { "href": "/api/v1/users/123" }, "orders": { "href": "/api/v1/users/123/orders" }, "profile": { "href": "/api/v1/users/123/profile" }, "deactivate": { "href": "/api/v1/users/123/deactivate", "method": "POST" } } } ```
## Idempotency
### Idempotent Methods - **GET**: Always safe and idempotent - **PUT**: Should be idempotent (replace entire resource) - **DELETE**: Should be idempotent (same result) - **PATCH**: May or may not be idempotent
### Idempotency Keys ``` POST /api/v1/payments Idempotency-Key: 123e4567-e89b-12d3-a456-426614174000 ```
## Backward Compatibility Guidelines
### Safe Changes (Non-Breaking) - Adding optional fields to requests - Adding fields to responses - Adding new endpoints - Making required fields optional - Adding new enum values (with graceful handling)
### Breaking Changes (Require Version Bump) - Removing fields from responses - Making optional fields required - Changing field types - Removing endpoints - Changing URL structures - Modifying error response formats
## OpenAPI/Swagger Validation
### Required Components - **API Information**: Title, description, version - **Server Information**: Base URLs and descriptions - **Path Definitions**: All endpoints with methods - **Parameter Definitions**: Query, path, header parameters - **Request/Response Schemas**: Complete data models - **Security Definitions**: Authentication schemes - **Error Responses**: Standard error formats
### Best Practices - Use consistent naming conventions - Provide detailed descriptions for all components - Include examples for complex objects - Define reusable components and schemas - Validate against OpenAPI specification
## Performance Considerations
### Caching Strategies ``` Cache-Control: public, max-age=3600 ETag: "123456789" Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT ```
### Efficient Data Transfer - Use appropriate HTTP methods - Implement field selection (`?fields=id,name,email`) - Support compression (gzip) - Implement efficient pagination - Use ETags for conditional requests
### Resource Optimization - Avoid N+1 queries - Implement batch operations - Use async processing for heavy operations - Support partial updates (PATCH)
## Security Best Practices
### Input Validation - Validate all input parameters - Sanitize user data - Use parameterized queries - Implement request size limits
### Authentication Security - Use HTTPS everywhere - Implement secure token storage - Support token expiration and refresh - Use strong authentication mechanisms
### Authorization Controls - Implement principle of least privilege - Use resource-based permissions - Support fine-grained access control - Audit access patterns
## Tools and Scripts
### api_linter.py Analyzes API specifications for compliance with REST conventions and best practices.
**Features:** - OpenAPI/Swagger spec validation - Naming convention checks - HTTP method usage validation - Error format consistency - Documentation completeness analysis
### breaking_change_detector.py Compares API specification versions to identify breaking changes.
**Features:** - Endpoint comparison - Schema change detection - Field removal/modification tracking - Migration guide generation - Impact severity assessment
### api_scorecard.py Provides comprehensive scoring of API design quality.
**Features:** - Multi-dimensional scoring - Detailed improvement recommendations - Letter grade assessment (A-F) - Benchmark comparisons - Progress tracking
## Integration Examples
### CI/CD Integration ```yaml - name: "api-linting" run: python scripts/api_linter.py openapi.json
- name: "breaking-change-detection" run: python scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json
- name: "api-scorecard" run: python scripts/api_scorecard.py openapi.json ```
### Pre-commit Hooks ```bash #!/bin/bash python engineering/skills/api-design-reviewer/scripts/api_linter.py api/openapi.json if [ $? -ne 0 ]; then echo "API linting failed. Please fix the issues before committing." exit 1 fi ```
## Best Practices Summary
1. **Consistency First**: Maintain consistent naming, response formats, and patterns 2. **Documentation**: Provide comprehensive, up-to-date API documentation 3. **Versioning**: Plan for evolution with clear versioning strategies 4. **Error Handling**: Implement consistent, informative error responses 5. **Security**: Build security into every layer of the API 6. **Performance**: Design for scale and efficiency from the start 7. **Backward Compatibility**: Minimize breaking changes and provide migration paths 8. **Testing**: Implement comprehensive testing including contract testing 9. **Monitoring**: Add observability for API usage and performance 10. **Developer Experience**: Prioritize ease of use and clear documentation
## Common Anti-Patterns to Avoid
1. **Verb-based URLs**
Source provenance
Decision snapshot
25,373 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-design-reviewer, ready for a manual X post.
api-design-reviewer: Comprehensive REST API design review with automated linting, breaking-change detection, and d... 25.4K stars https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x
Listing + install path for api-design-reviewer: https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x Install: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to alirezarezvani but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer/audit)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)alirezarezvani
@alirezarezvani
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "api-design-reviewer" agent skill from https://github.com/alirezarezvani/claude-skills/tree/main/.gemini/skills/api-design-reviewer. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"alirezarezvani-api-design-reviewer","task":"Install api-design-reviewer","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 79/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 3.6K forks
Maintenance
6d since push
License
MIT
Install
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add alirezarezvani/claude-skills --skill api-design-reviewerDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
Agent should check
Copy prompt
Task: Use api-design-reviewer in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install
Install command: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
LLM text format
/api/skills/alirezarezvani-api-design-reviewer/install?format=text
Find alternatives
/api/skills/search?q=api-design-reviewer&limit=3
Agent prompt
Use api-design-reviewer for this task. Review https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install, then install with: npx skills add alirezarezvani/claude-skills --skill api-design-reviewerRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/alirezarezvani-api-design-reviewer
LLM text
/api/registry/manifest/alirezarezvani-api-design-reviewer?format=text
Install alias
/api/registry/install/alirezarezvani-api-design-reviewer
Recommend
/api/registry/recommend?task=Use%20api-design-reviewer%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: "api-design-reviewer" description: "Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team." ---
# API Design Reviewer
**Tier:** POWERFUL **Category:** Engineering / Architecture **Maintainer:** Claude Skills Team
## Overview
The API Design Reviewer skill provides comprehensive analysis and review of API designs, focusing on REST conventions, best practices, and industry standards. This skill helps engineering teams build consistent, maintainable, and well-designed APIs through automated linting, breaking change detection, and design scorecards.
## Quick Start — run the tools first
```bash # 1. Lint an OpenAPI/Swagger spec for convention violations python3 scripts/api_linter.py openapi.json --format json -o lint.json
# 2. Detect breaking changes between two spec versions (gate: exits non-zero with --exit-on-breaking) python3 scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json --format json --exit-on-breaking -o breaking.json
# 3. Score overall design quality (gate: --min-grade fails below threshold) python3 scripts/api_scorecard.py openapi.json --format json --min-grade B -o scorecard.json ```
Review flow: run all three, report linter findings + breaking changes + grade to the user, fix, then re-run until the linter is clean, `--exit-on-breaking` passes (or breaking changes are version-bumped), and the scorecard meets the agreed `--min-grade`. Never sign off an API review on prose alone — attach the tool outputs.
## Core Capabilities
### 1. API Linting and Convention Analysis - **Resource Naming Conventions**: Enforces kebab-case for resources, camelCase for fields - **HTTP Method Usage**: Validates proper use of GET, POST, PUT, PATCH, DELETE - **URL Structure**: Analyzes endpoint patterns for consistency and RESTful design - **Status Code Compliance**: Ensures appropriate HTTP status codes are used - **Error Response Formats**: Validates consistent error response structures - **Documentation Coverage**: Checks for missing descriptions and documentation gaps
### 2. Breaking Change Detection - **Endpoint Removal**: Detects removed or deprecated endpoints - **Response Shape Changes**: Identifies modifications to response structures - **Field Removal**: Tracks removed or renamed fields in API responses - **Type Changes**: Catches field type modifications that could break clients - **Required Field Additions**: Flags new required fields that could break existing integrations - **Status Code Changes**: Detects changes to expected status codes
### 3. API Design Scoring and Assessment - **Consistency Analysis** (30%): Evaluates naming conventions, response patterns, and structural consistency - **Documentation Quality** (20%): Assesses completeness and clarity of API documentation - **Security Implementation** (20%): Reviews authentication, authorization, and security headers - **Usability Design** (15%): Analyzes ease of use, discoverability, and developer experience - **Performance Patterns** (15%): Evaluates caching, pagination, and efficiency patterns
## REST Design Principles
### Resource Naming Conventions ``` ✅ Good Examples: - /api/v1/users - /api/v1/user-profiles - /api/v1/orders/123/line-items
❌ Bad Examples: - /api/v1/getUsers - /api/v1/user_profiles - /api/v1/orders/123/lineItems ```
### HTTP Method Usage - **GET**: Retrieve resources (safe, idempotent) - **POST**: Create new resources (not idempotent) - **PUT**: Replace entire resources (idempotent) - **PATCH**: Partial resource updates (not necessarily idempotent) - **DELETE**: Remove resources (idempotent)
### URL Structure Best Practices ``` Collection Resources: /api/v1/users Individual Resources: /api/v1/users/123 Nested Resources: /api/v1/users/123/orders Actions: /api/v1/users/123/activate (POST) Filtering: /api/v1/users?status=active&role=admin ```
## Versioning Strategies
### 1. URL Versioning (Recommended) ``` /api/v1/users /api/v2/users ``` **Pros**: Clear, explicit, easy to route **Cons**: URL proliferation, caching complexity
### 2. Header Versioning ``` GET /api/users Accept: application/vnd.api+json;version=1 ``` **Pros**: Clean URLs, content negotiation **Cons**: Less visible, harder to test manually
### 3. Media Type Versioning ``` GET /api/users Accept: application/vnd.myapi.v1+json ``` **Pros**: RESTful, supports multiple representations **Cons**: Complex, harder to implement
### 4. Query Parameter Versioning ``` /api/users?version=1 ``` **Pros**: Simple to implement **Cons**: Not RESTful, can be ignored
## Pagination Patterns
### Offset-Based Pagination ```json { "data": [...], "pagination": { "offset": 20, "limit": 10, "total": 150, "hasMore": true } } ```
### Cursor-Based Pagination ```json { "data": [...], "pagination": { "nextCursor": "eyJpZCI6MTIzfQ==", "hasMore": true } } ```
### Page-Based Pagination ```json { "data": [...], "pagination": { "page": 3, "pageSize": 10, "totalPages": 15, "totalItems": 150 } } ```
## Error Response Formats
### Standard Error Structure ```json { "error": { "code": "VALIDATION_ERROR", "message": "The request contains invalid parameters", "details": [ { "field": "email", "code": "INVALID_FORMAT", "message": "Email address is not valid" } ], "requestId": "req-123456", "timestamp": "2026-02-16T13:00:00Z" } } ```
### HTTP Status Code Usage - **400 Bad Request**: Invalid request syntax or parameters - **401 Unauthorized**: Authentication required - **403 Forbidden**: Access denied (authenticated but not authorized) - **404 Not Found**: Resource not found - **409 Conflict**: Resource conflict (duplicate, version mismatch) - **422 Unprocessable Entity**: Valid syntax but semantic errors - **429 Too Many Requests**: Rate limit exceeded - **500 Internal Server Error**: Unexpected server error
## Authentication and Authorization Patterns
### Bearer Token Authentication ``` Authorization: Bearer <token> ```
### API Key Authentication ``` X-API-Key: <api-key> Authorization: Api-Key <api-key> ```
### OAuth 2.0 Flow ``` Authorization: Bearer <oauth-access-token> ```
### Role-Based Access Control (RBAC) ```json { "user": { "id": "123", "roles": ["admin", "editor"], "permissions": ["read:users", "write:orders"] } } ```
## Rate Limiting Implementation
### Headers ``` X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 999 X-RateLimit-Reset: 1640995200 ```
### Response on Limit Exceeded ```json { "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Too many requests", "retryAfter": 3600 } } ```
## HATEOAS (Hypermedia as the Engine of Application State)
### Example Implementation ```json { "id": "123", "name": "John Doe", "email": "john@example.com", "_links": { "self": { "href": "/api/v1/users/123" }, "orders": { "href": "/api/v1/users/123/orders" }, "profile": { "href": "/api/v1/users/123/profile" }, "deactivate": { "href": "/api/v1/users/123/deactivate", "method": "POST" } } } ```
## Idempotency
### Idempotent Methods - **GET**: Always safe and idempotent - **PUT**: Should be idempotent (replace entire resource) - **DELETE**: Should be idempotent (same result) - **PATCH**: May or may not be idempotent
### Idempotency Keys ``` POST /api/v1/payments Idempotency-Key: 123e4567-e89b-12d3-a456-426614174000 ```
## Backward Compatibility Guidelines
### Safe Changes (Non-Breaking) - Adding optional fields to requests - Adding fields to responses - Adding new endpoints - Making required fields optional - Adding new enum values (with graceful handling)
### Breaking Changes (Require Version Bump) - Removing fields from responses - Making optional fields required - Changing field types - Removing endpoints - Changing URL structures - Modifying error response formats
## OpenAPI/Swagger Validation
### Required Components - **API Information**: Title, description, version - **Server Information**: Base URLs and descriptions - **Path Definitions**: All endpoints with methods - **Parameter Definitions**: Query, path, header parameters - **Request/Response Schemas**: Complete data models - **Security Definitions**: Authentication schemes - **Error Responses**: Standard error formats
### Best Practices - Use consistent naming conventions - Provide detailed descriptions for all components - Include examples for complex objects - Define reusable components and schemas - Validate against OpenAPI specification
## Performance Considerations
### Caching Strategies ``` Cache-Control: public, max-age=3600 ETag: "123456789" Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT ```
### Efficient Data Transfer - Use appropriate HTTP methods - Implement field selection (`?fields=id,name,email`) - Support compression (gzip) - Implement efficient pagination - Use ETags for conditional requests
### Resource Optimization - Avoid N+1 queries - Implement batch operations - Use async processing for heavy operations - Support partial updates (PATCH)
## Security Best Practices
### Input Validation - Validate all input parameters - Sanitize user data - Use parameterized queries - Implement request size limits
### Authentication Security - Use HTTPS everywhere - Implement secure token storage - Support token expiration and refresh - Use strong authentication mechanisms
### Authorization Controls - Implement principle of least privilege - Use resource-based permissions - Support fine-grained access control - Audit access patterns
## Tools and Scripts
### api_linter.py Analyzes API specifications for compliance with REST conventions and best practices.
**Features:** - OpenAPI/Swagger spec validation - Naming convention checks - HTTP method usage validation - Error format consistency - Documentation completeness analysis
### breaking_change_detector.py Compares API specification versions to identify breaking changes.
**Features:** - Endpoint comparison - Schema change detection - Field removal/modification tracking - Migration guide generation - Impact severity assessment
### api_scorecard.py Provides comprehensive scoring of API design quality.
**Features:** - Multi-dimensional scoring - Detailed improvement recommendations - Letter grade assessment (A-F) - Benchmark comparisons - Progress tracking
## Integration Examples
### CI/CD Integration ```yaml - name: "api-linting" run: python scripts/api_linter.py openapi.json
- name: "breaking-change-detection" run: python scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json
- name: "api-scorecard" run: python scripts/api_scorecard.py openapi.json ```
### Pre-commit Hooks ```bash #!/bin/bash python engineering/skills/api-design-reviewer/scripts/api_linter.py api/openapi.json if [ $? -ne 0 ]; then echo "API linting failed. Please fix the issues before committing." exit 1 fi ```
## Best Practices Summary
1. **Consistency First**: Maintain consistent naming, response formats, and patterns 2. **Documentation**: Provide comprehensive, up-to-date API documentation 3. **Versioning**: Plan for evolution with clear versioning strategies 4. **Error Handling**: Implement consistent, informative error responses 5. **Security**: Build security into every layer of the API 6. **Performance**: Design for scale and efficiency from the start 7. **Backward Compatibility**: Minimize breaking changes and provide migration paths 8. **Testing**: Implement comprehensive testing including contract testing 9. **Monitoring**: Add observability for API usage and performance 10. **Developer Experience**: Prioritize ease of use and clear documentation
## Common Anti-Patterns to Avoid
1. **Verb-based URLs**
Source provenance
Decision snapshot
25,373 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-design-reviewer, ready for a manual X post.
api-design-reviewer: Comprehensive REST API design review with automated linting, breaking-change detection, and d... 25.4K stars https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x
Listing + install path for api-design-reviewer: https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x Install: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to alirezarezvani but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer/audit)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)alirezarezvani
@alirezarezvani
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "api-design-reviewer" agent skill from https://github.com/alirezarezvani/claude-skills/tree/main/.gemini/skills/api-design-reviewer. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"alirezarezvani-api-design-reviewer","task":"Install api-design-reviewer","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Coding agents
I need a coding agent that can understand a repository, edit code, and review pull requests.
Agent fit
Claude Code + Cursor + CLI
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Maintenance
fresh
6d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
25K
91/100 Quality · 79/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
ExcellentHigh-confidence pick with strong adoption and healthy maintenance signals.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
25K GitHub stars
Repo activity
25K stars, 3.6K forks
Maintenance
6d since push
License
MIT
Install
npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add alirezarezvani/claude-skills --skill api-design-reviewerDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
high
Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
Agent should check
Copy prompt
Task: Use api-design-reviewer in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20api-design-reviewer%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install
Install command: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/alirezarezvani-api-design-reviewer/install
LLM text format
/api/skills/alirezarezvani-api-design-reviewer/install?format=text
Find alternatives
/api/skills/search?q=api-design-reviewer&limit=3
Agent prompt
Use api-design-reviewer for this task. Review https://www.openagentskill.com/api/skills/alirezarezvani-api-design-reviewer/install, then install with: npx skills add alirezarezvani/claude-skills --skill api-design-reviewerRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/alirezarezvani-api-design-reviewer
LLM text
/api/registry/manifest/alirezarezvani-api-design-reviewer?format=text
Install alias
/api/registry/install/alirezarezvani-api-design-reviewer
Recommend
/api/registry/recommend?task=Use%20api-design-reviewer%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code, Cursor
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Use this as a leading candidate, then validate the README and install path in your own agent stack.
Role in stack
Primary pick
Primary fit
Research agents
Trust label
Production-ready
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
PASS25K GitHub stars
Stars/forks activity
PASS25K stars, 3.6K forks; issue activity unavailable in current metadata
Recent maintenance
PASS6d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
High-confidence pick with strong adoption and healthy maintenance signals.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Build and ship code
I need a coding agent that can understand a repository, edit code, and review pull requests.
Manage repositories
I need my agent to triage GitHub issues, review pull requests, and summarize repository changes.
Workflow fit
Inspect, patch, and verify code
A workflow for software agents that inspect repositories, review pull requests, generate tests, and turn findings into shippable patches.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: "api-design-reviewer" description: "Comprehensive REST API design review with automated linting, breaking-change detection, and design scorecards. Catches inconsistent conventions, missing versioning, and design smells before APIs ship. Use when reviewing a PR that adds or changes API endpoints, auditing an existing API for v2 migration, or establishing API standards for a team." ---
# API Design Reviewer
**Tier:** POWERFUL **Category:** Engineering / Architecture **Maintainer:** Claude Skills Team
## Overview
The API Design Reviewer skill provides comprehensive analysis and review of API designs, focusing on REST conventions, best practices, and industry standards. This skill helps engineering teams build consistent, maintainable, and well-designed APIs through automated linting, breaking change detection, and design scorecards.
## Quick Start — run the tools first
```bash # 1. Lint an OpenAPI/Swagger spec for convention violations python3 scripts/api_linter.py openapi.json --format json -o lint.json
# 2. Detect breaking changes between two spec versions (gate: exits non-zero with --exit-on-breaking) python3 scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json --format json --exit-on-breaking -o breaking.json
# 3. Score overall design quality (gate: --min-grade fails below threshold) python3 scripts/api_scorecard.py openapi.json --format json --min-grade B -o scorecard.json ```
Review flow: run all three, report linter findings + breaking changes + grade to the user, fix, then re-run until the linter is clean, `--exit-on-breaking` passes (or breaking changes are version-bumped), and the scorecard meets the agreed `--min-grade`. Never sign off an API review on prose alone — attach the tool outputs.
## Core Capabilities
### 1. API Linting and Convention Analysis - **Resource Naming Conventions**: Enforces kebab-case for resources, camelCase for fields - **HTTP Method Usage**: Validates proper use of GET, POST, PUT, PATCH, DELETE - **URL Structure**: Analyzes endpoint patterns for consistency and RESTful design - **Status Code Compliance**: Ensures appropriate HTTP status codes are used - **Error Response Formats**: Validates consistent error response structures - **Documentation Coverage**: Checks for missing descriptions and documentation gaps
### 2. Breaking Change Detection - **Endpoint Removal**: Detects removed or deprecated endpoints - **Response Shape Changes**: Identifies modifications to response structures - **Field Removal**: Tracks removed or renamed fields in API responses - **Type Changes**: Catches field type modifications that could break clients - **Required Field Additions**: Flags new required fields that could break existing integrations - **Status Code Changes**: Detects changes to expected status codes
### 3. API Design Scoring and Assessment - **Consistency Analysis** (30%): Evaluates naming conventions, response patterns, and structural consistency - **Documentation Quality** (20%): Assesses completeness and clarity of API documentation - **Security Implementation** (20%): Reviews authentication, authorization, and security headers - **Usability Design** (15%): Analyzes ease of use, discoverability, and developer experience - **Performance Patterns** (15%): Evaluates caching, pagination, and efficiency patterns
## REST Design Principles
### Resource Naming Conventions ``` ✅ Good Examples: - /api/v1/users - /api/v1/user-profiles - /api/v1/orders/123/line-items
❌ Bad Examples: - /api/v1/getUsers - /api/v1/user_profiles - /api/v1/orders/123/lineItems ```
### HTTP Method Usage - **GET**: Retrieve resources (safe, idempotent) - **POST**: Create new resources (not idempotent) - **PUT**: Replace entire resources (idempotent) - **PATCH**: Partial resource updates (not necessarily idempotent) - **DELETE**: Remove resources (idempotent)
### URL Structure Best Practices ``` Collection Resources: /api/v1/users Individual Resources: /api/v1/users/123 Nested Resources: /api/v1/users/123/orders Actions: /api/v1/users/123/activate (POST) Filtering: /api/v1/users?status=active&role=admin ```
## Versioning Strategies
### 1. URL Versioning (Recommended) ``` /api/v1/users /api/v2/users ``` **Pros**: Clear, explicit, easy to route **Cons**: URL proliferation, caching complexity
### 2. Header Versioning ``` GET /api/users Accept: application/vnd.api+json;version=1 ``` **Pros**: Clean URLs, content negotiation **Cons**: Less visible, harder to test manually
### 3. Media Type Versioning ``` GET /api/users Accept: application/vnd.myapi.v1+json ``` **Pros**: RESTful, supports multiple representations **Cons**: Complex, harder to implement
### 4. Query Parameter Versioning ``` /api/users?version=1 ``` **Pros**: Simple to implement **Cons**: Not RESTful, can be ignored
## Pagination Patterns
### Offset-Based Pagination ```json { "data": [...], "pagination": { "offset": 20, "limit": 10, "total": 150, "hasMore": true } } ```
### Cursor-Based Pagination ```json { "data": [...], "pagination": { "nextCursor": "eyJpZCI6MTIzfQ==", "hasMore": true } } ```
### Page-Based Pagination ```json { "data": [...], "pagination": { "page": 3, "pageSize": 10, "totalPages": 15, "totalItems": 150 } } ```
## Error Response Formats
### Standard Error Structure ```json { "error": { "code": "VALIDATION_ERROR", "message": "The request contains invalid parameters", "details": [ { "field": "email", "code": "INVALID_FORMAT", "message": "Email address is not valid" } ], "requestId": "req-123456", "timestamp": "2026-02-16T13:00:00Z" } } ```
### HTTP Status Code Usage - **400 Bad Request**: Invalid request syntax or parameters - **401 Unauthorized**: Authentication required - **403 Forbidden**: Access denied (authenticated but not authorized) - **404 Not Found**: Resource not found - **409 Conflict**: Resource conflict (duplicate, version mismatch) - **422 Unprocessable Entity**: Valid syntax but semantic errors - **429 Too Many Requests**: Rate limit exceeded - **500 Internal Server Error**: Unexpected server error
## Authentication and Authorization Patterns
### Bearer Token Authentication ``` Authorization: Bearer <token> ```
### API Key Authentication ``` X-API-Key: <api-key> Authorization: Api-Key <api-key> ```
### OAuth 2.0 Flow ``` Authorization: Bearer <oauth-access-token> ```
### Role-Based Access Control (RBAC) ```json { "user": { "id": "123", "roles": ["admin", "editor"], "permissions": ["read:users", "write:orders"] } } ```
## Rate Limiting Implementation
### Headers ``` X-RateLimit-Limit: 1000 X-RateLimit-Remaining: 999 X-RateLimit-Reset: 1640995200 ```
### Response on Limit Exceeded ```json { "error": { "code": "RATE_LIMIT_EXCEEDED", "message": "Too many requests", "retryAfter": 3600 } } ```
## HATEOAS (Hypermedia as the Engine of Application State)
### Example Implementation ```json { "id": "123", "name": "John Doe", "email": "john@example.com", "_links": { "self": { "href": "/api/v1/users/123" }, "orders": { "href": "/api/v1/users/123/orders" }, "profile": { "href": "/api/v1/users/123/profile" }, "deactivate": { "href": "/api/v1/users/123/deactivate", "method": "POST" } } } ```
## Idempotency
### Idempotent Methods - **GET**: Always safe and idempotent - **PUT**: Should be idempotent (replace entire resource) - **DELETE**: Should be idempotent (same result) - **PATCH**: May or may not be idempotent
### Idempotency Keys ``` POST /api/v1/payments Idempotency-Key: 123e4567-e89b-12d3-a456-426614174000 ```
## Backward Compatibility Guidelines
### Safe Changes (Non-Breaking) - Adding optional fields to requests - Adding fields to responses - Adding new endpoints - Making required fields optional - Adding new enum values (with graceful handling)
### Breaking Changes (Require Version Bump) - Removing fields from responses - Making optional fields required - Changing field types - Removing endpoints - Changing URL structures - Modifying error response formats
## OpenAPI/Swagger Validation
### Required Components - **API Information**: Title, description, version - **Server Information**: Base URLs and descriptions - **Path Definitions**: All endpoints with methods - **Parameter Definitions**: Query, path, header parameters - **Request/Response Schemas**: Complete data models - **Security Definitions**: Authentication schemes - **Error Responses**: Standard error formats
### Best Practices - Use consistent naming conventions - Provide detailed descriptions for all components - Include examples for complex objects - Define reusable components and schemas - Validate against OpenAPI specification
## Performance Considerations
### Caching Strategies ``` Cache-Control: public, max-age=3600 ETag: "123456789" Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT ```
### Efficient Data Transfer - Use appropriate HTTP methods - Implement field selection (`?fields=id,name,email`) - Support compression (gzip) - Implement efficient pagination - Use ETags for conditional requests
### Resource Optimization - Avoid N+1 queries - Implement batch operations - Use async processing for heavy operations - Support partial updates (PATCH)
## Security Best Practices
### Input Validation - Validate all input parameters - Sanitize user data - Use parameterized queries - Implement request size limits
### Authentication Security - Use HTTPS everywhere - Implement secure token storage - Support token expiration and refresh - Use strong authentication mechanisms
### Authorization Controls - Implement principle of least privilege - Use resource-based permissions - Support fine-grained access control - Audit access patterns
## Tools and Scripts
### api_linter.py Analyzes API specifications for compliance with REST conventions and best practices.
**Features:** - OpenAPI/Swagger spec validation - Naming convention checks - HTTP method usage validation - Error format consistency - Documentation completeness analysis
### breaking_change_detector.py Compares API specification versions to identify breaking changes.
**Features:** - Endpoint comparison - Schema change detection - Field removal/modification tracking - Migration guide generation - Impact severity assessment
### api_scorecard.py Provides comprehensive scoring of API design quality.
**Features:** - Multi-dimensional scoring - Detailed improvement recommendations - Letter grade assessment (A-F) - Benchmark comparisons - Progress tracking
## Integration Examples
### CI/CD Integration ```yaml - name: "api-linting" run: python scripts/api_linter.py openapi.json
- name: "breaking-change-detection" run: python scripts/breaking_change_detector.py openapi-v1.json openapi-v2.json
- name: "api-scorecard" run: python scripts/api_scorecard.py openapi.json ```
### Pre-commit Hooks ```bash #!/bin/bash python engineering/skills/api-design-reviewer/scripts/api_linter.py api/openapi.json if [ $? -ne 0 ]; then echo "API linting failed. Please fix the issues before committing." exit 1 fi ```
## Best Practices Summary
1. **Consistency First**: Maintain consistent naming, response formats, and patterns 2. **Documentation**: Provide comprehensive, up-to-date API documentation 3. **Versioning**: Plan for evolution with clear versioning strategies 4. **Error Handling**: Implement consistent, informative error responses 5. **Security**: Build security into every layer of the API 6. **Performance**: Design for scale and efficiency from the start 7. **Backward Compatibility**: Minimize breaking changes and provide migration paths 8. **Testing**: Implement comprehensive testing including contract testing 9. **Monitoring**: Add observability for API usage and performance 10. **Developer Experience**: Prioritize ease of use and clear documentation
## Common Anti-Patterns to Avoid
1. **Verb-based URLs**
Source provenance
Decision snapshot
25,373 GitHub stars
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for api-design-reviewer, ready for a manual X post.
api-design-reviewer: Comprehensive REST API design review with automated linting, breaking-change detection, and d... 25.4K stars https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x
Listing + install path for api-design-reviewer: https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=x Install: npx skills add alirezarezvani/claude-skills --skill api-design-reviewer
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to alirezarezvani but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer/audit)
[](https://www.openagentskill.com/skills/alirezarezvani-api-design-reviewer?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)alirezarezvani
@alirezarezvani
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsPermission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
secrets or environment access, shell or command execution
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness