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/dbt.md

View on GitHub
# DBT- Template

Copy and fill for each data entity:

```
DBT-XXX: [Entity Name]
Purpose: [What this entity represents]
Table: [database_table_name]

Fields:
  - id: uuid — Primary key
  - [field_name]: [type] — Description [constraints]
  - created_at: timestamp — Record creation
  - updated_at: timestamp — Last modification

Relationships:
  - belongs_to: [DBT-YYY] via [foreign_key]
  - has_many: [DBT-ZZZ]

Indexes:
  - [field_name] — [Query pattern it supports]

Constraints:
  - [field]: [constraint description]

Business Rules: [BR-XXX]
APIs: [API-XXX, API-YYY]
```

## Common Field Types

| Type | Use For | Example |
|------|---------|---------|
| uuid | Primary keys, references | id, user_id |
| varchar(N) | Short text with limit | title, name |
| text | Long text, no limit | description, content |
| integer | Whole numbers | count, quantity |
| decimal(P,S) | Money, precise numbers | price, amount |
| boolean | True/false | is_active, is_deleted |
| timestamp | Date + time | created_at, due_date |
| jsonb | Flexible structured data | options, metadata |
| enum | Fixed set of values | status, role |

## Common Constraints

| Constraint | Meaning |
|------------|---------|
| NOT NULL | Field is required |
| UNIQUE | No duplicates allowed |
| DEFAULT X | Value if not provided |
| CHECK (expr) | Custom validation |
| REFERENCES | Foreign key |

## Checklist Before Adding

- [ ] Is this entity needed by an API-?
- [ ] Are all fields documented with types?
- [ ] Are relationships defined?
- [ ] Are indexes planned for query patterns?
- [ ] Are constraints (NOT NULL, UNIQUE) specified?
- [ ] Is there a BR- that affects this entity?
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