API Reference

Access LLM coding rules programmatically. All endpoints return JSON with CORS enabled.

Base URL https://superpowers.dev/api/v1
GET /templates

List all templates with optional filtering, search, and pagination.

Query Parameters

ParameterTypeDefaultDescription
langstringFilter by language (comma-separated)
typestringFilter by project type
qstringSearch title, description, or tools
pageinteger1Page number
limitinteger20Results per page (1–100)

Example

GET /api/v1/templates?lang=go&type=api

Response

{
  "data": [
    {
      "slug": "go-api-server",
      "title": "Go API Server",
      "description": "Rules for building Go HTTP API servers...",
      "version": "1.0.0",
      "languages": ["go"],
      "projectTypes": ["api"],
      "tools": ["go-test", "chi", "docker"],
      "featured": true,
      "updatedAt": "2026-04-09T00:00:00.000Z"
    }
  ],
  "meta": { "version": "v1" },
  "pagination": { "page": 1, "limit": 20, "total": 1, "totalPages": 1 }
}

GET /templates/:slug

Get a single template with transformed rules for all supported LLMs.

Example

GET /api/v1/templates/go-api-server

Response

{
  "data": {
    "slug": "go-api-server",
    "title": "Go API Server",
    "rules": {
      "claude": { "sections": [...], "fullText": "..." },
      "codex": { "sections": [...], "fullText": "..." },
      "grok": { "sections": [...], "fullText": "..." }
    }
  },
  "meta": { "version": "v1" }
}

GET /templates/:slug/rules/:llm

Get rules for a specific LLM. Values: claude, codex, grok.

Example

GET /api/v1/templates/go-api-server/rules/claude

Response

{
  "data": {
    "slug": "go-api-server",
    "llm": "claude",
    "llmName": "Claude",
    "sections": [
      { "id": "project-setup", "title": "Project Setup", "content": "..." }
    ],
    "fullText": "# CLAUDE.md\n\n## Project Setup\n\n..."
  },
  "meta": { "version": "v1" }
}

Quick Start

Fetch Claude rules and save to your project:

curl -s https://superpowers.dev/api/v1/templates/go-api-server/rules/claude \
  | jq -r '.data.fullText' > CLAUDE.md