@event4u/agent-config 1.16.0 → 1.17.0

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.
Files changed (203) hide show
  1. package/.agent-src/commands/{agents-audit.md → agents/audit.md} +4 -3
  2. package/.agent-src/commands/{agents-cleanup.md → agents/cleanup.md} +12 -6
  3. package/.agent-src/commands/{agents-prepare.md → agents/prepare.md} +4 -3
  4. package/.agent-src/commands/agents.md +46 -0
  5. package/.agent-src/commands/{chat-history-checkpoint.md → chat-history/checkpoint.md} +4 -4
  6. package/.agent-src/commands/{chat-history-clear.md → chat-history/clear.md} +4 -4
  7. package/.agent-src/commands/{chat-history-resume.md → chat-history/resume.md} +4 -4
  8. package/.agent-src/commands/chat-history/show.md +107 -0
  9. package/.agent-src/commands/chat-history.md +33 -89
  10. package/.agent-src/commands/{commit-in-chunks.md → commit/in-chunks.md} +15 -13
  11. package/.agent-src/commands/commit.md +22 -2
  12. package/.agent-src/commands/{context-create.md → context/create.md} +4 -3
  13. package/.agent-src/commands/{context-refactor.md → context/refactor.md} +4 -3
  14. package/.agent-src/commands/context.md +44 -0
  15. package/.agent-src/commands/{copilot-agents-init.md → copilot-agents/init.md} +4 -3
  16. package/.agent-src/commands/{copilot-agents-optimize.md → copilot-agents/optimize.md} +4 -3
  17. package/.agent-src/commands/copilot-agents.md +44 -0
  18. package/.agent-src/commands/council/default.md +221 -0
  19. package/.agent-src/commands/{council-design.md → council/design.md} +6 -5
  20. package/.agent-src/commands/{council-optimize.md → council/optimize.md} +7 -6
  21. package/.agent-src/commands/{council-pr.md → council/pr.md} +6 -5
  22. package/.agent-src/commands/council.md +47 -212
  23. package/.agent-src/commands/{create-pr-description.md → create-pr/description-only.md} +4 -2
  24. package/.agent-src/commands/create-pr.md +26 -5
  25. package/.agent-src/commands/{feature-dev.md → feature/dev.md} +5 -10
  26. package/.agent-src/commands/{feature-explore.md → feature/explore.md} +4 -8
  27. package/.agent-src/commands/{feature-plan.md → feature/plan.md} +4 -8
  28. package/.agent-src/commands/{feature-refactor.md → feature/refactor.md} +4 -8
  29. package/.agent-src/commands/{feature-roadmap.md → feature/roadmap.md} +6 -10
  30. package/.agent-src/commands/feature.md +6 -12
  31. package/.agent-src/commands/{fix-ci.md → fix/ci.md} +4 -8
  32. package/.agent-src/commands/{fix-portability.md → fix/portability.md} +4 -8
  33. package/.agent-src/commands/{fix-pr-bot-comments.md → fix/pr-bots.md} +4 -8
  34. package/.agent-src/commands/{fix-pr-developer-comments.md → fix/pr-developers.md} +4 -8
  35. package/.agent-src/commands/{fix-pr-comments.md → fix/pr.md} +7 -11
  36. package/.agent-src/commands/{fix-references.md → fix/refs.md} +4 -8
  37. package/.agent-src/commands/{fix-seeder.md → fix/seeder.md} +4 -8
  38. package/.agent-src/commands/fix.md +7 -13
  39. package/.agent-src/commands/{do-and-judge.md → judge/on-diff.md} +4 -3
  40. package/.agent-src/commands/judge/solo.md +90 -0
  41. package/.agent-src/commands/{do-in-steps.md → judge/steps.md} +4 -3
  42. package/.agent-src/commands/judge.md +35 -70
  43. package/.agent-src/commands/{memory-add.md → memory/add.md} +4 -3
  44. package/.agent-src/commands/{memory-full.md → memory/load.md} +4 -3
  45. package/.agent-src/commands/{memory-promote.md → memory/promote.md} +4 -3
  46. package/.agent-src/commands/{propose-memory.md → memory/propose.md} +4 -3
  47. package/.agent-src/commands/memory.md +48 -0
  48. package/.agent-src/commands/{module-create.md → module/create.md} +4 -3
  49. package/.agent-src/commands/{module-explore.md → module/explore.md} +4 -3
  50. package/.agent-src/commands/module.md +44 -0
  51. package/.agent-src/commands/{optimize-agents.md → optimize/agents.md} +4 -8
  52. package/.agent-src/commands/{optimize-augmentignore.md → optimize/augmentignore.md} +4 -9
  53. package/.agent-src/commands/{optimize-rtk-filters.md → optimize/rtk.md} +4 -8
  54. package/.agent-src/commands/{optimize-skills.md → optimize/skills.md} +4 -8
  55. package/.agent-src/commands/optimize.md +4 -10
  56. package/.agent-src/commands/{override-create.md → override/create.md} +4 -3
  57. package/.agent-src/commands/{override-manage.md → override/manage.md} +4 -3
  58. package/.agent-src/commands/override.md +44 -0
  59. package/.agent-src/commands/{roadmap-create.md → roadmap/create.md} +4 -3
  60. package/.agent-src/commands/{roadmap-execute.md → roadmap/execute.md} +4 -3
  61. package/.agent-src/commands/roadmap.md +44 -0
  62. package/.agent-src/commands/{tests-create.md → tests/create.md} +4 -3
  63. package/.agent-src/commands/{tests-execute.md → tests/execute.md} +4 -3
  64. package/.agent-src/commands/tests.md +44 -0
  65. package/.agent-src/contexts/communication/rules-auto/artifact-engagement-recording-mechanics.md +72 -0
  66. package/.agent-src/contexts/communication/rules-auto/augment-portability-mechanics.md +79 -0
  67. package/.agent-src/contexts/communication/rules-auto/augment-source-of-truth-mechanics.md +98 -0
  68. package/.agent-src/contexts/communication/rules-auto/cli-output-handling-mechanics.md +87 -0
  69. package/.agent-src/contexts/communication/rules-auto/command-suggestion-policy-mechanics.md +62 -0
  70. package/.agent-src/contexts/communication/rules-auto/docs-sync-mechanics.md +78 -0
  71. package/.agent-src/contexts/communication/rules-auto/package-ci-checks-mechanics.md +85 -0
  72. package/.agent-src/contexts/communication/rules-auto/review-routing-awareness-mechanics.md +65 -0
  73. package/.agent-src/contexts/communication/rules-auto/roadmap-progress-sync-mechanics.md +78 -0
  74. package/.agent-src/contexts/communication/rules-auto/skill-quality-mechanics.md +62 -0
  75. package/.agent-src/contexts/communication/rules-auto/slash-command-routing-policy-mechanics.md +55 -0
  76. package/.agent-src/contexts/communication/rules-auto/ui-audit-gate-mechanics.md +53 -0
  77. package/.agent-src/contexts/communication/rules-auto/user-interaction-mechanics.md +77 -0
  78. package/.agent-src/contexts/judges/no-consolidate-rationale.md +102 -0
  79. package/.agent-src/contexts/judges/persona-voice-rubric.md +140 -0
  80. package/.agent-src/rules/artifact-engagement-recording.md +13 -69
  81. package/.agent-src/rules/ask-when-uncertain.md +27 -42
  82. package/.agent-src/rules/augment-portability.md +15 -61
  83. package/.agent-src/rules/augment-source-of-truth.md +27 -93
  84. package/.agent-src/rules/cli-output-handling.md +10 -76
  85. package/.agent-src/rules/command-suggestion-policy.md +18 -59
  86. package/.agent-src/rules/commit-conventions.md +17 -14
  87. package/.agent-src/rules/direct-answers.md +34 -49
  88. package/.agent-src/rules/docker-commands.md +5 -5
  89. package/.agent-src/rules/docs-sync.md +15 -69
  90. package/.agent-src/rules/language-and-tone.md +48 -72
  91. package/.agent-src/rules/missing-tool-handling.md +28 -22
  92. package/.agent-src/rules/no-cheap-questions.md +45 -52
  93. package/.agent-src/rules/no-roadmap-references.md +73 -0
  94. package/.agent-src/rules/package-ci-checks.md +21 -61
  95. package/.agent-src/rules/preservation-guard.md +64 -29
  96. package/.agent-src/rules/review-routing-awareness.md +24 -43
  97. package/.agent-src/rules/roadmap-progress-sync.md +10 -71
  98. package/.agent-src/rules/security-sensitive-stop.md +8 -8
  99. package/.agent-src/rules/skill-quality.md +16 -48
  100. package/.agent-src/rules/slash-command-routing-policy.md +7 -4
  101. package/.agent-src/rules/think-before-action.md +52 -42
  102. package/.agent-src/rules/tool-safety.md +19 -16
  103. package/.agent-src/rules/ui-audit-gate.md +24 -38
  104. package/.agent-src/rules/user-interaction.md +13 -68
  105. package/.agent-src/skills/ai-council/SKILL.md +2 -0
  106. package/.agent-src/skills/api-testing/SKILL.md +1 -1
  107. package/.agent-src/skills/check-refs/SKILL.md +59 -40
  108. package/.agent-src/skills/conventional-commits-writing/SKILL.md +86 -28
  109. package/.agent-src/skills/copilot-agents-optimization/SKILL.md +5 -5
  110. package/.agent-src/skills/developer-like-execution/SKILL.md +4 -4
  111. package/.agent-src/skills/finishing-a-development-branch/SKILL.md +101 -65
  112. package/.agent-src/skills/flux/SKILL.md +30 -10
  113. package/.agent-src/skills/github-ci/SKILL.md +2 -2
  114. package/.agent-src/skills/judge-code-quality/SKILL.md +7 -8
  115. package/.agent-src/skills/judge-security-auditor/SKILL.md +4 -5
  116. package/.agent-src/skills/judge-test-coverage/SKILL.md +3 -4
  117. package/.agent-src/skills/lint-skills/SKILL.md +57 -39
  118. package/.agent-src/skills/md-language-check/SKILL.md +61 -39
  119. package/.agent-src/skills/override-management/SKILL.md +5 -5
  120. package/.agent-src/skills/quality-tools/SKILL.md +2 -2
  121. package/.agent-src/skills/react-shadcn-ui/SKILL.md +116 -43
  122. package/.agent-src/skills/readme-reviewer/SKILL.md +30 -29
  123. package/.agent-src/skills/readme-writing/SKILL.md +78 -53
  124. package/.agent-src/skills/readme-writing-package/SKILL.md +50 -47
  125. package/.agent-src/skills/receiving-code-review/SKILL.md +52 -47
  126. package/.agent-src/skills/refine-prompt/SKILL.md +0 -1
  127. package/.agent-src/skills/requesting-code-review/SKILL.md +35 -30
  128. package/.agent-src/skills/security/SKILL.md +7 -2
  129. package/.agent-src/skills/security-audit/SKILL.md +7 -3
  130. package/.agent-src/skills/systematic-debugging/SKILL.md +68 -60
  131. package/.agent-src/skills/test-driven-development/SKILL.md +59 -57
  132. package/.agent-src/skills/test-performance/SKILL.md +0 -1
  133. package/.agent-src/skills/traefik/SKILL.md +4 -4
  134. package/.agent-src/skills/verify-completion-evidence/SKILL.md +28 -26
  135. package/.claude-plugin/marketplace.json +22 -11
  136. package/AGENTS.md +2 -2
  137. package/CHANGELOG.md +90 -1
  138. package/README.md +18 -17
  139. package/docs/architecture.md +4 -6
  140. package/docs/catalog.md +67 -39
  141. package/docs/contracts/STABILITY.md +13 -7
  142. package/docs/contracts/adr-chat-history-split.md +1 -3
  143. package/docs/contracts/adr-command-suggestion.md +0 -2
  144. package/docs/contracts/adr-implement-ticket-runtime.md +1 -2
  145. package/docs/contracts/adr-product-ui-track.md +3 -6
  146. package/docs/contracts/adr-prompt-driven-execution.md +3 -4
  147. package/docs/contracts/agent-memory-contract.md +6 -11
  148. package/docs/contracts/artifact-engagement-flow.md +6 -9
  149. package/docs/contracts/command-clusters.md +56 -46
  150. package/docs/contracts/command-suggestion-flow.md +1 -3
  151. package/docs/contracts/context-paths.md +99 -0
  152. package/docs/contracts/file-ownership-matrix.json +6722 -0
  153. package/docs/contracts/file-ownership-matrix.md +134 -0
  154. package/docs/contracts/implement-ticket-flow.md +6 -9
  155. package/docs/contracts/linear-ai-rules-inclusion.md +0 -1
  156. package/docs/contracts/linear-ai-three-layers.md +0 -2
  157. package/docs/contracts/load-context-budget-model.md +178 -0
  158. package/docs/contracts/load-context-schema.md +1 -3
  159. package/docs/contracts/rule-interactions.md +0 -1
  160. package/docs/contracts/rule-priority-hierarchy.md +1 -1
  161. package/docs/contracts/ui-track-flow.md +7 -17
  162. package/docs/customization.md +2 -0
  163. package/docs/getting-started.md +5 -4
  164. package/docs/guidelines/agent-infra/asking-and-brevity-examples.md +100 -0
  165. package/package.json +1 -1
  166. package/scripts/_one_off_phase4_dispatch_latency.py +108 -0
  167. package/scripts/_one_off_phase6_trigger_jaccard.py +92 -0
  168. package/scripts/_phase2_shim_helper.py +109 -0
  169. package/scripts/agent-config +10 -0
  170. package/scripts/ai_council/_one_off_2a4_acceptance.py +208 -0
  171. package/scripts/ai_council/_one_off_context_layer_v1_estimate.py +67 -0
  172. package/scripts/ai_council/_one_off_context_layer_v1_review.py +292 -0
  173. package/scripts/ai_council/_one_off_followups_review.py +259 -0
  174. package/scripts/ai_council/_one_off_nondestructive_inline_audit.py +209 -0
  175. package/scripts/ai_council/_one_off_phase_2a_budget_rebalance.py +257 -0
  176. package/scripts/ai_council/_one_off_phase_2a_post_revert.py +197 -0
  177. package/scripts/ai_council/_one_off_rule_hardening_v1.py +251 -0
  178. package/scripts/ai_council/_one_off_structural_open_questions.py +232 -0
  179. package/scripts/ai_council/_one_off_structural_optimization.py +144 -0
  180. package/scripts/ai_council/_one_off_structural_v3_gaps.py +252 -0
  181. package/scripts/ai_council/_one_off_structural_v3_review.py +240 -0
  182. package/scripts/check_always_budget.py +363 -45
  183. package/scripts/check_cluster_patterns.py +159 -0
  184. package/scripts/check_command_count_messaging.py +14 -7
  185. package/scripts/check_context_paths.py +201 -0
  186. package/scripts/check_no_roadmap_refs.py +155 -0
  187. package/scripts/check_phase_coupling.py +148 -0
  188. package/scripts/check_portability.py +2 -0
  189. package/scripts/check_references.py +29 -2
  190. package/scripts/check_safety_floor_untouched.py +125 -0
  191. package/scripts/command_suggester/loader.py +4 -1
  192. package/scripts/compress.py +59 -13
  193. package/scripts/generate_index.py +6 -2
  194. package/scripts/generate_ownership_matrix.py +323 -0
  195. package/scripts/hooks/augment-roadmap-progress.sh +57 -0
  196. package/scripts/install.py +49 -28
  197. package/scripts/lint_no_new_atomic_commands.py +12 -11
  198. package/scripts/requirements-evals.txt +1 -0
  199. package/scripts/roadmap_progress_hook.py +159 -0
  200. package/scripts/schemas/command.schema.json +4 -3
  201. package/scripts/skill_linter.py +1 -0
  202. package/scripts/sync_agent_settings.py +25 -2
  203. package/scripts/update_counts.py +7 -0
@@ -17,15 +17,15 @@ execution:
17
17
  - Auditing README quality across repos
18
18
  - Checking for hallucinated setup, commands, or features
19
19
 
20
- Do NOT use for:
20
+ Do NOT use when:
21
21
 
22
- - Grammar or formatting proofreading only
22
+ - Only proofreading grammar or formatting
23
23
  - Writing a README from scratch → use `readme-writing` or `readme-writing-package`
24
24
 
25
25
  ## Goal
26
26
 
27
- Ensure README is correct (no invented content), aligned with the repo,
28
- useful for the audience, with a strong quickstart path.
27
+ Ensure the README is correct (no invented content), aligned with the repo,
28
+ useful for the intended audience, and has a strong quickstart path.
29
29
 
30
30
  ## Core principles
31
31
 
@@ -39,8 +39,8 @@ useful for the audience, with a strong quickstart path.
39
39
 
40
40
  ### 1. Identify README type and audience
41
41
 
42
- Determine repo type (package, app, CLI, internal, framework) and audience
43
- (consumers, contributors, team). Check if structure matches type.
42
+ Determine repo type (package, app, CLI, internal, framework) and target audience
43
+ (consumers, contributors, team). Check if README structure matches this type.
44
44
 
45
45
  ### 2. Cross-check against repository
46
46
 
@@ -53,16 +53,17 @@ Inspect truth-defining files:
53
53
  - Source entrypoints — actual public API
54
54
  - Config files, tests, existing docs
55
55
 
56
- Verify: install steps exist, commands work, features implemented, dependencies real.
56
+ Verify: install steps exist, commands work, features are implemented,
57
+ dependencies are real.
57
58
 
58
59
  ### 3. Validate installation and setup
59
60
 
60
61
  Check:
61
62
 
62
- - Install command correct and complete
63
- - Required post-install steps documented
63
+ - Install command is correct and complete
64
+ - Required post-install steps are documented
64
65
  - No hidden setup assumptions
65
- - Environment/config requirements listed
66
+ - Environment/config requirements are listed
66
67
 
67
68
  Flag: missing steps, incorrect steps, implied-but-unwritten steps.
68
69
 
@@ -70,10 +71,10 @@ Flag: missing steps, incorrect steps, implied-but-unwritten steps.
70
71
 
71
72
  Check:
72
73
 
73
- - First example minimal and realistic
74
+ - First example is minimal and realistic
74
75
  - Example matches actual API (verify against source)
75
- - Example doesn't rely on undocumented setup
76
- - Example not overly complex or abstract
76
+ - Example does not rely on undocumented setup
77
+ - Example is not overly complex or abstract
77
78
 
78
79
  Flag: pseudo-code, oversized examples, API mismatches.
79
80
 
@@ -82,8 +83,8 @@ Flag: pseudo-code, oversized examples, API mismatches.
82
83
  Check:
83
84
 
84
85
  - Runtime versions stated (PHP, Node, etc.)
85
- - Framework compatibility explicit
86
- - Dependencies declared
86
+ - Framework compatibility is explicit
87
+ - Dependencies are declared
87
88
 
88
89
  Flag: missing compatibility, vague claims ("works with most versions"),
89
90
  unconfirmed broad support.
@@ -92,19 +93,19 @@ unconfirmed broad support.
92
93
 
93
94
  Check:
94
95
 
95
- - Strong first screen (what + why + quickstart before scroll)
96
+ - Strong first screen (what + why + quickstart visible before scrolling)
96
97
  - Logical section order for repo type
97
98
  - No unnecessary sections (padded boilerplate)
98
99
  - No missing critical sections
99
100
 
100
- Common issues: architecture before installation, no quickstart, buried
101
- usage, generic template sections.
101
+ Common issues: architecture before installation, no quickstart,
102
+ buried usage instructions, generic template sections.
102
103
 
103
104
  ### 7. Detect hallucinations
104
105
 
105
- Search for:
106
+ Explicitly search for:
106
107
 
107
- - Commands not in repo
108
+ - Commands not present in repo
108
109
  - Features not implemented
109
110
  - Setup steps not supported by scripts/configs
110
111
  - Assumptions about environment or tools
@@ -133,11 +134,11 @@ Structure checks:
133
134
  - ToC present if > 150 lines or > 6 top-level (`##`) sections
134
135
  - Multi-platform install (> 5 variants) uses a table with deep links, not stacked blocks
135
136
  - `<details>` used only for secondary, bulky content — never for install, first example, or requirements
136
- - No duplication between README and `/docs/` (drifts over time)
137
+ - No duplication between README and `/docs/` (same content in two places drifts)
137
138
  - Each `/docs/` file linked from README is self-contained (not just a fragment)
138
139
 
139
140
  → See `docs/guidelines/docs/readme-size-and-splitting.md` for full thresholds,
140
- splitting strategies, anti-patterns.
141
+ splitting strategies, and anti-patterns.
141
142
 
142
143
  ## Output format
143
144
 
@@ -159,9 +160,9 @@ splitting strategies, anti-patterns.
159
160
 
160
161
  Severity levels:
161
162
 
162
- - **❌ Critical** — breaks onboarding or factually incorrect
163
+ - **❌ Critical** — breaks onboarding or is factually incorrect
163
164
  - **⚠️ Major** — confusing, incomplete, or misleading
164
- - **ℹ️ Minor** — clarity, formatting, structure
165
+ - **ℹ️ Minor** — clarity improvement, formatting, structure
165
166
 
166
167
  ### 3. Confidence
167
168
 
@@ -171,11 +172,11 @@ Severity levels:
171
172
 
172
173
  ## Gotcha
173
174
 
174
- - Model trusts the README instead of verifying against the repo
175
+ - Model tends to trust the README instead of verifying against the repo
175
176
  - Model may miss subtle mismatches between examples and real APIs
176
- - Model focuses on wording/style instead of correctness
177
- - Well-formatted README with wrong commands worse than ugly but correct
178
- - Model accepts "looks reasonable" compatibility without checking CI matrix
177
+ - Model may focus on wording/style instead of correctness
178
+ - A well-formatted README with wrong commands is worse than ugly but correct
179
+ - Model may accept "looks reasonable" compatibility without checking CI matrix
179
180
 
180
181
  ## Do NOT
181
182
 
@@ -184,4 +185,4 @@ Severity levels:
184
185
  - Do NOT accept vague compatibility statements as valid
185
186
  - Do NOT focus only on wording while missing structural/correctness issues
186
187
  - Do NOT overlook mismatches between examples and actual source code
187
- - Do NOT soften findings — state issues clearly with severity
188
+ - Do NOT soften findings — state issues clearly with severity
@@ -15,29 +15,34 @@ execution:
15
15
  - Creating a new README for an **application, CLI tool, internal tool, template, or framework**
16
16
  - Rewriting an outdated or weak README
17
17
  - Improving after major repo changes (new tooling, restructure)
18
+ - Adapting README for a different audience
18
19
 
19
- Do NOT use for:
20
+ Do NOT use when:
20
21
 
21
- - **Packages/libraries** → use `readme-writing-package` instead
22
- - Minor typos, single-section updates, reference docs in separate files
22
+ - Writing a README for a **reusable package or library** → use `readme-writing-package` instead
23
+ - Fixing minor typos or updating a single section
24
+ - Writing reference docs that belong in separate files
25
+ - Only adding a badge or version bump
23
26
 
24
27
  ## Goal
25
28
 
26
- Accurate, evidence-based, scannable README for the intended audience.
27
- Reflects the real repository — not assumptions.
29
+ Write a README that is accurate, evidence-based, scannable, and useful for
30
+ the intended audience. Reflects the real repository — not assumptions.
28
31
 
29
32
  ## Core principles
30
33
 
31
- - Analyze first, write second — inspect repo before writing
32
- - Evidence-based — every command, step, feature must exist in repo
33
- - Strong quickstart over exhaustive noise — get started in 30 seconds
34
- - Right scope — overview in README, deep content in dedicated docs
35
- - Match repo type — package README app CLI tool framework
34
+ - **Analyze first, write second** — inspect the repo before writing a single line
35
+ - **Evidence-based only** — every command, setup step, and feature must exist in the repo
36
+ - **Strong quickstart over exhaustive noise**a reader should get started in 30 seconds
37
+ - **Right scope**high-level overview in README, deep content in dedicated docs
38
+ - **Match the repo type**a package README differs from an app, CLI tool, or framework
36
39
 
37
40
  ## Procedure
38
41
 
39
42
  ### 1. Identify README type and audience
40
43
 
44
+ Determine repository type:
45
+
41
46
  | Type | Audience | Priority |
42
47
  |---|---|---|
43
48
  | **Library/Package** | Developers consuming it | Install → Usage → API |
@@ -49,94 +54,114 @@ Reflects the real repository — not assumptions.
49
54
 
50
55
  ### 2. Inspect the repository
51
56
 
52
- Read truth-defining files:
57
+ Read these files to extract truth:
53
58
 
54
- - `README.md` (existing), `package.json`, `composer.json`
55
- - `Dockerfile`, `docker-compose.yml`
56
- - `Taskfile.yml`, `Makefile`
57
- - CI workflows, config files, `docs/`, `agents/`
59
+ - `README.md` (existing, if any)
60
+ - `package.json`, `composer.json` — name, description, scripts, dependencies
61
+ - `Dockerfile`, `docker-compose.yml` — runtime setup
62
+ - `Taskfile.yml`, `Makefile` available commands
63
+ - CI workflows — what gets tested, how
64
+ - `docs/`, `agents/` — existing documentation
65
+ - Config files — what tools are used
58
66
 
59
- Extract: purpose, install path, commands, requirements, workflows, testing, contribution flow.
67
+ Extract: project purpose, install path, main commands, requirements,
68
+ key workflows, testing/linting commands, contribution flow.
60
69
 
61
70
  ### 3. Choose sections
62
71
 
63
- Only include sections that provide value:
72
+ Only include sections that provide value. Candidates:
64
73
 
65
74
  1. **Title + one-line summary** — always
66
- 2. **Why / what problem** — if not obvious from name
67
- 3. **Key features** — if more than trivial
75
+ 2. **Why / what problem it solves** — if not obvious from name
76
+ 3. **Key features or capabilities** — if more than a trivial tool
68
77
  4. **Requirements** — only if non-obvious
69
78
  5. **Installation / setup** — always
70
- 6. **Usage / quickstart** — always (most important)
71
- 7. **Configuration** — if applicable
72
- 8. **Development workflow** — if accepts contributions
79
+ 6. **Usage / quickstart** — always (most important section)
80
+ 7. **Configuration / customization** — if applicable
81
+ 8. **Development workflow** — if repo accepts contributions
73
82
  9. **Testing / quality** — if tooling exists
74
83
  10. **Project structure** — if non-trivial
75
- 11. **Contributing** — if open/team project
84
+ 11. **Contributing** — if open or team project
76
85
  12. **License** — if applicable
77
86
 
87
+ Do NOT include sections "because READMEs usually have them."
78
88
  Skip empty or near-empty sections entirely.
79
89
 
80
90
  ### 4. Write evidence-based content
81
91
 
82
- - Only document commands that exist in the repo
92
+ Rules:
93
+
94
+ - Only document commands that actually exist in the repo
83
95
  - Only describe setup steps supported by scripts/configs
84
96
  - Only claim features confirmed by code or docs
85
- - Unclear? Inspect more or ask — never invent
97
+ - If something is unclear: inspect more or ask — never invent
98
+
99
+ Formatting:
86
100
 
87
- Formatting: tables for comparisons, code blocks for commands (copy-pasteable),
88
- short paragraphs (max 3 sentences), directory trees for structure.
101
+ - Tables for structured comparisons (tools, options, features)
102
+ - Code blocks for every command (copy-pasteable)
103
+ - Short paragraphs — max 3 sentences before a break
104
+ - Directory trees for project structure (use `tree` format)
105
+ - Badges only if they link to live CI/release status
89
106
 
90
- ### 5. Optimize for first screen
107
+ ### 5. Optimize for the first screen
91
108
 
92
- Reader must answer within 10 seconds: What is this? Why? How to start?
109
+ A reader scanning the README should answer within 10 seconds:
93
110
 
94
- First screen (before scroll): title, summary, install or quickstart.
111
+ 1. What is this?
112
+ 2. Why does it exist?
113
+ 3. How do I install/start it?
114
+
115
+ The first screen (before scrolling) must contain the title, summary,
116
+ and either install command or quickstart. Everything else comes after.
95
117
 
96
118
  ### 6. Size and structure
97
119
 
98
- Keep README scannable. Past ~150 lines: add Table of Contents. Past ~300
99
- lines: split deep content to `/docs/` or `references/`. Use `<details>`
100
- only for secondary, bulky content never for install, first example, or
101
- requirements.
120
+ Keep the README scannable. If it grows past ~150 lines, add a Table of
121
+ Contents; past ~300 lines, split deep content out to `/docs/` or
122
+ `references/`. Use `<details>` only for secondary, bulky content (never
123
+ for install, first example, or requirements).
102
124
 
103
125
  → See `docs/guidelines/docs/readme-size-and-splitting.md` for thresholds,
104
126
  splitting strategies (reference-split, deep-link tables, collapsibles),
105
- multi-audience handling, anti-patterns.
127
+ multi-audience handling, and anti-patterns.
106
128
 
107
129
  ### 7. Validate
108
130
 
109
- - [ ] Every command exists in repo (`Taskfile.yml`, `Makefile`, `package.json`, etc.)
110
- - [ ] Setup steps are reproducible
111
- - [ ] No invented features or capabilities
131
+ After writing, verify:
132
+
133
+ - [ ] Every documented command exists in the repo (`Taskfile.yml`, `Makefile`, `package.json scripts`, etc.)
134
+ - [ ] Setup steps are reproducible (no missing prerequisites)
135
+ - [ ] No features or capabilities are invented
112
136
  - [ ] First screen answers: what, why, how-to-start
113
137
  - [ ] No dead sections (heading with 1-2 trivial sentences)
114
- - [ ] Deep content in dedicated docs, not crammed in README
115
- - [ ] Size below "overloaded" threshold, or splitting in place (see size guideline)
116
- - [ ] ToC present if > 150 lines or > 6 top-level sections
138
+ - [ ] Scope is right — deep content moved to dedicated docs, not crammed in
139
+ - [ ] Size below the "overloaded" threshold, or splitting is in place (see size guideline)
140
+ - [ ] ToC present if README > 150 lines or > 6 top-level sections
141
+ - [ ] Matches existing tonality if repo has established voice
117
142
  - [ ] All file paths and references are valid
118
143
 
119
144
  ## Output format
120
145
 
121
146
  1. Full README draft
122
147
  2. Short note: detected repo type + audience
123
- 3. Uncertainties or assumptions needing confirmation
148
+ 3. Any uncertainties or assumptions that need confirmation
124
149
 
125
150
  ## Gotcha
126
151
 
127
- - Model writes generic boilerplate instead of repo-specific docs
128
- - Model includes commands/steps that don't exist in the repo
129
- - Model over-documents, burying the quickstart under walls of text
130
- - Existing README structure can mislead — don't preserve weak structure blindly
131
- - Package READMEs need install/usage focus, not internal dev workflow
132
- - Model forgets to validate commands against `Taskfile.yml` / `Makefile` / `package.json`
152
+ - The model tends to write generic boilerplate instead of repo-specific documentation
153
+ - The model tends to include commands or setup steps that don't actually exist in the repo
154
+ - The model tends to over-document and bury the quickstart under walls of text
155
+ - Existing README structure can be misleading — don't preserve weak structure blindly
156
+ - READMEs for packages consumed by others need install/usage focus, not internal dev workflow
157
+ - The model forgets to validate commands against `Taskfile.yml` / `Makefile` / `package.json scripts`
133
158
 
134
159
  ## Do NOT
135
160
 
136
- - Do NOT invent features, setup steps, or commands not in the repo
137
- - Do NOT copy generic templates without adapting to the project
138
- - Do NOT overload with deep reference material — link to docs
161
+ - Do NOT invent features, setup steps, or commands not found in the repo
162
+ - Do NOT copy generic README templates without adapting to the actual project
163
+ - Do NOT overload with deep reference material — link to docs instead
139
164
  - Do NOT write for "everyone" — choose a real audience
140
165
  - Do NOT skip repository inspection before writing
141
- - Do NOT preserve weak structure just because it exists
142
- - Do NOT add marketing language ("blazing fast", "revolutionary")
166
+ - Do NOT preserve weak structure from an existing README just because it exists
167
+ - Do NOT add marketing language ("blazing fast", "revolutionary", "next-gen")
@@ -13,27 +13,28 @@ execution:
13
13
  ## When to use
14
14
 
15
15
  - Creating a README for a package, library, SDK, or framework extension
16
- - Rewriting after major changes (new API, version bump, new registry)
17
- - Improving a weak package README (missing install, no example, no compatibility)
18
- - Documenting for Packagist, npm, or internal registries
16
+ - Rewriting a package README after major changes (new API, version bump, new registry)
17
+ - Improving a weak package README (missing install, no example, no compatibility info)
18
+ - Documenting a package for Packagist, npm, or internal registries
19
19
 
20
- Do NOT use for:
20
+ Do NOT use when:
21
21
 
22
- - Full applications, CLI tools, internal team repos → use `readme-writing`
23
- - Minor typos, single-section updates, deep reference docs in `/docs`
22
+ - Documenting a full application, CLI tool, or internal team repo → use `readme-writing` instead
23
+ - Only fixing minor typos or updating a single section
24
+ - Writing deep reference docs that belong in `/docs`
24
25
 
25
26
  ## Goal
26
27
 
27
- Package README that makes adoption easy. Developer knows within 30 seconds:
28
- what it does, whether it fits their stack, how to install, how to use.
28
+ Package README that makes adoption easy. A developer should know within 30 seconds:
29
+ what it does, whether it fits their stack, how to install it, and how to use it.
29
30
 
30
31
  ## Core principles
31
32
 
32
- - User adoption over internal architecture — consumer first, maintainer second
33
- - Install + first example = most important sections
34
- - Compatibility must be explicit — don't imply broad support without evidence
35
- - First example: real, minimal, verified — no pseudo-code
36
- - README = onboarding, /docs = reference
33
+ - **User adoption over internal architecture** — consumer first, maintainer second
34
+ - **Install + first example = most important sections** — everything else is secondary
35
+ - **Compatibility must be explicit** — don't imply broad support without evidence
36
+ - **First code example must be real, minimal, and verified** — no pseudo-code
37
+ - **README = onboarding, /docs = reference** — keep README focused
37
38
 
38
39
  ## Procedure
39
40
 
@@ -49,16 +50,18 @@ what it does, whether it fits their stack, how to install, how to use.
49
50
 
50
51
  ### 2. Inspect package truth sources
51
52
 
53
+ Read files that define actual package behavior:
54
+
52
55
  - `composer.json` / `package.json` — name, description, requirements, scripts
53
- - Source entrypoints — public API, main classes/functions
56
+ - Source entrypoints — public API surface, main classes/functions
54
57
  - Config files — publishable configs, defaults
55
- - CI workflows — supported versions matrix
56
- - Tests — actual API usage patterns
58
+ - CI workflows — what gets tested, supported versions matrix
59
+ - Tests — reveal actual API usage patterns
57
60
  - `CHANGELOG.md` / releases — current state, breaking changes
58
- - Examples directory if present
61
+ - Examples directory if present
59
62
 
60
- Extract: name, purpose, install command, runtime requirements, supported
61
- versions, public API, setup steps, test/lint commands.
63
+ Extract: package name, purpose, install command, runtime requirements,
64
+ supported versions, public API, setup steps, test/lint commands.
62
65
 
63
66
  ### 3. Choose sections
64
67
 
@@ -68,14 +71,14 @@ Priority order for packages:
68
71
  2. **Why / what problem** — if not obvious from name
69
72
  3. **Requirements / compatibility** — always (versions, extensions, frameworks)
70
73
  4. **Installation** — always (exact command, post-install steps)
71
- 5. **Minimal usage example** — always (most important)
72
- 6. **Configuration** — if config publish, env vars, or registration needed
73
- 7. **More examples** — if API has multiple entry points
74
+ 5. **Minimal usage example** — always (most important section)
75
+ 6. **Configuration / setup** — if config publish, env vars, or registration needed
76
+ 7. **More examples / common use cases** — if API has multiple entry points
74
77
  8. **Development / testing** — for maintainers/contributors
75
- 9. **Contributing** — if open/team project
78
+ 9. **Contributing** — if open or team project
76
79
  10. **License** — if applicable
77
80
 
78
- Skip sections with no real content. Never pad.
81
+ Skip sections that have no real content. Never pad.
79
82
 
80
83
  ### 4. Write requirements and compatibility
81
84
 
@@ -89,12 +92,12 @@ State only what is tested and supported:
89
92
  - ext-json
90
93
  ```
91
94
 
92
- Don't imply broad compatibility if only tested in narrow range. Include
93
- framework version, language version, required extensions, services.
95
+ Do NOT imply broad compatibility if only tested in narrow range.
96
+ Include framework version, language version, required extensions, services.
94
97
 
95
98
  ### 5. Write installation that actually works
96
99
 
97
- Exact install command and required follow-up:
100
+ Document the exact install command and any required follow-up:
98
101
 
99
102
  ```bash
100
103
  composer require vendor/package
@@ -103,25 +106,25 @@ composer require vendor/package
103
106
  php artisan vendor:publish --tag=package-config
104
107
  ```
105
108
 
106
- Validate each step against the codebase. Include post-install steps
107
- (publish, register, env setup) if required.
109
+ Validate each step against the actual codebase.
110
+ Include post-install steps (publish, register, env setup) if required.
108
111
 
109
- ### 6. Write minimal working example
112
+ ### 6. Write the minimal working example
110
113
 
111
- **Most critical section.** Rules:
114
+ **This is the most critical section.** Rules:
112
115
 
113
116
  - Smallest possible working example — one use case, one result
114
117
  - Real API calls, not pseudo-code
115
118
  - Copy-pasteable without hidden setup
116
119
  - Show expected result or effect if helpful
117
- - Must match actual package API (verify against source)
120
+ - Must match the actual package API (verify against source)
118
121
 
119
122
  Bad: abstract, large, requires unexplained setup.
120
123
  Good: 5-15 lines, directly relevant, immediately runnable.
121
124
 
122
125
  ### 7. Keep architecture out of README — use reference-split
123
126
 
124
- Move deep content to dedicated docs. Recommended layout:
127
+ Move deep content to dedicated docs. Recommended layout for packages:
125
128
 
126
129
  ```
127
130
  README.md ← entry: what, why, install, minimal usage
@@ -133,13 +136,13 @@ docs/
133
136
  migration.md ← version upgrade guides
134
137
  ```
135
138
 
136
- Multi-platform install (> 5 variants): prefer single table with deep
137
- links over stacked inline blocks. Occasionally-needed detail (long
138
- platform quirks, troubleshooting): use `<details>` — never for install,
139
- first example, or requirements.
139
+ For multi-platform install (> 5 variants), prefer a single table with
140
+ deep links over stacked inline blocks. For occasionally-needed detail
141
+ (long platform quirks, troubleshooting), use `<details>` — never for
142
+ install, first example, or requirements.
140
143
 
141
144
  → See `docs/guidelines/docs/readme-size-and-splitting.md` for thresholds,
142
- deep-link-table pattern, collapsibles, anti-patterns (premature
145
+ deep-link-table pattern, collapsibles, and anti-patterns (premature
143
146
  splitting, duplication between README and `/docs/`).
144
147
 
145
148
  README = enough to adopt. Docs = enough to master.
@@ -148,11 +151,11 @@ README = enough to adopt. Docs = enough to master.
148
151
 
149
152
  - [ ] Install command is correct and complete
150
153
  - [ ] Compatibility/requirements match `composer.json` / `package.json` / CI matrix
151
- - [ ] First example matches real API (verified against source)
154
+ - [ ] First example matches real API (verified against source code)
152
155
  - [ ] All documented commands exist in repo
153
156
  - [ ] No invented features or capabilities
154
157
  - [ ] Consumer can get started without reading source code
155
- - [ ] Deep content in docs, not README (see size guideline)
158
+ - [ ] Deep content is in docs, not README (see size guideline)
156
159
  - [ ] Multi-platform install uses a table, not stacked blocks
157
160
  - [ ] No duplication between README and `/docs/`
158
161
  - [ ] First screen shows: what, install, requirements
@@ -167,11 +170,11 @@ README = enough to adopt. Docs = enough to master.
167
170
 
168
171
  ## Gotcha
169
172
 
170
- - Model writes package READMEs like app READMEs (too much architecture)
171
- - Model invents compatibility claims or setup steps
172
- - First example often too large, too abstract, or uses pseudo-code
173
+ - Model writes package READMEs like app READMEs (too much architecture, not enough install/usage)
174
+ - Model tends to invent compatibility claims or setup steps
175
+ - First example is often too large, too abstract, or uses pseudo-code
173
176
  - Model over-explains internals before showing how to use the package
174
- - Existing README may be outdated — verify against `composer.json` / source
177
+ - Existing README may be outdated — verify against actual `composer.json` / source, not old text
175
178
  - Model forgets post-install steps (config publish, service provider, env vars)
176
179
 
177
180
  ## Do NOT
@@ -179,7 +182,7 @@ README = enough to adopt. Docs = enough to master.
179
182
  - Do NOT invent package capabilities or compatibility
180
183
  - Do NOT skip the minimal working example
181
184
  - Do NOT prioritize internal architecture over user onboarding
182
- - Do NOT document commands not in the repo
185
+ - Do NOT document commands not present in the repo
183
186
  - Do NOT hide requirements or version constraints
184
- - Do NOT write a giant example when 10 lines would do
185
- - Do NOT overload README with reference material — link to /docs
187
+ - Do NOT write a giant example when a 10-line one would do
188
+ - Do NOT overload README with reference material — link to /docs