[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M777Z8MT4AP21QDFYPBTHPYX":3,"skill-same:01M777Z8MT4AP21QDFYPBTHPYX":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M777Z8MT4AP21QDFYPBTHPYX","api-design-reviewer",null,"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.","kruxshnx\u002Fclaude-skills-devin","kruxshnx","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F127938788?v=4","01M757YM3F96N4K1BSE7Z0NQK7","ARJANGI GOVINDA KRISHNA","01M757YM43H5T7MP2B3DC13GZ2",2,"MIT","https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fengineering\u002Fskills\u002Fapi-design-reviewer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"api-design-reviewer\"\ndescription: \"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.\"\n---\n\n# API Design Reviewer\n\n**Tier:** POWERFUL  \n**Category:** Engineering \u002F Architecture  \n**Maintainer:** Claude Skills Team  \n\n## Overview\n\nThe 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.\n\n## Core Capabilities\n\n### 1. API Linting and Convention Analysis\n- **Resource Naming Conventions**: Enforces kebab-case for resources, camelCase for fields\n- **HTTP Method Usage**: Validates proper use of GET, POST, PUT, PATCH, DELETE\n- **URL Structure**: Analyzes endpoint patterns for consistency and RESTful design\n- **Status Code Compliance**: Ensures appropriate HTTP status codes are used\n- **Error Response Formats**: Validates consistent error response structures\n- **Documentation Coverage**: Checks for missing descriptions and documentation gaps\n\n### 2. Breaking Change Detection\n- **Endpoint Removal**: Detects removed or deprecated endpoints\n- **Response Shape Changes**: Identifies modifications to response structures\n- **Field Removal**: Tracks removed or renamed fields in API responses\n- **Type Changes**: Catches field type modifications that could break clients\n- **Required Field Additions**: Flags new required fields that could break existing integrations\n- **Status Code Changes**: Detects changes to expected status codes\n\n### 3. API Design Scoring and Assessment\n- **Consistency Analysis** (30%): Evaluates naming conventions, response patterns, and structural consistency\n- **Documentation Quality** (20%): Assesses completeness and clarity of API documentation\n- **Security Implementation** (20%): Reviews authentication, authorization, and security headers\n- **Usability Design** (15%): Analyzes ease of use, discoverability, and developer experience\n- **Performance Patterns** (15%): Evaluates caching, pagination, and efficiency patterns\n\n## REST Design Principles\n\n### Resource Naming Conventions\n```\n✅ Good Examples:\n- \u002Fapi\u002Fv1\u002Fusers\n- \u002Fapi\u002Fv1\u002Fuser-profiles\n- \u002Fapi\u002Fv1\u002Forders\u002F123\u002Fline-items\n\n❌ Bad Examples:\n- \u002Fapi\u002Fv1\u002FgetUsers\n- \u002Fapi\u002Fv1\u002Fuser_profiles\n- \u002Fapi\u002Fv1\u002Forders\u002F123\u002FlineItems\n```\n\n### HTTP Method Usage\n- **GET**: Retrieve resources (safe, idempotent)\n- **POST**: Create new resources (not idempotent)\n- **PUT**: Replace entire resources (idempotent)\n- **PATCH**: Partial resource updates (not necessarily idempotent)\n- **DELETE**: Remove resources (idempotent)\n\n### URL Structure Best Practices\n```\nCollection Resources: \u002Fapi\u002Fv1\u002Fusers\nIndividual Resources: \u002Fapi\u002Fv1\u002Fusers\u002F123\nNested Resources: \u002Fapi\u002Fv1\u002Fusers\u002F123\u002Forders\nActions: \u002Fapi\u002Fv1\u002Fusers\u002F123\u002Factivate (POST)\nFiltering: \u002Fapi\u002Fv1\u002Fusers?status=active&role=admin\n```\n\n## Versioning Strategies\n\n### 1. URL Versioning (Recommended)\n```\n\u002Fapi\u002Fv1\u002Fusers\n\u002Fapi\u002Fv2\u002Fusers\n```\n**Pros**: Clear, explicit, easy to route  \n**Cons**: URL proliferation, caching complexity\n\n### 2. Header Versioning\n```\nGET \u002Fapi\u002Fusers\nAccept: application\u002Fvnd.api+json;version=1\n```\n**Pros**: Clean URLs, content negotiation  \n**Cons**: Less visible, harder to test manually\n\n### 3. Media Type Versioning\n```\nGET \u002Fapi\u002Fusers\nAccept: application\u002Fvnd.myapi.v1+json\n```\n**Pros**: RESTful, supports multiple representations  \n**Cons**: Complex, harder to implement\n\n### 4. Query Parameter Versioning\n```\n\u002Fapi\u002Fusers?version=1\n```\n**Pros**: Simple to implement  \n**Cons**: Not RESTful, can be ignored\n\n## Pagination Patterns\n\n### Offset-Based Pagination\n```json\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"offset\": 20,\n    \"limit\": 10,\n    \"total\": 150,\n    \"hasMore\": true\n  }\n}\n```\n\n### Cursor-Based Pagination\n```json\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"nextCursor\": \"eyJpZCI6MTIzfQ==\",\n    \"hasMore\": true\n  }\n}\n```\n\n### Page-Based Pagination\n```json\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"page\": 3,\n    \"pageSize\": 10,\n    \"totalPages\": 15,\n    \"totalItems\": 150\n  }\n}\n```\n\n## Error Response Formats\n\n### Standard Error Structure\n```json\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"The request contains invalid parameters\",\n    \"details\": [\n      {\n        \"field\": \"email\",\n        \"code\": \"INVALID_FORMAT\",\n        \"message\": \"Email address is not valid\"\n      }\n    ],\n    \"requestId\": \"req-123456\",\n    \"timestamp\": \"2024-02-16T13:00:00Z\"\n  }\n}\n```\n\n### HTTP Status Code Usage\n- **400 Bad Request**: Invalid request syntax or parameters\n- **401 Unauthorized**: Authentication required\n- **403 Forbidden**: Access denied (authenticated but not authorized)\n- **404 Not Found**: Resource not found\n- **409 Conflict**: Resource conflict (duplicate, version mismatch)\n- **422 Unprocessable Entity**: Valid syntax but semantic errors\n- **429 Too Many Requests**: Rate limit exceeded\n- **500 Internal Server Error**: Unexpected server error\n\n## Authentication and Authorization Patterns\n\n### Bearer Token Authentication\n```\nAuthorization: Bearer \u003Ctoken>\n```\n\n### API Key Authentication\n```\nX-API-Key: \u003Capi-key>\nAuthorization: Api-Key \u003Capi-key>\n```\n\n### OAuth 2.0 Flow\n```\nAuthorization: Bearer \u003Coauth-access-token>\n```\n\n### Role-Based Access Control (RBAC)\n```json\n{\n  \"user\": {\n    \"id\": \"123\",\n    \"roles\": [\"admin\", \"editor\"],\n    \"permissions\": [\"read:users\", \"write:orders\"]\n  }\n}\n```\n\n## Rate Limiting Implementation\n\n### Headers\n```\nX-RateLimit-Limit: 1000\nX-RateLimit-Remaining: 999\nX-RateLimit-Reset: 1640995200\n```\n\n### Response on Limit Exceeded\n```json\n{\n  \"error\": {\n    \"code\": \"RATE_LIMIT_EXCEEDED\",\n    \"message\": \"Too many requests\",\n    \"retryAfter\": 3600\n  }\n}\n```\n\n## HATEOAS (Hypermedia as the Engine of Application State)\n\n### Example Implementation\n```json\n{\n  \"id\": \"123\",\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"_links\": {\n    \"self\": { \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\" },\n    \"orders\": { \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\u002Forders\" },\n    \"profile\": { \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\u002Fprofile\" },\n    \"deactivate\": { \n      \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\u002Fdeactivate\",\n      \"method\": \"POST\"\n    }\n  }\n}\n```\n\n## Idempotency\n\n### Idempotent Methods\n- **GET**: Always safe and idempotent\n- **PUT**: Should be idempotent (replace entire resource)\n- **DELETE**: Should be idempotent (same result)\n- **PATCH**: May or may not be idempotent\n\n### Idempotency Keys\n```\nPOST \u002Fapi\u002Fv1\u002Fpayments\nIdempotency-Key: 123e4567-e89b-12d3-a456-426614174000\n```\n\n## Backward Compatibility Guidelines\n\n### Safe Changes (Non-Breaking)\n- Adding optional fields to requests\n- Adding fields to responses\n- Adding new endpoints\n- Making required fields optional\n- Adding new enum values (with graceful handling)\n\n### Breaking Changes (Require Version Bump)\n- Removing fields from responses\n- Making optional fields required\n- Changing field types\n- Removing endpoints\n- Changing URL structures\n- Modifying error response formats\n\n## OpenAPI\u002FSwagger Validation\n\n### Required Components\n- **API Information**: Title, description, version\n- **Server Information**: Base URLs and descriptions\n- **Path Definitions**: All endpoints with methods\n- **Parameter Definitions**: Query, path, header parameters\n- **Request\u002FResponse Schemas**: Complete data models\n- **Security Definitions**: Authentication schemes\n- **Error Responses**: Standard error formats\n\n### Best Practices\n- Use consistent naming conventions\n- Provide detailed descriptions for all components\n- Include examples for complex objects\n- Define reusable components and schemas\n- Validate against OpenAPI specification\n\n## Performance Considerations\n\n### Caching Strategies\n```\nCache-Control: public, max-age=3600\nETag: \"123456789\"\nLast-Modified: Wed, 21 Oct 2015 07:28:00 GMT\n```\n\n### Efficient Data Transfer\n- Use appropriate HTTP methods\n- Implement field selection (`?fields=id,name,email`)\n- Support compression (gzip)\n- Implement efficient pagination\n- Use ETags for conditional requests\n\n### Resource Optimization\n- Avoid N+1 queries\n- Implement batch operations\n- Use async processing for heavy operations\n- Support partial updates (PATCH)\n\n## Security Best Practices\n\n### Input Validation\n- Validate all input parameters\n- Sanitize user data\n- Use parameterized queries\n- Implement request size limits\n\n### Authentication Security\n- Use HTTPS everywhere\n- Implement secure token storage\n- Support token expiration and refresh\n- Use strong authentication mechanisms\n\n### Authorization Controls\n- Implement principle of least privilege\n- Use resource-based permissions\n- Support fine-grained access control\n- Audit access patterns\n\n## Tools and Scripts\n\n### api_linter.py\nAnalyzes API specifications for compliance with REST conventions and best practices.\n\n**Features:**\n- OpenAPI\u002FSwagger spec validation\n- Naming convention checks\n- HTTP method usage validation\n- Error format consistency\n- Documentation completeness analysis\n\n### breaking_change_detector.py\nCompares API specification versions to identify breaking changes.\n\n**Features:**\n- Endpoint comparison\n- Schema change detection\n- Field removal\u002Fmodification tracking\n- Migration guide generation\n- Impact severity assessment\n\n### api_scorecard.py\nProvides comprehensive scoring of API design quality.\n\n**Features:**\n- Multi-dimensional scoring\n- Detailed improvement recommendations\n- Letter grade assessment (A-F)\n- Benchmark comparisons\n- Progress tracking\n\n## Integration Examples\n\n### CI\u002FCD Integration\n```yaml\n- name: \"api-linting\"\n  run: python scripts\u002Fapi_linter.py openapi.json\n\n- name: \"breaking-change-detection\"\n  run: python scripts\u002Fbreaking_change_detector.py openapi-v1.json openapi-v2.json\n\n- name: \"api-scorecard\"\n  run: python scripts\u002Fapi_scorecard.py openapi.json\n```\n\n### Pre-commit Hooks\n```bash\n#!\u002Fbin\u002Fbash\npython engineering\u002Fapi-design-reviewer\u002Fscripts\u002Fapi_linter.py api\u002Fopenapi.json\nif [ $? -ne 0 ]; then\n  echo \"API linting failed. Please fix the issues before committing.\"\n  exit 1\nfi\n```\n\n## Best Practices Summary\n\n1. **Consistency First**: Maintain consistent naming, response formats, and patterns\n2. **Documentation**: Provide comprehensive, up-to-date API documentation\n3. **Versioning**: Plan for evolution with clear versioning strategies\n4. **Error Handling**: Implement consistent, informative error responses\n5. **Security**: Build security into every layer of the API\n6. **Performance**: Design for scale and efficiency from the start\n7. **Backward Compatibility**: Minimize breaking changes and provide migration paths\n8. **Testing**: Implement comprehensive testing including contract testing\n9. **Monitoring**: Add observability for API usage and performance\n10. **Developer Experience**: Prioritize ease of use and clear documentation\n\n## Common Anti-Patterns to Avoid\n\n1. **Verb-based URLs**: Use nouns for resources, not actions\n2. **Inconsistent Response Formats**: Maintain standard response structures\n3. **Over-nesting**: Avoid deeply nested resource hierarchies\n4. **Ignoring HTTP Status Codes**: Use appropriate status codes for different scenarios\n5. **Poor Error Messages**: Provide actionable, specific error information\n6. **Missing Pagination**: Always paginate list endpoints\n7. **No Versioning Strategy**: Plan for API evolution from day one\n8. **Exposing Internal Structure**: Design APIs for external consumption, not internal convenience\n9. **Missing Rate Limiting**: Protect your API from abuse and overload\n10. **Inadequate Testing**: Test all aspects including error cases and edge conditions\n\n## Conclusion\n\nThe API Design Reviewer skill provides a comprehensive framework for building, reviewing, and maintaining high-quality REST APIs. By following these guidelines and using the provided tools, development teams can create APIs that are consistent, well-documented, secure, and maintainable.\n\nRegular use of the linting, breaking change detection, and scoring tools ensures continuous improvement and helps maintain API quality throughout the development lifecycle.","# API Design Reviewer\n\n**Tier:** POWERFUL  \n**Category:** Engineering \u002F Architecture  \n**Maintainer:** Claude Skills Team  \n\n## Overview\n\nThe 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.\n\n## Core Capabilities\n\n### 1. API Linting and Convention Analysis\n- **Resource Naming Conventions**: Enforces kebab-case for resources, camelCase for fields\n- **HTTP Method Usage**: Validates proper use of GET, POST, PUT, PATCH, DELETE\n- **URL Structure**: Analyzes endpoint patterns for consistency and RESTful design\n- **Status Code Compliance**: Ensures appropriate HTTP status codes are used\n- **Error Response Formats**: Validates consistent error response structures\n- **Documentation Coverage**: Checks for missing descriptions and documentation gaps\n\n### 2. Breaking Change Detection\n- **Endpoint Removal**: Detects removed or deprecated endpoints\n- **Response Shape Changes**: Identifies modifications to response structures\n- **Field Removal**: Tracks removed or renamed fields in API responses\n- **Type Changes**: Catches field type modifications that could break clients\n- **Required Field Additions**: Flags new required fields that could break existing integrations\n- **Status Code Changes**: Detects changes to expected status codes\n\n### 3. API Design Scoring and Assessment\n- **Consistency Analysis** (30%): Evaluates naming conventions, response patterns, and structural consistency\n- **Documentation Quality** (20%): Assesses completeness and clarity of API documentation\n- **Security Implementation** (20%): Reviews authentication, authorization, and security headers\n- **Usability Design** (15%): Analyzes ease of use, discoverability, and developer experience\n- **Performance Patterns** (15%): Evaluates caching, pagination, and efficiency patterns\n\n## REST Design Principles\n\n### Resource Naming Conventions\n```\n✅ Good Examples:\n- \u002Fapi\u002Fv1\u002Fusers\n- \u002Fapi\u002Fv1\u002Fuser-profiles\n- \u002Fapi\u002Fv1\u002Forders\u002F123\u002Fline-items\n\n❌ Bad Examples:\n- \u002Fapi\u002Fv1\u002FgetUsers\n- \u002Fapi\u002Fv1\u002Fuser_profiles\n- \u002Fapi\u002Fv1\u002Forders\u002F123\u002FlineItems\n```\n\n### HTTP Method Usage\n- **GET**: Retrieve resources (safe, idempotent)\n- **POST**: Create new resources (not idempotent)\n- **PUT**: Replace entire resources (idempotent)\n- **PATCH**: Partial resource updates (not necessarily idempotent)\n- **DELETE**: Remove resources (idempotent)\n\n### URL Structure Best Practices\n```\nCollection Resources: \u002Fapi\u002Fv1\u002Fusers\nIndividual Resources: \u002Fapi\u002Fv1\u002Fusers\u002F123\nNested Resources: \u002Fapi\u002Fv1\u002Fusers\u002F123\u002Forders\nActions: \u002Fapi\u002Fv1\u002Fusers\u002F123\u002Factivate (POST)\nFiltering: \u002Fapi\u002Fv1\u002Fusers?status=active&role=admin\n```\n\n## Versioning Strategies\n\n### 1. URL Versioning (Recommended)\n```\n\u002Fapi\u002Fv1\u002Fusers\n\u002Fapi\u002Fv2\u002Fusers\n```\n**Pros**: Clear, explicit, easy to route  \n**Cons**: URL proliferation, caching complexity\n\n### 2. Header Versioning\n```\nGET \u002Fapi\u002Fusers\nAccept: application\u002Fvnd.api+json;version=1\n```\n**Pros**: Clean URLs, content negotiation  \n**Cons**: Less visible, harder to test manually\n\n### 3. Media Type Versioning\n```\nGET \u002Fapi\u002Fusers\nAccept: application\u002Fvnd.myapi.v1+json\n```\n**Pros**: RESTful, supports multiple representations  \n**Cons**: Complex, harder to implement\n\n### 4. Query Parameter Versioning\n```\n\u002Fapi\u002Fusers?version=1\n```\n**Pros**: Simple to implement  \n**Cons**: Not RESTful, can be ignored\n\n## Pagination Patterns\n\n### Offset-Based Pagination\n```json\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"offset\": 20,\n    \"limit\": 10,\n    \"total\": 150,\n    \"hasMore\": true\n  }\n}\n```\n\n### Cursor-Based Pagination\n```json\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"nextCursor\": \"eyJpZCI6MTIzfQ==\",\n    \"hasMore\": true\n  }\n}\n```\n\n### Page-Based Pagination\n```json\n{\n  \"data\": [...],\n  \"pagination\": {\n    \"page\": 3,\n    \"pageSize\": 10,\n    \"totalPages\": 15,\n    \"totalItems\": 150\n  }\n}\n```\n\n## Error Response Formats\n\n### Standard Error Structure\n```json\n{\n  \"error\": {\n    \"code\": \"VALIDATION_ERROR\",\n    \"message\": \"The request contains invalid parameters\",\n    \"details\": [\n      {\n        \"field\": \"email\",\n        \"code\": \"INVALID_FORMAT\",\n        \"message\": \"Email address is not valid\"\n      }\n    ],\n    \"requestId\": \"req-123456\",\n    \"timestamp\": \"2024-02-16T13:00:00Z\"\n  }\n}\n```\n\n### HTTP Status Code Usage\n- **400 Bad Request**: Invalid request syntax or parameters\n- **401 Unauthorized**: Authentication required\n- **403 Forbidden**: Access denied (authenticated but not authorized)\n- **404 Not Found**: Resource not found\n- **409 Conflict**: Resource conflict (duplicate, version mismatch)\n- **422 Unprocessable Entity**: Valid syntax but semantic errors\n- **429 Too Many Requests**: Rate limit exceeded\n- **500 Internal Server Error**: Unexpected server error\n\n## Authentication and Authorization Patterns\n\n### Bearer Token Authentication\n```\nAuthorization: Bearer \u003Ctoken>\n```\n\n### API Key Authentication\n```\nX-API-Key: \u003Capi-key>\nAuthorization: Api-Key \u003Capi-key>\n```\n\n### OAuth 2.0 Flow\n```\nAuthorization: Bearer \u003Coauth-access-token>\n```\n\n### Role-Based Access Control (RBAC)\n```json\n{\n  \"user\": {\n    \"id\": \"123\",\n    \"roles\": [\"admin\", \"editor\"],\n    \"permissions\": [\"read:users\", \"write:orders\"]\n  }\n}\n```\n\n## Rate Limiting Implementation\n\n### Headers\n```\nX-RateLimit-Limit: 1000\nX-RateLimit-Remaining: 999\nX-RateLimit-Reset: 1640995200\n```\n\n### Response on Limit Exceeded\n```json\n{\n  \"error\": {\n    \"code\": \"RATE_LIMIT_EXCEEDED\",\n    \"message\": \"Too many requests\",\n    \"retryAfter\": 3600\n  }\n}\n```\n\n## HATEOAS (Hypermedia as the Engine of Application State)\n\n### Example Implementation\n```json\n{\n  \"id\": \"123\",\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"_links\": {\n    \"self\": { \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\" },\n    \"orders\": { \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\u002Forders\" },\n    \"profile\": { \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\u002Fprofile\" },\n    \"deactivate\": { \n      \"href\": \"\u002Fapi\u002Fv1\u002Fusers\u002F123\u002Fdeactivate\",\n      \"method\": \"POST\"\n    }\n  }\n}\n```\n\n## Idempotency\n\n### Idempotent Methods\n- **GET**: Always safe and idempotent\n- **PUT**: Should be idempotent (replace entire resource)\n- **DELETE**: Should be idempotent (same result)\n- **PATCH**: May or may not be idempotent\n\n### Idempotency Keys\n```\nPOST \u002Fapi\u002Fv1\u002Fpayments\nIdempotency-Key: 123e4567-e89b-12d3-a456-426614174000\n```\n\n## Backward Compatibility Guidelines\n\n### Safe Changes (Non-Breaking)\n- Adding optional fields to requests\n- Adding fields to responses\n- Adding new endpoints\n- Making required fields optional\n- Adding new enum values (with graceful handling)\n\n### Breaking Changes (Require Version Bump)\n- Removing fields from responses\n- Making optional fields required\n- Changing field types\n- Removing endpoints\n- Changing URL structures\n- Modifying error response formats\n\n## OpenAPI\u002FSwagger Validation\n\n### Required Components\n- **API Information**: Title, description, version\n- **Server Information**: Base URLs and descriptions\n- **Path Definitions**: All endpoints with methods\n- **Parameter Definitions**: Query, path, header parameters\n- **Request\u002FResponse Schemas**: Complete data models\n- **Security Definitions**: Authentication schemes\n- **Error Responses**: Standard error formats\n\n### Best Practices\n- Use consistent naming conventions\n- Provide detailed descriptions for all components\n- Include examples for complex objects\n- Define reusable components and schemas\n- Validate against OpenAPI specification\n\n## Performance Considerations\n\n### Caching Strategies\n```\nCache-Control: public, max-age=3600\nETag: \"123456789\"\nLast-Modified: Wed, 21 Oct 2015 07:28:00 GMT\n```\n\n### Efficient Data Transfer\n- Use appropriate HTTP methods\n- Implement field selection (`?fields=id,name,email`)\n- Support compression (gzip)\n- Implement efficient pagination\n- Use ETags for conditional requests\n\n### Resource Optimization\n- Avoid N+1 queries\n- Implement batch operations\n- Use async processing for heavy operations\n- Support partial updates (PATCH)\n\n## Security Best Practices\n\n### Input Validation\n- Validate all input parameters\n- Sanitize user data\n- Use parameterized queries\n- Implement request size limits\n\n### Authentication Security\n- Use HTTPS everywhere\n- Implement secure token storage\n- Support token expiration and refresh\n- Use strong authentication mechanisms\n\n### Authorization Controls\n- Implement principle of least privilege\n- Use resource-based permissions\n- Support fine-grained access control\n- Audit access patterns\n\n## Tools and Scripts\n\n### api_linter.py\nAnalyzes API specifications for compliance with REST conventions and best practices.\n\n**Features:**\n- OpenAPI\u002FSwagger spec validation\n- Naming convention checks\n- HTTP method usage validation\n- Error format consistency\n- Documentation completeness analysis\n\n### breaking_change_detector.py\nCompares API specification versions to identify breaking changes.\n\n**Features:**\n- Endpoint comparison\n- Schema change detection\n- Field removal\u002Fmodification tracking\n- Migration guide generation\n- Impact severity assessment\n\n### api_scorecard.py\nProvides comprehensive scoring of API design quality.\n\n**Features:**\n- Multi-dimensional scoring\n- Detailed improvement recommendations\n- Letter grade assessment (A-F)\n- Benchmark comparisons\n- Progress tracking\n\n## Integration Examples\n\n### CI\u002FCD Integration\n```yaml\n- name: \"api-linting\"\n  run: python scripts\u002Fapi_linter.py openapi.json\n\n- name: \"breaking-change-detection\"\n  run: python scripts\u002Fbreaking_change_detector.py openapi-v1.json openapi-v2.json\n\n- name: \"api-scorecard\"\n  run: python scripts\u002Fapi_scorecard.py openapi.json\n```\n\n### Pre-commit Hooks\n```bash\n#!\u002Fbin\u002Fbash\npython engineering\u002Fapi-design-reviewer\u002Fscripts\u002Fapi_linter.py api\u002Fopenapi.json\nif [ $? -ne 0 ]; then\n  echo \"API linting failed. Please fix the issues before committing.\"\n  exit 1\nfi\n```\n\n## Best Practices Summary\n\n1. **Consistency First**: Maintain consistent naming, response formats, and patterns\n2. **Documentation**: Provide comprehensive, up-to-date API documentation\n3. **Versioning**: Plan for evolution with clear versioning strategies\n4. **Error Handling**: Implement consistent, informative error responses\n5. **Security**: Build security into every layer of the API\n6. **Performance**: Design for scale and efficiency from the start\n7. **Backward Compatibility**: Minimize breaking changes and provide migration paths\n8. **Testing**: Implement comprehensive testing including contract testing\n9. **Monitoring**: Add observability for API usage and performance\n10. **Developer Experience**: Prioritize ease of use and clear documentation\n\n## Common Anti-Patterns to Avoid\n\n1. **Verb-based URLs**: Use nouns for resources, not actions\n2. **Inconsistent Response Formats**: Maintain standard response structures\n3. **Over-nesting**: Avoid deeply nested resource hierarchies\n4. **Ignoring HTTP Status Codes**: Use appropriate status codes for different scenarios\n5. **Poor Error Messages**: Provide actionable, specific error information\n6. **Missing Pagination**: Always paginate list endpoints\n7. **No Versioning Strategy**: Plan for API evolution from day one\n8. **Exposing Internal Structure**: Design APIs for external consumption, not internal convenience\n9. **Missing Rate Limiting**: Protect your API from abuse and overload\n10. **Inadequate Testing**: Test all aspects including error cases and edge conditions\n\n## Conclusion\n\nThe API Design Reviewer skill provides a comprehensive framework for building, reviewing, and maintaining high-quality REST APIs. By following these guidelines and using the provided tools, development teams can create APIs that are consistent, well-documented, secure, and maintainable.\n\nRegular use of the linting, breaking change detection, and scoring tools ensures continuous improvement and helps maintain API quality throughout the development lifecycle.",{"name":5,"description":7},"devin\u002F1780503568-install-devin-skills","c1c6a7ac191f1fb795ae7f57f2fbfa600d3ef56b","engineering\u002Fskills\u002Fapi-design-reviewer",0,"https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin","https:\u002F\u002Fgithub.com\u002Fkruxshnx","https:\u002F\u002Fgovinda-krishna.vercel.app\u002F","2026-06-04 00:21:41",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add kruxshnx\u002Fclaude-skills-devin --skill api-design-reviewer",{"tool":38,"command":39},"bunx","bunx skills add kruxshnx\u002Fclaude-skills-devin --skill api-design-reviewer",{"tool":41,"command":42},"pnpm","pnpm dlx skills add kruxshnx\u002Fclaude-skills-devin --skill api-design-reviewer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fengineering\u002Fskills\u002Fapi-design-reviewer\u002FSKILL.md",true,[46,52,56,62,66],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi_antipatterns.md","REFERENCE","参考文档",13707,"https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fengineering\u002Fskills\u002Fapi-design-reviewer\u002Freferences\u002Fapi_antipatterns.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Frest_design_rules.md",10444,"https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fengineering\u002Fskills\u002Fapi-design-reviewer\u002Freferences\u002Frest_design_rules.md",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Fapi_linter.py","SCRIPT","脚本",38344,"https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fengineering\u002Fskills\u002Fapi-design-reviewer\u002Fscripts\u002Fapi_linter.py",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"scripts\u002Fapi_scorecard.py",65939,"https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fengineering\u002Fskills\u002Fapi-design-reviewer\u002Fscripts\u002Fapi_scorecard.py",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fbreaking_change_detector.py",49030,"https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fengineering\u002Fskills\u002Fapi-design-reviewer\u002Fscripts\u002Fbreaking_change_detector.py",[71,78,85,92,99,106],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M779G0P3W78CJF700K9AHJ6M","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Triggers whenever a user uploads a syllabus, course outline, or curriculum document and wants supplementary readings. Also triggers on: 'syllabus reading list', 'find papers for my course', 'create a reading list from this syllabus', 'recent research for my class', 'supplementary readings', 'find journal articles for these topics', 'what recent papers cover this material', 'any new research on these course topics', 'update my syllabus with recent papers'. Even casual mentions when a syllabus is attached should trigger this skill.","https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M779FBBF54JKVQAGBAYHWE0B","research","Default entry point for any research request — a hybrid router that classifies the question deterministically and either delegates to a specialist research skill (pulse for trends\u002Fsentiment, grants for NIH funding, litreview for academic literature, syllabus for course reading, patent for prior-art + IP landscape, dossier for entity research) or runs its own plan-decompose-multi-source-search-synthesize-cite fallback workflow when no specialist matches. Always surfaces the routing decision so users can override. Triggers — \"research [topic]\", \"look into [topic]\", \"what do we know about [topic]\", \"investigate [topic]\", \"find me information on [topic]\", \"do some research on [topic]\", \"I need to understand [topic]\", or any research request that doesn't obviously match a more-specific specialist skill. Output is a markdown briefing (default) or .docx document (on request) with full citations and an audit log.","https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fresearch\u002Fresearch\u002Fskills\u002Fresearch\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M779EQ39CGK5Q4V78KC0HNMV","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Triggers: 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]', or any variation requesting multi-source recency intelligence on a topic. Also use for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M779EDS05MYFXBF7PGTVSDMA","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Triggers: 'prior art search for [invention]', 'patent search on [topic]', 'freedom to operate analysis', 'FTO for [product]', 'patent landscape for [field]', 'is [invention] novel', 'patents on [topic]', 'competitive patent analysis', 'prior art for litigation', 'patent diligence on [company]'. Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M779DVA52T5F0YC5HSM9BW4Z","notebooklm","Browser automation skill for controlling Google's NotebookLM. Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio Overview, infographics, slide decks, study guides, briefing docs, mind maps, timelines, FAQs), and creating new notebooks. Triggers on any phrase involving NotebookLM — 'open NotebookLM', 'check my [name] notebook', 'pull info from NotebookLM', 'ask my notebook about X', 'add [source] to NotebookLM', 'create an infographic in NotebookLM', 'use NotebookLM Studio', 'generate a slide deck from my notebook', or any variation where the goal involves NotebookLM. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M779D3SGW8FM1N8G0HK860WT","litreview","Academic literature orientation skill that searches papers via Consensus, builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a professionally formatted Word document (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — not a finished review, but an orientation guide that lets a researcher dive in confidently. Triggers: 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'. Do NOT trigger for single one-off paper searches where the user just wants a quick list — that's a plain Consensus search.","https:\u002F\u002Fgithub.com\u002Fkruxshnx\u002Fclaude-skills-devin\u002Fblob\u002Fdevin\u002F1780503568-install-devin-skills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[]]