Parse a Markdown or JSON PRD file, print its project name, template and section count, and learn the exact heading conventions the parser expects.
pks prd load <FILE_PATH> [options]$ pks prd load docs/PRD.mdSummarize the default PRD file
$ pks prd load docs/PRD.md --validate --show-metadataSummary, metadata table, and validation in one call
$ pks prd load docs/PRD.md --export prd-summary.jsonWrite the load summary to JSON
pks prd load reads a PRD file and prints what it found: project name, template, and section count. It is the subcommand to reach for when a document written elsewhere is not being recognized, because it shows exactly what the parser extracted.
PrdDocument, or Markdown following the conventions below.pks prd load docs/PRD.md
A panel prints the project name, the template, and how many sections were found.
The Markdown path is strict in two places, and both explain most surprises.
# <Name> - Product Requirements Document. A plain # MyProject heading does not match, and the project name is instead derived from the filename, with a leading PRD prefix stripped.## Overview. Other headings still parse as generic sections but contribute no description, which is what a later pks prd validate run reports as a missing description.Files produced by pks prd template and pks prd generate already follow both conventions.
pks prd load docs/PRD.md --show-metadata
An additional table prints the product name, template, section count, status, and message. Use it when the panel alone leaves the question open.
pks prd load docs/PRD.md --validate
The same validation panel that pks prd validate prints is appended to the load output. Note that load exits 1 only on a load failure; when you need an exit code that follows validity, call validate directly.
pks prd load docs/PRD.md --export prd-summary.json
The JSON carries the product name, template, sections, and message — the summary, not the full parsed document.
pks prd load docs/PRD.md --show-metadata
The project name in the metadata table should match the name in your document's title. If it matches the filename instead, the title heading does not follow the pattern in step 3.
The parse result never carries the actual requirements or user stories from a Markdown file — only section titles. That gap is why pks prd requirements cannot show your real requirement list. Treat load as a structural inspector.
| Flag | Default | Description |
|---|---|---|
--validate | — | Run the validation checks after loading and print the report. |
--show-metadata | — | Print an additional metadata table. |
--export <EXPORT_PATH> | — | Write the load summary to a JSON file. |
-v, --verbose | — | Detailed output. |
--output-format <FORMAT> | markdown | Output format: markdown or json. |
--config <CONFIG_FILE> | — | Declared but never read. No effect. |
--no-color | — | Declared but never read. No effect. |
Exit code 1 with a parse error. The file is missing, or it is neither valid JSON nor Markdown in the expected shape. Compare its first heading against step 3.
The project name is the filename. The title heading does not match the required pattern. Rename the heading to # <Name> - Product Requirements Document.
Validation reports a missing description on a document that clearly has one. The description section is not headed ## Overview. Rename the heading.
--validate, with a usable exit code