Skip to content

Add linter for how-to guide steps with no commands - #637

Draft
ptgott wants to merge 1 commit into
mainfrom
paul.gottschling/2026-04-29-followability
Draft

Add linter for how-to guide steps with no commands#637
ptgott wants to merge 1 commit into
mainfrom
paul.gottschling/2026-04-29-followability

Conversation

@ptgott

@ptgott ptgott commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Per the linter, every H2 in the docs that begins "## Step [0-9]+" must include at least one code fence with the code label, indicating an example command that a CLI user or AI agent can follow. The aim of this linter is to make it easier for CLI users and AI agents to follow docs guides.

To instruct the linter to ignore guides that genuinely require manual interaction, a docs author can add a lint disable comment for the whole page or a lint ignore comment for a particular guide.

The linter checks specifically for commands, rather than commands or configuration snippets. This is because an agent can't necessarily glean from a configuration snippet how to apply it, e.g., by restarting Teleport or running tctl apply.

While guides that pass the linter are not guaranteed to be followable by AI agents, passing the linter does remove a blocker for agents, and also helps ensures that human users who prefer the keyboard have an option available to them.

@github-actions

github-actions Bot commented Apr 29, 2026

Copy link
Copy Markdown

Amplify deployment status

Branch Commit Job ID Status Preview Updated (UTC)
paul.gottschling/2026-04-29-followability c5101a8 16 ✅SUCCEED paul-gottschling-2026-04-29-followability 2026-06-30 19:49:49

@ptgott
ptgott marked this pull request as ready for review May 1, 2026 15:05
@ptgott
ptgott marked this pull request as draft May 1, 2026 15:06
@ptgott
ptgott force-pushed the paul.gottschling/2026-04-29-followability branch from ec7635e to a2d402a Compare June 18, 2026 14:30
@ptgott
ptgott force-pushed the paul.gottschling/2026-04-29-followability branch from a2d402a to be19961 Compare June 18, 2026 17:15
@ptgott
ptgott force-pushed the paul.gottschling/2026-04-29-followability branch from be19961 to 67b9ec3 Compare June 26, 2026 13:50
Per the linter, every H2 in the docs that begins "## Step [0-9]+" must
include at least one code fence with the `code` label, indicating an
example command that a CLI user or AI agent can follow. The aim of this
linter is to make it easier for CLI users and AI agents to follow docs
guides.

To instruct the linter to ignore guides that genuinely require manual
interaction, a docs author can add a `lint disable` comment for the
whole page or a `lint ignore` comment for a particular guide.

The linter checks specifically for commands, rather than commands or
configuration snippets. This is because an agent can't necessarily glean
from a configuration snippet how to apply it, e.g., by restarting
Teleport or running `tctl apply`.

While guides that pass the linter are not guaranteed to be followable by
AI agents, passing the linter does remove a blocker for agents, and also
helps ensures that human users who prefer the keyboard have an option
available to them.
@ptgott
ptgott force-pushed the paul.gottschling/2026-04-29-followability branch from 67b9ec3 to c5101a8 Compare June 30, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant