Eng api design
Skill viditparashar96/second-brain-claude/skills/eng-api-design
API design review and documentation — contract-first development, systematic quality checks, OpenAPI spec generation, breaking change detection.From its SKILL.md
npx -y skills add viditparashar96/second-brain-claude --skill eng-api-designAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.2 KB, as published. Nobody here has run it
API Design Review & Documentation
Contract-first: context → design → review → document.
Workflow
Phase 1: CONTEXT
- Read PRODUCTS.md — identify product, consumers, existing API patterns dynamically
- Check
docs/api-specs/for existing specs - Search memory for prior API decisions
- Determine: product, consumers (internal/partner/public), style (REST/GraphQL/gRPC), constraints
- 🚫 GATE — Requirements confirmed
Phase 2: DESIGN
Ultrathink — Based on product's domain model from PRODUCTS.md:
- Resource model (map domain to resources)
- Endpoints with request/response schemas
- Error contract (consistent format, error codes)
- Pagination (cursor-based for collections)
- Auth model
Phase 3: REVIEW (4 checks)
- Naming: consistent casing, correct HTTP methods/status codes
- Security: auth everywhere, input validation, rate limiting, no secrets in URLs
- Performance: pagination, caching headers, no unbounded queries, latency targets
- Evolution: versioned, additive-compatible, deprecation strategy
If updating existing API: detect breaking changes, generate migration guide.
Present findings. 🚫 GATE — Design approved
Phase 4: DOCUMENT (LOCAL FIRST)
- Save
docs/api-specs/{product}-{version}.yaml— OpenAPI spec - Save
docs/api-docs/{product}-api-guide.md— developer guide with quick start - Log to memory via
log_note
Rules
- Design BEFORE implementing (contract-first)
- Every endpoint: auth, validation, errors, latency target
- Breaking changes require versioning + migration plan
- Product context from PRODUCTS.md — never hardcode
- Save locally first, memory second