fix(cli): lead the next-steps hints with prd generate, not prd add (#1111) - #1133
Conversation
…1111) The CLI's own hints pointed new users away from the documented THINK path. Immediately after `cf init`, the tool said: codeframe prd add <file.md> Add a PRD `prd add` requires a PRD you have already written. GOLDEN_PATH §2 makes `prd generate` the primary path and `prd add` the secondary one, and the README leads with `prd generate`. So a user following the tool's own advice never discovered Socratic discovery — the capability the product leads on. The issue named two sites; there were six, each with its own wording, all pointing only at `prd add`. They are now one shared PRD_NEXT_STEPS constant, so they cannot drift apart again: cf prd generate Start AI-guided requirements discovery cf prd add <file.md> Import a PRD you already have Also switched to `cf` from `codeframe`, matching the README. Both binaries work, but the mismatch made the hint look like a different tool than the one just installed. Nine tests pin the ordering, the binary name, the four commands that print it, and that no hard-coded "codeframe prd add" hint has crept back in.
|
Claude finished @frankbria's task in 2m 39s —— View job GLM precision bug-hunting review — completeScoped to concrete defects only (logic errors, null/error paths, security, data loss, breaking changes, resource leaks). Style/alignment/coverage handled separately.
Result: ✅ no defects found. (No inline comments; summary posted via a separate review comment.) Checked every hunk against real context — all 6 hint sites are behaviorally-equivalent string swaps on already-existing branches, |
ReviewSmall, well-scoped fix. Verified the diff against the codebase: Correctness
Minor / non-blocking
Test coverage
Overall this looks correct and appropriately scoped — no functional issues found. |
|
✅ GLM review: no defects found. Scoped to concrete defects only (logic errors, null/error paths, security, data loss, breaking changes, resource leaks). Style/alignment/coverage are out of scope — handled by the general review. Checked against real context, not just the diff:
|
Closes #1111.
The problem
Immediately after the documented
cf init . --detect, the tool said:prd addrequires a PRD the user has already written. GOLDEN_PATH §2 makesprd generateprimary andprd addsecondary, and the README leads withprd generate. A new user following the tool's own hint walks straight pastSocratic discovery — the capability the product leads on.
Scope: six sites, not two
The issue names
app.py:240and:488. There were six, each with its ownwording, every one pointing only at
prd add:initnext-stepscf initcf statusprd showno-PRDcf prd showprd listemptycf prd listtasks generateno-PRDcf tasks generatecf templates applyThey are now a single
PRD_NEXT_STEPSconstant. Six strings drifting apartindependently is what produced this, so consolidating is the fix, not just
editing the two the report happened to catch.
After
Both captured from a real
cf init --detecton a fresh workspace.Acceptance criteria
cf initleads withcf prd generate,prd addoffered as the alternativecf statusempty-PRD hint does the samecf, matching the READMENine tests cover the ordering, the binary name, the four commands that print it,
and a guard that no hard-coded
codeframe prd addhint creeps back in.ruffclean;tests/cli/+ golden-path integration: 558 passed.