agentsclimarketplace

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

Install
npx -y skills add viditparashar96/second-brain-claude --skill eng-api-design

Assembled 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

  1. Read PRODUCTS.md — identify product, consumers, existing API patterns dynamically
  2. Check docs/api-specs/ for existing specs
  3. Search memory for prior API decisions
  4. Determine: product, consumers (internal/partner/public), style (REST/GraphQL/gRPC), constraints
  5. 🚫 GATE — Requirements confirmed

Phase 2: DESIGN

Ultrathink — Based on product's domain model from PRODUCTS.md:

  1. Resource model (map domain to resources)
  2. Endpoints with request/response schemas
  3. Error contract (consistent format, error codes)
  4. Pagination (cursor-based for collections)
  5. 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)

  1. Save docs/api-specs/{product}-{version}.yaml — OpenAPI spec
  2. Save docs/api-docs/{product}-api-guide.md — developer guide with quick start
  3. 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

Keep looking

Skills are one crate of 607,721. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.