@event4u/agent-config 1.22.0 → 1.23.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.
- package/.agent-src/commands/agents/cleanup.md +31 -17
- package/.agent-src/commands/commit/in-chunks.md +30 -10
- package/.agent-src/commands/commit.md +46 -6
- package/.agent-src/commands/compress.md +19 -13
- package/.agent-src/commands/cost-report.md +120 -0
- package/.agent-src/commands/create-pr/description-only.md +8 -0
- package/.agent-src/commands/create-pr.md +95 -80
- package/.agent-src/commands/feature/plan.md +13 -7
- package/.agent-src/commands/memory/add.md +16 -8
- package/.agent-src/commands/memory/promote.md +17 -9
- package/.agent-src/commands/optimize/rtk.md +16 -11
- package/.agent-src/commands/prepare-for-review.md +12 -6
- package/.agent-src/commands/project-analyze.md +31 -20
- package/.agent-src/commands/review-changes.md +24 -15
- package/.agent-src/commands/roadmap/create.md +14 -9
- package/.agent-src/contexts/contracts/frugality-charter.md +57 -0
- package/.agent-src/rules/architecture.md +9 -0
- package/.agent-src/rules/ask-when-uncertain.md +3 -13
- package/.agent-src/rules/caveman-speak.md +78 -0
- package/.agent-src/rules/direct-answers.md +5 -14
- package/.agent-src/rules/markdown-safe-codeblocks.md +6 -7
- package/.agent-src/rules/no-cheap-questions.md +4 -14
- package/.agent-src/rules/token-efficiency.md +5 -7
- package/.agent-src/skills/adr-create/SKILL.md +197 -0
- package/.agent-src/skills/agent-docs-writing/SKILL.md +23 -1
- package/.agent-src/skills/command-writing/SKILL.md +23 -0
- package/.agent-src/skills/context-authoring/SKILL.md +23 -0
- package/.agent-src/skills/conventional-commits-writing/SKILL.md +23 -0
- package/.agent-src/skills/guideline-writing/SKILL.md +22 -0
- package/.agent-src/skills/persona-writing/SKILL.md +153 -0
- package/.agent-src/skills/readme-writing/SKILL.md +20 -0
- package/.agent-src/skills/readme-writing-package/SKILL.md +19 -0
- package/.agent-src/skills/roadmap-writing/SKILL.md +157 -0
- package/.agent-src/skills/rule-writing/SKILL.md +22 -0
- package/.agent-src/skills/script-writing/SKILL.md +226 -0
- package/.agent-src/skills/skill-writing/SKILL.md +23 -0
- package/.agent-src/skills/test-driven-development/SKILL.md +24 -0
- package/.agent-src/templates/agent-settings.md +73 -0
- package/.agent-src/templates/command.md +15 -10
- package/.agent-src/templates/rule.md +6 -0
- package/.agent-src/templates/skill.md +32 -0
- package/.claude-plugin/marketplace.json +6 -1
- package/AGENTS.md +3 -3
- package/CHANGELOG.md +35 -0
- package/README.md +5 -5
- package/docs/architecture.md +4 -4
- package/docs/customization.md +72 -0
- package/docs/decisions/INDEX.md +15 -0
- package/docs/getting-started.md +2 -2
- package/docs/guidelines/agent-infra/asking-and-brevity-examples.md +27 -19
- package/docs/guidelines/agent-infra/carve-out-predicates.md +17 -0
- package/docs/guidelines/agent-infra/mcp-request-signing.md +199 -0
- package/docs/guidelines/agent-infra/roadmap-progress-mechanics.md +11 -4
- package/package.json +1 -1
- package/scripts/_lib/__init__.py +5 -0
- package/scripts/_lib/script_output.py +140 -0
- package/scripts/adr/regenerate_index.py +79 -0
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_add_quiet.py +149 -0
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_inject_quiet_flag.py +33 -0
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_measure_v2.sh +36 -0
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_measure_verbosity.sh +26 -0
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_per_task.sh +41 -0
- package/scripts/ai_council/one_off_archive/2026-05/_one_off_silent_taskfiles.py +98 -0
- package/scripts/check_augmentignore.py +4 -1
- package/scripts/check_command_count_messaging.py +4 -1
- package/scripts/check_compressed_paths.py +4 -1
- package/scripts/check_council_layout.py +4 -1
- package/scripts/check_council_references.py +4 -1
- package/scripts/check_iron_law_prominence.py +3 -1
- package/scripts/check_md_language.py +3 -1
- package/scripts/check_memory_proposal.py +3 -1
- package/scripts/check_public_catalog_links.py +4 -1
- package/scripts/check_reply_consistency.py +8 -2
- package/scripts/check_roadmap_trackable.py +4 -1
- package/scripts/compile_router.py +27 -0
- package/scripts/compress.py +33 -19
- package/scripts/cost/budget.mjs +152 -0
- package/scripts/cost/track.mjs +144 -0
- package/scripts/first-run.sh +3 -9
- package/scripts/install-hooks.sh +19 -1
- package/scripts/install.py +17 -12
- package/scripts/install.sh +19 -8
- package/scripts/lint_examples.py +6 -2
- package/scripts/lint_handoffs.py +4 -1
- package/scripts/lint_load_context.py +4 -1
- package/scripts/lint_roadmap_complexity.py +6 -2
- package/scripts/lint_rule_interactions.py +4 -1
- package/scripts/lint_rule_tiers.py +4 -1
- package/scripts/measure_frugality_savings.py +164 -0
- package/scripts/runtime_dispatcher.py +11 -0
- package/scripts/skill_linter.py +207 -2
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: adr-create
|
|
3
|
+
description: "Use when capturing an architectural decision — naming the file, picking the next ADR number, filling Status / Context / Decision / Consequences, and regenerating the index — even without saying 'ADR'."
|
|
4
|
+
source: package
|
|
5
|
+
execution:
|
|
6
|
+
type: assisted
|
|
7
|
+
handler: shell
|
|
8
|
+
timeout_seconds: 30
|
|
9
|
+
allowed_tools: []
|
|
10
|
+
command:
|
|
11
|
+
- python3
|
|
12
|
+
- scripts/adr/regenerate_index.py
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# adr-create
|
|
16
|
+
|
|
17
|
+
## When to use
|
|
18
|
+
|
|
19
|
+
Use this skill when:
|
|
20
|
+
|
|
21
|
+
- A non-trivial architectural choice needs a written record (kernel
|
|
22
|
+
membership, cap raises, contract changes, library swap, deprecation).
|
|
23
|
+
- A decision overrides a previous one and needs `supersedes:` linkage.
|
|
24
|
+
- A roadmap phase closes and the chosen variant must be cited.
|
|
25
|
+
- The user says "write an ADR for X", "decision log this", "we need
|
|
26
|
+
a record of why we picked Y".
|
|
27
|
+
|
|
28
|
+
Do NOT use when:
|
|
29
|
+
|
|
30
|
+
- The change is reversible without governance impact (typo, lint
|
|
31
|
+
fix, refactor that stays inside one module).
|
|
32
|
+
- The decision is already covered by an existing ADR — extend or
|
|
33
|
+
supersede it instead of duplicating.
|
|
34
|
+
- A skill, rule, or guideline is the better home (use those skills).
|
|
35
|
+
|
|
36
|
+
## Goal
|
|
37
|
+
|
|
38
|
+
- Sequential `ADR-NNN-<slug>.md` numbering with no gaps.
|
|
39
|
+
- Standard template: Status, Context, Decision, Consequences,
|
|
40
|
+
Alternatives, References.
|
|
41
|
+
- Regenerated index so readers find the ADR by topic, not by ls.
|
|
42
|
+
- Zero MCP-tool dependency — pure filesystem + Python.
|
|
43
|
+
|
|
44
|
+
## Preconditions
|
|
45
|
+
|
|
46
|
+
- An ADR directory exists (default `docs/adr/`; `docs/decisions/` is
|
|
47
|
+
the recognised alias used in this package and many older projects).
|
|
48
|
+
- The decision is **already made** — ADRs record outcomes, they do
|
|
49
|
+
not run the decision process. For unresolved trade-offs, run the
|
|
50
|
+
council or consult `adversarial-review` first.
|
|
51
|
+
|
|
52
|
+
## Procedure
|
|
53
|
+
|
|
54
|
+
### 1. Inspect and resolve the ADR directory
|
|
55
|
+
|
|
56
|
+
Identify the canonical directory in this order:
|
|
57
|
+
|
|
58
|
+
1. `docs/adr/` — default per spec.
|
|
59
|
+
2. `docs/decisions/` — accepted alias if `docs/adr/` is missing.
|
|
60
|
+
3. Anything else — fail, ask the user to pick one of the two
|
|
61
|
+
canonical paths. Do not invent a third location.
|
|
62
|
+
|
|
63
|
+
### 2. Pick the next ADR number
|
|
64
|
+
|
|
65
|
+
Scan the directory for `ADR-*.md`, parse the leading 3-digit number,
|
|
66
|
+
take `max + 1` (zero-padded). For an empty directory, start at `001`.
|
|
67
|
+
Reject re-use of an existing number — the index regenerator treats
|
|
68
|
+
duplicates as a hard failure.
|
|
69
|
+
|
|
70
|
+
### 3. Pick a slug
|
|
71
|
+
|
|
72
|
+
Short, hyphen-lowercase, scope-revealing. Match peer ADRs in the
|
|
73
|
+
directory. Examples: `kernel-swap-deferred`, `flat-cluster-subs`,
|
|
74
|
+
`http-bridge-deferred-with-trigger`. Reject slugs longer than 60 chars.
|
|
75
|
+
|
|
76
|
+
### 4. Author the ADR
|
|
77
|
+
|
|
78
|
+
Use the standard template (frontmatter + body). All sections are
|
|
79
|
+
required; "n/a" is acceptable for genuinely empty Alternatives or
|
|
80
|
+
References blocks but never for Status, Context, Decision, or
|
|
81
|
+
Consequences.
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
---
|
|
85
|
+
adr: NNN
|
|
86
|
+
status: proposed | accepted | superseded | deprecated
|
|
87
|
+
date: YYYY-MM-DD
|
|
88
|
+
decision: <slug>
|
|
89
|
+
supersedes: — | ADR-MMM
|
|
90
|
+
superseded_by: — | ADR-MMM
|
|
91
|
+
phase: <roadmap> · <phase-id>
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
# ADR-NNN — <Decision Title>
|
|
95
|
+
|
|
96
|
+
## Status
|
|
97
|
+
|
|
98
|
+
**<Proposed | Accepted | …>** · YYYY-MM-DD.
|
|
99
|
+
|
|
100
|
+
## Context
|
|
101
|
+
|
|
102
|
+
What problem forced this decision? What constraints applied? What
|
|
103
|
+
alternatives were on the table at decision time?
|
|
104
|
+
|
|
105
|
+
## Decision
|
|
106
|
+
|
|
107
|
+
The chosen variant, in one paragraph. Concrete enough that a reader
|
|
108
|
+
six months later knows what was actually picked.
|
|
109
|
+
|
|
110
|
+
## Consequences
|
|
111
|
+
|
|
112
|
+
### Accepted
|
|
113
|
+
|
|
114
|
+
- Hard guarantees we now make.
|
|
115
|
+
|
|
116
|
+
### Trade-offs
|
|
117
|
+
|
|
118
|
+
- What we gave up. Mitigations, if any.
|
|
119
|
+
|
|
120
|
+
## Alternatives considered
|
|
121
|
+
|
|
122
|
+
- **Variant X — <name>.** Rejected because <reason>.
|
|
123
|
+
- **Variant Y — <name>.** Rejected because <reason>.
|
|
124
|
+
|
|
125
|
+
## References
|
|
126
|
+
|
|
127
|
+
- Linked roadmap, contract, prior ADR, council session id.
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### 5. Regenerate the index
|
|
131
|
+
|
|
132
|
+
Run the dispatcher:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
python3 scripts/runtime_dispatcher.py run --skill adr-create
|
|
136
|
+
# or directly:
|
|
137
|
+
python3 scripts/adr/regenerate_index.py --dir docs/adr/
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
The script scans `ADR-*.md`, reads frontmatter (`adr`, `status`,
|
|
141
|
+
`date`, `decision`, `supersedes`), and writes `INDEX.md` with one
|
|
142
|
+
table row per ADR plus broken-supersede warnings on stderr.
|
|
143
|
+
|
|
144
|
+
### 6. Validate
|
|
145
|
+
|
|
146
|
+
- `python3 scripts/adr/regenerate_index.py --check` exits 0
|
|
147
|
+
(index is up to date, no number gaps, no broken supersedes).
|
|
148
|
+
- The project's CI / quality pipeline passes locally.
|
|
149
|
+
|
|
150
|
+
## Output format
|
|
151
|
+
|
|
152
|
+
1. Path of the new `ADR-NNN-<slug>.md` file.
|
|
153
|
+
2. Path of the regenerated `INDEX.md`.
|
|
154
|
+
3. One-line summary of the decision.
|
|
155
|
+
4. Linked roadmap or phase, if any.
|
|
156
|
+
|
|
157
|
+
## Gotchas
|
|
158
|
+
|
|
159
|
+
- `docs/adr/` is the default path; some projects use
|
|
160
|
+
`docs/decisions/` (this package included). Pass `--dir` to the
|
|
161
|
+
index regenerator when running outside the default.
|
|
162
|
+
- Frontmatter `adr:` is the canonical number; the filename prefix
|
|
163
|
+
must match. The index regenerator fails on mismatch.
|
|
164
|
+
- ADRs are append-only history. To revise a decision, write a new
|
|
165
|
+
ADR with `supersedes: ADR-MMM` and flip the old one's status to
|
|
166
|
+
`superseded`.
|
|
167
|
+
- Never delete an ADR file — supersede it. Deletion breaks
|
|
168
|
+
historical links and round-trips through git history checks.
|
|
169
|
+
|
|
170
|
+
## Frugality Standards
|
|
171
|
+
|
|
172
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
173
|
+
to every ADR you author.
|
|
174
|
+
|
|
175
|
+
**Examples in this artifact:**
|
|
176
|
+
- Per the charter's default-terse rule, `## Context` states the
|
|
177
|
+
forcing function in 2–3 sentences; no historical narrative.
|
|
178
|
+
- Per the cite-don't-restate principle, `## Decision` links the
|
|
179
|
+
rules / contracts it overrides; no rule body is quoted in full.
|
|
180
|
+
- Per the cheap-question check, `## Alternatives considered` lists
|
|
181
|
+
genuine design alternatives, not strawmen.
|
|
182
|
+
|
|
183
|
+
**Pre-save self-check:**
|
|
184
|
+
1. Does `## Context` carry more than 5 sentences of setup?
|
|
185
|
+
2. Does `## Decision` restate rule text instead of citing the rule?
|
|
186
|
+
3. Are alternatives evaluated with a real consequence each, or with
|
|
187
|
+
stylistic preference?
|
|
188
|
+
4. Does the ADR forecast consequences with hedge phrases ("might",
|
|
189
|
+
"could potentially") instead of decidable claims?
|
|
190
|
+
|
|
191
|
+
## Do NOT
|
|
192
|
+
|
|
193
|
+
- Skip Context — a decision without context is folklore.
|
|
194
|
+
- Reuse an existing ADR number — the index regenerator hard-fails.
|
|
195
|
+
- Author ADRs for reversible refactors or minor cleanups.
|
|
196
|
+
- Cite a council session id without ensuring the file is committed
|
|
197
|
+
or otherwise reachable from the repo (per `no-council-references`).
|
|
@@ -168,6 +168,7 @@ When starting work, read documentation in this order:
|
|
|
168
168
|
| Significant multi-step change | Ask user about creating a roadmap in `agents/roadmaps/` |
|
|
169
169
|
| New convention introduced | Update relevant doc in `./agents/` or `.augment/guidelines/` |
|
|
170
170
|
| Database schema changed | Update `agents/docs/database-setup.md` |
|
|
171
|
+
| Architectural decision made | Use the [`adr-create`](../adr-create/SKILL.md) skill — writes a numbered ADR under `docs/adr/` (or `docs/decisions/`) and regenerates the index |
|
|
171
172
|
|
|
172
173
|
## When to update documentation
|
|
173
174
|
|
|
@@ -187,7 +188,7 @@ After completing a significant code change, run this mental checklist:
|
|
|
187
188
|
| New API endpoint | OpenAPI annotations, `AGENTS.md` API section |
|
|
188
189
|
| New module created | Create `app/Modules/{Module}/agents/` |
|
|
189
190
|
| Service/repository signature changed | Check if referenced in `agents/docs/services-and-repos.md` |
|
|
190
|
-
| New environment variable | `.env.example`, `AGENTS.md`
|
|
191
|
+
| New environment variable | `.env.example`, `AGENTS.md` environment section |
|
|
191
192
|
| Docker/compose change | `agents/docs/docker.md`, `Makefile` documentation |
|
|
192
193
|
| New Artisan command | `AGENTS.md` commands section |
|
|
193
194
|
| New pattern/convention introduced | Relevant guideline in `.augment/guidelines/` |
|
|
@@ -220,6 +221,27 @@ Do NOT auto-update docs without the user's knowledge. Flag what needs updating a
|
|
|
220
221
|
- AGENTS.md and copilot-instructions.md have different audiences — don't copy content between them.
|
|
221
222
|
- Module docs go in `app/Modules/*/agents/`, NOT in the central `agents/` directory.
|
|
222
223
|
|
|
224
|
+
## Frugality Standards
|
|
225
|
+
|
|
226
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
227
|
+
to every agent-doc update you author.
|
|
228
|
+
|
|
229
|
+
**Examples in this artifact:**
|
|
230
|
+
- Per the charter's default-terse rule, doc updates state what
|
|
231
|
+
changed; no "In this section we will…" frames.
|
|
232
|
+
- Per the cheap-question check, AGENTS.md surface offers options
|
|
233
|
+
only where the project genuinely diverges.
|
|
234
|
+
- Per the post-action summary suppression, doc edits append change
|
|
235
|
+
notes to the existing log entry; no new "Summary of changes" block.
|
|
236
|
+
|
|
237
|
+
**Pre-save self-check:**
|
|
238
|
+
1. Does the doc open with a narrative intro instead of the actual
|
|
239
|
+
content?
|
|
240
|
+
2. Are paragraphs added that summarize an existing table?
|
|
241
|
+
3. Does the doc duplicate the rule index instead of linking the
|
|
242
|
+
relevant rule?
|
|
243
|
+
4. Is German prose present outside `DE: / EN:` anchor blocks?
|
|
244
|
+
|
|
223
245
|
## Do NOT
|
|
224
246
|
|
|
225
247
|
- Do NOT create docs unless there's a real need (new module, significant change).
|
|
@@ -166,6 +166,29 @@ multi-paragraph explanation, extract it into a skill and call it.
|
|
|
166
166
|
`.agent-src.uncompressed/`.
|
|
167
167
|
* Duplicating another command's workflow instead of delegating via `skills:`.
|
|
168
168
|
|
|
169
|
+
## Frugality Standards
|
|
170
|
+
|
|
171
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
172
|
+
to every command you author.
|
|
173
|
+
|
|
174
|
+
**Examples in this artifact:**
|
|
175
|
+
- Per the charter's default-terse rule, command output blocks state
|
|
176
|
+
the action result, not "Now we will execute…".
|
|
177
|
+
- Per the post-action summary suppression, the success path emits
|
|
178
|
+
the artifact (PR URL, commit hash) without a wrapping summary.
|
|
179
|
+
- Per the cheap-question check, never offer "preview vs. execute"
|
|
180
|
+
as a numbered option when the command's role is to execute.
|
|
181
|
+
|
|
182
|
+
**Pre-save self-check:**
|
|
183
|
+
1. Does any command step prescribe a "Let me…" or "Found it" output
|
|
184
|
+
line?
|
|
185
|
+
2. Does the command default to multi-line summaries when a one-line
|
|
186
|
+
outcome suffices?
|
|
187
|
+
3. Is a confirmation gate used outside the Iron-Law / Routine /
|
|
188
|
+
Contextual taxonomy?
|
|
189
|
+
4. Are template placeholders (`{{var}}`) accompanied by setup prose
|
|
190
|
+
instead of action prose?
|
|
191
|
+
|
|
169
192
|
## Do NOT
|
|
170
193
|
|
|
171
194
|
* Do NOT set `disable-model-invocation: false`
|
|
@@ -156,6 +156,29 @@ schema regex and by `scripts/lint_load_context.py`. Body links to
|
|
|
156
156
|
Canonical reference: `rule-writing` § 3b and
|
|
157
157
|
`docs/contracts/load-context-schema.md`.
|
|
158
158
|
|
|
159
|
+
## Frugality Standards
|
|
160
|
+
|
|
161
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
162
|
+
to every context file you author.
|
|
163
|
+
|
|
164
|
+
**Examples in this artifact:**
|
|
165
|
+
- Per the charter's index nature, context files are reviewer fuel —
|
|
166
|
+
they hold mechanics, not Iron-Law obligations.
|
|
167
|
+
- Per the cite-don't-restate principle, when a section mirrors a
|
|
168
|
+
rule, link the rule and stop.
|
|
169
|
+
- Per the act-skip-narration rule, lookup tables open the section;
|
|
170
|
+
explanatory prose follows only if the table is ambiguous.
|
|
171
|
+
|
|
172
|
+
**Pre-save self-check:**
|
|
173
|
+
1. Does the context file restate Iron-Law text instead of linking
|
|
174
|
+
the rule?
|
|
175
|
+
2. Does any section open with "This document explains…" instead of
|
|
176
|
+
the lookup material?
|
|
177
|
+
3. Are placeholders (`<add me>`, `TBD`) shipped instead of actual
|
|
178
|
+
content?
|
|
179
|
+
4. Are the cited rules linked with stable anchors (verified to
|
|
180
|
+
exist)?
|
|
181
|
+
|
|
159
182
|
## Do NOT
|
|
160
183
|
|
|
161
184
|
- Do NOT copy content between projects. Every context file is local to its
|
|
@@ -113,6 +113,29 @@ Or add `BREAKING CHANGE:` in the commit body/footer.
|
|
|
113
113
|
- Squash merge titles should describe the net effect, not every internal detail
|
|
114
114
|
- `refactor` means NO behavior change — if behavior changes, use `feat` or `fix`
|
|
115
115
|
|
|
116
|
+
## Frugality Standards
|
|
117
|
+
|
|
118
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
119
|
+
to every commit message you author.
|
|
120
|
+
|
|
121
|
+
**Examples in this artifact:**
|
|
122
|
+
- Per the charter's default-terse rule, the subject states the
|
|
123
|
+
change in 50 chars; no scaffolding ("This commit will…").
|
|
124
|
+
- Per the post-action summary suppression, the body lists changed
|
|
125
|
+
surfaces in bullets — no closing paragraph re-summarizing them.
|
|
126
|
+
- Per the cheap-question check, never propose a `feat` vs. `chore`
|
|
127
|
+
numbered choice when the type is decidable from the diff.
|
|
128
|
+
|
|
129
|
+
**Pre-save self-check:**
|
|
130
|
+
1. Does the subject line carry filler ("various improvements",
|
|
131
|
+
"general updates")?
|
|
132
|
+
2. Does the body re-narrate the diff instead of stating intent?
|
|
133
|
+
3. Are co-author / attribution footers present without explicit user
|
|
134
|
+
request (per
|
|
135
|
+
[`no-attribution-footers`](../../rules/no-attribution-footers.md))?
|
|
136
|
+
4. Is the type / scope chosen from the diff, not from the asker's
|
|
137
|
+
framing?
|
|
138
|
+
|
|
116
139
|
## Do NOT
|
|
117
140
|
|
|
118
141
|
- Do NOT use vague messages: `update stuff`, `fix bug`, `changes`
|
|
@@ -130,6 +130,28 @@ Above the split signal, break by sub-topic into sibling files in the same folder
|
|
|
130
130
|
* Hollowing out a skill into "see guideline" — the skill must remain
|
|
131
131
|
executable (see `preservation-guard`).
|
|
132
132
|
|
|
133
|
+
## Frugality Standards
|
|
134
|
+
|
|
135
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
136
|
+
to every guideline you author.
|
|
137
|
+
|
|
138
|
+
**Examples in this artifact:**
|
|
139
|
+
- Per the charter's index nature, guidelines describe practice
|
|
140
|
+
patterns; they do **not** restate Iron-Laws from rules.
|
|
141
|
+
- Per the act-skip-narration rule, code examples lead with the
|
|
142
|
+
pattern, not its motivation.
|
|
143
|
+
- Per the cheap-question check, guidelines do not prescribe stylistic
|
|
144
|
+
forks ("table vs. paragraph") — pick one.
|
|
145
|
+
|
|
146
|
+
**Pre-save self-check:**
|
|
147
|
+
1. Does the guideline restate text from a rule body instead of
|
|
148
|
+
linking the rule?
|
|
149
|
+
2. Are code examples preceded by narrative ramp-up?
|
|
150
|
+
3. Does the guideline introduce a new convention without citing the
|
|
151
|
+
rule that holds the obligation?
|
|
152
|
+
4. Are sections labeled "Overview" / "Background" carrying only
|
|
153
|
+
restatement?
|
|
154
|
+
|
|
133
155
|
## Do NOT
|
|
134
156
|
|
|
135
157
|
* Do NOT add `type:` or `alwaysApply:` to the frontmatter
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: persona-writing
|
|
3
|
+
description: "Use when creating or editing a persona in .agent-src.uncompressed/personas/ — voice / focus / unique questions / output expectations — even when the user just says 'add a reviewer voice for X'."
|
|
4
|
+
source: package
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<!-- cloud_safe: degrade -->
|
|
8
|
+
|
|
9
|
+
# persona-writing
|
|
10
|
+
|
|
11
|
+
## When to use
|
|
12
|
+
|
|
13
|
+
* Creating a new persona file in
|
|
14
|
+
`.agent-src.uncompressed/personas/{id}.md`
|
|
15
|
+
* Rewriting an existing persona (focus shift, output-expectation
|
|
16
|
+
change — not a typo fix)
|
|
17
|
+
* Deciding whether a new reviewer voice should be a persona at all
|
|
18
|
+
(vs. a skill of its own)
|
|
19
|
+
|
|
20
|
+
Do NOT use this skill when:
|
|
21
|
+
|
|
22
|
+
* The content is a multi-step workflow → use
|
|
23
|
+
[`skill-writing`](../skill-writing/SKILL.md)
|
|
24
|
+
* The content is a hard obligation the agent must always honor → use
|
|
25
|
+
[`rule-writing`](../rule-writing/SKILL.md)
|
|
26
|
+
* The content describes the project's role-mode contract → that lives
|
|
27
|
+
in `docs/contracts/role-contracts.md`, not in personas
|
|
28
|
+
|
|
29
|
+
## Persona vs skill vs role-mode — critical test
|
|
30
|
+
|
|
31
|
+
| Intent | Artifact |
|
|
32
|
+
|---|---|
|
|
33
|
+
| "Agent should review through a specific lens" | **Persona** |
|
|
34
|
+
| "Agent should run a multi-step workflow" | **Skill** |
|
|
35
|
+
| "Agent's closing contract differs by role" | **Role-mode** (contract file) |
|
|
36
|
+
|
|
37
|
+
A persona is **passive reference content** — it never triggers by
|
|
38
|
+
description, never appears in `<available_skills>`. Skills cite
|
|
39
|
+
personas via the `personas:` frontmatter key.
|
|
40
|
+
|
|
41
|
+
## Procedure
|
|
42
|
+
|
|
43
|
+
### 0. Drafting protocol
|
|
44
|
+
|
|
45
|
+
Creating or materially rewriting a persona must go through
|
|
46
|
+
Understand → Research → Draft per the
|
|
47
|
+
[`artifact-drafting-protocol`](../../rules/artifact-drafting-protocol.md)
|
|
48
|
+
rule. Inspect existing personas under
|
|
49
|
+
`.agent-src.uncompressed/personas/` for overlap before writing a new
|
|
50
|
+
one.
|
|
51
|
+
|
|
52
|
+
### 1. Decide focus, not topic
|
|
53
|
+
|
|
54
|
+
A persona owns **one focus**: automation-readiness, adversarial
|
|
55
|
+
challenge, product-owner priorities, etc. If the focus needs three
|
|
56
|
+
sentences, it is two personas.
|
|
57
|
+
|
|
58
|
+
### 2. Draft the persona file
|
|
59
|
+
|
|
60
|
+
Required sections:
|
|
61
|
+
|
|
62
|
+
* `## Focus` — one paragraph, what this lens *cares about* and what
|
|
63
|
+
it *ignores*.
|
|
64
|
+
* `## Unique questions` — 4–7 questions only this persona would ask.
|
|
65
|
+
Each question must be decidable against the artifact under review.
|
|
66
|
+
* `## Output expectations` — what the persona produces (verdict
|
|
67
|
+
format, severity vocabulary, citation discipline).
|
|
68
|
+
|
|
69
|
+
Optional: `## Anti-patterns this persona catches` — concrete examples
|
|
70
|
+
the persona is calibrated to flag.
|
|
71
|
+
|
|
72
|
+
### 3. Cite from at least one skill
|
|
73
|
+
|
|
74
|
+
A persona that is not cited by any skill via the `personas:`
|
|
75
|
+
frontmatter key is dead code. Either wire it into an existing skill
|
|
76
|
+
or do not ship it.
|
|
77
|
+
|
|
78
|
+
## Frontmatter shape
|
|
79
|
+
|
|
80
|
+
```yaml
|
|
81
|
+
---
|
|
82
|
+
id: <kebab-case-id>
|
|
83
|
+
role: <Human-Readable Role>
|
|
84
|
+
description: "One sentence: what this voice catches that others miss."
|
|
85
|
+
tier: core | specialty
|
|
86
|
+
mode: developer | product-owner | qa | stakeholder | none
|
|
87
|
+
version: "1.0"
|
|
88
|
+
source: package
|
|
89
|
+
---
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The `mode:` field is advisory only — it suggests which role-mode the
|
|
93
|
+
persona pairs naturally with; it does not bind.
|
|
94
|
+
|
|
95
|
+
## Output format
|
|
96
|
+
|
|
97
|
+
A single Markdown file at `.agent-src.uncompressed/personas/{id}.md`:
|
|
98
|
+
|
|
99
|
+
1. Frontmatter (`id`, `role`, `description`, `tier`, `mode`,
|
|
100
|
+
`version`, `source`)
|
|
101
|
+
2. `## Focus` — one paragraph, what the lens cares about and ignores
|
|
102
|
+
3. `## Unique questions` — 4–7 decidable questions
|
|
103
|
+
4. `## Output expectations` — verdict format, severity vocabulary
|
|
104
|
+
|
|
105
|
+
Length: ≤ 80 lines for a tier-core persona; longer signals the focus
|
|
106
|
+
is too broad.
|
|
107
|
+
|
|
108
|
+
## Gotchas
|
|
109
|
+
|
|
110
|
+
- **Persona without a citing skill** — a persona that no skill
|
|
111
|
+
references via `personas:` never loads. Wire it in or do not ship.
|
|
112
|
+
- **Focus drift across rewrites** — adding "and also …" to `## Focus`
|
|
113
|
+
is the first symptom of a second persona hiding inside the first.
|
|
114
|
+
- **Vibe-based unique questions** — "Does this feel right?" cannot
|
|
115
|
+
be evaluated against the artifact. Replace with decidable triggers.
|
|
116
|
+
- **Restating role-mode contracts** — closing-contract obligations
|
|
117
|
+
belong in `docs/contracts/role-contracts.md`, not in the persona
|
|
118
|
+
body.
|
|
119
|
+
|
|
120
|
+
## Frugality Standards
|
|
121
|
+
|
|
122
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
123
|
+
to every persona you author.
|
|
124
|
+
|
|
125
|
+
**Examples in this artifact:**
|
|
126
|
+
- Per the charter's default-terse rule, `## Focus` opens with what
|
|
127
|
+
the persona cares about, not "This persona was created to…".
|
|
128
|
+
- Per the cite-don't-restate principle, link rules the persona
|
|
129
|
+
enforces; do not paste their text into the persona body.
|
|
130
|
+
- Per the cheap-question check, `## Unique questions` lists decidable
|
|
131
|
+
questions only — drop any that read like vibe checks.
|
|
132
|
+
|
|
133
|
+
**Pre-save self-check:**
|
|
134
|
+
1. Does `## Focus` open with the lens, or with persona meta-narrative?
|
|
135
|
+
2. Are unique questions decidable against the artifact alone?
|
|
136
|
+
3. Are any questions duplicated from another persona?
|
|
137
|
+
4. Is the persona cited by at least one skill via `personas:`?
|
|
138
|
+
|
|
139
|
+
## Do NOT
|
|
140
|
+
|
|
141
|
+
* Author a persona that nobody cites.
|
|
142
|
+
* Restate Iron-Law text from rules inside `## Output expectations`.
|
|
143
|
+
* Use ALL-CAPS Iron-Law fenced blocks — those belong in rules on the
|
|
144
|
+
[`kernel-membership`](../../../docs/contracts/kernel-membership.md)
|
|
145
|
+
list.
|
|
146
|
+
* Ship a persona that overlaps an existing one's focus by more than
|
|
147
|
+
50 % — merge instead.
|
|
148
|
+
|
|
149
|
+
## Examples
|
|
150
|
+
|
|
151
|
+
See `.agent-src.uncompressed/personas/ai-agent.md` (automation
|
|
152
|
+
readiness) and `critical-challenger.md` (adversarial review) for
|
|
153
|
+
canonical structure.
|
|
@@ -156,6 +156,26 @@ After writing, verify:
|
|
|
156
156
|
- READMEs for packages consumed by others need install/usage focus, not internal dev workflow
|
|
157
157
|
- The model forgets to validate commands against `Taskfile.yml` / `Makefile` / `package.json scripts`
|
|
158
158
|
|
|
159
|
+
## Frugality Standards
|
|
160
|
+
|
|
161
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
162
|
+
to every README you author.
|
|
163
|
+
|
|
164
|
+
**Examples in this artifact:**
|
|
165
|
+
- Per the charter's default-terse rule, the README opens with one
|
|
166
|
+
sentence stating what the project is.
|
|
167
|
+
- Per the cite-don't-restate principle, "Installation" links to the
|
|
168
|
+
canonical install script, not its full contents.
|
|
169
|
+
- Per the cheap-question check, "Quick start vs. full guide" is
|
|
170
|
+
offered only when the two paths produce different artifacts.
|
|
171
|
+
|
|
172
|
+
**Pre-save self-check:**
|
|
173
|
+
1. Does the opening paragraph carry marketing adjectives ("modern",
|
|
174
|
+
"comprehensive", "powerful")?
|
|
175
|
+
2. Are setup steps narrated instead of bulleted commands?
|
|
176
|
+
3. Are screenshots / GIFs present without explicit user request?
|
|
177
|
+
4. Is content duplicated from `AGENTS.md` rather than linked?
|
|
178
|
+
|
|
159
179
|
## Do NOT
|
|
160
180
|
|
|
161
181
|
- Do NOT invent features, setup steps, or commands not found in the repo
|
|
@@ -177,6 +177,25 @@ README = enough to adopt. Docs = enough to master.
|
|
|
177
177
|
- Existing README may be outdated — verify against actual `composer.json` / source, not old text
|
|
178
178
|
- Model forgets post-install steps (config publish, service provider, env vars)
|
|
179
179
|
|
|
180
|
+
## Frugality Standards
|
|
181
|
+
|
|
182
|
+
Apply the [Frugality Charter](../../contexts/contracts/frugality-charter.md)
|
|
183
|
+
to every package README you author.
|
|
184
|
+
|
|
185
|
+
**Examples in this artifact:**
|
|
186
|
+
- Per the charter's default-terse rule, the package README opens
|
|
187
|
+
with one sentence: what installs, what it does.
|
|
188
|
+
- Per the cite-don't-restate principle, link upstream docs for
|
|
189
|
+
advanced topics; ship the minimal usage example only.
|
|
190
|
+
- Per the post-action summary suppression, no "What's new" block —
|
|
191
|
+
that belongs in `CHANGELOG.md`.
|
|
192
|
+
|
|
193
|
+
**Pre-save self-check:**
|
|
194
|
+
1. Does the opening pitch include marketing adjectives?
|
|
195
|
+
2. Is the minimal usage example over 10 lines when 5 would suffice?
|
|
196
|
+
3. Are CI badges shipped without verifying that they resolve?
|
|
197
|
+
4. Does the doc duplicate CHANGELOG content?
|
|
198
|
+
|
|
180
199
|
## Do NOT
|
|
181
200
|
|
|
182
201
|
- Do NOT invent package capabilities or compatibility
|