You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
This file helps AI agents understand the structure, tooling, and conventions of the
4
4
Validated Patterns documentation repository so they can make correct, buildable changes.
5
+
For creating or reviewing documentation content, use the skills under `.rulesync/skills/`
6
+
(see [AI documentation skills](#ai-documentation-skills)).
5
7
6
8
## Project Overview
7
9
@@ -22,10 +24,50 @@ themes/patternfly/ Vendored PatternFly theme — do NOT edit
22
24
static/ Static assets (CSS, JS, images, videos)
23
25
assets/ Hugo asset pipeline (images)
24
26
utils/ Ruby scripts (e.g. flatten_yaml.rb for pattern metadata)
27
+
.rulesync/skills/ AI agent skills for creating and reviewing documentation (source of truth)
25
28
config.yaml Main Hugo configuration
26
29
Makefile Build, serve, and test commands
27
30
```
28
31
32
+
## AI documentation skills
33
+
34
+
This repository includes agent skills under `.rulesync/skills/`. These are the **required**
35
+
workflows for creating and reviewing documentation. Do **not** free-form invent page
36
+
structure, frontmatter, or style rules when these skills apply — read the skill file first
37
+
and follow it precisely.
38
+
39
+
Skills may also be synced into editor-specific locations (for example `.claude/skills/` or
40
+
Cursor skills) via [rulesync](https://www.npmjs.com/package/rulesync). Prefer the skill when
41
+
it is available in the agent environment; if it is not loaded, read the source files under
42
+
`.rulesync/skills/` directly and execute the same workflow.
43
+
44
+
| Skill | Path | Use when |
45
+
|---|---|---|
46
+
|**doc-create**|`.rulesync/skills/doc-create/SKILL.md`| Creating, drafting, scaffolding, or generating new documentation (learn pages, pattern page sets, tutorials, guides, or other new `.adoc`/`.md` site content) |
47
+
|**doc-review**|`.rulesync/skills/doc-review/SKILL.md`| Reviewing, proofreading, linting, or auditing existing documentation for Red Hat/IBM style compliance |
48
+
49
+
### Mandatory routing for documentation requests
50
+
51
+
1.**Generate / create / write / scaffold / draft new docs** → Use **doc-create**.
- Follow its two-pass guide selection and review/fix workflow.
61
+
- Load only the relevant guides from `.rulesync/skills/doc-review/guides/`.
62
+
63
+
3. If the user asks for both creation and review, run **doc-create** first, then
64
+
**doc-review** on the generated files (or complete the inline review step inside
65
+
doc-create, then offer a fuller doc-review pass if useful).
66
+
67
+
4. Do not skip these skills just because the user did not name them. Trigger phrases
68
+
include “generate documentation”, “create a page”, “write docs for”, “scaffold a
69
+
pattern”, “review this doc”, “check style”, and similar requests.
70
+
29
71
## Building and Serving Locally
30
72
31
73
All build commands use Podman to run a container with Hugo and Asciidoctor pre-installed.
@@ -148,6 +190,8 @@ learn pages, contribute pages, or full pattern page sets).
148
190
## Writing Style Guidelines
149
191
150
192
See `modules/doc-guidelines.adoc` for the full documentation style guide.
193
+
When reviewing or fixing style in existing files, use the **doc-review** skill
194
+
(`.rulesync/skills/doc-review/SKILL.md`) rather than applying these rules ad hoc.
151
195
152
196
- Follow the [Red Hat Supplementary Style Guide](https://redhat-documentation.github.io/supplementary-style-guide/ssg.md) and [IBM Style](https://www.ibm.com/docs/en/ibm-style).
153
197
- Use present tense, active voice, and second person ("you").
@@ -186,3 +230,5 @@ lowercase, no duplicates). Run `make lintwordlist` to normalize the file.
186
230
- Do **not** commit `.vale.ini` or `.vale/` (gitignored, local-only config).
187
231
- Do **not** hard-code brand or product names that are already defined as attributes in
188
232
`modules/comm-attributes.adoc`; use the AsciiDoc attributes instead.
233
+
- Do **not** invent documentation scaffolds or style-review workflows when
234
+
**doc-create** or **doc-review** applies — use those skills instead.
0 commit comments