commit
Persist a fully drafted project artifact (PRD, ADR, spec, or OKR) as a commitment memory. Each call records a new memory; earlier versions are superseded by recency.
Instructions
Persist a commitment-shaped artifact (PRD, ADR, spec, OKR) as a memory with intent='commitment'.
WHEN TO USE: This is the write primitive for /prd, /decide, /spec, /commit slash commands. Call after the artifact is fully drafted in the conversation. Send the COMPLETE artifact verbatim — do NOT summarize.
INSERT-only. Each call creates a new memory; supersede prior versions by recency, never overwrite. No conversationId parameter (intentional — see ADR-034).
QUERYABLE: GET /api/v1/commitments/?type= returns all commitments of a given type, filterable by target_date and sorted by recency.
EXAMPLES:
commit(title="ADR-035 - Foo - Bar - 2026-04-28", type="ADR", content="", key_result="single-sentence chosen-option statement")
commit(title="PRD - Email verification flow", type="PRD", content="", target_date="2026-05-15")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title following the pattern "[Type]-NNN - [Project] - [Subject] - [Date]" for ADRs, or "[Project] - [Type] - [Feature]" for PRDs/specs. | |
| commitment_type | Yes | The kind of commitment. | |
| content | Yes | COMPLETE artifact content, verbatim — the full markdown body of the PRD/ADR/spec/OKR. | |
| key_result | No | Optional one-sentence concrete deliverable. What is true when this commitment is honored? | |
| target_date | No | Optional target date in YYYY-MM-DD format. Omit if no deadline. | |
| tags | No | Optional tags for categorization. "commitment" and the lowercased commitment_type are added automatically. |