agentsclimarketplace

Api design

Skill sairam0424/MindForge/.mindforge/skills/api-design

MindForge: The Enterprise Agentic Framework for Claude Code & Antigravity. High-performance autonomous execution, wave-parallelism, and multi-tier governance for production-grade AI engineering.

Install
npx -y skills add sairam0424/MindForge --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

  • 1 stars1 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

3.2 KB, as published. Nobody here has run it

Skill — API Design

When this skill activates

Any task involving creating or modifying API endpoints, request/response schemas, or API contracts.

Mandatory actions when this skill is active

Before writing any code

  1. Define the endpoint contract: method, path, auth requirement.
  2. Define request and response schemas (including error shape).

During implementation

  • Validate input at the boundary.
  • Use consistent status codes.
  • Add security headers to responses.

After implementation

  • Document the endpoint in ARCHITECTURE.md.
  • Add or update tests for the new contract.

REST API standards

URL conventions

  • Lowercase, hyphen-separated: /user-profiles not /userProfiles
  • Nouns for resources: /orders not /getOrders
  • Hierarchy shows relationships: /users/{id}/orders
  • Version in path: /v1/users

HTTP method semantics

  • GET: read only, idempotent, no body
  • POST: create, non-idempotent, returns 201 + Location header
  • PUT: full replace, idempotent
  • PATCH: partial update, idempotent
  • DELETE: remove, idempotent, returns 204

Status codes (use precisely)

  • 200 OK: successful GET, PUT, PATCH
  • 201 Created: successful POST (include Location header)
  • 204 No Content: successful DELETE
  • 400 Bad Request: client validation error (include error details in body)
  • 401 Unauthorized: missing or invalid authentication
  • 403 Forbidden: authenticated but not authorised
  • 404 Not Found: resource does not exist
  • 409 Conflict: state conflict (duplicate, version mismatch)
  • 422 Unprocessable Entity: semantic validation error
  • 429 Too Many Requests: rate limit exceeded (include Retry-After header)
  • 500 Internal Server Error: unexpected server error (never expose internals)

Error response format (always consistent)

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Human-readable description",
    "details": [
      { "field": "email", "issue": "must be a valid email address" }
    ],
    "requestId": "req_abc123"
  }
}

Request validation

  • Validate at the route handler boundary, not deep in business logic
  • Return all validation errors at once (not one at a time)
  • Validate: type, format, length, range, required fields

Security headers (add to every response)

X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Strict-Transport-Security: max-age=31536000; includeSubDomains
Content-Security-Policy: default-src 'self'

Output

New endpoints must be documented in ARCHITECTURE.md under the API section with: method, path, auth requirement, request schema, response schema, errors.

Self-check before task completion

Before marking a task done when this skill was active:

  • Did I read the full SKILL.md before starting? (Not just the triggers)
  • Did I activate the corresponding persona file?
  • Did I apply every mandatory action in this skill, not just the ones I remembered off the top of my head?
  • If this skill produced an output file (review, security report, etc.), has that file been written to the correct path?

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.