Skip to content

docs(conventions): argument-hint 2.0.0, adopt the official bracket notation, write out action sets, keep prose out of hints #5774

Closed

Description

@kyle-sexton

Context

The argument-hint house style departs from the notation Claude Code's own docs use, and the gate that enforces it passes hints that hide a skill's actions or carry prose. About 120 of the 275 shipping hints need a change. The hint is the only place a person sees a skill's actions at the prompt.

Claude Code offers plugin skills no tab-completable action list. The list shown under /claude-api comes from a getArgumentCompletions callback registered in the binary for bundled skills (read from the 2.1.287 binary, 2026-10-01; undocumented). The file-based skill loaders read only argument-hint and arguments. A complete, uniform hint is the whole of what a plugin skill can show.

What the official docs say, fetched 2026-10-01:

The docs set no rule for plugin authors beyond the row, so the 100-character budget and the gate remain house rules. The notation is where the house style can and should match the official one.

Four gaps, counted on main at 8fb76db:

  1. Spaced pipe: 69 hints. 46 setup skills use bare check | apply …; 23 others use a spaced pipe, most of them inside brackets ([plan | apply | cutover-check | remove-shims], plan | next | review, [topic | arm]). Convention 1.0.0 allows the bare top-level form; the official notation has no such form.
  2. Bare check: 14 setup hints. The slot is neither [check] nor <check>.
  3. Placeholder instead of the action set: 25 skills. skill-argument-shape says "The hint lists the action set", but nothing checks it.
    • [action] or <action> (18): all ten songwriting skills (rhyme, song-form, meter-prosody, workflow, practice, suno, co-write, diagnose, metaphor, object-writing), work-items:track, source-control:pull-request, source-control:worktree, planning:interview, planning:design, architecture:improve, knowledge:course-digest, docs-hygiene:rename-references.
    • [mode] or similar (6): review:fanout, session-flow:retro, session-flow:workflow, verification:confirm, implementation:implement ([task or mode]), event-storming:simulation ([--<mode>]).
    • [options] (1): disk-hygiene:clean.
  4. Prose after the grammar: 13 skills. The gate matches only (e.g. and (for example: education:explain, education:quiz-me, education:eli5, adhd:clarify, writing:be-concise, x:read, visualization:visualize, firecrawl:update, planning:devils-advocate, planning:design-handoff, planning:audit-answers, the draft-auto-mode-rules skill, source-control:resolve-conflicts. planning:design-handoff takes no arguments and its hint is a sentence; the rule there is to omit the key.

The convention also has no record that action completion is unavailable to plugin skills, so the question gets re-researched.

Decision

Owner decision, 2026-10-01: one notation, the official one. This reverses the bare-alternative allowance from #3542.

  • Every set of alternatives sits inside [] when the slot is optional or <> when it is required, with an unspaced |. No spaced pipe anywhere, and no alternatives outside brackets.
  • Setup skills: [check|apply] where a bare invocation runs check, <check|apply> where it does not. 44 of the 60 setup bodies state a bare or default check; the other 16 need reading before their form is chosen. Check-only setups use [check].
  • [args] after a written-out action set stays allowed, because per-action arguments differ and belong in the body.

Proposed work

  • Bump the argument-hint convention to 2.0.0 (major: the bracket grammar changes):
    • The notation rule above, with the commands-page legend and the built-in examples as its four-part record.
    • A closed action or mode set is written out. A slot named action, mode, or options is not a hint. A set too long for the 100-character budget is abbreviated the way repo-hygiene:clean already does it.
    • Nothing follows the grammar: no parenthetical of any kind, and no words after the last slot.
    • A four-part record for the completion limit, with the recheck trigger "a Claude Code release note or the frontmatter reference adds argument completion for skills".
    • State which rules come from the official docs (bracket notation) and which are house rules (budget, written-out sets, no prose).
  • In scripts/validate-plugin-contracts.mjs: change the setup contract to require the hint to start with [check or <check; make argumentHintMalformed warn on any spaced pipe, on a pipe outside brackets, on a placeholder slot, and on trailing prose. Add cases to scripts/validate-plugin-contracts.test.sh.
  • Update docs/plugin-philosophy.md and docs/conventions/skill-argument-shape/README.md wherever they show the old setup form.
  • Fix the hints, moving displaced prose into each skill body's Arguments section, and keep each **Arguments.** line leading with the new hint.
  • Record the result in the convention CHANGELOG.md and each touched plugin's changelog.

Acceptance criteria

  • docs/conventions/argument-hint/README.md states the notation rule, the two content rules, and the completion-limit record, and marks which rules are official and which are house; CHANGELOG.md has a 2.0.0 entry.
  • No shipping hint contains a spaced pipe or a pipe outside [] or <>.
  • Every setup hint starts with [check or <check, and the form matches what that skill's body says a bare invocation does.
  • The gate warns on a spaced pipe, a pipe outside brackets, an action, mode, or options slot, a parenthetical, and words after the last slot; the test file covers each.
  • node scripts/validate-plugin-contracts.mjs reports zero argument-hint warnings on the shipping tree.
  • Each of the 25 placeholder hints names its real action set, within 100 characters.
  • No prose removed from a hint is lost: each appears in that skill's body.

References

Metadata

Field Value
Category unspecified
Area unspecified
Ecosystem unspecified

Activity

  1. added
    needs-triage
    on Oct 2, 2026
  2. added theissue type on Oct 2, 2026
  3. changed the title [-]docs(conventions): argument-hint 1.2.0, write out action sets and keep prose out of hints[/-] [+]docs(conventions): argument-hint 2.0.0, adopt the official bracket notation, write out action sets, keep prose out of hints[/+] on Oct 2, 2026
  4. self-assigned this
    on Oct 2, 2026
  5. kyle-sexton commented on Oct 2, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triage

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions