| name | ndx-plan |
| description | Analyze the codebase and propose PRD updates |
Analyze the codebase and propose PRD updates.
-
Call get_overview (sourcevision MCP) to understand current project state
-
Call get_findings (sourcevision MCP) to identify anti-patterns and suggestions
-
Call get_prd_status (rex MCP) to see existing PRD items and avoid duplicates
-
Call get_next_steps (sourcevision MCP) for prioritized recommendations
-
Based on findings, existing gaps, and any user-described goals, propose new epics/features/tasks
-
Present proposals to the user for review
-
For each approved proposal, use add_item (rex MCP) to create it with appropriate descriptions, acceptance criteria, and parent placement
-
Show the updated PRD tree via get_prd_status
-
Commit: run git status --porcelain against the project root — this picks up every MCP write under .rex/prd_tree/ (each add_item call produces a new <slug>/index.md). If the output is empty, print "Working tree clean — nothing to commit." and stop. Otherwise stage all changes with git add -A and commit with the n-dx authorship + model audit trailer block via a HEREDOC:
git commit -m "$(cat <<'EOF'
ndx-plan: add <N> proposed PRD items
N-DX: skill/ndx-plan
Co-Authored-By: En Dash's n-dx <n-dx@endash.us>
EOF
)"
Replace <N> with the count of items created. Keep the N-DX: and Co-Authored-By: trailer lines exactly as shown — they form the audit trail used by downstream tooling.