@buresmi7/agent-doc-rules-skill 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +250 -0
- package/SKILL.md +129 -0
- package/agents/openai.yaml +4 -0
- package/assets/templates/AGENTS.overlay.md +35 -0
- package/assets/templates/AGENTS.project.md +31 -0
- package/bin/install.mjs +128 -0
- package/docs/adoption.md +144 -0
- package/docs/config-reference.md +208 -0
- package/docs/context-placement.md +147 -0
- package/docs/recipes.md +136 -0
- package/docs/tool-map.md +65 -0
- package/package.json +42 -0
- package/references/agents-rubric.md +44 -0
- package/references/agents-rules.md +89 -0
- package/references/doc-audit.md +58 -0
- package/references/documentation-architecture.md +63 -0
- package/references/factual-review.md +108 -0
- package/references/influences.md +63 -0
- package/references/readme-rubric.md +38 -0
- package/references/readme-rules.md +124 -0
- package/references/security-review.md +75 -0
- package/references/validation.md +96 -0
- package/references/writing-style.md +77 -0
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@buresmi7/agent-doc-rules-skill",
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Agent Skill for concise AGENTS.md, README, and repository documentation rules",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"bin": {
|
|
9
|
+
"agent-doc-rules-skill": "bin/install.mjs"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "node --test test/*.test.mjs"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"README.md",
|
|
19
|
+
"SKILL.md",
|
|
20
|
+
"agents",
|
|
21
|
+
"assets",
|
|
22
|
+
"bin",
|
|
23
|
+
"docs",
|
|
24
|
+
"references"
|
|
25
|
+
],
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"docmd-skills": "1.1.0",
|
|
28
|
+
"skill-meta-skill": "0.1.0"
|
|
29
|
+
},
|
|
30
|
+
"agentDocRules": {
|
|
31
|
+
"projectSkills": [
|
|
32
|
+
{
|
|
33
|
+
"name": "docmd-writer",
|
|
34
|
+
"source": "docmd-skills"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "meta-skill",
|
|
38
|
+
"source": "skill-meta-skill"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# AGENTS.md Review Rubric
|
|
2
|
+
|
|
3
|
+
Use this rubric to review a generated or repaired `AGENTS.md`.
|
|
4
|
+
|
|
5
|
+
## Critical Criteria
|
|
6
|
+
|
|
7
|
+
- **Purpose:** The opening identifies the repository and what agents must know
|
|
8
|
+
before changing it.
|
|
9
|
+
- **Routing:** The file points to canonical docs, shared rules, and local skills
|
|
10
|
+
instead of repeating their details.
|
|
11
|
+
- **Local facts:** Local language, safety, verification, and workflow rules are
|
|
12
|
+
preserved when supported by repository files.
|
|
13
|
+
- **Concision:** The file stays short enough to scan and avoids full procedures,
|
|
14
|
+
architecture essays, and command references.
|
|
15
|
+
- **Source of truth:** Canonical files are linked, and conflicts name the file
|
|
16
|
+
that wins.
|
|
17
|
+
- **Verification:** Required checks are named, and skipped checks require a
|
|
18
|
+
reason plus remaining-risk note or otherwise make unchecked work explicit.
|
|
19
|
+
- **Truthfulness:** Commands, tools, hosts, issue workflows, and services are not
|
|
20
|
+
invented or carried forward when unsupported.
|
|
21
|
+
- **Safety:** Secrets, credentials, account IDs, customer data, private hosts,
|
|
22
|
+
and environment-specific notes are absent.
|
|
23
|
+
- **No shared-rule copies:** Installed shared rules are linked, not pasted into
|
|
24
|
+
the project file.
|
|
25
|
+
|
|
26
|
+
## Scoring Guidance
|
|
27
|
+
|
|
28
|
+
- **Pass:** All critical criteria pass. Minor wording or ordering issues are
|
|
29
|
+
acceptable.
|
|
30
|
+
- **Review:** One non-critical section is vague, stale, or too long.
|
|
31
|
+
- **Fail:** Any critical criterion fails, or the file invents project facts.
|
|
32
|
+
|
|
33
|
+
## Reviewer Questions
|
|
34
|
+
|
|
35
|
+
Ask these questions before accepting the change:
|
|
36
|
+
|
|
37
|
+
- Could a new agent find the relevant docs and checks in the first scan?
|
|
38
|
+
- Is any rule copied from `.agents/skills/agent-doc-rules/references/`?
|
|
39
|
+
- Does each local rule come from the repository or the user's explicit request?
|
|
40
|
+
- Should any long procedure move to `docs/`, `references/`, or a task-specific
|
|
41
|
+
skill?
|
|
42
|
+
- Are nested `AGENTS.md` files a better home for directory-specific rules?
|
|
43
|
+
- Is every verification command supported by the repository or clearly labeled
|
|
44
|
+
as manual or unavailable?
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# AGENTS.md Rules
|
|
2
|
+
|
|
3
|
+
Use this rule when creating or maintaining `AGENTS.md` files. For review, also
|
|
4
|
+
use [AGENTS.md review rubric](agents-rubric.md).
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
`AGENTS.md` is an always-loaded entry point for AI agents. It should provide
|
|
9
|
+
orientation, local invariants, and links to deeper docs.
|
|
10
|
+
|
|
11
|
+
It is a navigation layer, not full documentation.
|
|
12
|
+
|
|
13
|
+
## Core Rules
|
|
14
|
+
|
|
15
|
+
- Keep `AGENTS.md` short enough to scan quickly.
|
|
16
|
+
- Use short sections with bullets and links.
|
|
17
|
+
- Store detailed procedures in `rules/`, `references/`, skills, or component
|
|
18
|
+
docs.
|
|
19
|
+
- Do not copy shared rules into project `AGENTS.md`; link to the shared rule
|
|
20
|
+
from a dedicated top-level `Shared Rules` or `Skill Reference` section.
|
|
21
|
+
- Do not put shared-rule links in `Source Of Truth`; that section is for
|
|
22
|
+
project-owned canonical docs.
|
|
23
|
+
- When repairing a file that already copied shared rules, replace the copied
|
|
24
|
+
block with a short `Shared Rules` section that links to the installed rule.
|
|
25
|
+
- State local overrides explicitly.
|
|
26
|
+
- Prefer nested `AGENTS.md` files for directory-specific rules.
|
|
27
|
+
- When adding a nested `AGENTS.md`, keep the root file short but point agents to
|
|
28
|
+
the nested file before they edit that directory. Do not repeat the nested
|
|
29
|
+
rules in the root file.
|
|
30
|
+
|
|
31
|
+
## Recommended Root Structure
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
# Project Name - AI Agent Instructions
|
|
35
|
+
|
|
36
|
+
Brief project orientation.
|
|
37
|
+
|
|
38
|
+
## Shared Rules
|
|
39
|
+
|
|
40
|
+
- [AGENTS.md rules](.agents/skills/agent-doc-rules/references/agents-rules.md)
|
|
41
|
+
- [README rules](.agents/skills/agent-doc-rules/references/readme-rules.md)
|
|
42
|
+
- [Documentation architecture](.agents/skills/agent-doc-rules/references/documentation-architecture.md)
|
|
43
|
+
|
|
44
|
+
## Local Rules
|
|
45
|
+
|
|
46
|
+
Project-specific invariants and overrides.
|
|
47
|
+
|
|
48
|
+
## Source Of Truth
|
|
49
|
+
|
|
50
|
+
Canonical project docs and decision records.
|
|
51
|
+
|
|
52
|
+
## Verification
|
|
53
|
+
|
|
54
|
+
Project-specific validation commands or checks. If a check cannot run, state why
|
|
55
|
+
and document the remaining risk.
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## What To Include
|
|
59
|
+
|
|
60
|
+
- Brief project description.
|
|
61
|
+
- Links to shared rules and project docs.
|
|
62
|
+
- Local language, safety, security, or workflow overrides.
|
|
63
|
+
- Project-specific verification commands.
|
|
64
|
+
- A short rule that makes skipped verification visible. Existing local wording
|
|
65
|
+
such as "say what remained unchecked" satisfies this; do not rewrite it only
|
|
66
|
+
to match this reference's preferred wording.
|
|
67
|
+
- Pointers to issue, PR, or proposal conventions.
|
|
68
|
+
|
|
69
|
+
## What To Avoid
|
|
70
|
+
|
|
71
|
+
- Long architecture explanations.
|
|
72
|
+
- Full command references.
|
|
73
|
+
- Duplicated text from shared rules.
|
|
74
|
+
- Stale lists that should be generated or linked.
|
|
75
|
+
- Secrets, credentials, host names, or account IDs.
|
|
76
|
+
|
|
77
|
+
## Local Override Rule
|
|
78
|
+
|
|
79
|
+
When a project needs to override the shared core, write the override directly
|
|
80
|
+
and narrowly:
|
|
81
|
+
|
|
82
|
+
```markdown
|
|
83
|
+
## Local Overrides
|
|
84
|
+
|
|
85
|
+
- Persisted project artifacts are written in Czech.
|
|
86
|
+
- This local language rule overrides the English default in the shared core.
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Local overrides should be rare, explicit, and easy to find.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Documentation Audit
|
|
2
|
+
|
|
3
|
+
Use this reference when repairing existing repository docs, triaging notes, or
|
|
4
|
+
moving facts between README, `AGENTS.md`, `docs/`, and skills.
|
|
5
|
+
|
|
6
|
+
## Audit Pass
|
|
7
|
+
|
|
8
|
+
Before editing, make one inventory of durable facts:
|
|
9
|
+
|
|
10
|
+
| Fact | Source | Canonical home | Action |
|
|
11
|
+
| --- | --- | --- | --- |
|
|
12
|
+
| What the project does | `README.md` | `README.md` | Keep or tighten |
|
|
13
|
+
| Local safety rule | `AGENTS.md` | `AGENTS.md` | Preserve |
|
|
14
|
+
| Long release procedure | `README.md` | `docs/release.md` | Move and link |
|
|
15
|
+
| Repeated agent workflow | `notes.md` | `.agents/skills/<name>/SKILL.md` | Extract |
|
|
16
|
+
|
|
17
|
+
Use the table as a working note. Do not add it to the repository unless the user
|
|
18
|
+
asked for an audit report.
|
|
19
|
+
|
|
20
|
+
## Evidence Rules
|
|
21
|
+
|
|
22
|
+
- Treat manifests, config files, existing docs, and explicit user instructions
|
|
23
|
+
as evidence.
|
|
24
|
+
- Verify documented commands against manifests such as `package.json` when one
|
|
25
|
+
exists.
|
|
26
|
+
- When moving procedures into `docs/`, recheck the commands inside the moved
|
|
27
|
+
text. Unsupported commands must be removed or marked unavailable wherever they
|
|
28
|
+
land, not only in the README.
|
|
29
|
+
- Do not infer hidden harness commands such as `test:agent`; a script belongs in
|
|
30
|
+
docs only when the target manifest or user request supports it.
|
|
31
|
+
- Preserve supported project-specific facts even when rewriting the surrounding
|
|
32
|
+
prose.
|
|
33
|
+
- Remove or label unsupported commands, integrations, hosts, issue workflows, and
|
|
34
|
+
services.
|
|
35
|
+
- Do not preserve secrets, private host names, customer identifiers, account IDs,
|
|
36
|
+
tokens, or environment-specific machine notes.
|
|
37
|
+
|
|
38
|
+
## Placement Decisions
|
|
39
|
+
|
|
40
|
+
- Keep human orientation and first useful commands in `README.md`.
|
|
41
|
+
- Move long setup, release, repair, and troubleshooting procedures to `docs/`.
|
|
42
|
+
- Keep always-needed agent routing, local invariants, and verification rules in
|
|
43
|
+
`AGENTS.md`.
|
|
44
|
+
- Move repeated agent workflows with steps, inputs, outputs, or review rules to a
|
|
45
|
+
task-specific skill.
|
|
46
|
+
- Reduce inbox files such as `notes.md` to a short pointer after durable facts
|
|
47
|
+
move.
|
|
48
|
+
|
|
49
|
+
## Final Review
|
|
50
|
+
|
|
51
|
+
Before finishing, check that:
|
|
52
|
+
|
|
53
|
+
- compliant files were left unchanged instead of rewritten for style,
|
|
54
|
+
- each moved fact has one canonical home,
|
|
55
|
+
- source files no longer duplicate durable facts,
|
|
56
|
+
- links point from short entry files to the new canonical homes,
|
|
57
|
+
- command guidance is verified or marked as unavailable,
|
|
58
|
+
- skipped checks include a reason and remaining risk.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Documentation Architecture
|
|
2
|
+
|
|
3
|
+
Use this rule when adding or changing project docs, rules, templates, skills,
|
|
4
|
+
or agent instructions. This is the short agent rule set. For the fuller
|
|
5
|
+
placement model and examples, see
|
|
6
|
+
[Context Placement](../docs/context-placement.md).
|
|
7
|
+
|
|
8
|
+
## Core Rule
|
|
9
|
+
|
|
10
|
+
Each fact has one canonical home. Other files link to it.
|
|
11
|
+
|
|
12
|
+
If the same rule needs to appear in more than one place, keep the rule in the
|
|
13
|
+
lowest shared document and link to it from the others.
|
|
14
|
+
|
|
15
|
+
## Quick Roles
|
|
16
|
+
|
|
17
|
+
- `README.md`: human entry point and first useful commands.
|
|
18
|
+
- `docs/`: durable human explanations, how-to guides, references, and runbooks.
|
|
19
|
+
- `AGENTS.md`: always-loaded agent routing, invariants, and verification rules.
|
|
20
|
+
- Nested `AGENTS.md`: directory-specific overrides. Root files should link to
|
|
21
|
+
them, not copy their details.
|
|
22
|
+
- `.agents/skills/<name>/`: repeated task-specific agent workflows.
|
|
23
|
+
- Skill `references/`: detail loaded after a skill triggers.
|
|
24
|
+
- Templates: reusable output material, not policy prose.
|
|
25
|
+
|
|
26
|
+
## Placement Rules
|
|
27
|
+
|
|
28
|
+
- Put stable facts near the thing they describe.
|
|
29
|
+
- Put repeated agent workflow behavior in a task-specific skill.
|
|
30
|
+
- Put cross-cutting policy in `rules/`.
|
|
31
|
+
- Put rationale for format or architecture choices in `docs/`, not in the root
|
|
32
|
+
README. Prefer a dedicated explanation or architecture page such as
|
|
33
|
+
`docs/architecture.md` or `docs/output-format.md`; do not make a schema,
|
|
34
|
+
importer, command, or API reference the canonical home for rationale.
|
|
35
|
+
- When triaging notes, any fact framed as a reason, rationale, why, or trade-off
|
|
36
|
+
should move to that explanation or architecture page. README may link to it,
|
|
37
|
+
but should not be the only home.
|
|
38
|
+
- Put command reference in `references/`, not in always-loaded docs.
|
|
39
|
+
- Put setup, install, repair, and troubleshooting procedures in the nearest
|
|
40
|
+
detailed doc or skill reference, not in always-loaded docs or the root README.
|
|
41
|
+
- Put README quality rules in `references/readme-rules.md`; do not copy them into
|
|
42
|
+
project README files.
|
|
43
|
+
- Put "why this rule exists" near the canonical rule. Use a short decision note
|
|
44
|
+
when the trade-off matters.
|
|
45
|
+
- Move detail out when an always-loaded section grows past roughly ten lines.
|
|
46
|
+
- Prefer links over copied text.
|
|
47
|
+
|
|
48
|
+
## Validation
|
|
49
|
+
|
|
50
|
+
After changing documentation links, run the consuming project's `docs:check` or
|
|
51
|
+
Markdown link check if one exists.
|
|
52
|
+
|
|
53
|
+
When no automated checker exists, manually verify local relative links in:
|
|
54
|
+
|
|
55
|
+
- `AGENTS.md`
|
|
56
|
+
- nested `AGENTS.md` files
|
|
57
|
+
- `rules/`
|
|
58
|
+
- `templates/`
|
|
59
|
+
- root documentation
|
|
60
|
+
|
|
61
|
+
After changing shared rules or agent instructions, review nearby docs for
|
|
62
|
+
semantic duplicates. Remove duplicated prose and leave links to the canonical
|
|
63
|
+
rule.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Factual Documentation Review
|
|
2
|
+
|
|
3
|
+
Use this reference when reviewing repository docs for factual accuracy,
|
|
4
|
+
contradictions, unsupported claims, stale facts, or misleading precision.
|
|
5
|
+
|
|
6
|
+
## Review Scope
|
|
7
|
+
|
|
8
|
+
Review claims that a maintainer or reader could act on:
|
|
9
|
+
|
|
10
|
+
- commands, scripts, package managers, and setup steps,
|
|
11
|
+
- files, paths, modules, generated artifacts, and configuration names,
|
|
12
|
+
- dependencies, integrations, services, hosts, runtimes, and version claims,
|
|
13
|
+
- supported workflows, release steps, deployment steps, and ownership rules,
|
|
14
|
+
- dates, compatibility statements, guarantees, and broad capability claims.
|
|
15
|
+
|
|
16
|
+
Do not treat style preferences, intent statements, or roadmap language as false
|
|
17
|
+
facts unless the wording presents them as current behavior.
|
|
18
|
+
|
|
19
|
+
## Evidence Rules
|
|
20
|
+
|
|
21
|
+
Use the strongest available evidence before making a finding:
|
|
22
|
+
|
|
23
|
+
1. The user's explicit constraints for this task.
|
|
24
|
+
2. Executable local evidence, such as a command that succeeds or fails.
|
|
25
|
+
3. Repository manifests, source files, config, tests, lockfiles, and generated
|
|
26
|
+
files.
|
|
27
|
+
4. Canonical documentation inside the repository.
|
|
28
|
+
5. Official external sources for facts that depend on current external
|
|
29
|
+
behavior.
|
|
30
|
+
6. No evidence found.
|
|
31
|
+
|
|
32
|
+
Treat absence of local evidence carefully. A missing `package.json` script can
|
|
33
|
+
disprove a documented `npm run <name>` command. A missing dependency does not by
|
|
34
|
+
itself prove that a service is unused unless the claim depends on that
|
|
35
|
+
dependency.
|
|
36
|
+
|
|
37
|
+
When a fact may have changed outside the repository, verify it with official
|
|
38
|
+
sources or mark it as `stale-risk`. Do not present a guess as a confirmed
|
|
39
|
+
finding.
|
|
40
|
+
|
|
41
|
+
## Detection Pass
|
|
42
|
+
|
|
43
|
+
Make one pass over the relevant docs and collect claims. Then compare each claim
|
|
44
|
+
against evidence:
|
|
45
|
+
|
|
46
|
+
- Compare documented commands with manifests before preserving them.
|
|
47
|
+
- Check that named files, folders, scripts, config keys, and generated outputs
|
|
48
|
+
exist or are clearly examples.
|
|
49
|
+
- Compare repeated claims across README files, `AGENTS.md`, docs, templates, and
|
|
50
|
+
skill references.
|
|
51
|
+
- Flag broad claims such as "all", "always", "fully supported", and
|
|
52
|
+
"production-ready" when the repository only supports a narrower statement.
|
|
53
|
+
- Flag precise version, date, support, or compatibility claims when the evidence
|
|
54
|
+
is missing or likely stale.
|
|
55
|
+
- Check whether technically true wording could still lead a reader to the wrong
|
|
56
|
+
action.
|
|
57
|
+
|
|
58
|
+
## Finding Types
|
|
59
|
+
|
|
60
|
+
Use these labels consistently:
|
|
61
|
+
|
|
62
|
+
- `false`: Evidence contradicts the claim.
|
|
63
|
+
- `contradiction`: Two repository docs cannot both be true.
|
|
64
|
+
- `unsupported`: The claim might be true, but the repository does not support
|
|
65
|
+
it.
|
|
66
|
+
- `misleading`: The claim is technically defensible but likely to send the
|
|
67
|
+
reader toward the wrong action.
|
|
68
|
+
- `stale-risk`: The claim depends on changing external facts and has not been
|
|
69
|
+
verified.
|
|
70
|
+
- `overclaim`: The wording is broader or more certain than the evidence allows.
|
|
71
|
+
|
|
72
|
+
## Severity
|
|
73
|
+
|
|
74
|
+
- `fail`: A reader would run the wrong command, edit the wrong file, rely on a
|
|
75
|
+
nonexistent workflow, or accept a direct contradiction.
|
|
76
|
+
- `warn`: The claim is unsupported, stale-prone, or too broad, but the safe
|
|
77
|
+
correction needs maintainer judgment.
|
|
78
|
+
- `note`: The wording can be clearer or less precise, but the risk is low.
|
|
79
|
+
|
|
80
|
+
## Report Format
|
|
81
|
+
|
|
82
|
+
Lead with findings, ordered by severity. Use this structure for each finding:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
- [fail|warn|note] path/to/file.md:line - Short issue
|
|
86
|
+
Type: false|contradiction|unsupported|misleading|stale-risk|overclaim
|
|
87
|
+
Claim: The documented claim under review.
|
|
88
|
+
Evidence: The repo or external evidence used.
|
|
89
|
+
Impact: What a reader would get wrong.
|
|
90
|
+
Fix: Remove, narrow, verify, or replace the claim.
|
|
91
|
+
Confidence: confirmed|likely|needs maintainer confirmation
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
If there are no findings, say that directly and list the checks performed. If a
|
|
95
|
+
check could not run, state the reason and the remaining risk.
|
|
96
|
+
|
|
97
|
+
## Repair Rules
|
|
98
|
+
|
|
99
|
+
When editing instead of only reviewing:
|
|
100
|
+
|
|
101
|
+
- Do not apply a requested documentation change when local evidence contradicts
|
|
102
|
+
it. Return a finding instead.
|
|
103
|
+
- Preserve verified project-specific facts.
|
|
104
|
+
- Remove false claims instead of replacing them with invented details.
|
|
105
|
+
- Narrow overclaims to match the evidence.
|
|
106
|
+
- Mark examples as examples when they are not supported project commands.
|
|
107
|
+
- Link to the canonical source instead of copying conflicting text.
|
|
108
|
+
- Keep uncertain claims out of durable docs unless the user confirms them.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Influences And Attribution
|
|
2
|
+
|
|
3
|
+
This skill uses original wording and repository-specific rules, but its design
|
|
4
|
+
draws on established documentation and agent-skill practices.
|
|
5
|
+
|
|
6
|
+
## Agent Skill Structure
|
|
7
|
+
|
|
8
|
+
The skill layout follows the open Agent Skills pattern:
|
|
9
|
+
|
|
10
|
+
- a short `SKILL.md` entry point,
|
|
11
|
+
- progressive disclosure through `references/`, `assets/`, and optional
|
|
12
|
+
scripts,
|
|
13
|
+
- task-specific context loaded only when needed.
|
|
14
|
+
|
|
15
|
+
Influences:
|
|
16
|
+
|
|
17
|
+
- [Agent Skills specification](https://agentskills.io/specification)
|
|
18
|
+
- [Anthropic Agent Skills overview](https://platform.claude.com/docs/en/agents-and-tools/agent-skills/overview)
|
|
19
|
+
|
|
20
|
+
## Documentation Architecture
|
|
21
|
+
|
|
22
|
+
The document-type split in `writing-style.md` follows the Diataxis idea that
|
|
23
|
+
documentation should separate tutorials, how-to guides, reference, and
|
|
24
|
+
explanation because those forms answer different reader needs.
|
|
25
|
+
|
|
26
|
+
Influences:
|
|
27
|
+
|
|
28
|
+
- [Diataxis](https://diataxis.fr/)
|
|
29
|
+
- [Diataxis in five minutes](https://diataxis.fr/start-here/)
|
|
30
|
+
|
|
31
|
+
## Plain English
|
|
32
|
+
|
|
33
|
+
The plain-English rules follow the long-running technical-writing tradition of
|
|
34
|
+
short words, concrete nouns, active voice, and cutting padding. The local rules
|
|
35
|
+
adapt those principles for repository documentation and AI-generated prose.
|
|
36
|
+
|
|
37
|
+
Influences:
|
|
38
|
+
|
|
39
|
+
- [George Orwell, "Politics and the English Language"](https://www.orwellfoundation.com/the-orwell-foundation/orwell/essays-and-other-works/politics-and-the-english-language/)
|
|
40
|
+
- [Ernest Gowers, "The Complete Plain Words"](https://plain-words.com/)
|
|
41
|
+
|
|
42
|
+
## Public Skills Reviewed
|
|
43
|
+
|
|
44
|
+
The repository also reviewed public skills to understand common patterns for
|
|
45
|
+
documentation writing, plain-English cleanup, skill authoring, and project
|
|
46
|
+
skill management. The final `agent-doc-rules` skill does not vendor those
|
|
47
|
+
skills; it keeps a smaller local rule set tailored to repository documentation
|
|
48
|
+
and agent context architecture.
|
|
49
|
+
|
|
50
|
+
Useful references included:
|
|
51
|
+
|
|
52
|
+
- [anthropics/skills](https://github.com/anthropics/skills)
|
|
53
|
+
- [docmd-io/docmd-skills](https://github.com/docmd-io/docmd-skills)
|
|
54
|
+
- [github/awesome-copilot](https://github.com/github/awesome-copilot)
|
|
55
|
+
- [b1rdmania/claude-plain-english-skill](https://github.com/b1rdmania/claude-plain-english-skill)
|
|
56
|
+
|
|
57
|
+
## Local Meta-Work Workflow
|
|
58
|
+
|
|
59
|
+
The documentation duplicate-check model comes from the earlier `meta-work`
|
|
60
|
+
maintenance workflow: run deterministic Markdown and link checks first, then
|
|
61
|
+
review only duplicate candidates with an agent. The published skill keeps that
|
|
62
|
+
separation so routine validation stays cheap and semantic review remains
|
|
63
|
+
explicit.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# README Review Rubric
|
|
2
|
+
|
|
3
|
+
Use this rubric to review a generated or edited `README.md`.
|
|
4
|
+
|
|
5
|
+
## Critical Criteria
|
|
6
|
+
|
|
7
|
+
- **Purpose:** The first section clearly says what the repository is and who
|
|
8
|
+
should use it.
|
|
9
|
+
- **Truthfulness:** Commands, paths, integrations, and technologies are present
|
|
10
|
+
only when supported by the repository.
|
|
11
|
+
- **Source of truth:** Canonical docs are linked instead of copied.
|
|
12
|
+
- **Proportionality:** The README is no larger than the project needs.
|
|
13
|
+
- **Actionability:** A new contributor can find the first useful action.
|
|
14
|
+
- **Verification:** The README names relevant checks or states that no check is
|
|
15
|
+
known.
|
|
16
|
+
- **Plain English:** The README uses direct, concrete language and avoids
|
|
17
|
+
generic AI or marketing phrasing.
|
|
18
|
+
- **Safety:** Secrets, credentials, account IDs, private hosts, and sensitive
|
|
19
|
+
environment values are absent.
|
|
20
|
+
- **No placeholders:** Empty template sections and fake badges are removed.
|
|
21
|
+
|
|
22
|
+
## Scoring Guidance
|
|
23
|
+
|
|
24
|
+
- **Pass:** All critical criteria pass. Minor wording issues are acceptable.
|
|
25
|
+
- **Review:** One non-critical section is vague, stale, or too long.
|
|
26
|
+
- **Fail:** Any critical criterion fails, or the README invents project facts.
|
|
27
|
+
|
|
28
|
+
## Reviewer Questions
|
|
29
|
+
|
|
30
|
+
Ask these questions before accepting the change:
|
|
31
|
+
|
|
32
|
+
- Does the opening paragraph match the actual repository?
|
|
33
|
+
- Are quick-start commands executable in the documented environment?
|
|
34
|
+
- Is any detail duplicated from `AGENTS.md`, `rules/`, skills, or deeper docs?
|
|
35
|
+
- Would a project-specific detail be better placed in a nearby README, runbook,
|
|
36
|
+
or reference file?
|
|
37
|
+
- Does the README link to deeper docs before it becomes a long manual?
|
|
38
|
+
- Could any sentence be shorter without losing meaning?
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# README Rules
|
|
2
|
+
|
|
3
|
+
Use this rule when creating or maintaining a project `README.md`.
|
|
4
|
+
Also apply [Documentation writing style](writing-style.md) for prose,
|
|
5
|
+
structure, and plain-English review.
|
|
6
|
+
|
|
7
|
+
## Purpose
|
|
8
|
+
|
|
9
|
+
`README.md` is the human entry point for the repository. It should answer:
|
|
10
|
+
|
|
11
|
+
- what this project is,
|
|
12
|
+
- who it is for,
|
|
13
|
+
- where the source of truth lives,
|
|
14
|
+
- how to do the first useful action,
|
|
15
|
+
- how to verify changes.
|
|
16
|
+
|
|
17
|
+
It is not a full architecture document, runbook, changelog, or agent rule file.
|
|
18
|
+
|
|
19
|
+
## Core Rules
|
|
20
|
+
|
|
21
|
+
- Start with a concrete project title and a one-paragraph description.
|
|
22
|
+
- State the repository's role before listing commands or internals.
|
|
23
|
+
- Keep setup, usage, verification, and operational notes in separate sections.
|
|
24
|
+
- Put long procedures in the nearest detailed doc and link to them.
|
|
25
|
+
- When an existing README carries a full human runbook, move the procedure into
|
|
26
|
+
`docs/` and leave a short pointer in the README. Do not convert ordinary
|
|
27
|
+
human runbooks into agent skills.
|
|
28
|
+
- Prefer tables for indexes, supported targets, commands, and canonical docs.
|
|
29
|
+
- Include commands only when they are known to work.
|
|
30
|
+
- Mark project status, limitations, and safety boundaries explicitly.
|
|
31
|
+
- Keep secrets, account IDs, host-specific values, and private environment notes
|
|
32
|
+
out of the README.
|
|
33
|
+
- Remove placeholder sections instead of leaving empty boilerplate.
|
|
34
|
+
- Keep the README proportional to the project size.
|
|
35
|
+
|
|
36
|
+
## Recommended Shape
|
|
37
|
+
|
|
38
|
+
Use the smallest shape that fits the project:
|
|
39
|
+
|
|
40
|
+
```markdown
|
|
41
|
+
# Project Name
|
|
42
|
+
|
|
43
|
+
One short paragraph explaining what this repository is and why it exists.
|
|
44
|
+
|
|
45
|
+
## Source Of Truth
|
|
46
|
+
|
|
47
|
+
Links to canonical docs, specs, decisions, or external systems.
|
|
48
|
+
|
|
49
|
+
## Quick Start
|
|
50
|
+
|
|
51
|
+
The shortest verified path to a useful result.
|
|
52
|
+
|
|
53
|
+
## Usage
|
|
54
|
+
|
|
55
|
+
Common commands, workflows, or examples.
|
|
56
|
+
|
|
57
|
+
## Verification
|
|
58
|
+
|
|
59
|
+
Checks to run before publishing changes.
|
|
60
|
+
|
|
61
|
+
## Project Notes
|
|
62
|
+
|
|
63
|
+
Constraints, safety boundaries, status, or operational notes.
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Do not include a section just because it appears in this shape.
|
|
67
|
+
|
|
68
|
+
## Source Of Truth
|
|
69
|
+
|
|
70
|
+
When the repository has multiple docs, add a compact index:
|
|
71
|
+
|
|
72
|
+
```markdown
|
|
73
|
+
## Canonical Docs
|
|
74
|
+
|
|
75
|
+
| Document | Content |
|
|
76
|
+
|---|---|
|
|
77
|
+
| `AGENTS.md` | Project-specific agent rules |
|
|
78
|
+
| `README.md` | Project overview and doc index |
|
|
79
|
+
| `docs/development.md` | Local setup and commands |
|
|
80
|
+
| `docs/architecture.md` | Architecture decisions and boundaries |
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
State which document wins when docs conflict. If another document is canonical
|
|
84
|
+
for a detail, link to it instead of copying its content.
|
|
85
|
+
|
|
86
|
+
## Commands
|
|
87
|
+
|
|
88
|
+
Command sections should be evidence-oriented:
|
|
89
|
+
|
|
90
|
+
- Use fenced code blocks for commands.
|
|
91
|
+
- Group commands by workflow.
|
|
92
|
+
- Say where commands run when that matters.
|
|
93
|
+
- Avoid commands that depend on private local state unless the README explains
|
|
94
|
+
the prerequisite.
|
|
95
|
+
- If a command is intentionally illustrative, label it as an example.
|
|
96
|
+
- Do not add generic install or setup steps just because a README has a test
|
|
97
|
+
command. A setup step needs evidence from the existing docs, the user request,
|
|
98
|
+
or a local manifest.
|
|
99
|
+
- When a manifest such as `package.json` exists, treat its scripts as the
|
|
100
|
+
command source of truth. Do not preserve stale README commands that are absent
|
|
101
|
+
from the manifest unless the documentation clearly labels them as unverified
|
|
102
|
+
or external.
|
|
103
|
+
- When moving a README runbook into `docs/`, recheck every moved command against
|
|
104
|
+
the manifest. Do not leave unsupported commands as actionable setup, release,
|
|
105
|
+
troubleshooting, or repair steps in the new doc.
|
|
106
|
+
- Do not infer hidden test harness or agent-runner scripts such as `test:agent`.
|
|
107
|
+
Document them only when they are visible in the target manifest and relevant
|
|
108
|
+
to the README's audience.
|
|
109
|
+
|
|
110
|
+
## What To Avoid
|
|
111
|
+
|
|
112
|
+
- Marketing copy that does not help a contributor operate the project.
|
|
113
|
+
- Install or test commands that have not been verified.
|
|
114
|
+
- Generic package-manager instructions that are not supported by local
|
|
115
|
+
evidence.
|
|
116
|
+
- Full architecture explanations that belong in `docs/`.
|
|
117
|
+
- Duplicated rules from `AGENTS.md`, skills, or shared rule files.
|
|
118
|
+
- Long troubleshooting sections that belong in `references/` or runbooks.
|
|
119
|
+
- Placeholder badges, empty sections, and future-tense promises.
|
|
120
|
+
|
|
121
|
+
## Review
|
|
122
|
+
|
|
123
|
+
Use [README review rubric](readme-rubric.md) when reviewing a README generated
|
|
124
|
+
or edited by an agent.
|