docs(#206): add CLI UX design conventions to AGENTS.md - #207
fullsend-ai-coder[bot] wants to merge 3 commits into
Conversation
Add a new CLI UX Design Conventions section to AGENTS.md encoding the design principles established through PR #156 review. These conventions give the review agent concrete patterns to check when new intent-based commands are added: - Entity references: positional [kind:][namespace/]name via parseEntityRef/resolveEntityRef in kv.ts - Filter/input flags: repeatable --flag key=value via collect/resolveJsonInput, not JSON string arguments - Plugin dependencies: detect missing optional plugins and exit with clear error, not raw HTTP responses - Exit codes: non-zero on not-found or failure via handleCommandError from intent-errors.ts - Error presentation: use intent-errors.ts formatError for structured {error, reason, suggestion} output - Help text: passthrough commands must surface the underlying tools flags Note: prettier could not run (tooling not installed in sandbox). Manual verification of formatting is required. Closes #206 Assisted-by: claude-opus-4-6
|
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details: |
1 similar comment
|
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details: |
|
🤖 Finished Review · ✅ Success · Started 2:56 PM UTC · Completed 3:13 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-4-6 · Effort: high · Cost: $3.10 |
|
Risk Assessment: low (1/5) DetailsThree-file documentation-only PR from a bot adding 6 CLI UX conventions to AGENTS.md and correcting deprecated flag examples in README.md and docs/Intent-Based-CLI.md; Tier 1 signals are identical to the prior review (same small blast radius, same single protected path, bot author, no dependencies changed), Tier 2 shows normal activity levels with no doc-specific regressions, and Tier 3 issue coverage is complete — anchoring preserves the prior score of 1 (low). Previous runRisk Assessment: low (1/5) DetailsThree-file documentation-only PR from a bot updating AGENTS.md (additive only) and correcting deprecated flag examples in README.md and docs/Intent-Based-CLI.md; Tier 1 signals effectively unchanged from prior review (same protected-path flag, same small blast radius), Tier 2 shows normal activity levels, and Tier 3 issue coverage remains complete — anchoring preserves the prior score of 1 (low). Previous run (2)Risk Assessment: low (1/5) DetailsSingle-file documentation-only PR authored by a bot that adds 30 lines to a protected path (AGENTS.md); the sole elevated Tier 1 signal is the protected-path flag (score 3), offset by the additive-only nature of the change and full issue acceptance criteria coverage. |
ReviewFindingsHigh
Medium
Next steps:
Previous runReviewFindingsHigh
Medium
Next steps:
Previous run (2)ReviewFindingsHigh
Medium
Labels: PR modifies only AGENTS.md documentation to add CLI UX design conventions Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 3:15 PM UTC · Completed 3:22 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.09 |
Replace deprecated flag-based entity input patterns (--name, --entity-ref, --template-ref) with positional ref arguments in documentation examples, aligning with the CLI UX design conventions added to AGENTS.md. Updated examples in: - docs/Intent-Based-CLI.md (workflows 2, 3, 5, and agent workflow) - README.md (quick examples) Note: PR title fix (remove # from scope) could not be applied due to sandbox restrictions. Recommend renaming to: docs: add CLI UX design conventions to AGENTS.md Addresses #207 Assisted-by: claude-sonnet-4-6
🔧 Fix agent — iteration 1 (bot-triggered)Fixed 5 stale documentation examples across docs/Intent-Based-CLI.md and README.md to use positional entity refs instead of deprecated --name/--entity-ref/--template-ref flags, aligning examples with the CLI UX design conventions added in this PR. PR title fix could not be applied due to sandbox restrictions. Fixed (5):
Disagreed (2):
Tests: passed Decision points
Next steps:
|
|
🤖 Finished Review · ✅ Success · Started 3:24 PM UTC · Completed 3:35 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-4-6 · Effort: high · Cost: $2.08 |
|
🤖 Finished Fix · ✅ Success · Started 3:36 PM UTC · Completed 3:42 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.17 |
…ityCheck Replace incorrect reference to `resolveEntityRef` in `kv.ts` with `resolveEntityWithAmbiguityCheck` from `helpers.ts`, which is the function actually used by all command files (api.ts, catalog.ts, docs.ts, template.ts) for entity resolution with catalog-based ambiguity detection. Addresses #207 Assisted-by: claude-opus-4-6
🔧 Fix agent — iteration 2 (bot-triggered)Fixed the entity references convention in AGENTS.md to correctly cite resolveEntityWithAmbiguityCheck from helpers.ts instead of resolveEntityRef from kv.ts. PR title fix and protected-path finding could not be addressed from sandbox. Fixed (1):
Disagreed (2):
Tests: passed Decision points
Next steps:
|
|
|
🤖 Finished Review · ✅ Success · Started 3:43 PM UTC · Completed 3:55 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-4-6 · Effort: high · Cost: $2.14 |
|
🤖 Finished Fix · ✅ Success · Started 3:56 PM UTC · Completed 4:00 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $0.59 |
🔧 Fix agent — iteration 3 (bot-triggered)Both review findings are about PR metadata, not code. The naming-convention finding (PR title has # in scope) is correct but cannot be fixed by the fix agent due to sandbox API restrictions — a human must rename the title to Disagreed (2):
Tests: passed
Decision points
Next steps:
|



Summary
parseEntityRefinkv.ts,handleCommandErrorinintent-errors.ts)Motivation
PR #156 review revealed that the review agent had no guidance on CLI UX design quality. The human reviewer caught 6 UX issues the agent missed entirely because AGENTS.md only covered code organization, not design correctness. These conventions make the design standards explicit so the review agent can check new commands against them.
Testing
catalog.ts,docs.ts,template.ts,kv.ts, andintent-errors.tsCloses #206
Post-script verification
agent/206-cli-ux-conventions)7dac1979668716aafb853607ecfc253777515467..HEAD)