Phase 4: API Design & Implementation

SkillAI & models

Skill for designing and implementing backend APIs. Includes Zero Script QA methodology for API validation.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Phase 4: API Design & Implementation skill

What this skill tells your AI

The instructions your AI receives, as published by ww-w-ai/bkit-gemini in skills/phase-4-api/SKILL.md and read by ahel’s review.

Build robust backend APIs

Deliverables

1. API Specification

OpenAPI/Swagger format:

openapi: 3.0.0
info:
  title: User API
  version: 1.0.0

paths:
  /api/users:
    get:
      summary: List users
      responses:
        '200':
          description: User list
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/User'

    post:
      summary: Create user
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUser'

2. Endpoint Implementation

// app/api/users/route.ts
import { NextRequest, NextResponse } from 'next/server';

export async function GET(request: NextRequest) {
  const users = await db.user.findMany();
  return NextResponse.json(users);
}

export async function POST(request: NextRequest) {
  const body = await request.json();
  const user = await db.user.create({ data: body });
  return NextResponse.json(user, { status: 201 });
}

3. Error Handling

// Standard error response
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid email format",
    "details": [
      { "field": "email", "message": "Must be a valid email" }
    ]
  }
}

API Patterns

  • RESTful resource naming
  • Consistent response format
  • Proper HTTP status codes
  • Input validation
  • Rate limiting

Output

Save to: docs/02-design/api-spec.yaml

Next Phase

After completion: /phase-5-design-system or /phase-6-ui-integration

Signals

GitHub stars
65
Forks
16
Last commit
May 2026
Advanced
Catalog kind
skill
Gateway key
phase-4-api
Source
github.com/ww-w-ai/bkit-gemini