save-pdd
Persist the generated PDD JSON by validating its product meta, saving versioned JSON and Markdown files to assets/pdd, optionally rendering HTML, and updating the phase context.
Instructions
Persist the PDD JSON that Claude assembled via 'generate-pdd'.
This tool:
Validates the PDD JSON has a meta block with productName + version.
Saves three files to assets/pdd/: pdd--v.json — machine-readable PDD pdd--v.md — Notion-compatible markdown pdd--latest.md — copy of latest version (overwritten on every save)
Optionally renders an HTML file to plans/ directory.
Updates pddVersion in context/phase2-context.json.
Call this immediately after Claude generates the PDD JSON from 'generate-pdd'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productSlug": "<productSlug>",
"pddJson": "<pddJson>"
},
"name": "save-pdd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epicId | No | Optional epic ID to save a scoped PDD for | |
| pddJson | Yes | The full PDD JSON string that Claude generated | |
| productSlug | Yes | The product slug | |
| renderHtmlFlag | No | Set true to also save an HTML version to plans/. Default false. |