agentsclimarketplace

Api design

Skill Neznakometz/StackForge/saas/skills/api-design

Thin core + domain sets for a fast, stack-aware project start. Cross-agent (Claude Code, Cursor, Codex, Gemini) via the SKILL.md standard. MIT.

Install
npx -y skills add Neznakometz/StackForge --skill api-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 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.

What its author says it does

Copied from the file, not written here

REST/HTTP API design for SaaS — endpoints, validation, errors, versioning, contracts. Apply when creating or changing an API.

SKILL.md

1.3 KB, as published. Nobody here has run it

API Design

Contract discipline (schema is the single source of truth, types derived from the schema) lives in the core contracts skill. Here — rules for the API itself.

  • Validate at the boundary. Every input is validated against a schema before business logic; invalid → 4xx with a machine-readable error code. Responses are validated against a schema too (on both sides).
  • Errors are typed. Domain errors are classes; the user gets a human-readable message + a stable code; Sentry gets full context. Don't leak stack traces / internal details outward.
  • Idempotency and side effects. A POST with a side effect — idempotency key wherever retries are possible. GET has no side effects.
  • Pagination/limits on all listings; rate limiting on sensitive endpoints.
  • Versioning — prefix (/v1); a breaking change = a new version, not editing the old one.
  • Security (see security-auditor): authz on every protected route, no IDOR (access via someone else's id), multi-tenant scoping (see the multitenancy skill).
  • Heavy work goes to workers (background-jobs skill): no ASR/LLM/ffmpeg/heavy computation in the request handler.

Keep looking

Skills are one crate of 328,083. 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.