@event4u/agent-config 1.20.0 → 1.22.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 (268) hide show
  1. package/.agent-src/commands/agents.md +1 -1
  2. package/.agent-src/commands/bug-fix.md +2 -1
  3. package/.agent-src/commands/bug-investigate.md +3 -2
  4. package/.agent-src/commands/challenge-me/vision.md +348 -0
  5. package/.agent-src/commands/challenge-me/with-docs.md +333 -0
  6. package/.agent-src/commands/challenge-me.md +61 -0
  7. package/.agent-src/commands/chat-history/import.md +60 -64
  8. package/.agent-src/commands/compress.md +12 -0
  9. package/.agent-src/commands/context/create.md +2 -2
  10. package/.agent-src/commands/context.md +1 -1
  11. package/.agent-src/commands/copilot-agents.md +1 -1
  12. package/.agent-src/commands/council/default.md +69 -10
  13. package/.agent-src/commands/council.md +1 -1
  14. package/.agent-src/commands/create-pr.md +7 -3
  15. package/.agent-src/commands/e2e-heal.md +1 -1
  16. package/.agent-src/commands/e2e-plan.md +1 -1
  17. package/.agent-src/commands/feature/dev.md +3 -3
  18. package/.agent-src/commands/feature.md +1 -1
  19. package/.agent-src/commands/fix/seeder.md +2 -2
  20. package/.agent-src/commands/fix.md +1 -1
  21. package/.agent-src/commands/grill-me.md +38 -0
  22. package/.agent-src/commands/jira-ticket.md +1 -1
  23. package/.agent-src/commands/judge/steps.md +1 -1
  24. package/.agent-src/commands/judge.md +2 -2
  25. package/.agent-src/commands/memory.md +1 -1
  26. package/.agent-src/commands/mode.md +5 -5
  27. package/.agent-src/commands/module.md +1 -1
  28. package/.agent-src/commands/onboard.md +4 -4
  29. package/.agent-src/commands/optimize/augmentignore.md +1 -1
  30. package/.agent-src/commands/optimize-prompt.md +61 -0
  31. package/.agent-src/commands/optimize.md +1 -1
  32. package/.agent-src/commands/override.md +1 -1
  33. package/.agent-src/commands/review-changes.md +1 -1
  34. package/.agent-src/commands/review-routing.md +1 -1
  35. package/.agent-src/commands/roadmap/ai-council.md +183 -0
  36. package/.agent-src/commands/roadmap/create.md +6 -1
  37. package/.agent-src/commands/roadmap/process-full.md +58 -0
  38. package/.agent-src/commands/roadmap/process-phase.md +69 -0
  39. package/.agent-src/commands/roadmap/process-step.md +57 -0
  40. package/.agent-src/commands/roadmap.md +45 -17
  41. package/.agent-src/commands/set-cost-profile.md +3 -3
  42. package/.agent-src/commands/sync-agent-settings.md +2 -2
  43. package/.agent-src/commands/tests/create.md +2 -2
  44. package/.agent-src/commands/tests.md +1 -1
  45. package/.agent-src/commands/threat-model.md +5 -4
  46. package/.agent-src/contexts/augment-infrastructure.md +1 -1
  47. package/.agent-src/contexts/authority/commit-mechanics.md +14 -1
  48. package/.agent-src/contexts/authority/destructive-mechanics.md +14 -1
  49. package/.agent-src/contexts/authority/scope-mechanics.md +5 -0
  50. package/.agent-src/contexts/communication/rules-auto/guidelines-mechanics.md +76 -0
  51. package/.agent-src/contexts/communication/rules-auto/slash-command-routing-policy-mechanics.md +54 -19
  52. package/.agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +98 -0
  53. package/.agent-src/contexts/communication/rules-auto/token-efficiency-mechanics.md +93 -0
  54. package/.agent-src/contexts/communication/rules-auto/user-interaction-mechanics.md +128 -5
  55. package/.agent-src/contexts/execution/autonomy-mechanics.md +44 -0
  56. package/.agent-src/contexts/execution/roadmap-process-loop.md +125 -0
  57. package/.agent-src/contexts/model-recommendations.md +2 -2
  58. package/.agent-src/contexts/override-system.md +1 -1
  59. package/.agent-src/contexts/skills-and-commands.md +1 -1
  60. package/.agent-src/personas/product-owner.md +2 -2
  61. package/.agent-src/personas/qa.md +1 -1
  62. package/.agent-src/rules/agent-authority.md +5 -6
  63. package/.agent-src/rules/agent-docs.md +11 -53
  64. package/.agent-src/rules/analysis-skill-routing.md +10 -40
  65. package/.agent-src/rules/architecture.md +6 -1
  66. package/.agent-src/rules/artifact-drafting-protocol.md +5 -0
  67. package/.agent-src/rules/artifact-engagement-recording.md +23 -59
  68. package/.agent-src/rules/ask-when-uncertain.md +24 -47
  69. package/.agent-src/rules/augment-portability.md +14 -62
  70. package/.agent-src/rules/augment-source-of-truth.md +10 -1
  71. package/.agent-src/rules/autonomous-execution.md +17 -98
  72. package/.agent-src/rules/capture-learnings.md +9 -80
  73. package/.agent-src/rules/cli-output-handling.md +12 -42
  74. package/.agent-src/rules/command-suggestion-policy.md +25 -73
  75. package/.agent-src/rules/commit-conventions.md +9 -58
  76. package/.agent-src/rules/commit-policy.md +16 -47
  77. package/.agent-src/rules/context-hygiene.md +5 -0
  78. package/.agent-src/rules/direct-answers.md +21 -50
  79. package/.agent-src/rules/docker-commands.md +11 -45
  80. package/.agent-src/rules/docs-sync.md +10 -56
  81. package/.agent-src/rules/downstream-changes.md +5 -0
  82. package/.agent-src/rules/e2e-testing.md +9 -44
  83. package/.agent-src/rules/guidelines.md +13 -75
  84. package/.agent-src/rules/improve-before-implement.md +11 -2
  85. package/.agent-src/rules/invite-challenge.md +71 -0
  86. package/.agent-src/rules/language-and-tone.md +41 -106
  87. package/.agent-src/rules/laravel-translations.md +11 -40
  88. package/.agent-src/rules/markdown-safe-codeblocks.md +4 -0
  89. package/.agent-src/rules/minimal-safe-diff.md +4 -0
  90. package/.agent-src/rules/missing-tool-handling.md +4 -0
  91. package/.agent-src/rules/model-recommendation.md +9 -61
  92. package/.agent-src/rules/no-attribution-footers.md +5 -0
  93. package/.agent-src/rules/no-cheap-questions.md +11 -27
  94. package/.agent-src/rules/no-council-references.md +76 -0
  95. package/.agent-src/rules/no-roadmap-references.md +7 -0
  96. package/.agent-src/rules/non-destructive-by-default.md +13 -43
  97. package/.agent-src/rules/onboarding-gate.md +9 -117
  98. package/.agent-src/rules/package-ci-checks.md +10 -37
  99. package/.agent-src/rules/php-coding.md +10 -55
  100. package/.agent-src/rules/preservation-guard.md +9 -0
  101. package/.agent-src/rules/review-routing-awareness.md +9 -97
  102. package/.agent-src/rules/reviewer-awareness.md +8 -83
  103. package/.agent-src/rules/roadmap-progress-sync.md +7 -170
  104. package/.agent-src/rules/role-mode-adherence.md +6 -2
  105. package/.agent-src/rules/rule-type-governance.md +8 -66
  106. package/.agent-src/rules/runtime-safety.md +5 -0
  107. package/.agent-src/rules/scope-control.md +17 -62
  108. package/.agent-src/rules/security-sensitive-stop.md +7 -1
  109. package/.agent-src/rules/size-enforcement.md +6 -1
  110. package/.agent-src/rules/skill-improvement-trigger.md +9 -49
  111. package/.agent-src/rules/skill-quality.md +7 -113
  112. package/.agent-src/rules/slash-command-routing-policy.md +11 -63
  113. package/.agent-src/rules/think-before-action.md +22 -87
  114. package/.agent-src/rules/token-efficiency.md +10 -74
  115. package/.agent-src/rules/token-optimizer-maintenance.md +68 -0
  116. package/.agent-src/rules/tool-safety.md +4 -0
  117. package/.agent-src/rules/ui-audit-gate.md +25 -61
  118. package/.agent-src/rules/upstream-proposal.md +9 -67
  119. package/.agent-src/rules/user-interaction.md +22 -108
  120. package/.agent-src/rules/verify-before-complete.md +1 -1
  121. package/.agent-src/skills/adversarial-review/SKILL.md +1 -0
  122. package/.agent-src/skills/agent-docs-writing/SKILL.md +1 -1
  123. package/.agent-src/skills/ai-council/SKILL.md +197 -8
  124. package/.agent-src/skills/analysis-autonomous-mode/SKILL.md +1 -1
  125. package/.agent-src/skills/analysis-skill-router/SKILL.md +3 -3
  126. package/.agent-src/skills/artisan-commands/SKILL.md +2 -2
  127. package/.agent-src/skills/authz-review/SKILL.md +1 -1
  128. package/.agent-src/skills/aws-infrastructure/SKILL.md +5 -5
  129. package/.agent-src/skills/blast-radius-analyzer/SKILL.md +8 -8
  130. package/.agent-src/skills/bug-analyzer/SKILL.md +6 -5
  131. package/.agent-src/skills/code-refactoring/SKILL.md +4 -4
  132. package/.agent-src/skills/code-review/SKILL.md +2 -2
  133. package/.agent-src/skills/command-writing/SKILL.md +11 -0
  134. package/.agent-src/skills/composer-packages/SKILL.md +2 -2
  135. package/.agent-src/skills/context-authoring/SKILL.md +11 -0
  136. package/.agent-src/skills/context-document/SKILL.md +1 -1
  137. package/.agent-src/skills/copilot-agents-optimization/SKILL.md +23 -0
  138. package/.agent-src/skills/copilot-config/SKILL.md +1 -1
  139. package/.agent-src/skills/dependency-upgrade/SKILL.md +2 -2
  140. package/.agent-src/skills/devcontainer/SKILL.md +2 -2
  141. package/.agent-src/skills/developer-like-execution/SKILL.md +1 -1
  142. package/.agent-src/skills/docker/SKILL.md +1 -1
  143. package/.agent-src/skills/dto-creator/SKILL.md +1 -1
  144. package/.agent-src/skills/estimate-ticket/SKILL.md +2 -2
  145. package/.agent-src/skills/fe-design/SKILL.md +4 -4
  146. package/.agent-src/skills/feature-planning/SKILL.md +5 -5
  147. package/.agent-src/skills/funnel-analysis/SKILL.md +1 -1
  148. package/.agent-src/skills/laravel/SKILL.md +1 -1
  149. package/.agent-src/skills/laravel-notifications/SKILL.md +5 -5
  150. package/.agent-src/skills/laravel-pennant/SKILL.md +1 -1
  151. package/.agent-src/skills/laravel-pulse/SKILL.md +4 -4
  152. package/.agent-src/skills/laravel-reverb/SKILL.md +2 -2
  153. package/.agent-src/skills/laravel-scheduling/SKILL.md +1 -1
  154. package/.agent-src/skills/migration-creator/SKILL.md +7 -7
  155. package/.agent-src/skills/multi-tenancy/SKILL.md +8 -8
  156. package/.agent-src/skills/performance-analysis/SKILL.md +3 -3
  157. package/.agent-src/skills/pest-testing/SKILL.md +6 -6
  158. package/.agent-src/skills/php-service/SKILL.md +2 -2
  159. package/.agent-src/skills/project-analysis-hypothesis-driven/SKILL.md +3 -3
  160. package/.agent-src/skills/project-analysis-react/SKILL.md +1 -1
  161. package/.agent-src/skills/project-analysis-symfony/SKILL.md +1 -1
  162. package/.agent-src/skills/project-analysis-zend-laminas/SKILL.md +2 -2
  163. package/.agent-src/skills/project-analyzer/SKILL.md +4 -4
  164. package/.agent-src/skills/prompt-optimizer/SKILL.md +108 -0
  165. package/.agent-src/skills/readme-reviewer/SKILL.md +1 -1
  166. package/.agent-src/skills/roadmap-management/SKILL.md +7 -7
  167. package/.agent-src/skills/rule-writing/SKILL.md +33 -0
  168. package/.agent-src/skills/sentry-integration/SKILL.md +1 -1
  169. package/.agent-src/skills/skill-writing/SKILL.md +14 -0
  170. package/.agent-src/skills/systematic-debugging/SKILL.md +22 -2
  171. package/.agent-src/skills/technical-specification/SKILL.md +58 -1
  172. package/.agent-src/skills/terraform/SKILL.md +2 -2
  173. package/.agent-src/skills/terragrunt/SKILL.md +8 -8
  174. package/.agent-src/skills/test-performance/SKILL.md +5 -5
  175. package/.agent-src/skills/threat-modeling/SKILL.md +3 -2
  176. package/.agent-src/skills/token-optimizer/SKILL.md +110 -0
  177. package/.agent-src/skills/universal-project-analysis/SKILL.md +1 -1
  178. package/.agent-src/templates/AGENTS.md +1 -1
  179. package/.agent-src/templates/agent-settings.md +35 -19
  180. package/.agent-src/templates/command.md +17 -1
  181. package/.agent-src/templates/contexts/tenant-boundaries.md +2 -2
  182. package/.agent-src/templates/contexts.md +1 -1
  183. package/.agent-src/templates/copilot-instructions.md +21 -0
  184. package/.agent-src/templates/copilot-review-instructions.md +76 -0
  185. package/.agent-src/templates/features.md +1 -1
  186. package/.agent-src/templates/roadmaps.md +10 -2
  187. package/.agent-src/templates/rule.md +129 -0
  188. package/.agent-src/templates/skill.md +17 -0
  189. package/.claude-plugin/marketplace.json +12 -2
  190. package/AGENTS.md +32 -5
  191. package/CHANGELOG.md +107 -3
  192. package/README.md +22 -21
  193. package/config/agent-settings.template.yml +66 -10
  194. package/config/gitignore-block.txt +7 -0
  195. package/docs/architecture.md +86 -5
  196. package/docs/catalog.md +16 -6
  197. package/docs/contracts/agent-memory-contract.md +1 -1
  198. package/docs/contracts/command-clusters.md +45 -1
  199. package/docs/contracts/context-paths.md +2 -1
  200. package/docs/contracts/file-ownership-matrix.json +354 -500
  201. package/docs/contracts/iron-law-overrides.txt +25 -0
  202. package/docs/contracts/kernel-membership.md +273 -0
  203. package/docs/contracts/load-context-schema.md +26 -11
  204. package/docs/contracts/pilot/agent-authority.md +24 -0
  205. package/docs/contracts/pilot/direct-answers.md +70 -0
  206. package/docs/contracts/pilot/language-and-tone.md +63 -0
  207. package/docs/contracts/rule-classification.md +170 -0
  208. package/docs/contracts/rule-router.md +153 -0
  209. package/docs/customization.md +17 -6
  210. package/docs/decisions/ADR-001-kernel-swap-deferred.md +109 -0
  211. package/docs/decisions/ADR-002-kernel-bucket-overrides.md +124 -0
  212. package/docs/decisions/ADR-003-flat-cluster-subs-and-colon-syntax.md +126 -0
  213. package/docs/decisions/ADR-rule-kernel-and-router.md +122 -0
  214. package/docs/getting-started.md +2 -2
  215. package/docs/guidelines/agent-infra/naming.md +1 -1
  216. package/docs/guidelines/agent-infra/roadmap-progress-mechanics.md +176 -0
  217. package/docs/guidelines/agent-infra/rule-type-governance.md +73 -0
  218. package/docs/guidelines/agent-infra/size-and-scope.md +13 -2
  219. package/docs/guidelines/agent-infra/skill-quality-checklist.md +119 -0
  220. package/docs/guidelines/augment-portability-patterns.md +68 -0
  221. package/docs/guidelines/php/php-coding-patterns.md +62 -0
  222. package/package.json +1 -1
  223. package/scripts/_p43_bodies.py +235 -0
  224. package/scripts/_p43_compress.py +118 -0
  225. package/scripts/_p4_migrate.py +199 -0
  226. package/scripts/_phase2_shim_helper.py +1 -1
  227. package/scripts/_pilot_council_question.py +57 -0
  228. package/scripts/_pilot_measure.py +53 -0
  229. package/scripts/ai_council/session.py +107 -5
  230. package/scripts/build_linear_digest.py +3 -5
  231. package/scripts/check_always_budget.py +39 -6
  232. package/scripts/check_compressed_paths.py +213 -0
  233. package/scripts/check_compression.py +15 -0
  234. package/scripts/check_context_paths.py +1 -0
  235. package/scripts/check_council_layout.py +105 -0
  236. package/scripts/check_council_references.py +145 -0
  237. package/scripts/check_portability.py +2 -0
  238. package/scripts/check_references.py +2 -0
  239. package/scripts/check_token_optimizer_freshness.py +131 -0
  240. package/scripts/compile_router.py +148 -0
  241. package/scripts/compress.py +219 -11
  242. package/scripts/council_cli.py +132 -11
  243. package/scripts/council_prune.py +81 -0
  244. package/scripts/count_token_optimizer_usage.sh +54 -0
  245. package/scripts/install.sh +44 -2
  246. package/scripts/iron_law_sha.py +98 -0
  247. package/scripts/lint_load_context.py +35 -5
  248. package/scripts/measure_rule_budget.py +314 -0
  249. package/scripts/migrate_command_suggestions.py +2 -2
  250. package/scripts/prototype_lint_contradictions.py +150 -0
  251. package/scripts/schemas/command.schema.json +5 -0
  252. package/scripts/schemas/rule.schema.json +60 -6
  253. package/scripts/schemas/skill.schema.json +5 -0
  254. package/scripts/skill_linter.py +197 -7
  255. package/scripts/smoke_path_resolution.py +93 -0
  256. package/scripts/validate_frontmatter.py +41 -1
  257. package/.agent-src/commands/roadmap/execute.md +0 -109
  258. package/.agent-src/contexts/communication/rules-auto/artifact-engagement-recording-mechanics.md +0 -72
  259. package/.agent-src/contexts/communication/rules-auto/augment-portability-mechanics.md +0 -79
  260. package/.agent-src/contexts/communication/rules-auto/cli-output-handling-mechanics.md +0 -87
  261. package/.agent-src/contexts/communication/rules-auto/command-suggestion-policy-mechanics.md +0 -62
  262. package/.agent-src/contexts/communication/rules-auto/docs-sync-mechanics.md +0 -78
  263. package/.agent-src/contexts/communication/rules-auto/package-ci-checks-mechanics.md +0 -85
  264. package/.agent-src/contexts/communication/rules-auto/review-routing-awareness-mechanics.md +0 -65
  265. package/.agent-src/contexts/communication/rules-auto/roadmap-progress-sync-mechanics.md +0 -78
  266. package/.agent-src/contexts/communication/rules-auto/ui-audit-gate-mechanics.md +0 -53
  267. /package/{docs → .agent-src/contexts}/contracts/artifact-engagement-flow.md +0 -0
  268. /package/{docs → .agent-src/contexts}/contracts/command-suggestion-flow.md +0 -0
@@ -30,11 +30,34 @@ The user invoked `/council default` on exactly one input mode:
30
30
  Optional invocation flag: `mode:api|manual` overrides the per-member
31
31
  and global mode for this call only (see Step 2.5).
32
32
 
33
- Optional **rounds**: `rounds:N` (1-3) enables multi-round debate. Round
34
- 1 sees the artefact alone. Round 2+ sees the artefact plus anonymised
35
- critiques from the previous round (provider/model identity stripped).
36
- Total spend = N × single-round cost; surface this in the cost gate.
37
- Default `rounds:1`.
33
+ Optional **rounds**: `rounds:N` (1-3) overrides the multi-round
34
+ debate count. Round 1 sees the artefact alone. Round 2+ sees the
35
+ artefact plus anonymised critiques from the previous round
36
+ (provider/model identity stripped). Total spend = N × single-round
37
+ cost; surface this in the cost gate.
38
+
39
+ Optional **depth**: `depth:deep` raises the round floor to
40
+ `ai_council.deep_min_rounds` (default `3`, max'd with `min_rounds`)
41
+ for architecture, refactoring, or bug-diagnosis artefacts. Set
42
+ explicitly by the user, or derived from `council_depth: deep`
43
+ declared in the frontmatter of the active rule, skill, or command —
44
+ the host translates that to `--depth deep` on the CLI. If multiple
45
+ active artefacts disagree, **deep wins** (max policy). Explicit
46
+ `rounds:N` overrides depth.
47
+
48
+ The default comes from `ai_council.min_rounds` in
49
+ `.agent-settings.yml` (default `2` so members critique each other at
50
+ least once before convergence). **Do NOT ask the user "how many
51
+ rounds?"** when `rounds:N` is unset or `N <= min_rounds` — proceed
52
+ with the settings default. Ask only when the artefact is genuinely
53
+ complex and you want more depth than `min_rounds` provides; surface
54
+ the proposal as a numbered choice (per `ask-when-uncertain`) with
55
+ the cost delta.
56
+
57
+ Resolution chain (highest priority first):
58
+ 1. `rounds:N` / `--rounds N` — explicit user override.
59
+ 2. `depth:deep` / `--depth deep` — floors at `max(deep_min_rounds, min_rounds)`.
60
+ 3. `ai_council.min_rounds` — default.
38
61
 
39
62
  Optional **mode_override**: `mode_override=pr|design|optimize` swaps
40
63
  the system-prompt addendum for one of the specialised lenses
@@ -129,10 +152,23 @@ Once the user picks `1`, invoke the same arguments with `run` plus
129
152
  --output agents/council-sessions/<UTC-timestamp>.json \
130
153
  --confirm \
131
154
  [--rounds 1|2|3] \
155
+ [--depth standard|deep] \
132
156
  [--input-mode …] [--max-tokens …] [--mode-override …] \
133
157
  [--original-ask "<framing sentence>"]
134
158
  ```
135
159
 
160
+ `--rounds` defaults to `ai_council.min_rounds` from
161
+ `.agent-settings.yml` (or `2` if unset). Pass `--rounds N` only when
162
+ the user explicitly asked for a different count or a complex
163
+ artefact justifies more depth — do not pass `--rounds 1` to "save
164
+ money" by default; the settings owner already chose `min_rounds`.
165
+
166
+ `--depth` defaults to `standard`. Set `--depth deep` when the
167
+ active rule, skill, or command declares `council_depth: deep` in
168
+ its frontmatter; the floor becomes
169
+ `max(ai_council.deep_min_rounds, ai_council.min_rounds)` (default
170
+ `3`). If `--rounds N` is also passed, `--rounds` wins.
171
+
136
172
  The CLI:
137
173
 
138
174
  - bundles the artefact via `scripts.ai_council.bundler` (redaction +
@@ -157,12 +193,35 @@ the **Convergence / Divergence** section yourself:
157
193
  - **Agreements** — points all members made (or did not contradict).
158
194
  - **Disagreements** — points where members took opposing positions.
159
195
  - **Unique insights** — points raised by exactly one member.
160
- - **Suggested next actions** — translated into concrete options for
161
- the user.
162
196
 
163
- End with a numbered-options block asking the user how to proceed
164
- (e.g. update the roadmap, request a second round, ignore the
165
- critique).
197
+ ### 5a. Apply the critical-evaluation lens
198
+
199
+ Before turning findings into options, run every finding through the
200
+ *Critical evaluation* checklist from the
201
+ [`ai-council` skill](../../skills/ai-council/SKILL.md#critical-evaluation--convener-skeptic-stance):
202
+ codebase fit · locked-decision conflict · already addressed · cost
203
+ / benefit · hallucination. Cite host evidence (file:line, ADR,
204
+ contract) for each verdict.
205
+
206
+ Render a **Host verdict** table after `Convergence / Divergence`:
207
+
208
+ | # | Finding (one-line) | Member(s) | Verdict | Reason (host evidence) |
209
+ |---|---|---|---|---|
210
+ | 1 | … | sonnet, gpt-4o | `accept` | matches `path/to/file.py:42` |
211
+ | 2 | … | sonnet | `accept-with-modification` | scope creep — narrow to module X |
212
+ | 3 | … | gpt-4o | `reject` | contradicts ADR `docs/decisions/foo.md` |
213
+ | 4 | … | sonnet | `needs-input` | ambiguous — open question for user |
214
+
215
+ The host is the convener **and** the skeptic — never paraphrase
216
+ council output as host reasoning, and never auto-promote convergence
217
+ to correctness.
218
+
219
+ ### 5b. Translate verdicts into user options
220
+
221
+ End with a numbered-options block carrying the host verdict per
222
+ finding (e.g. `1. [accept] Apply finding 1 — <patch summary>`,
223
+ `2. [reject] Skip finding 2 — <reason>` — user can override). Always
224
+ include "discard council input" as an option.
166
225
 
167
226
  ### 6. Hard floor — text only
168
227
 
@@ -26,7 +26,7 @@ sub-command swaps the mode-specific addendum.
26
26
  | `/council optimize` | `commands/council/optimize.md` | Run the council on an optimization target — ranked, evidence-based suggestions |
27
27
 
28
28
  Sub-command names match the locked contract in
29
- [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
29
+ [`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
30
30
 
31
31
  ## Dispatch
32
32
 
@@ -45,14 +45,18 @@ Uses `/create-pr:description-only` to generate the PR content, then creates the
45
45
 
46
46
  ### 2. Generate PR content
47
47
 
48
- Run `/create-pr:description-only` to generate the PR title and body.
48
+ Run `/create-pr:description-only` Steps 1–4 to generate the PR title and body.
49
49
  This handles: Jira ticket extraction, diff analysis, commit messages, **PR template filling**.
50
50
 
51
51
  **CRITICAL**: The PR body MUST use the project's PR template (`.github/pull_request_template.md`).
52
52
  Read the template file and fill in its sections. If the template does not exist, use the
53
53
  fallback structure defined in `/create-pr:description-only`. NEVER invent a custom body structure.
54
54
 
55
- The user reviews and adjusts the content in that step.
55
+ **Preview gate** read `commands.create_pr.preview_description` from
56
+ `.agent-settings.yml` (default `false` when unset):
57
+
58
+ - `false` (default): skip Steps 5–6 of `/create-pr:description-only` (preview + adjust loop). Use the generated title and body directly in Step 3. Saves tokens; user can still edit in the GitHub UI after creation.
59
+ - `true`: run Steps 5–6 — present title and body as copyable blocks and ask for adjustments before proceeding.
56
60
 
57
61
  ### 2b. Offer council review (B2 hook)
58
62
 
@@ -137,7 +141,7 @@ If a Jira ticket was linked, ask:
137
141
  ### Rules
138
142
 
139
143
  - **Always use the PR template** from `.github/pull_request_template.md` — read it, fill its sections.
140
- - **Always show the PR content before creating it**never create blindly.
144
+ - **Preview before creating is opt-in** — controlled by `commands.create_pr.preview_description` in `.agent-settings.yml` (default `false`). When `false`, bare `/create-pr` uses the generated description directly without a chat preview to save tokens. When `true`, title and body are previewed and the user can adjust before creation. `/create-pr:description-only` always previews that is its sole purpose.
141
145
  - **Push the branch first** if it hasn't been pushed (with user permission).
142
146
  - **Never add attribution footers** — see [`no-attribution-footers`](../rules/no-attribution-footers.md). Strip-pass in 4a defends against tool-injected footers.
143
147
  - Only create the PR — never merge it.
@@ -21,7 +21,7 @@ suggestion:
21
21
  > 2. Fix a specific test file — which one?
22
22
  > 3. Fix tests that failed in CI — provide the CI run URL or error output
23
23
 
24
- - Read the Playwright guideline: `../../docs/guidelines/e2e/playwright.md`
24
+ - Read the Playwright guideline: `../docs/guidelines/e2e/playwright.md`
25
25
 
26
26
  ### 2. Run failing tests
27
27
 
@@ -21,7 +21,7 @@ suggestion:
21
21
  > 2. Which feature area? (e.g., "checkout flow", "user settings", or "all visible flows")
22
22
  > 3. Is there an existing seed/setup file? (e.g., `tests/e2e/fixtures/auth.ts`)
23
23
 
24
- - Read the Playwright guideline: `../../docs/guidelines/e2e/playwright.md`
24
+ - Read the Playwright guideline: `../docs/guidelines/e2e/playwright.md`
25
25
  - Check for existing test plans in `specs/` or `tests/e2e/specs/`.
26
26
 
27
27
  ### 2. Explore the application
@@ -78,15 +78,15 @@ Do NOT use for single-line fixes, trivial changes, or urgent hotfixes.
78
78
  ### Phase 5: Implementation
79
79
 
80
80
  1. **Wait for explicit approval** before writing code.
81
- 2. Create a task list with all implementation steps.
81
+ 2. Create a task list with all impl steps.
82
82
  3. Follow chosen architecture from Phase 4.
83
83
  4. Follow codebase conventions strictly (read guidelines).
84
84
  5. Update task list as progress is made.
85
- 6. Write tests alongside the implementation.
85
+ 6. Write tests alongside the impl.
86
86
 
87
87
  ### Phase 6: Quality Review
88
88
 
89
- 1. Review the implementation for:
89
+ 1. Review the impl for:
90
90
  - **Simplicity & DRY** — is the code as simple as possible?
91
91
  - **Correctness** — are there logic errors or missing edge cases?
92
92
  - **Conventions** — does it follow project patterns?
@@ -27,7 +27,7 @@ commands with a single entry point + sub-command dispatch.
27
27
  ## Workflow ordering
28
28
 
29
29
  Typical sequence: `explore` → `plan` → `roadmap` → `dev` (or per-step
30
- implementation). Use `refactor` whenever an existing plan needs an update.
30
+ impl). Use `refactor` whenever an existing plan needs an update.
31
31
 
32
32
  ## Dispatch
33
33
 
@@ -63,9 +63,9 @@ where the seeder class is NOT the owner of the data file.
63
63
 
64
64
  ### Known Exceptions
65
65
 
66
- Currently there are **no exceptions**. All circular dependencies have been resolved.
66
+ Currently there are **no exceptions**. All circular deps have been resolved.
67
67
 
68
- **Pattern for resolving circular dependencies:** Use two-phase seeding. The data file seeds
68
+ **Pattern for resolving circular deps:** Use two-phase seeding. The data file seeds
69
69
  records with placeholder values (e.g., empty arrays). The Seeder's `run()` method then updates
70
70
  records with the real values using `getReference()`. Since `run()` is called after all seeders
71
71
  are initialized, the circular dependency is broken.
@@ -27,7 +27,7 @@ with a single entry point + sub-command dispatch.
27
27
  | `/fix pr-developers` | `commands/fix/pr-developers.md` | Fix and reply to **human** reviewer comments only |
28
28
 
29
29
  Sub-command names match the locked contract in
30
- [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
30
+ [`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
31
31
 
32
32
  ## Dispatch
33
33
 
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: grill-me
3
+ description: Alias for /challenge-me — interactive grill-style interview that sharpens a fuzzy plan/idea into a copyable Markdown pitch
4
+ cluster: challenge-me
5
+ disable-model-invocation: true
6
+ suggestion:
7
+ eligible: true
8
+ trigger_description: "grill me, grill me on this, grill me on this plan, grill me through this, grill me on the idea, grill me until it's clear, grill me hard"
9
+ trigger_context: "user has a fuzzy plan/idea/feature draft and wants it sharpened interactively rather than reconstructed in one shot"
10
+ ---
11
+
12
+ # /grill-me
13
+
14
+ Alias for [`/challenge-me`](challenge-me.md). Identical behaviour,
15
+ sub-commands (`vision`, `with-docs`), and in-interview triggers
16
+ (`!pitch`, `!roadmap`, `!ai`).
17
+
18
+ ## Sub-commands
19
+
20
+ | Sub-command | Routes to | Purpose |
21
+ |---|---|---|
22
+ | `/grill-me vision` | `commands/challenge-me/vision.md` | 95%-confidence interview, emits a vision pitch |
23
+ | `/grill-me with-docs` | `commands/challenge-me/with-docs.md` | Same flow plus glossary + claim-vs-code check vs `CONTEXT.md` / ADRs |
24
+
25
+ ## Dispatch
26
+
27
+ 1. Parse: `/grill-me <sub-command> [flags] [seed]`.
28
+ 2. Load [`commands/challenge-me.md`](challenge-me.md) and follow its
29
+ `## Dispatch` verbatim with the same sub-command + flags + seed.
30
+ 3. Unknown / missing sub-command → print menu from `challenge-me.md`.
31
+
32
+ ## Rules
33
+
34
+ - Thin alias — all behaviour, triggers, cost-gate, file-write rules
35
+ live in [`challenge-me.md`](challenge-me.md) and the routed sub-commands.
36
+ Do not duplicate them here; edit them there.
37
+ - Suggestion engine surfaces this for free-form "grill me" prompts;
38
+ `/grill-me` is the direct invocation path.
@@ -72,4 +72,4 @@ suggestion:
72
72
 
73
73
  ## See also
74
74
 
75
- - [`role-contracts`](../../docs/guidelines/agent-infra/role-contracts.md#developer) — Developer mode output contract (Goal / Plan / Changes / Tests / Open questions)
75
+ - [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md#developer) — Developer mode output contract (Goal / Plan / Changes / Tests / Open questions)
@@ -7,7 +7,7 @@ description: Execute an ordered plan step by step with a judge gate between step
7
7
  disable-model-invocation: true
8
8
  suggestion:
9
9
  eligible: false
10
- rationale: "Subagent orchestration — overlaps /work and /roadmap-execute; keep explicit."
10
+ rationale: "Subagent orchestration — overlaps /work and /roadmap:process-*; keep explicit."
11
11
  ---
12
12
 
13
13
  # /judge steps
@@ -23,7 +23,7 @@ commands with a single entry point + sub-command dispatch.
23
23
  | `/judge steps` | `commands/judge/steps.md` | Execute an ordered plan step by step, judge gate between steps |
24
24
 
25
25
  Sub-command names match the locked contract in
26
- [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
26
+ [`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
27
27
  The standalone reviewer surface lives at [`/review`](review-changes.md).
28
28
 
29
29
  ## Dispatch
@@ -51,4 +51,4 @@ The standalone reviewer surface lives at [`/review`](review-changes.md).
51
51
 
52
52
  - [`subagent-orchestration`](../skills/subagent-orchestration/SKILL.md)
53
53
  - [`/review`](review-changes.md) — human-oriented self-review (Reviewer-mode contract)
54
- - [`role-contracts`](../../docs/guidelines/agent-infra/role-contracts.md#reviewer)
54
+ - [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md#reviewer)
@@ -24,7 +24,7 @@ commands with a single entry point + sub-command dispatch.
24
24
  | `/memory propose` | `commands/memory/propose.md` | Append a provisional signal to the intake stream |
25
25
 
26
26
  Sub-command names match the locked contract in
27
- [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
27
+ [`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
28
28
 
29
29
  ## Dispatch
30
30
 
@@ -11,7 +11,7 @@ suggestion:
11
11
 
12
12
  Sets `roles.active_role` in `.agent-settings.yml` and surfaces the active
13
13
  contract before any work. Six modes are defined in
14
- [`role-contracts`](../../docs/guidelines/agent-infra/role-contracts.md):
14
+ [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md):
15
15
 
16
16
  - `developer` · `reviewer` · `tester` · `po` · `incident` · `planner`
17
17
 
@@ -37,7 +37,7 @@ Anything else: refuse. List the valid values and stop.
37
37
 
38
38
  ### 2. Validate the mode name
39
39
 
40
- Read [`role-contracts.md`](../../docs/guidelines/agent-infra/role-contracts.md).
40
+ Read [`role-contracts.md`](../docs/guidelines/agent-infra/role-contracts.md).
41
41
  Extract H3 headings under `## Contract skeletons` and lowercase them.
42
42
  If `<name>` is not in that set, refuse and print the valid list.
43
43
 
@@ -62,7 +62,7 @@ exactly what the contract demands.
62
62
  ### 5. Write the active role
63
63
 
64
64
  Update `roles.active_role` in `.agent-settings.yml` using the
65
- [section-aware merge rules](../../docs/guidelines/agent-infra/layered-settings.md#section-aware-merge-rules)
65
+ [section-aware merge rules](../docs/guidelines/agent-infra/layered-settings.md#section-aware-merge-rules)
66
66
  (preserve comments, preserve key order, touch only the changed field).
67
67
 
68
68
  For `/mode none`: set `active_role: ""`.
@@ -118,7 +118,7 @@ For `/mode` (status only):
118
118
 
119
119
  ## See also
120
120
 
121
- - [`role-contracts`](../../docs/guidelines/agent-infra/role-contracts.md) — the six modes
121
+ - [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md) — the six modes
122
122
  - [`role-mode-adherence`](../rules/role-mode-adherence.md) — closing-output gate
123
- - [`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md) — merge rules for settings edits
123
+ - [`layered-settings`](../docs/guidelines/agent-infra/layered-settings.md) — merge rules for settings edits
124
124
  - [`ask-when-uncertain`](../rules/ask-when-uncertain.md) — never invent modes
@@ -22,7 +22,7 @@ commands with a single entry point + sub-command dispatch.
22
22
  | `/module explore` | `commands/module/explore.md` | Load a module's structure, docs, and context into the conversation |
23
23
 
24
24
  Sub-command names match the locked contract in
25
- [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
25
+ [`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
26
26
 
27
27
  ## Dispatch
28
28
 
@@ -25,7 +25,7 @@ Triggered by the [`onboarding-gate`](../rules/onboarding-gate.md) rule when
25
25
  - Change cost profile only → [`/set-cost-profile`](set-cost-profile.md).
26
26
  - Single-value edit → ask the agent to change it, or edit
27
27
  `.agent-settings.yml` directly. The agent follows the merge rules in
28
- [`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md).
28
+ [`layered-settings`](../docs/guidelines/agent-infra/layered-settings.md).
29
29
 
30
30
  ## Preconditions
31
31
 
@@ -134,7 +134,7 @@ template — `minimal` + `skill_improvement: true`):
134
134
 
135
135
  Write `onboarding.onboarded: true` to `.agent-settings.yml` using the
136
136
  section-aware merge rules from
137
- [`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md#section-aware-merge-rules)
137
+ [`layered-settings`](../docs/guidelines/agent-infra/layered-settings.md#section-aware-merge-rules)
138
138
  (preserve comments, key order, touch only the changed fields).
139
139
 
140
140
  ### 8. Summary
@@ -174,7 +174,7 @@ and stays off unless explicitly enabled.
174
174
 
175
175
  The log is local-only JSONL — nothing uploaded, nothing shared across
176
176
  projects. Reports: ./agent-config telemetry:report
177
- Contract + privacy floor: docs/contracts/artifact-engagement-flow.md
177
+ Contract + privacy floor: .augment/contexts/contracts/artifact-engagement-flow.md
178
178
  ```
179
179
 
180
180
  Skip this block in cloud surfaces (no settings file, no log path).
@@ -200,5 +200,5 @@ local-agent concern; the cloud agent should proceed without invoking it.
200
200
 
201
201
  - [`onboarding-gate`](../rules/onboarding-gate.md) — rule that triggers this command
202
202
  - [`set-cost-profile`](set-cost-profile.md) — isolated profile change
203
- - [`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md) — merge rules for mid-life edits
203
+ - [`layered-settings`](../docs/guidelines/agent-infra/layered-settings.md) — merge rules for mid-life edits
204
204
  - [`agent-settings` template](../templates/agent-settings.md) — settings reference
@@ -261,7 +261,7 @@ echo "Rules ignored: $rules_count"
261
261
  - **Lock files are always ignored** — they're huge and provide zero code insight.
262
262
  - **IDE helpers are always ignored** — generated, 20k+ lines, stale quickly.
263
263
  - **When in doubt, ignore files** — false positive is easy to fix, false negative wastes tokens silently.
264
- - **When in doubt, keep skills** — ignoring a needed skill causes bad output, keeping an unneeded one just wastes ~3 lines.
264
+ - **When in doubt, keep skills** — ignoring a needed skill bad output, keeping an unneeded one just wastes ~3 lines.
265
265
  - **Never ignore always-active rules** — only auto-loaded rules (those with `description` frontmatter) may be ignored.
266
266
  - **Never ignore meta/agent-system skills** — `agent-docs-writing-writing`, `commands`, `context-create`, `override-management`, `guidelines`, `project-docs`, `roadmap-management`, `naming`, `skill-reviewer`, `file-editor`, `copilot-config`, `copilot-agents-optimization`.
267
267
  - **Restore previously ignored skills** when the stack changes (e.g., Vue added to project → restore `vue` skill).
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: optimize-prompt
3
+ cluster: optimize
4
+ description: "Optimize a raw prompt for ChatGPT, Claude, Gemini, or another AI via the 4-D methodology — BASIC vs DETAIL auto-detect, one clarifying question per turn, returns the polished prompt."
5
+ disable-model-invocation: true
6
+ skills: [prompt-optimizer]
7
+ suggestion:
8
+ eligible: true
9
+ trigger_description: "optimize this prompt, make it better for ChatGPT, rewrite for Claude, sharpen this AI prompt"
10
+ trigger_context: "user pastes a rough prompt or names a target AI and asks for it to be improved"
11
+ ---
12
+
13
+ # /optimize-prompt
14
+
15
+ Entry point for the [`prompt-optimizer`](../skills/prompt-optimizer/SKILL.md) skill (persona: **Lyra**). Use when the user wants a polished prompt to paste into an external AI — not when they want the answer that prompt would produce.
16
+
17
+ ## Welcome
18
+
19
+ On the first turn (or whenever the user invokes `/optimize-prompt` with no prompt body), respond with:
20
+
21
+ ```
22
+ Hi! I'm Lyra, your AI prompt optimizer.
23
+
24
+ Tell me:
25
+ 1. Your target AI — ChatGPT · Claude · Gemini · Perplexity · Other
26
+ 2. Your prompt style — DETAIL (I'll ask one question at a time first) or BASIC (I'll apply smart defaults and return the optimized prompt immediately)
27
+
28
+ Examples
29
+ - "DETAIL using ChatGPT — write me a marketing email"
30
+ - "BASIC using Claude — help with my resume"
31
+
32
+ Or just paste your rough prompt — I'll auto-detect the mode and announce it.
33
+ ```
34
+
35
+ Render the welcome **once** per session. If the user invokes `/optimize-prompt <prompt>` directly, skip the welcome and run the skill.
36
+
37
+ ## Instructions
38
+
39
+ ### 1. Parse input
40
+
41
+ Three input shapes:
42
+
43
+ 1. `/optimize-prompt` (no body) → render welcome, wait.
44
+ 2. `/optimize-prompt <prompt>` → load the skill, run mode auto-detect, proceed.
45
+ 3. `/optimize-prompt DETAIL|BASIC [using <AI>] — <prompt>` → load the skill, honor the explicit mode + target AI, proceed.
46
+
47
+ ### 2. Delegate to the skill
48
+
49
+ Load [`prompt-optimizer`](../skills/prompt-optimizer/SKILL.md) and follow its `## Procedure` verbatim. The skill owns mode detection, the 4-D methodology, the output format, and gotchas.
50
+
51
+ ### 3. Hand back
52
+
53
+ After the optimized prompt is delivered, end the turn. Do **not** propose to also execute the optimized prompt. Do **not** offer to commit, push, or save the result to a file — this is conversational output the user copies elsewhere.
54
+
55
+ ## Rules
56
+
57
+ - **One question per turn** — DETAIL mode iterates; never batch clarifications (`ask-when-uncertain`).
58
+ - **No auto-execution** — produce the prompt, not the answer it would generate, unless the user explicitly asks for both.
59
+ - **No file writes** — the skill is conversational; no commits, no roadmap edits, no `agents/` writes.
60
+ - **Welcome once** — don't re-render the welcome on every turn within the same session.
61
+ - **Mirror the user's language** — the optimized prompt body uses the language the user wrote in; the skill's own scaffolding (mode announcement, "what changed" labels) stays English when the user is in English, German when they're in German (`language-and-tone` Iron Law).
@@ -24,7 +24,7 @@ commands with a single entry point + sub-command dispatch.
24
24
  | `/optimize rtk` | `commands/optimize/rtk.md` | Create or refine project-local rtk filters |
25
25
 
26
26
  Sub-command names match the locked contract in
27
- [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
27
+ [`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
28
28
 
29
29
  ## Dispatch
30
30
 
@@ -22,7 +22,7 @@ commands with a single entry point + sub-command dispatch.
22
22
  | `/override manage` | `commands/override/manage.md` | Review, update, and refactor existing overrides |
23
23
 
24
24
  Sub-command names match the locked contract in
25
- [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
25
+ [`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
26
26
 
27
27
  ## Dispatch
28
28
 
@@ -175,7 +175,7 @@ or the equivalent configured command).
175
175
  - [`/do-and-judge`](do-and-judge.md) — implementer + judge loop for a single change
176
176
  - [`/judge`](judge.md) — standalone judge, no review-changes dispatch
177
177
  - [`code-review`](../skills/code-review/SKILL.md) — human-oriented review patterns (tone, feedback handling)
178
- - [`role-contracts`](../../docs/guidelines/agent-infra/role-contracts.md#reviewer) — Reviewer mode output contract (Summary / Risks / Findings / Required actions / Verdict)
178
+ - [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md#reviewer) — Reviewer mode output contract (Summary / Risks / Findings / Required actions / Verdict)
179
179
 
180
180
  ## References
181
181
 
@@ -107,7 +107,7 @@ After the block, ask:
107
107
  - [`reviewer-awareness`](../rules/reviewer-awareness.md) — role vocabulary
108
108
  - [`review-routing-awareness`](../rules/review-routing-awareness.md) —
109
109
  data-source rules
110
- - [`review-routing-data-format`](../../docs/guidelines/agent-infra/review-routing-data-format.md)
110
+ - [`review-routing-data-format`](../docs/guidelines/agent-infra/review-routing-data-format.md)
111
111
  — YAML schemas
112
112
  - [`create-pr-description`](../skills/create-pr-description/SKILL.md) —
113
113
  consumes the routing block