Skip to content

Commit a4355b8

Browse files
authored
Merge pull request #715 from gaurav-nelson/agents-file-update
chore: Add info about skills in the AGENTS.md file
2 parents c6dd466 + 98973a2 commit a4355b8

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

‎AGENTS.md‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This file helps AI agents understand the structure, tooling, and conventions of the
44
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)).
57

68
## Project Overview
79

@@ -22,10 +24,50 @@ themes/patternfly/ Vendored PatternFly theme — do NOT edit
2224
static/ Static assets (CSS, JS, images, videos)
2325
assets/ Hugo asset pipeline (images)
2426
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)
2528
config.yaml Main Hugo configuration
2629
Makefile Build, serve, and test commands
2730
```
2831

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**.
52+
- Read `.rulesync/skills/doc-create/SKILL.md` immediately.
53+
- Follow its steps (resolve content type, gather inputs, use references, generate files).
54+
- Load the applicable reference under `.rulesync/skills/doc-create/references/` before writing.
55+
- After generation, perform the style review step described in that skill (using
56+
`.rulesync/skills/doc-review/guides/` as instructed).
57+
58+
2. **Review / check / fix style / audit docs** → Use **doc-review**.
59+
- Read `.rulesync/skills/doc-review/SKILL.md` immediately.
60+
- 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+
2971
## Building and Serving Locally
3072

3173
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).
148190
## Writing Style Guidelines
149191

150192
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.
151195

152196
- 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).
153197
- Use present tense, active voice, and second person ("you").
@@ -186,3 +230,5 @@ lowercase, no duplicates). Run `make lintwordlist` to normalize the file.
186230
- Do **not** commit `.vale.ini` or `.vale/` (gitignored, local-only config).
187231
- Do **not** hard-code brand or product names that are already defined as attributes in
188232
`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

Comments
 (0)