SKILL_TEMPLATE
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill].…
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
Claude Code
$ npx -y skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-technical-specification --agent claude-code
Codex
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-technical-specification -a codex -y
Cursor
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-technical-specification -a cursor -y
Gemini CLI
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-technical-specification -a gemini-cli -y
GitHub Copilot
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-technical-specification -a github-copilot -y
OpenCode
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-technical-specification -a opencode -y
Windsurf
$ npx skills add mattgierhart/PRD-driven-context-engineering --skill prd-v06-technical-specification -a windsurf -y
name: prd-v06-technical-specification description: 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. context: fork allowed-tools: - Read - Write - Edit - Glob - Grep
Position in workflow: v0.6 Architecture Design → **v0.6 Technical Specification** → v0.7 Build Execution
Technical specification defines the **contracts** developers build against: API endpoints and data models. This is the bridge between architecture and implementation.
This skill requires prior work from v0.3-v0.6:
This skill assumes v0.6 Architecture Design is complete with ARC- entries providing system structure.
This skill creates/updates:
All API- and DBT- entries are implementation contracts (not confidence-based). They are:
Example API- entry (from UJ- and SCR-):
API-001: Create Report
Method: POST
Path: /api/reports
Purpose: Create new report from selected data source and template (implements UJ-001 Step 1)
Auth: User
Journey: UJ-001 (Step 1 - Create Report)
Screen: SCR-002 (Report Builder)
Request:
Body:
{
title: string (required) — Report name
templateId: string (required) — Selected template (FEA-008)
dataSourceId: string (required) — Connected data source (FEA-001)
options: { dateRange: { start, end }, filters: [...] }
}
Response:
Success (201):
{
data: { id, title, status: "pending|generating|ready", createdAt }
}
Errors:
- 400: Invalid input — Missing required field
- 403: Forbidden — User doesn't own data source
- 404: Not found — Template or data source not found
- 429: Rate limit exceeded
Business Rules: BR-015 (max 100 reports per user)
Data: DBT-001 (reports table), DBT-002 (data_sources table)Example DBT- entry (referenced by API- entries):
DBT-001: Reports
Purpose: Stores user-generated reports (entities created by API-001, updated by API-004)
Table: reports
Fields:
- id: uuid — Primary key
- user_id: uuid — Report owner (FK → users) [NOT NULL]
- title: varchar(255) — Display name [NOT NULL]
- status: enum('pending','generating','ready','failed') [NOT NULL]
- created_at: timestamp [NOT NULL, DEFAULT now()]
Relationships:
- belongs_to: users via user_id
- belongs_to: templates via template_id
Indexes:
- user_id — List reports by user (API-003)
- (user_id, created_at DESC) — Recent reports (API-003)
- status — Find pending reports (background job)
Constraints:
- title: NOT NULL, length 1-255
- status: valid enum only
Business Rules: BR-015 (max 100 per user — enforce in API-001)
APIs: API-001 (create), API-002 (get), API-003 (list), API-005 (delete)| Type | What It Defines | Example | |------|-----------------|---------| | **API-** | Endpoint contracts | POST /users, GET /reports/:id | | **DBT-** | Data model/schema | Users table, Reports table |
**Rule**: Every API- should know which DBT- it reads/writes. Every DBT- should know which API- accesses it.
1. **Pull ARC- decisions** — System structure and boundaries 2. **Pull TECH- Build items** — What we're implementing 3. **Pull UJ- journeys** — User flows the API must support 4. **Pull SCR- screens** — UI data requirements
5. **Define API contracts** for each endpoint:
6. **Define data models** for each entity:
7. **Validate consistency**:
API-XXX: [Endpoint Name]
Method: [GET | POST | PUT | PATCH | DELETE]
Path: [/resource/{id}/action]
Purpose: [What this enPRD-Led Context Engineering — Memory as Infrastructure. An ontology layer for product teams building products that solve real problems — with AI agents that remember. Gated PRD, typed IDs, markdown knowledge graph, Claude Code skills & hooks.
[1-2 sentence description of what this skill does]. Triggers on [specific phrases/contexts that should activate this skill].…
Validates gate criteria before PRD lifecycle advancement by delegating to the readiness scoring pipeline (scripts/readiness.py).…
Extracts durable insights from temp/ files to SoT during EPIC Phase E. Triggers at EPIC completion or explicit `/ghm-harvest`…
Validates and registers new SoT IDs with cross-reference integrity. Triggers when creating BR-XXX, UJ-XXX, API-XXX, or CFD-XXX…
Install the PRD-Driven Context Engineering methodology into a fresh OR existing repository — the subscription-native alternative…
Creates new Source of Truth (SoT) files when existing templates don't fit your needs. Triggers on requests to create a new SoT…
How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…
Simulates academic peer review, evaluating papers across Originality, Methodology, Results, and Writing to provide Major/Minor…