Skip to content

Add an outcome statement linter - #674

Draft
ptgott wants to merge 1 commit into
mainfrom
paul.gottschling/2026-05-19-outcome
Draft

Add an outcome statement linter#674
ptgott wants to merge 1 commit into
mainfrom
paul.gottschling/2026-05-19-outcome

Conversation

@ptgott

@ptgott ptgott commented May 22, 2026

Copy link
Copy Markdown
Contributor

Add outcome statement helps human and AI agent readers determine the scope of a docs page within a single paragraph so they can make a decision as to whether to continue reading.

While there is currently a check for opening paragraphs in docs pages, the outcome statement check goes a step further and requires a specific sentence structure depending on the kind of guide, which it obtains from the page_type frontmatter field. This helps ensure that docs authors include the most appropriate level of detail in each page's outcome statement.

For example, while an LLM can determine the scope of a reference page based on the tables, lists, and so on, this linter enforces the presence of an explicit description of the kinds of items a page lists: "This page lists the...".

To implement the outcome statement linter, this change adds a check to lint-page-structure.

@ptgott
ptgott temporarily deployed to docs-amplify May 22, 2026 15:44 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented May 22, 2026

Copy link
Copy Markdown

Amplify deployment status

Branch Commit Job ID Status Preview Updated (UTC)
paul.gottschling/2026-05-19-outcome bd3d7e5 22 ✅SUCCEED paul-gottschling-2026-05-19-outcome 2026-05-26 17:34:47

@ptgott
ptgott force-pushed the paul.gottschling/2026-05-19-outcome branch from 68c9ee3 to e3256d4 Compare May 26, 2026 12:58
@ptgott
ptgott temporarily deployed to docs-amplify May 26, 2026 12:58 — with GitHub Actions Inactive
@ptgott
ptgott force-pushed the paul.gottschling/2026-05-19-outcome branch from e3256d4 to 53cad20 Compare May 26, 2026 17:06
@ptgott
ptgott temporarily deployed to docs-amplify May 26, 2026 17:06 — with GitHub Actions Inactive
@ptgott
ptgott force-pushed the paul.gottschling/2026-05-19-outcome branch from 53cad20 to bd3d7e5 Compare May 26, 2026 17:25
@ptgott
ptgott temporarily deployed to docs-amplify May 26, 2026 17:25 — with GitHub Actions Inactive
@ptgott
ptgott force-pushed the paul.gottschling/2026-05-19-outcome branch from bd3d7e5 to c3fdf86 Compare June 23, 2026 16:01
Add outcome statement helps human and AI agent readers determine the
scope of a docs page within a single paragraph so they can make a
decision as to whether to continue reading.

While there is currently a check for opening paragraphs in docs pages,
the outcome statement check goes a step further and requires a specific
sentence structure depending on the kind of guide, which it obtains from
the `page_type` frontmatter field. This helps ensure that docs authors
include the most appropriate level of detail in each page's outcome
statement.

For example, while an LLM can determine the scope of a reference page
based on the tables, lists, and so on, this linter enforces the presence
of an explicit description of the kinds of items a page lists: "This
page lists the...".

To implement the outcome statement linter, this change adds a check to
lint-page-structure.
@ptgott
ptgott force-pushed the paul.gottschling/2026-05-19-outcome branch from c3fdf86 to 2604d00 Compare July 23, 2026 13:32
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