@event4u/agent-config 1.20.0 → 1.21.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.md +1 -1
- package/.agent-src/commands/bug-fix.md +1 -1
- package/.agent-src/commands/bug-investigate.md +2 -2
- package/.agent-src/commands/chat-history/import.md +60 -64
- package/.agent-src/commands/compress.md +12 -0
- package/.agent-src/commands/context/create.md +2 -2
- package/.agent-src/commands/context.md +1 -1
- package/.agent-src/commands/copilot-agents.md +1 -1
- package/.agent-src/commands/council/default.md +17 -5
- package/.agent-src/commands/council.md +1 -1
- package/.agent-src/commands/e2e-heal.md +1 -1
- package/.agent-src/commands/e2e-plan.md +1 -1
- package/.agent-src/commands/feature/dev.md +3 -3
- package/.agent-src/commands/feature.md +1 -1
- package/.agent-src/commands/fix/seeder.md +2 -2
- package/.agent-src/commands/fix.md +1 -1
- package/.agent-src/commands/jira-ticket.md +1 -1
- package/.agent-src/commands/judge.md +2 -2
- package/.agent-src/commands/memory.md +1 -1
- package/.agent-src/commands/mode.md +5 -5
- package/.agent-src/commands/module.md +1 -1
- package/.agent-src/commands/onboard.md +4 -4
- package/.agent-src/commands/optimize/augmentignore.md +1 -1
- package/.agent-src/commands/optimize-prompt.md +61 -0
- package/.agent-src/commands/optimize.md +1 -1
- package/.agent-src/commands/override.md +1 -1
- package/.agent-src/commands/review-changes.md +1 -1
- package/.agent-src/commands/review-routing.md +1 -1
- package/.agent-src/commands/roadmap.md +1 -1
- package/.agent-src/commands/set-cost-profile.md +3 -3
- package/.agent-src/commands/sync-agent-settings.md +2 -2
- package/.agent-src/commands/tests/create.md +2 -2
- package/.agent-src/commands/tests.md +1 -1
- package/.agent-src/commands/threat-model.md +4 -4
- package/.agent-src/contexts/authority/commit-mechanics.md +14 -1
- package/.agent-src/contexts/authority/destructive-mechanics.md +14 -1
- package/.agent-src/contexts/authority/scope-mechanics.md +5 -0
- package/.agent-src/contexts/communication/rules-auto/guidelines-mechanics.md +76 -0
- package/.agent-src/contexts/communication/rules-auto/slash-command-routing-policy-mechanics.md +1 -1
- package/.agent-src/contexts/communication/rules-auto/think-before-action-mechanics.md +98 -0
- package/.agent-src/contexts/communication/rules-auto/token-efficiency-mechanics.md +93 -0
- package/.agent-src/contexts/communication/rules-auto/user-interaction-mechanics.md +128 -5
- package/.agent-src/contexts/execution/autonomy-mechanics.md +44 -0
- package/.agent-src/contexts/model-recommendations.md +2 -2
- package/.agent-src/contexts/override-system.md +1 -1
- package/.agent-src/personas/product-owner.md +2 -2
- package/.agent-src/personas/qa.md +1 -1
- package/.agent-src/rules/agent-authority.md +5 -6
- package/.agent-src/rules/agent-docs.md +11 -53
- package/.agent-src/rules/analysis-skill-routing.md +10 -40
- package/.agent-src/rules/architecture.md +6 -1
- package/.agent-src/rules/artifact-drafting-protocol.md +5 -0
- package/.agent-src/rules/artifact-engagement-recording.md +23 -59
- package/.agent-src/rules/ask-when-uncertain.md +24 -47
- package/.agent-src/rules/augment-portability.md +14 -62
- package/.agent-src/rules/augment-source-of-truth.md +10 -1
- package/.agent-src/rules/autonomous-execution.md +17 -98
- package/.agent-src/rules/capture-learnings.md +9 -80
- package/.agent-src/rules/cli-output-handling.md +12 -42
- package/.agent-src/rules/command-suggestion-policy.md +25 -73
- package/.agent-src/rules/commit-conventions.md +9 -58
- package/.agent-src/rules/commit-policy.md +16 -47
- package/.agent-src/rules/context-hygiene.md +5 -0
- package/.agent-src/rules/direct-answers.md +21 -50
- package/.agent-src/rules/docker-commands.md +11 -45
- package/.agent-src/rules/docs-sync.md +10 -56
- package/.agent-src/rules/downstream-changes.md +5 -0
- package/.agent-src/rules/e2e-testing.md +9 -44
- package/.agent-src/rules/guidelines.md +13 -75
- package/.agent-src/rules/improve-before-implement.md +10 -2
- package/.agent-src/rules/language-and-tone.md +41 -106
- package/.agent-src/rules/laravel-translations.md +11 -40
- package/.agent-src/rules/markdown-safe-codeblocks.md +4 -0
- package/.agent-src/rules/minimal-safe-diff.md +4 -0
- package/.agent-src/rules/missing-tool-handling.md +4 -0
- package/.agent-src/rules/model-recommendation.md +9 -61
- package/.agent-src/rules/no-attribution-footers.md +5 -0
- package/.agent-src/rules/no-cheap-questions.md +11 -27
- package/.agent-src/rules/no-council-references.md +76 -0
- package/.agent-src/rules/no-roadmap-references.md +7 -0
- package/.agent-src/rules/non-destructive-by-default.md +13 -43
- package/.agent-src/rules/onboarding-gate.md +9 -117
- package/.agent-src/rules/package-ci-checks.md +10 -37
- package/.agent-src/rules/php-coding.md +10 -55
- package/.agent-src/rules/preservation-guard.md +9 -0
- package/.agent-src/rules/review-routing-awareness.md +9 -97
- package/.agent-src/rules/reviewer-awareness.md +8 -83
- package/.agent-src/rules/roadmap-progress-sync.md +7 -170
- package/.agent-src/rules/role-mode-adherence.md +6 -2
- package/.agent-src/rules/rule-type-governance.md +8 -66
- package/.agent-src/rules/runtime-safety.md +5 -0
- package/.agent-src/rules/scope-control.md +17 -62
- package/.agent-src/rules/security-sensitive-stop.md +7 -1
- package/.agent-src/rules/size-enforcement.md +6 -1
- package/.agent-src/rules/skill-improvement-trigger.md +9 -49
- package/.agent-src/rules/skill-quality.md +7 -113
- package/.agent-src/rules/slash-command-routing-policy.md +11 -63
- package/.agent-src/rules/think-before-action.md +22 -87
- package/.agent-src/rules/token-efficiency.md +10 -74
- package/.agent-src/rules/token-optimizer-maintenance.md +68 -0
- package/.agent-src/rules/tool-safety.md +4 -0
- package/.agent-src/rules/ui-audit-gate.md +25 -61
- package/.agent-src/rules/upstream-proposal.md +9 -67
- package/.agent-src/rules/user-interaction.md +22 -108
- package/.agent-src/rules/verify-before-complete.md +1 -1
- package/.agent-src/skills/agent-docs-writing/SKILL.md +1 -1
- package/.agent-src/skills/ai-council/SKILL.md +65 -0
- package/.agent-src/skills/analysis-autonomous-mode/SKILL.md +1 -1
- package/.agent-src/skills/analysis-skill-router/SKILL.md +3 -3
- package/.agent-src/skills/artisan-commands/SKILL.md +2 -2
- package/.agent-src/skills/authz-review/SKILL.md +1 -1
- package/.agent-src/skills/aws-infrastructure/SKILL.md +5 -5
- package/.agent-src/skills/blast-radius-analyzer/SKILL.md +8 -8
- package/.agent-src/skills/bug-analyzer/SKILL.md +5 -5
- package/.agent-src/skills/code-refactoring/SKILL.md +4 -4
- package/.agent-src/skills/code-review/SKILL.md +2 -2
- package/.agent-src/skills/command-writing/SKILL.md +11 -0
- package/.agent-src/skills/composer-packages/SKILL.md +2 -2
- package/.agent-src/skills/context-authoring/SKILL.md +11 -0
- package/.agent-src/skills/context-document/SKILL.md +1 -1
- package/.agent-src/skills/copilot-agents-optimization/SKILL.md +23 -0
- package/.agent-src/skills/copilot-config/SKILL.md +1 -1
- package/.agent-src/skills/dependency-upgrade/SKILL.md +2 -2
- package/.agent-src/skills/devcontainer/SKILL.md +2 -2
- package/.agent-src/skills/developer-like-execution/SKILL.md +1 -1
- package/.agent-src/skills/docker/SKILL.md +1 -1
- package/.agent-src/skills/dto-creator/SKILL.md +1 -1
- package/.agent-src/skills/estimate-ticket/SKILL.md +2 -2
- package/.agent-src/skills/fe-design/SKILL.md +4 -4
- package/.agent-src/skills/feature-planning/SKILL.md +5 -5
- package/.agent-src/skills/funnel-analysis/SKILL.md +1 -1
- package/.agent-src/skills/laravel/SKILL.md +1 -1
- package/.agent-src/skills/laravel-notifications/SKILL.md +5 -5
- package/.agent-src/skills/laravel-pennant/SKILL.md +1 -1
- package/.agent-src/skills/laravel-pulse/SKILL.md +4 -4
- package/.agent-src/skills/laravel-reverb/SKILL.md +2 -2
- package/.agent-src/skills/laravel-scheduling/SKILL.md +1 -1
- package/.agent-src/skills/migration-creator/SKILL.md +7 -7
- package/.agent-src/skills/multi-tenancy/SKILL.md +8 -8
- package/.agent-src/skills/performance-analysis/SKILL.md +3 -3
- package/.agent-src/skills/pest-testing/SKILL.md +6 -6
- package/.agent-src/skills/php-service/SKILL.md +2 -2
- package/.agent-src/skills/project-analysis-hypothesis-driven/SKILL.md +3 -3
- package/.agent-src/skills/project-analysis-react/SKILL.md +1 -1
- package/.agent-src/skills/project-analysis-symfony/SKILL.md +1 -1
- package/.agent-src/skills/project-analysis-zend-laminas/SKILL.md +2 -2
- package/.agent-src/skills/project-analyzer/SKILL.md +4 -4
- package/.agent-src/skills/prompt-optimizer/SKILL.md +108 -0
- package/.agent-src/skills/readme-reviewer/SKILL.md +1 -1
- package/.agent-src/skills/rule-writing/SKILL.md +33 -0
- package/.agent-src/skills/sentry-integration/SKILL.md +1 -1
- package/.agent-src/skills/skill-writing/SKILL.md +14 -0
- package/.agent-src/skills/terraform/SKILL.md +2 -2
- package/.agent-src/skills/terragrunt/SKILL.md +8 -8
- package/.agent-src/skills/test-performance/SKILL.md +5 -5
- package/.agent-src/skills/threat-modeling/SKILL.md +2 -2
- package/.agent-src/skills/token-optimizer/SKILL.md +110 -0
- package/.agent-src/skills/universal-project-analysis/SKILL.md +1 -1
- package/.agent-src/templates/AGENTS.md +1 -1
- package/.agent-src/templates/agent-settings.md +21 -16
- package/.agent-src/templates/contexts/tenant-boundaries.md +2 -2
- package/.agent-src/templates/contexts.md +1 -1
- package/.agent-src/templates/copilot-instructions.md +21 -0
- package/.agent-src/templates/copilot-review-instructions.md +76 -0
- package/.agent-src/templates/features.md +1 -1
- package/.agent-src/templates/rule.md +127 -0
- package/.claude-plugin/marketplace.json +4 -1
- package/AGENTS.md +32 -5
- package/CHANGELOG.md +69 -3
- package/README.md +22 -21
- package/config/agent-settings.template.yml +44 -10
- package/config/gitignore-block.txt +7 -0
- package/docs/architecture.md +86 -5
- package/docs/catalog.md +16 -6
- package/docs/contracts/agent-memory-contract.md +1 -1
- package/docs/contracts/context-paths.md +2 -1
- package/docs/contracts/file-ownership-matrix.json +354 -500
- package/docs/contracts/iron-law-overrides.txt +25 -0
- package/docs/contracts/kernel-membership.md +273 -0
- package/docs/contracts/load-context-schema.md +26 -11
- package/docs/contracts/pilot/agent-authority.md +24 -0
- package/docs/contracts/pilot/direct-answers.md +70 -0
- package/docs/contracts/pilot/language-and-tone.md +63 -0
- package/docs/contracts/rule-classification.md +170 -0
- package/docs/contracts/rule-router.md +153 -0
- package/docs/customization.md +17 -6
- package/docs/decisions/ADR-001-kernel-swap-deferred.md +109 -0
- package/docs/decisions/ADR-002-kernel-bucket-overrides.md +124 -0
- package/docs/decisions/ADR-rule-kernel-and-router.md +122 -0
- package/docs/getting-started.md +2 -2
- package/docs/guidelines/agent-infra/roadmap-progress-mechanics.md +176 -0
- package/docs/guidelines/agent-infra/rule-type-governance.md +73 -0
- package/docs/guidelines/agent-infra/size-and-scope.md +13 -2
- package/docs/guidelines/agent-infra/skill-quality-checklist.md +119 -0
- package/docs/guidelines/augment-portability-patterns.md +68 -0
- package/docs/guidelines/php/php-coding-patterns.md +62 -0
- package/package.json +1 -1
- package/scripts/_p43_bodies.py +235 -0
- package/scripts/_p43_compress.py +118 -0
- package/scripts/_p4_migrate.py +199 -0
- package/scripts/_pilot_council_question.py +57 -0
- package/scripts/_pilot_measure.py +53 -0
- package/scripts/ai_council/session.py +107 -5
- package/scripts/build_linear_digest.py +3 -5
- package/scripts/check_always_budget.py +39 -6
- package/scripts/check_compressed_paths.py +213 -0
- package/scripts/check_compression.py +15 -0
- package/scripts/check_context_paths.py +1 -0
- package/scripts/check_council_layout.py +105 -0
- package/scripts/check_council_references.py +145 -0
- package/scripts/check_portability.py +2 -0
- package/scripts/check_references.py +2 -0
- package/scripts/check_token_optimizer_freshness.py +131 -0
- package/scripts/compile_router.py +148 -0
- package/scripts/compress.py +219 -11
- package/scripts/council_cli.py +9 -5
- package/scripts/council_prune.py +81 -0
- package/scripts/count_token_optimizer_usage.sh +54 -0
- package/scripts/install.sh +44 -2
- package/scripts/iron_law_sha.py +98 -0
- package/scripts/lint_load_context.py +35 -5
- package/scripts/measure_rule_budget.py +314 -0
- package/scripts/prototype_lint_contradictions.py +150 -0
- package/scripts/schemas/rule.schema.json +55 -6
- package/scripts/skill_linter.py +196 -6
- package/scripts/smoke_path_resolution.py +93 -0
- package/scripts/validate_frontmatter.py +41 -1
- package/.agent-src/contexts/communication/rules-auto/artifact-engagement-recording-mechanics.md +0 -72
- package/.agent-src/contexts/communication/rules-auto/augment-portability-mechanics.md +0 -79
- package/.agent-src/contexts/communication/rules-auto/cli-output-handling-mechanics.md +0 -87
- package/.agent-src/contexts/communication/rules-auto/command-suggestion-policy-mechanics.md +0 -62
- package/.agent-src/contexts/communication/rules-auto/docs-sync-mechanics.md +0 -78
- package/.agent-src/contexts/communication/rules-auto/package-ci-checks-mechanics.md +0 -85
- package/.agent-src/contexts/communication/rules-auto/review-routing-awareness-mechanics.md +0 -65
- package/.agent-src/contexts/communication/rules-auto/roadmap-progress-sync-mechanics.md +0 -78
- package/.agent-src/contexts/communication/rules-auto/ui-audit-gate-mechanics.md +0 -53
- /package/{docs → .agent-src/contexts}/contracts/artifact-engagement-flow.md +0 -0
- /package/{docs → .agent-src/contexts}/contracts/command-suggestion-flow.md +0 -0
|
@@ -23,7 +23,7 @@ commands with a single entry point + sub-command dispatch.
|
|
|
23
23
|
| `/agents prepare` | `commands/agents/prepare.md` | Scaffold the `agents/` directory structure |
|
|
24
24
|
|
|
25
25
|
Sub-command names match the locked contract in
|
|
26
|
-
[`docs/contracts/command-clusters.md`](
|
|
26
|
+
[`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
|
|
27
27
|
|
|
28
28
|
## Dispatch
|
|
29
29
|
|
|
@@ -182,4 +182,4 @@ What next?
|
|
|
182
182
|
|
|
183
183
|
## See also
|
|
184
184
|
|
|
185
|
-
- [`role-contracts`](
|
|
185
|
+
- [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md#developer) — Developer mode output contract (Goal / Plan / Changes / Tests / Open questions)
|
|
@@ -175,5 +175,5 @@ What's next?
|
|
|
175
175
|
|
|
176
176
|
## See also
|
|
177
177
|
|
|
178
|
-
- [`role-contracts`](
|
|
179
|
-
- [`role-contracts`](
|
|
178
|
+
- [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md#incident) — Incident mode output contract (Symptom / Reproduction / Minimal reversible change / Deferred verification / Follow-up commitment) — use when the bug is a live production issue with `break-glass: true`
|
|
179
|
+
- [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md#developer) — Developer mode output contract for non-incident bugs
|
|
@@ -2,31 +2,30 @@
|
|
|
2
2
|
name: chat-history:import
|
|
3
3
|
cluster: chat-history
|
|
4
4
|
sub: import
|
|
5
|
-
description: Surface prior chat-history sessions as numbered
|
|
5
|
+
description: Surface prior chat-history sessions as a numbered table, let the user pick one, read it silently, and emit a short summary plus a resume offer — selective, user-driven cross-session import
|
|
6
6
|
disable-model-invocation: true
|
|
7
7
|
suggestion:
|
|
8
8
|
eligible: true
|
|
9
9
|
trigger_description: "import a past session into the current chat, pull a prior session into context, pick a session to read"
|
|
10
|
-
trigger_context: "user wants to selectively pull
|
|
10
|
+
trigger_context: "user wants to selectively pull a prior session's context into the current one as a short summary"
|
|
11
11
|
---
|
|
12
12
|
<!-- cloud_safe: noop -->
|
|
13
13
|
|
|
14
14
|
# /chat-history import
|
|
15
15
|
|
|
16
16
|
Read-only, **user-driven** cross-session import. Surfaces prior
|
|
17
|
-
sessions logged in `agents/.agent-chat-history` as numbered
|
|
18
|
-
user picks **one**, the agent reads that session
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
contract).
|
|
17
|
+
sessions logged in `agents/.agent-chat-history` as a numbered table,
|
|
18
|
+
the user picks **one**, the agent reads that session **silently**
|
|
19
|
+
and emits a 2–5 sentence summary, then offers to resume the last
|
|
20
|
+
task from that session. The agent does **not** render entries
|
|
21
|
+
verbatim, auto-import, or rewrite the user's context without an
|
|
22
|
+
explicit instruction.
|
|
24
23
|
|
|
25
24
|
This is the opt-in counterpart to the read-path filter (Phase 3 of
|
|
26
25
|
`road-to-chat-history-session-isolation`): default reads stay
|
|
27
26
|
session-scoped; `import` is the explicit surface for crossing the
|
|
28
|
-
session boundary
|
|
29
|
-
|
|
27
|
+
session boundary. For project-improving learnings derived from a
|
|
28
|
+
prior session, see [`/chat-history learn`](learn.md).
|
|
30
29
|
|
|
31
30
|
## When NOT to use
|
|
32
31
|
|
|
@@ -70,33 +69,35 @@ If the array is empty, stop:
|
|
|
70
69
|
> 📒 No prior sessions found in agents/.agent-chat-history.
|
|
71
70
|
```
|
|
72
71
|
|
|
73
|
-
### 3. Surface as numbered
|
|
72
|
+
### 3. Surface as a numbered table
|
|
74
73
|
|
|
75
|
-
Render
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
`(N entries — no user prompts; t-mix: …)` for tool-only sessions).
|
|
80
|
-
The session `id` is noise to humans; keep it **internal** for step
|
|
81
|
-
5's `read --session <id>` call and never render it in the listing.
|
|
74
|
+
Render the sessions as a markdown table — the row number is the
|
|
75
|
+
option (per `user-interaction` Iron Law: numbered options for any
|
|
76
|
+
picker). The session `id` is noise to humans; keep it **internal**
|
|
77
|
+
for step 5's `read --session <id>` call and never render it.
|
|
82
78
|
Format:
|
|
83
79
|
|
|
84
80
|
```
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
81
|
+
Pick a session to import:
|
|
82
|
+
|
|
83
|
+
| # | Date | Entries | Summary |
|
|
84
|
+
|----|------------------|---------|---------|
|
|
85
|
+
| 1 | YYYY-MM-DD HH:MM | N | {summary} |
|
|
86
|
+
| 2 | YYYY-MM-DD HH:MM | N | {summary} |
|
|
87
|
+
| … | | | |
|
|
88
|
+
| N | — | — | abort — do not read any session |
|
|
92
89
|
```
|
|
93
90
|
|
|
94
91
|
Format the timestamp as `YYYY-MM-DD HH:MM` (drop seconds and
|
|
95
|
-
timezone — the listing is for orientation, not forensics).
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
timezone — the listing is for orientation, not forensics). Lead the
|
|
93
|
+
`Summary` cell with the helper's `summary` field — that is the
|
|
94
|
+
rough arc the user picks by (`<first user msg> → <last user msg>`
|
|
95
|
+
for normal sessions, or `(N entries — no user prompts; t-mix: …)`
|
|
96
|
+
for tool-only sessions). Do **not** truncate or rewrite `summary` —
|
|
97
|
+
markdown table wrap handles long values. Always include an explicit
|
|
98
|
+
`abort` row as the last numbered option. Track option-number → `id`
|
|
99
|
+
internally so step 5 can call `scripts/chat_history.py read
|
|
100
|
+
--session <id>` with the right id.
|
|
100
101
|
|
|
101
102
|
### 4. Wait for the pick
|
|
102
103
|
|
|
@@ -106,51 +107,46 @@ default. Wait for the user's response.
|
|
|
106
107
|
|
|
107
108
|
If the user picks the abort option, stop without reading.
|
|
108
109
|
|
|
109
|
-
### 5. Read the picked session
|
|
110
|
+
### 5. Read the picked session silently
|
|
110
111
|
|
|
111
|
-
Run `scripts/chat_history.py read --session <id
|
|
112
|
-
|
|
112
|
+
Run `scripts/chat_history.py read --session <id> --last <count>`,
|
|
113
|
+
where `<count>` is the picked row's `count` from step 2. The
|
|
114
|
+
`--last` flag is **required** — the helper defaults to 5 entries,
|
|
115
|
+
which would silently truncate any longer session. The helper returns
|
|
116
|
+
the entries as JSON.
|
|
113
117
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
emits. Use a fenced block so timestamps and JSON survive markdown
|
|
118
|
-
rendering:
|
|
118
|
+
**Do not render the entries.** The verbose dump was reversed by the
|
|
119
|
+
user — token cost and scroll fatigue outweighed the verbatim
|
|
120
|
+
contract. Read the JSON in-context, then proceed to step 6.
|
|
119
121
|
|
|
120
|
-
|
|
121
|
-
> 📒 Session {id} — {count} entries
|
|
122
|
+
### 6. Summarise and offer to resume
|
|
122
123
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
````
|
|
129
|
-
|
|
130
|
-
If the session is large (>50 entries), still render verbatim — but
|
|
131
|
-
prepend a one-line note that the listing is long, so the user can
|
|
132
|
-
scroll. Do not silently truncate.
|
|
133
|
-
|
|
134
|
-
### 6. Hand back
|
|
124
|
+
Emit a **2–5 sentence** summary of the picked session: the topic,
|
|
125
|
+
what was decided or built, and where it left off (the last task in
|
|
126
|
+
progress, if any). Plain prose — no bullets, no headings, no
|
|
127
|
+
verbatim quotes.
|
|
135
128
|
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
Then offer the resume choice as numbered options
|
|
130
|
+
(per `user-interaction`), one question per turn:
|
|
138
131
|
|
|
139
132
|
```
|
|
140
|
-
|
|
133
|
+
1. resume — pick up the last task from that session
|
|
134
|
+
2. stop — keep the summary in context, do nothing else
|
|
141
135
|
```
|
|
142
136
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
behalf without an explicit
|
|
137
|
+
Wait for the pick. Do **not** auto-resume. If the user picks
|
|
138
|
+
`resume`, hand off to the relevant skill or command for that work;
|
|
139
|
+
do not silently start editing files. The agent does not write to
|
|
140
|
+
the current session's log on the user's behalf without an explicit
|
|
141
|
+
instruction.
|
|
147
142
|
|
|
148
143
|
## Gotchas
|
|
149
144
|
|
|
150
|
-
- **
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
145
|
+
- **Summary, not verbatim.** Earlier Council R2-2 favoured verbatim
|
|
146
|
+
rendering; reversed in practice — too slow, too token-expensive.
|
|
147
|
+
The agent reads the picked session in-context and emits a 2–5
|
|
148
|
+
sentence summary. Verbatim rendering is no longer part of the
|
|
149
|
+
contract.
|
|
154
150
|
- **One pick per invocation.** Multi-pick is v2. If the user wants
|
|
155
151
|
a second session, run `/chat-history import` again.
|
|
156
152
|
- **Read-only.** This command never writes to `agents/.agent-chat-history`
|
|
@@ -50,6 +50,18 @@ For each changed `.md` file:
|
|
|
50
50
|
pleasantries, hedging, connective fluff (however, furthermore, additionally),
|
|
51
51
|
redundant wording, obvious framework knowledge, repeated explanations, decorative prose
|
|
52
52
|
- **Shorten:** "in order to" → "to", "make sure to" → "ensure", use short synonyms
|
|
53
|
+
- **Abbreviate** common terms when context unambiguous: `DB`, `auth`,
|
|
54
|
+
`config`, `req`, `res`, `fn`, `impl`, `env`, `deps`, `ctx`. Skip on
|
|
55
|
+
first occurrence of the concept in the file, or when the
|
|
56
|
+
abbreviation collides with a domain term (`auth` stays
|
|
57
|
+
`authentication` inside an auth-module file). Never abbreviate
|
|
58
|
+
inside code blocks, frontmatter, file paths, command strings, or
|
|
59
|
+
Iron Law fenced blocks.
|
|
60
|
+
- **Arrows for causality:** `X causes Y` / `X leads to Y` / `X, then Y`
|
|
61
|
+
→ `X → Y`. Keep arrows out of code blocks, frontmatter, and Iron
|
|
62
|
+
Law fenced blocks; surrounding prose only. (Example phrases
|
|
63
|
+
backticked on purpose — inline-code protection skips them; never
|
|
64
|
+
strip the backticks.)
|
|
53
65
|
- **Fragments OK:** "Run tests before commit" not "You should always run tests before committing"
|
|
54
66
|
- **Drop:** "you should", "make sure to", "remember to" — state action directly
|
|
55
67
|
- **Merge** redundant bullets that say the same thing differently
|
|
@@ -76,9 +76,9 @@ Based on the type, analyze the relevant code area:
|
|
|
76
76
|
- Identify all models and tables involved
|
|
77
77
|
|
|
78
78
|
**Service context:**
|
|
79
|
-
- Read the service class and its
|
|
79
|
+
- Read the service class and its deps
|
|
80
80
|
- Trace call chain (who calls it, what it calls)
|
|
81
|
-
- Identify configuration and env
|
|
81
|
+
- Identify configuration and env deps
|
|
82
82
|
|
|
83
83
|
**Integration context:**
|
|
84
84
|
- Find API client classes, HTTP calls
|
|
@@ -22,7 +22,7 @@ commands with a single entry point + sub-command dispatch.
|
|
|
22
22
|
| `/context refactor` | `commands/context/refactor.md` | Analyze, update, and extend an existing context document |
|
|
23
23
|
|
|
24
24
|
Sub-command names match the locked contract in
|
|
25
|
-
[`docs/contracts/command-clusters.md`](
|
|
25
|
+
[`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
|
|
26
26
|
|
|
27
27
|
## Dispatch
|
|
28
28
|
|
|
@@ -22,7 +22,7 @@ standalone commands with a single entry point + sub-command dispatch.
|
|
|
22
22
|
| `/copilot-agents optimize` | `commands/copilot-agents/optimize.md` | Refactor existing AGENTS.md and copilot-instructions.md for line budgets |
|
|
23
23
|
|
|
24
24
|
Sub-command names match the locked contract in
|
|
25
|
-
[`docs/contracts/command-clusters.md`](
|
|
25
|
+
[`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
|
|
26
26
|
|
|
27
27
|
## Dispatch
|
|
28
28
|
|
|
@@ -30,11 +30,17 @@ 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)
|
|
34
|
-
1 sees the artefact alone. Round 2+ sees the artefact plus
|
|
35
|
-
critiques from the previous round (provider/model identity
|
|
36
|
-
Total spend = N × single-round cost; surface
|
|
37
|
-
|
|
33
|
+
Optional **rounds**: `rounds:N` (1-3) overrides the multi-round debate
|
|
34
|
+
count. Round 1 sees the artefact alone. Round 2+ sees the artefact plus
|
|
35
|
+
anonymised critiques from the previous round (provider/model identity
|
|
36
|
+
stripped). Total spend = N × single-round cost; surface in cost gate.
|
|
37
|
+
|
|
38
|
+
Default comes from `ai_council.min_rounds` in `.agent-settings.yml`
|
|
39
|
+
(default `2` so members critique each other at least once before
|
|
40
|
+
convergence). **Do NOT ask "how many rounds?"** when `rounds:N` is
|
|
41
|
+
unset or `N <= min_rounds` — proceed with the settings default. Ask
|
|
42
|
+
only when the artefact is genuinely complex; surface as a numbered
|
|
43
|
+
choice with the cost delta.
|
|
38
44
|
|
|
39
45
|
Optional **mode_override**: `mode_override=pr|design|optimize` swaps
|
|
40
46
|
the system-prompt addendum for one of the specialised lenses
|
|
@@ -133,6 +139,12 @@ Once the user picks `1`, invoke the same arguments with `run` plus
|
|
|
133
139
|
[--original-ask "<framing sentence>"]
|
|
134
140
|
```
|
|
135
141
|
|
|
142
|
+
`--rounds` defaults to `ai_council.min_rounds` from
|
|
143
|
+
`.agent-settings.yml` (or `2` if unset). Pass `--rounds N` only when
|
|
144
|
+
the user explicitly asked for a different count or a complex
|
|
145
|
+
artefact justifies more depth — do not pass `--rounds 1` to "save
|
|
146
|
+
money" by default; settings owner already chose `min_rounds`.
|
|
147
|
+
|
|
136
148
|
The CLI:
|
|
137
149
|
|
|
138
150
|
- bundles the artefact via `scripts.ai_council.bundler` (redaction +
|
|
@@ -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`](
|
|
29
|
+
[`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
|
|
30
30
|
|
|
31
31
|
## Dispatch
|
|
32
32
|
|
|
@@ -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:
|
|
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:
|
|
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
|
|
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
|
|
85
|
+
6. Write tests alongside the impl.
|
|
86
86
|
|
|
87
87
|
### Phase 6: Quality Review
|
|
88
88
|
|
|
89
|
-
1. Review the
|
|
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
|
-
|
|
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
|
|
66
|
+
Currently there are **no exceptions**. All circular deps have been resolved.
|
|
67
67
|
|
|
68
|
-
**Pattern for resolving circular
|
|
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`](
|
|
30
|
+
[`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
|
|
31
31
|
|
|
32
32
|
## Dispatch
|
|
33
33
|
|
|
@@ -72,4 +72,4 @@ suggestion:
|
|
|
72
72
|
|
|
73
73
|
## See also
|
|
74
74
|
|
|
75
|
-
- [`role-contracts`](
|
|
75
|
+
- [`role-contracts`](../docs/guidelines/agent-infra/role-contracts.md#developer) — Developer mode output contract (Goal / Plan / Changes / Tests / Open questions)
|
|
@@ -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`](
|
|
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`](
|
|
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`](
|
|
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`](
|
|
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`](
|
|
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](
|
|
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`](
|
|
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`](
|
|
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`](
|
|
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`](
|
|
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`](
|
|
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:
|
|
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`](
|
|
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
|
|
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`](
|
|
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`](
|
|
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`](
|
|
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`](
|
|
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
|
|
@@ -22,7 +22,7 @@ commands with a single entry point + sub-command dispatch.
|
|
|
22
22
|
| `/roadmap execute` | `commands/roadmap/execute.md` | Read and interactively execute a roadmap |
|
|
23
23
|
|
|
24
24
|
Sub-command names match the locked contract in
|
|
25
|
-
[`docs/contracts/command-clusters.md`](
|
|
25
|
+
[`docs/contracts/command-clusters.md`](../docs/contracts/command-clusters.md).
|
|
26
26
|
|
|
27
27
|
## Dispatch
|
|
28
28
|
|