Presets

API

api
npx @loomcraft/cli init api
General

Name

API

Description

Backend API service with security, validation, testing, and performance focus.

Agents
orchestratorbrainstormerplannerbackenddatabasesecuritytestsreview-qaperformancedevops
Skills
brainstormingtask-planningcode-reviewproject-bootstrapapi-designdrizzle-patternsenv-validationtesting-patternstdd-workflowlayered-architectureauth-rbacbetter-auth-patterns
Constitution

Principles

  • Security first — validate all inputs, sanitize all outputs
  • Type-safe contracts — use Zod schemas as single source of truth
  • Test everything — unit tests for logic, integration tests for endpoints
  • Fail gracefully — meaningful error messages, proper HTTP status codes

Conventions

  • Define Zod schemas for all request/response payloads
  • Use middleware for auth, rate limiting, and CORS
  • Implement consistent error response format across all endpoints
  • Write integration tests for every endpoint
  • Use database transactions for multi-step mutations
Context

Project Description

This is a backend API service. It uses the orchestrator pipeline to brainstorm requirements, plan tasks, develop endpoints, review code, and run tests. Security and testing agents ensure robust, production-ready APIs.