Skip to content

Add updated admonition guidance to docs review and style sweep - #432

Merged
theletterf merged 3 commits into
mainfrom
admonition-guidance
Oct 26, 2026
Merged

theletterf merged 3 commits into
mainfrom
admonition-guidance

Conversation

@theletterf

Copy link
Copy Markdown
Member

Vlada is updating the admonition guidance after the writers' calibration sessions, and the PR review workflow needs to apply it like the skills do.

The new guidance (elastic/docs-content#8957, elastic/docs-content-internal#2067, elastic/docs-builder#4545) asks for no more than one admonition per section, puts task-critical content in the body, and reserves warning and important admonitions for real risk. It also rules out fixing stacked admonitions by merging them into one bigger callout.

The review rubric itself comes from review-criteria.md in elastic-docs-skills, which elastic/elastic-docs-skills#169 updates. Two rubric lines are hardcoded in this repo, so this PR updates them:

  • gh-aw-docs-review.md: the Style criterion now flags more than one admonition per section, task-critical content inside an admonition, and warnings that don't flag real risk. It suggests moving content into the body instead of merging callouts.
  • gh-aw-docs-style-sweep.md: one new formatting checklist item with the same rules.

Both lock files are recompiled with the pinned gh-aw (v0.92.5).

This is a draft until elastic/elastic-docs-skills#169 merges. After that, I'll run a bare gh aw compile --force-refresh-action-pins on this branch so the review lock picks up the new review-criteria.md. Without the refresh, the lock keeps the cached skills SHA. I haven't run it in the sandbox yet; the change is prompt text only.

Related to elastic/docs-eng-team#1117

🤖 Generated with Claude Code

@theletterf theletterf self-assigned this Oct 22, 2026
@theletterf theletterf added the fix label Oct 22, 2026
@theletterf
theletterf marked this pull request as ready for review October 22, 2026 13:43
@theletterf
theletterf requested a review from a team as a code owner October 22, 2026 13:43
@theletterf
theletterf requested a review from technige October 22, 2026 13:43

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes: the updated review prompt introduces contradictory instructions for stacked admonitions in the compiled workflow, so the reviewer can receive conflicting guidance in one run. Please align the criteria and runtime prompt text, then regenerate the lock file.


What is this? | From workflow: PR Review

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

@theletterf
theletterf merged commit e4690c6 into main Oct 26, 2026
6 checks passed
@theletterf
theletterf deleted the admonition-guidance branch October 26, 2026 10:17
theletterf added a commit that referenced this pull request Oct 26, 2026
elastic-docs-skills#169 merged after #432, so the docs-review lock no longer matched what the compiler produces and the pre-commit compile hook failed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
theletterf added a commit that referenced this pull request Oct 26, 2026
* Pass the project option ID as a string in project-metadata

gh -F casts an all-digit value to an integer, so a single-select option ID such as 69897712 failed the updateProjectV2ItemFieldValue mutation with 'Variable $option of type String! was provided invalid value'. Use -f so the ID always stays a string.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Recompile the docs review lock with the merged review criteria

elastic-docs-skills#169 merged after #432, so the docs-review lock no longer matched what the compiler produces and the pre-commit compile hook failed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant