Review AsciiDoc (.adoc) files for Red Hat modular documentation compliance — module types (concept, procedure, reference), assembly structure, anchor IDs, context variables, leveloffset, and include directives. Use this skill whenever someone asks about modular docs, checks .adoc file structure, asks if a module is the right type, needs to verify anchor IDs have _{context}, or reviews assemblies. Also triggers for questions about concept vs procedure vs reference modules, prerequisites formatting, or Red Hat doc structure.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Review AsciiDoc (.adoc) files for Red Hat modular documentation compliance — module types (concept, procedure, reference), assembly structure, anchor IDs, context variables, leveloffset, and include directives. Use this skill whenever someone asks about modular docs, checks .adoc file structure, asks if a module is the right type, needs to verify anchor IDs have _{context}, or reviews assemblies. Also triggers for questions about concept vs procedure vs reference modules, prerequisites formatting, or Red Hat doc structure.
Modular documentation review skill
Review AsciiDoc source files for Red Hat modular documentation compliance: module types, required sections, anchor IDs, and assembly structure.
Applies to: .adoc files only
For detailed module type guidance, templates, and structural rules, read asciidoc-reference.md. It contains full descriptions of each module type, required/optional parts, templates, and examples.
Concept checklist
Title is noun phrase (NOT gerund) and uses sentence case (not Title Case)
Anchor ID includes _{context}
Introduction provides overview (what and why)
No step-by-step instructions (those belong in procedures)
Actions avoided unless highly context-dependent
If subheadings used, first tried splitting into separate modules
Standard subheadings (included in TOC) have anchor IDs with _{context}: [#anchor-id_{context}]
Only valid admonition types used: NOTE, IMPORTANT, WARNING, TIP (CAUTION is not supported by the Red Hat Customer Portal)
Additional resources focused on relevant items only
All attribute references (e.g., {product-name}) are defined in the project
Procedure checklist
Title uses imperative phrase (verb without -ing) and sentence case (not Title Case)
Anchor ID includes _{context}
Introduction explains why and where
.Procedure section present with numbered steps
Each step describes ONE action
Steps use imperative form ("Click...", "Run...")
Single-step procedures use bullet (*) not number
No custom subheadings - only allowed sections used
.Next steps contains links only, not instructions
Prerequisites written as conditions, not instructions
Only valid admonition types used: NOTE, IMPORTANT, WARNING, TIP (CAUTION is not supported by the Red Hat Customer Portal)
Optional sections in correct order: Limitations, Prerequisites, Verification, Troubleshooting, Next steps, Additional resources
All attribute references (e.g., {product-name}) are defined in the project
Reference checklist
Title is noun phrase and uses sentence case (not Title Case)
Anchor ID includes _{context}
Introduction explains what data is provided
Body uses tables or labeled lists
Data logically organized (alphabetical, categorical)
Consistent structure for similar data
Standard subheadings (included in TOC) have anchor IDs with _{context}: [#anchor-id_{context}]
Additional resources focused on relevant items only
All attribute references (e.g., {product-name}) are defined in the project
Assembly checklist
Title matches content (imperative if procedures included)
Anchor ID does NOT include _{context}
Context variable set: :context: my-assembly-name
Introduction explains what user accomplishes
Modules included with leveloffset= and appropriate level
Next steps and Additional resources in correct order
All attribute references (e.g., {product-name}) are defined in the project
Common violations
Issue
Wrong
Correct
Missing context
[id="my-assembly"]
[id="my-module_{context}"]
Standard subheading without anchor ID
== Subheading
[#anchor-id_{context}] then == Subheading
Procedure title
= Database Configuration
= Configure the database
Custom subheading in procedure
== Additional setup
Use allowed sections only
Instructions in Next steps
Numbered steps
Links only
Module contains module
include:: of module
Only snippets in modules
Missing leveloffset
include::mod.adoc[]
include::mod.adoc[leveloffset=+1]
Prerequisite as step
* Install JDK 11
* JDK 11 is installed.
Deep assembly nesting
Many levels of nested assemblies
Link to assemblies instead
Writers defining user stories
Writer creates user story
Product management defines user stories
Undefined attribute
{my-product} without :my-product: defined
Define in attributes file or document header
Attribute validation
Finding attribute references
Attribute references use the format {attribute-name}. Common patterns: