PRD Agent

Product Requirements Document management with AI agents

Review Block

AI-generated

Summary

Review and modify a specific block within a PRD project JSON by editing its content, confirming it as final, or rolling it back to a previous state.

Inputs

  • Project JSON (required) — The current PRD project JSON containing all blocks.
  • Block ID (required) — The identifier of the PRD block to target for review.
  • Action (required) — The operation to perform on the block: edit its content, confirm it, or rollback changes.
  • Edit Text — Instructions for editing the block; required only if the action is 'edit'.
  • Project Name (required) — The name of the PRD project.
  • PRD Output Directory — Local directory to save the updated PRD markdown files; if empty, no files are saved.
  • Working Directory — Local directory where the Claude CLI commands execute.
  • Additional Options — Advanced settings including the Claude model alias, maximum agent turns, and verbosity for debug logs.

Output shape

a single JSON object with updated PRD data and metadata

Returns the AI agent's JSON response reflecting the updated PRD after the review action. If configured, saves the updated PRD as markdown files to the provided output directory. Contains session and usage metadata, and optionally detailed logs if verbosity is enabled.

Examples

Example 1: Edit a block

Provide the full current project JSON, specify the target block ID, select 'edit' as action, and supply edit instructions in 'Edit Text'. Optionally specify project name and output directory to save results.

Example 2: Confirm a block without edits

Provide project JSON and block ID, select 'confirm' as action to mark the block as final without changes.

Example 3: Rollback a block

Provide project JSON and block ID, select 'rollback' action to revert the block to its previous state.

Discussion