Skip to content

Document AsciiDoc content conventions in CLAUDE.md to reduce review rework #248

Description

@fullsend-ai-retro

What happened

On PR #246, the review agent flagged multiple AsciiDoc convention violations that required fix-push-review cycles: (1) placeholder formatting — bare <placeholder> instead of the repo's established [,yaml,subs="+quotes"] with __<placeholder>__ pattern (medium severity, review run 33374015666), (2) title casing — page title used title case while nav entry used sentence case (low severity, same run), (3) step heading style not matching existing guides (low severity, run 33075552379). The author addressed each finding in separate commits, triggering 3 additional full reviews ($12.28) on Aug 31 alone. The CLAUDE.md documents repo structure and build commands but contains no AsciiDoc content conventions.

What could go better

The review agent had to discover AsciiDoc conventions by cross-referencing existing files each run, and the author was unaware of some conventions (like the placeholder formatting pattern used in only 2 other files). If CLAUDE.md documented the established patterns, authors would apply them from the first commit, and the review agent would have an authoritative reference rather than inferring conventions from sparse examples. Confidence: moderate — this addresses convention-awareness but would not have prevented the cross-document API version finding (the most valuable catch), which was a content accuracy issue rather than a formatting convention.

Proposed change

Add an "AsciiDoc Content Conventions" section to CLAUDE.md documenting the patterns already established in the repo:

  1. Placeholder formatting: Use [,yaml,subs="+quotes"] (or [,shell,subs="+quotes"]) with __<placeholder>__ for user-replaceable values in code blocks. This renders placeholders in italics.
  2. Page titles: Use sentence case (e.g., "Catching policy violations early"), not title case.
  3. Navigation entries: Must match page title casing (sentence case).
  4. Admonitions: Use NOTE:, TIP:, WARNING: (the three types used in this repo). No IMPORTANT: or CAUTION:.
  5. Cross-references: Use Antora xref:page.adoc[label] for local links, xref:component:module:page.adoc[label] for cross-component links.
  6. Code block language: Use Antora shorthand [,language] (e.g., [,yaml], [,shell]).

This is complementary to issue #240 (AsciiDoc validation tooling), which catches structural errors. Convention documentation prevents style issues that automated validation cannot detect.

Validation criteria

On the next 3 documentation PRs to conforma/user-guide: (1) placeholder formatting findings should not appear in agent reviews — authors should use the documented pattern from the first commit, and (2) title casing findings should decrease or disappear. Measurable by comparing review finding categories on future PRs against the PR #246 baseline.


Generated by retro agent from #246

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions