Development record
abcd-s-help-renders-in-labelled-command-groups-and-the-group
specclosedspc-2609212139586554
Summary
The design record for itd-146 as widened on 2026-09-21: grouped help for people, an agents-and-hosts block behind --agent, the snapshot recording both.
Scope
- Groups and blocks on the cobra root:
AddGroupper group, ablockannotation per command (peopledefault,agentswhere decision 2 says), the help template rendering the person's groups and the expanding line by default and both blocks with--agent(criteria 1, 2). - Execution unchanged: no
Hidden; a test registers a verb with no group and asserts failure (criterion 3). - The snapshot:
groupandblockfields, schema version bumped, the regeneration gate (criterion 4). - The pages: each
commands/*.mdfrontmatter gainsblock:; the agent block's help lines print the page path (criterion 5). - Places kept:
rules,specuntouched (criterion 6).
Out of scope
- Renames and merges (itd-2609212130136102); the sentence per verb (itd-2609212113220149).
Approach
Cobra's group support plus one annotation and a custom help template; the surface manifest generator already walks the command tree and gains two fields.
Footprint
- packages: internal/surface/cli, internal/core/surface
- tests: the rendered help with and without --agent; the no-group failure; the snapshot diff gate; the page frontmatter check
How the criteria are satisfied
| Criterion | Where |
|---|---|
| 1 grouped list and the line | scope 1 |
| 2 two blocks | scope 1 |
| 3 runs the same; no-group fails | scope 2 |
| 4 snapshot | scope 3 |
| 5 pages | scope 4 |
| 6 places kept | scope 5 |
Frontmatter
| id | spc-2609212139586554 |
|---|---|
| type | spec |
| lifecycle | closed |
.abcd/development/specs/closed/spc-2609212139586554-abcd-s-help-renders-in-labelled-command.md
open on GitHub ↗ · commit history ↗
References1
- itd-146abcd's help renders in labelled command groups, and the grouping is gated like every other surface claimimplements
mentions2
- itd-2609212113220149Every verb's help opens with one sentence an agent can act on
- itd-2609212130136102abcd's verbs consolidate: modes become flags and five checks become one lint