Skip to content

mattgierhart/PRD-driven-context-engineering / .claude/skills/prd-v06-technical-specification

prd-v06-technical-specification

Verified

Define implementation contracts (APIs and data models) that developers will build against during PRD v0.6 Architecture. Triggers on requests to define APIs, design database schema, create data models, or when user asks "define APIs", "data model", "database schema", "API contracts", "technical spec", "endpoint design", "schema design". Consumes ARC- (architecture), TECH- (Build items), UJ- (flows), SCR- (screens). Outputs API- entries for endpoints and DBT- entries for data models. Feeds v0.7 Build Execution.

FileKindSize
SKILL.mdskill md13.2 KB
assets/api.mdmarkdown1.5 KB
assets/dbt.mdmarkdown1.6 KB
references/examples.mdmarkdown7.8 KB

assets/api.md

View on GitHub
# API- Template

Copy and fill for each API endpoint:

```
API-XXX: [Endpoint Name]
Method: [GET | POST | PUT | PATCH | DELETE]
Path: [/resource/{id}/action]
Purpose: [What this endpoint does]
Auth: [Public | User | Admin | Service]

Journey: [UJ-XXX]
Screen: [SCR-XXX]

Request:
  Headers:
    - Authorization: Bearer <token>
  Params:
    - [param]: [type] — Description
  Query:
    - [param]: [type] (optional/required, default X) — Description
  Body:
    {
      [field]: [type] — Description
    }

Response:
  Success (200/201):
    {
      data: { ... }
    }
  Errors:
    - 400: [When this occurs]
    - 401: [When this occurs]
    - 403: [When this occurs]
    - 404: [When this occurs]

Business Rules: [BR-XXX]
Data: [DBT-XXX]
Rate Limit: [X requests/minute]
```

## Method Selection Guide

| If the endpoint... | Method is... |
|--------------------|--------------|
| Retrieves data | GET |
| Creates new resource | POST |
| Replaces entire resource | PUT |
| Updates part of resource | PATCH |
| Removes resource | DELETE |

## Auth Levels

| Level | Who can access |
|-------|----------------|
| Public | Anyone, no token |
| User | Authenticated user |
| Admin | User with admin role |
| Service | Internal service-to-service |

## Checklist Before Adding

- [ ] Is this endpoint used by a SCR- or UJ-?
- [ ] Are all request parameters documented?
- [ ] Is the success response shape defined?
- [ ] Are all error cases documented?
- [ ] Is the auth level specified?
- [ ] Are DBT- tables identified?
deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall
Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.Stars: 118kUpdated Claude CodeCodexVerifiedInstall