@event4u/agent-config 1.14.0 → 1.16.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/agent-handoff.md +1 -1
- package/.agent-src/commands/bug-fix.md +3 -3
- package/.agent-src/commands/bug-investigate.md +2 -2
- package/.agent-src/commands/chat-history-checkpoint.md +3 -3
- package/.agent-src/commands/chat-history-clear.md +2 -2
- package/.agent-src/commands/chat-history-resume.md +2 -2
- package/.agent-src/commands/chat-history.md +3 -3
- package/.agent-src/commands/check-current-md.md +44 -33
- package/.agent-src/commands/commit-in-chunks.md +43 -23
- package/.agent-src/commands/compress.md +34 -2
- package/.agent-src/commands/council-design.md +96 -0
- package/.agent-src/commands/council-optimize.md +115 -0
- package/.agent-src/commands/council-pr.md +123 -0
- package/.agent-src/commands/council.md +219 -0
- package/.agent-src/commands/create-pr.md +23 -0
- package/.agent-src/commands/do-and-judge.md +3 -3
- package/.agent-src/commands/do-in-steps.md +4 -4
- 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 +8 -0
- package/.agent-src/commands/feature-explore.md +6 -1
- package/.agent-src/commands/feature-plan.md +33 -2
- package/.agent-src/commands/feature-refactor.md +5 -0
- package/.agent-src/commands/feature-roadmap.md +8 -3
- package/.agent-src/commands/feature.md +58 -0
- package/.agent-src/commands/fix-ci.md +5 -0
- package/.agent-src/commands/fix-portability.md +7 -2
- package/.agent-src/commands/fix-pr-bot-comments.md +5 -0
- package/.agent-src/commands/fix-pr-comments.md +5 -0
- package/.agent-src/commands/fix-pr-developer-comments.md +5 -0
- package/.agent-src/commands/fix-references.md +5 -0
- package/.agent-src/commands/fix-seeder.md +5 -0
- package/.agent-src/commands/fix.md +60 -0
- package/.agent-src/commands/jira-ticket.md +1 -1
- package/.agent-src/commands/judge.md +1 -1
- package/.agent-src/commands/memory-add.md +3 -3
- package/.agent-src/commands/memory-full.md +2 -2
- package/.agent-src/commands/memory-promote.md +2 -2
- package/.agent-src/commands/mode.md +5 -5
- package/.agent-src/commands/onboard.md +17 -8
- package/.agent-src/commands/optimize-agents.md +6 -1
- package/.agent-src/commands/optimize-augmentignore.md +14 -0
- package/.agent-src/commands/optimize-rtk-filters.md +5 -0
- package/.agent-src/commands/optimize-skills.md +6 -1
- package/.agent-src/commands/optimize.md +54 -0
- package/.agent-src/commands/propose-memory.md +2 -2
- package/.agent-src/commands/refine-ticket.md +9 -7
- package/.agent-src/commands/review-changes.md +61 -9
- package/.agent-src/commands/review-routing.md +1 -1
- package/.agent-src/commands/roadmap-create.md +42 -4
- package/.agent-src/commands/roadmap-execute.md +9 -7
- package/.agent-src/commands/set-cost-profile.md +11 -3
- package/.agent-src/commands/sync-agent-settings.md +11 -2
- package/.agent-src/commands/tests-create.md +1 -1
- package/.agent-src/commands/tests-execute.md +2 -3
- package/.agent-src/commands/upstream-contribute.md +1 -1
- package/.agent-src/contexts/authority/commit-mechanics.md +57 -0
- package/.agent-src/contexts/authority/destructive-mechanics.md +66 -0
- package/.agent-src/contexts/authority/scope-mechanics.md +87 -0
- package/.agent-src/contexts/execution/autonomy-detection.md +54 -0
- package/.agent-src/contexts/execution/autonomy-examples.md +90 -0
- package/.agent-src/contexts/execution/autonomy-mechanics.md +29 -0
- package/.agent-src/contexts/execution/verification-mechanics.md +80 -0
- package/.agent-src/personas/README.md +1 -1
- package/.agent-src/rules/agent-authority.md +24 -0
- package/.agent-src/rules/architecture.md +1 -1
- package/.agent-src/rules/artifact-drafting-protocol.md +1 -1
- package/.agent-src/rules/artifact-engagement-recording.md +2 -2
- package/.agent-src/rules/ask-when-uncertain.md +1 -1
- package/.agent-src/rules/augment-portability.md +56 -37
- package/.agent-src/rules/autonomous-execution.md +78 -114
- package/.agent-src/rules/capture-learnings.md +1 -1
- package/.agent-src/rules/chat-history-cadence.md +109 -0
- package/.agent-src/rules/chat-history-ownership.md +123 -0
- package/.agent-src/rules/chat-history-visibility.md +96 -0
- package/.agent-src/rules/cli-output-handling.md +1 -1
- package/.agent-src/rules/{command-suggestion.md → command-suggestion-policy.md} +10 -9
- package/.agent-src/rules/commit-conventions.md +1 -1
- package/.agent-src/rules/commit-policy.md +43 -61
- package/.agent-src/rules/context-hygiene.md +3 -3
- package/.agent-src/rules/direct-answers.md +2 -2
- package/.agent-src/rules/docs-sync.md +1 -1
- package/.agent-src/rules/e2e-testing.md +1 -1
- package/.agent-src/rules/guidelines.md +4 -4
- package/.agent-src/rules/improve-before-implement.md +2 -2
- package/.agent-src/rules/language-and-tone.md +41 -96
- package/.agent-src/rules/minimal-safe-diff.md +3 -3
- package/.agent-src/rules/model-recommendation.md +4 -4
- package/.agent-src/rules/no-cheap-questions.md +89 -0
- package/.agent-src/rules/non-destructive-by-default.md +25 -59
- package/.agent-src/rules/onboarding-gate.md +5 -5
- package/.agent-src/rules/review-routing-awareness.md +9 -9
- package/.agent-src/rules/roadmap-progress-sync.md +132 -80
- package/.agent-src/rules/role-mode-adherence.md +3 -3
- package/.agent-src/rules/scope-control.md +65 -46
- package/.agent-src/rules/security-sensitive-stop.md +2 -2
- package/.agent-src/rules/size-enforcement.md +3 -2
- package/.agent-src/rules/think-before-action.md +5 -5
- package/.agent-src/rules/token-efficiency.md +4 -4
- package/.agent-src/rules/{ui-audit-before-build.md → ui-audit-gate.md} +3 -3
- package/.agent-src/rules/user-interaction.md +31 -7
- package/.agent-src/rules/verify-before-complete.md +12 -67
- package/.agent-src/scripts/update_roadmap_progress.py +65 -8
- package/.agent-src/skills/ai-council/SKILL.md +333 -0
- package/.agent-src/skills/api-endpoint/SKILL.md +2 -2
- package/.agent-src/skills/blade-ui/SKILL.md +30 -11
- package/.agent-src/skills/blast-radius-analyzer/SKILL.md +1 -1
- package/.agent-src/skills/bug-analyzer/SKILL.md +1 -1
- package/.agent-src/skills/command-routing/SKILL.md +1 -1
- package/.agent-src/skills/command-writing/SKILL.md +16 -5
- package/.agent-src/skills/conventional-commits-writing/SKILL.md +1 -1
- package/.agent-src/skills/copilot-agents-optimization/SKILL.md +2 -2
- package/.agent-src/skills/developer-like-execution/SKILL.md +2 -2
- package/.agent-src/skills/existing-ui-audit/SKILL.md +24 -9
- package/.agent-src/skills/fe-design/SKILL.md +20 -15
- package/.agent-src/skills/file-editor/SKILL.md +9 -0
- package/.agent-src/skills/flux/SKILL.md +1 -1
- package/.agent-src/skills/git-workflow/SKILL.md +1 -1
- package/.agent-src/skills/guideline-writing/SKILL.md +11 -11
- package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +4 -4
- package/.agent-src/skills/livewire/SKILL.md +27 -8
- package/.agent-src/skills/override-management/SKILL.md +2 -2
- package/.agent-src/skills/php-coder/SKILL.md +1 -1
- package/.agent-src/skills/playwright-testing/SKILL.md +2 -2
- package/.agent-src/skills/readme-reviewer/SKILL.md +1 -1
- package/.agent-src/skills/readme-writing/SKILL.md +1 -1
- package/.agent-src/skills/readme-writing-package/SKILL.md +1 -1
- package/.agent-src/skills/receiving-code-review/SKILL.md +1 -1
- package/.agent-src/skills/refine-ticket/SKILL.md +30 -24
- package/.agent-src/skills/review-routing/SKILL.md +2 -2
- package/.agent-src/skills/roadmap-management/SKILL.md +22 -16
- package/.agent-src/skills/rule-writing/SKILL.md +1 -1
- package/.agent-src/skills/skill-reviewer/SKILL.md +1 -1
- package/.agent-src/skills/skill-writing/SKILL.md +6 -6
- package/.agent-src/skills/subagent-orchestration/SKILL.md +1 -0
- package/.agent-src/skills/systematic-debugging/SKILL.md +1 -1
- package/.agent-src/skills/upstream-contribute/SKILL.md +3 -3
- package/.agent-src/skills/validate-feature-fit/SKILL.md +2 -2
- package/.agent-src/skills/{verify-before-complete → verify-completion-evidence}/SKILL.md +2 -2
- package/.agent-src/templates/agent-settings.md +9 -9
- package/.agent-src/templates/contexts/auth-model.md +1 -1
- package/.agent-src/templates/roadmaps.md +9 -8
- package/.agent-src/templates/scripts/README.md +2 -2
- package/.agent-src/templates/scripts/memory_lookup.py +1 -1
- package/.agent-src/templates/scripts/telemetry/aggregator.py +16 -1
- package/.agent-src/templates/scripts/telemetry/engagement.py +59 -0
- package/.agent-src/templates/scripts/telemetry/report_renderer.py +28 -1
- package/.agent-src/templates/scripts/telemetry_record.py +14 -1
- package/.agent-src/templates/scripts/work_engine/__init__.py +2 -2
- package/.agent-src/templates/scripts/work_engine/cli.py +64 -461
- package/.agent-src/templates/scripts/work_engine/cli_args.py +116 -0
- package/.agent-src/templates/scripts/work_engine/delivery_state.py +3 -3
- package/.agent-src/templates/scripts/work_engine/directives/backend/__init__.py +1 -1
- package/.agent-src/templates/scripts/work_engine/directives/backend/implement.py +1 -1
- package/.agent-src/templates/scripts/work_engine/directives/backend/memory.py +1 -1
- package/.agent-src/templates/scripts/work_engine/directives/backend/plan.py +1 -1
- package/.agent-src/templates/scripts/work_engine/directives/backend/report.py +1 -1
- package/.agent-src/templates/scripts/work_engine/dispatcher.py +1 -1
- package/.agent-src/templates/scripts/work_engine/emitters.py +43 -0
- package/.agent-src/templates/scripts/work_engine/errors.py +19 -0
- package/.agent-src/templates/scripts/work_engine/hook_bootstrap.py +76 -0
- package/.agent-src/templates/scripts/work_engine/input_builders.py +163 -0
- package/.agent-src/templates/scripts/work_engine/migration/v0_to_v1.py +34 -2
- package/.agent-src/templates/scripts/work_engine/persona_policy.py +1 -1
- package/.agent-src/templates/scripts/work_engine/resolvers/prompt.py +1 -1
- package/.agent-src/templates/scripts/work_engine/state_io.py +202 -0
- package/.claude-plugin/marketplace.json +10 -2
- package/AGENTS.md +16 -12
- package/CHANGELOG.md +206 -9
- package/README.md +51 -52
- package/config/agent-settings.template.yml +58 -1
- package/config/gitignore-block.txt +3 -0
- package/docs/MIGRATION.md +122 -0
- package/docs/architecture.md +83 -34
- package/docs/catalog.md +331 -0
- package/docs/contracts/STABILITY.md +134 -0
- package/docs/contracts/adr-chat-history-split.md +132 -0
- package/docs/contracts/adr-command-suggestion.md +146 -0
- package/docs/contracts/adr-implement-ticket-runtime.md +122 -0
- package/docs/contracts/adr-product-ui-track.md +384 -0
- package/docs/contracts/adr-prompt-driven-execution.md +187 -0
- package/docs/contracts/agent-memory-contract.md +149 -0
- package/docs/contracts/artifact-engagement-flow.md +262 -0
- package/docs/contracts/command-clusters.md +126 -0
- package/docs/contracts/command-suggestion-flow.md +148 -0
- package/docs/contracts/implement-ticket-flow.md +628 -0
- package/docs/contracts/linear-ai-rules-inclusion.md +143 -0
- package/docs/contracts/linear-ai-three-layers.md +131 -0
- package/docs/contracts/load-context-schema.md +186 -0
- package/docs/contracts/rule-interactions.md +107 -0
- package/docs/contracts/rule-interactions.yml +238 -0
- package/docs/contracts/rule-priority-hierarchy.md +87 -0
- package/docs/contracts/ui-stack-extension.md +236 -0
- package/docs/contracts/ui-track-flow.md +338 -0
- package/docs/customization.md +14 -0
- package/docs/end-to-end-walkthroughs.md +165 -0
- package/docs/getting-started.md +27 -9
- package/docs/github-topics.md +12 -3
- package/docs/guidelines/agent-infra/language-and-tone-examples.md +79 -0
- package/{.agent-src → docs}/guidelines/docs/readme-size-and-splitting.md +26 -25
- package/docs/guidelines/php/git.md +164 -0
- package/docs/installation.md +42 -6
- package/docs/migrations/commands-1.15.0.md +112 -0
- package/docs/showcase.md +9 -4
- package/docs/skills-catalog.md +14 -8
- package/docs/ui-track-mental-model.md +121 -0
- package/llms.txt +13 -7
- package/package.json +1 -1
- package/scripts/agent-config +23 -0
- package/scripts/ai_council/__init__.py +39 -0
- package/scripts/ai_council/_default_prices.py +41 -0
- package/scripts/ai_council/_one_off_rebalancing_audit.py +149 -0
- package/scripts/ai_council/_one_off_roundtrip.py +106 -0
- package/scripts/ai_council/budget_guard.py +172 -0
- package/scripts/ai_council/bundler.py +261 -0
- package/scripts/ai_council/clients.py +381 -0
- package/scripts/ai_council/modes.py +127 -0
- package/scripts/ai_council/orchestrator.py +350 -0
- package/scripts/ai_council/pricing.py +213 -0
- package/scripts/ai_council/project_context.py +159 -0
- package/scripts/ai_council/prompts.py +232 -0
- package/scripts/ai_council/session.py +144 -0
- package/scripts/build_linear_digest.py +4 -4
- package/scripts/check_always_budget.py +126 -0
- package/scripts/check_augmentignore.py +69 -0
- package/scripts/check_command_count_messaging.py +120 -0
- package/scripts/check_portability.py +57 -0
- package/scripts/check_public_catalog_links.py +122 -0
- package/scripts/check_public_links.py +185 -0
- package/scripts/check_references.py +5 -1
- package/scripts/check_roadmap_trackable.py +111 -0
- package/scripts/command_suggester/cooldown.py +1 -1
- package/scripts/generate_index.py +266 -0
- package/scripts/install_anthropic_key.sh +5 -0
- package/scripts/install_openai_key.sh +106 -0
- package/scripts/lint_load_context.py +163 -0
- package/scripts/lint_no_new_atomic_commands.py +179 -0
- package/scripts/lint_rule_interactions.py +149 -0
- package/scripts/memory_lookup.py +1 -1
- package/scripts/release.py +297 -64
- package/scripts/schemas/command.schema.json +20 -0
- package/scripts/schemas/rule.schema.json +10 -0
- package/scripts/skill_linter.py +26 -4
- package/scripts/sync_agent_settings.py +1 -1
- package/scripts/update_counts.py +19 -4
- package/scripts/update_prices.py +124 -0
- package/.agent-src/guidelines/php/git.md +0 -96
- package/.agent-src/rules/chat-history.md +0 -200
- /package/.agent-src/rules/{slash-commands.md → slash-command-routing-policy.md} +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/agent-interaction-and-decision-quality.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/break-glass-usage.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/developer-judgment.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/engineering-memory-data-format.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/layered-settings.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/memory-access.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/naming.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/output-patterns.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/review-routing-data-format.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/role-contracts.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/role-mode-router.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/runtime-layer.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/self-improvement-pipeline.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/size-and-scope.md +0 -0
- /package/{.agent-src → docs}/guidelines/agent-infra/tool-integration.md +0 -0
- /package/{.agent-src → docs}/guidelines/e2e/playwright.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/api-design.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/artisan-commands.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/blade-ui.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/controllers.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/database.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/eloquent.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/flux.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/general.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/jobs.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/livewire.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/logging.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/naming.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/dependency-injection.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/dtos.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/events.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/factory.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/pipelines.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/policies.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/repositories.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/service-layer.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns/strategy.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/patterns.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/performance.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/resources.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/security.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/sql.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/validations.md +0 -0
- /package/{.agent-src → docs}/guidelines/php/websocket.md +0 -0
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "turn this feature into a roadmap, generate the implementation roadmap"
|
|
9
9
|
trigger_context: "existing feature plan without linked roadmap"
|
|
10
|
+
superseded_by: feature roadmap
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /feature-roadmap is deprecated; use /feature roadmap instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# feature-roadmap
|
|
13
18
|
|
|
14
19
|
## Instructions
|
|
@@ -176,8 +181,8 @@ What's next?
|
|
|
176
181
|
### Rules
|
|
177
182
|
|
|
178
183
|
- **Do NOT commit or push.**
|
|
179
|
-
- **Do NOT include commit steps** unless user explicitly
|
|
180
|
-
See [`commit-policy`](../rules/commit-policy.md#never-write-commit-steps-into-roadmaps-unsolicited).
|
|
184
|
+
- **Do NOT include commit steps in the roadmap** unless the user explicitly
|
|
185
|
+
requested them. See [`commit-policy`](../rules/commit-policy.md#never-write-commit-steps-into-roadmaps-unsolicited).
|
|
181
186
|
- **Do NOT modify the feature plan** beyond updating the Roadmaps section and status.
|
|
182
187
|
- **Always link roadmaps back to the feature** and vice versa.
|
|
183
188
|
- **Use the roadmap template** from `agents/roadmaps/template.md`.
|
|
@@ -187,4 +192,4 @@ What's next?
|
|
|
187
192
|
|
|
188
193
|
## See also
|
|
189
194
|
|
|
190
|
-
- [`role-contracts`](
|
|
195
|
+
- [`role-contracts`](../../docs/guidelines/agent-infra/role-contracts.md#planner) — Planner mode output contract (Goal / Constraints / Option set / Recommendation / Dependencies / Rollback)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature
|
|
3
|
+
description: Feature orchestrator — routes to explore, plan, refactor, roadmap, dev
|
|
4
|
+
cluster: feature
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
suggestion:
|
|
7
|
+
eligible: true
|
|
8
|
+
trigger_description: "explore feature idea, plan a feature, refactor feature plan, roadmap a feature, full feature dev"
|
|
9
|
+
trigger_context: "user starting or iterating on a feature workflow"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /feature
|
|
13
|
+
|
|
14
|
+
Top-level orchestrator for the `/feature` family. Replaces 5 standalone
|
|
15
|
+
commands with a single entry point + sub-command dispatch.
|
|
16
|
+
|
|
17
|
+
## Sub-commands
|
|
18
|
+
|
|
19
|
+
| Sub-command | Routes to | Purpose |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `/feature explore` | `feature-explore.md` | Brainstorm an idea before committing to a plan |
|
|
22
|
+
| `/feature plan` | `feature-plan.md` | Interactively plan a feature, produce a structured plan doc |
|
|
23
|
+
| `/feature refactor` | `feature-refactor.md` | Refine and update an existing feature plan |
|
|
24
|
+
| `/feature roadmap` | `feature-roadmap.md` | Generate implementation roadmap(s) from a plan |
|
|
25
|
+
| `/feature dev` | `feature-dev.md` | Full 7-phase feature development workflow (heavyweight) |
|
|
26
|
+
|
|
27
|
+
## Workflow ordering
|
|
28
|
+
|
|
29
|
+
Typical sequence: `explore` → `plan` → `roadmap` → `dev` (or per-step
|
|
30
|
+
implementation). Use `refactor` whenever an existing plan needs an update.
|
|
31
|
+
|
|
32
|
+
## Dispatch
|
|
33
|
+
|
|
34
|
+
1. Parse the user's argument: `/feature <sub-command> [args]`.
|
|
35
|
+
2. Look up the sub-command in the table above.
|
|
36
|
+
3. Load the body of the corresponding `commands/feature-<sub>.md` file and
|
|
37
|
+
follow its `## Instructions` (or `## Steps`) section verbatim.
|
|
38
|
+
4. If the sub-command is unknown or missing, print the menu and ask:
|
|
39
|
+
|
|
40
|
+
> 1. explore — brainstorm a feature idea
|
|
41
|
+
> 2. plan — produce a structured feature plan
|
|
42
|
+
> 3. refactor — update an existing feature plan
|
|
43
|
+
> 4. roadmap — generate roadmap(s) from a plan
|
|
44
|
+
> 5. dev — run the full 7-phase development workflow
|
|
45
|
+
|
|
46
|
+
## Migration
|
|
47
|
+
|
|
48
|
+
The 5 standalone `/feature-*` commands continue to work for one release
|
|
49
|
+
cycle as deprecation shims. They emit a notice and route to the same
|
|
50
|
+
content. New invocations should use `/feature <sub>`.
|
|
51
|
+
|
|
52
|
+
## Rules
|
|
53
|
+
|
|
54
|
+
- **Do NOT chain sub-commands.** One `/feature <sub>` per turn — except
|
|
55
|
+
the agent may suggest the next logical sub-command at the end of a step
|
|
56
|
+
(numbered options per `user-interaction`).
|
|
57
|
+
- If the user invokes `/feature` with no argument, **show the menu** — do
|
|
58
|
+
not guess which sub-command they meant.
|
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "CI is failing, fix the GitHub Actions errors, the pipeline is red"
|
|
9
9
|
trigger_context: "open PR with failing checks"
|
|
10
|
+
superseded_by: fix ci
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /fix-ci is deprecated; use /fix ci instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# fix-ci
|
|
13
18
|
|
|
14
19
|
## Instructions
|
|
@@ -5,8 +5,13 @@ disable-model-invocation: true
|
|
|
5
5
|
suggestion:
|
|
6
6
|
eligible: false
|
|
7
7
|
rationale: "Package-internal — only the event4u/agent-config repo runs this."
|
|
8
|
+
superseded_by: fix portability
|
|
9
|
+
deprecated_in: "1.15.0"
|
|
8
10
|
---
|
|
9
11
|
|
|
12
|
+
> ⚠️ /fix-portability is deprecated; use /fix portability instead.
|
|
13
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
14
|
+
|
|
10
15
|
# fix-portability
|
|
11
16
|
|
|
12
17
|
## Instructions
|
|
@@ -92,8 +97,8 @@ python3 scripts/compress.py --mark-done "{relative_path}"
|
|
|
92
97
|
|
|
93
98
|
## Rules
|
|
94
99
|
|
|
95
|
-
- **Always fix in `.agent-src.uncompressed/`** — never edit `.
|
|
96
|
-
- **
|
|
100
|
+
- **Always fix in `.agent-src.uncompressed/`** — never edit `.augment/` directly.
|
|
101
|
+
- **Copy to `.augment/`** after fixing.
|
|
97
102
|
- **Do NOT commit or push.**
|
|
98
103
|
- **`agents/` directory is allowed** to have project-specific references — skip it.
|
|
99
104
|
- **Do NOT fix references in code blocks** unless the code block is clearly a template.
|
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "address the Copilot/Greptile comments, fix the bot review feedback"
|
|
9
9
|
trigger_context: "open PR with bot review comments unresolved"
|
|
10
|
+
superseded_by: fix pr-bots
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /fix-pr-bot-comments is deprecated; use /fix pr-bots instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# fix-pr-bot-comments
|
|
13
18
|
|
|
14
19
|
## Input
|
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "fix all PR review comments, resolve the review feedback"
|
|
9
9
|
trigger_context: "open PR with unresolved comments (bot + human)"
|
|
10
|
+
superseded_by: fix pr
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /fix-pr-comments is deprecated; use /fix pr instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# fix-pr-comments
|
|
13
18
|
|
|
14
19
|
This command runs `fix-pr-bot-comments` and `fix-pr-developer-comments` in sequence on the same PR.
|
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "fix the human reviewer comments, address the developer feedback"
|
|
9
9
|
trigger_context: "open PR with unresolved human-reviewer comments"
|
|
10
|
+
superseded_by: fix pr-developers
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /fix-pr-developer-comments is deprecated; use /fix pr-developers instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# fix-pr-developer-comments
|
|
13
18
|
|
|
14
19
|
## Input
|
|
@@ -5,8 +5,13 @@ disable-model-invocation: true
|
|
|
5
5
|
suggestion:
|
|
6
6
|
eligible: false
|
|
7
7
|
rationale: "Package-internal — only the event4u/agent-config repo runs this."
|
|
8
|
+
superseded_by: fix refs
|
|
9
|
+
deprecated_in: "1.15.0"
|
|
8
10
|
---
|
|
9
11
|
|
|
12
|
+
> ⚠️ /fix-references is deprecated; use /fix refs instead.
|
|
13
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
14
|
+
|
|
10
15
|
# fix-references
|
|
11
16
|
|
|
12
17
|
## Instructions
|
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "the seeder is broken, foreign key errors in seeders"
|
|
9
9
|
trigger_context: "seeder error output or recent edits in database/seeders/"
|
|
10
|
+
superseded_by: fix seeder
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /fix-seeder is deprecated; use /fix seeder instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# fix-seeder
|
|
13
18
|
|
|
14
19
|
Scans all `PhpDataSeeder` data files for foreign key references that use raw seeder constants
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fix
|
|
3
|
+
description: Fix orchestrator — routes to ci, references, portability, seeder, pr-comments, pr-bot-comments, pr-developer-comments
|
|
4
|
+
cluster: fix
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
suggestion:
|
|
7
|
+
eligible: true
|
|
8
|
+
trigger_description: "fix CI, fix references, fix the broken seeder, fix PR comments, address bot review"
|
|
9
|
+
trigger_context: "user wants to fix something that has a dedicated sub-command"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /fix
|
|
13
|
+
|
|
14
|
+
Top-level orchestrator for the `/fix` family. Replaces 7 standalone commands
|
|
15
|
+
with a single entry point + sub-command dispatch.
|
|
16
|
+
|
|
17
|
+
## Sub-commands
|
|
18
|
+
|
|
19
|
+
| Sub-command | Routes to | Purpose |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `/fix ci` | `fix-ci.md` | Fetch CI errors from GitHub Actions and fix them |
|
|
22
|
+
| `/fix refs` | `fix-references.md` | Find and fix broken cross-references in `.augment/` and `agents/` |
|
|
23
|
+
| `/fix portability` | `fix-portability.md` | Find and fix project-specific references in shared `.augment/` files |
|
|
24
|
+
| `/fix seeder` | `fix-seeder.md` | Scan seeder data files for broken FK references |
|
|
25
|
+
| `/fix pr` | `fix-pr-comments.md` | Fix and reply to **all** open review comments (bots + humans) |
|
|
26
|
+
| `/fix pr-bots` | `fix-pr-bot-comments.md` | Fix and reply to **bot** review comments only |
|
|
27
|
+
| `/fix pr-developers` | `fix-pr-developer-comments.md` | Fix and reply to **human** reviewer comments only |
|
|
28
|
+
|
|
29
|
+
Sub-command names match the locked contract in
|
|
30
|
+
[`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
31
|
+
|
|
32
|
+
## Dispatch
|
|
33
|
+
|
|
34
|
+
1. Parse the user's argument: `/fix <sub-command> [args]`.
|
|
35
|
+
2. Look up the sub-command in the table above.
|
|
36
|
+
3. Load the body of the routed file and follow its `## Instructions` section
|
|
37
|
+
verbatim with the remaining args.
|
|
38
|
+
4. If the sub-command is unknown or missing, print the table above and ask:
|
|
39
|
+
|
|
40
|
+
> 1. ci — fetch and fix GitHub Actions errors
|
|
41
|
+
> 2. refs — fix broken cross-refs in agent docs
|
|
42
|
+
> 3. portability — purge project-specific refs from shared package
|
|
43
|
+
> 4. seeder — scan seeders for broken FK references
|
|
44
|
+
> 5. pr — address all open review comments
|
|
45
|
+
> 6. pr-bots — address bot reviewer comments only
|
|
46
|
+
> 7. pr-developers — address human reviewer comments only
|
|
47
|
+
|
|
48
|
+
## Migration
|
|
49
|
+
|
|
50
|
+
The 7 standalone `/fix-*` commands continue to work for one release cycle as
|
|
51
|
+
deprecation shims. They emit a notice and route to the same content. New
|
|
52
|
+
invocations should use `/fix <sub>`.
|
|
53
|
+
|
|
54
|
+
## Rules
|
|
55
|
+
|
|
56
|
+
- **Do NOT commit, push, or open a PR** unless the sub-command explicitly
|
|
57
|
+
authorizes it. Sub-command rules override these defaults only when stated.
|
|
58
|
+
- **Do NOT chain sub-commands.** One `/fix <sub>` per turn.
|
|
59
|
+
- If the user invokes `/fix` with no argument, **show the menu** — do not
|
|
60
|
+
guess which sub-command they meant.
|
|
@@ -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)
|
|
@@ -86,4 +86,4 @@ Next step: <what the user should do based on the verdict>
|
|
|
86
86
|
- [`subagent-orchestration`](../skills/subagent-orchestration/SKILL.md)
|
|
87
87
|
- [`/do-and-judge`](do-and-judge.md) — if a revision loop is wanted
|
|
88
88
|
- [`/review-changes`](review-changes.md) — human-oriented self-review
|
|
89
|
-
- [`role-contracts`](
|
|
89
|
+
- [`role-contracts`](../../docs/guidelines/agent-infra/role-contracts.md#reviewer) — Reviewer mode output contract (Summary / Risks / Findings / Required actions / Verdict)
|
|
@@ -14,7 +14,7 @@ suggestion:
|
|
|
14
14
|
Creates or updates a single entry in one of the four engineering-memory
|
|
15
15
|
YAML files under `agents/memory/` in the consumer project. The entry
|
|
16
16
|
is validated against the schema in
|
|
17
|
-
[`engineering-memory-data-format`](
|
|
17
|
+
[`engineering-memory-data-format`](../../docs/guidelines/agent-infra/engineering-memory-data-format.md)
|
|
18
18
|
before the file is written.
|
|
19
19
|
|
|
20
20
|
Absence of these files is legal — this command is the entry point for
|
|
@@ -58,7 +58,7 @@ sharded layout: `agents/memory/<type>/*.yml`). For each existing
|
|
|
58
58
|
### 3. Collect the required fields
|
|
59
59
|
|
|
60
60
|
All four types share the frontmatter in
|
|
61
|
-
[`engineering-memory-data-format`](
|
|
61
|
+
[`engineering-memory-data-format`](../../docs/guidelines/agent-infra/engineering-memory-data-format.md#shared-frontmatter-fields).
|
|
62
62
|
Collect in this order, one numbered question at a time:
|
|
63
63
|
|
|
64
64
|
1. `id` — kebab-case slug, unique within the type.
|
|
@@ -125,7 +125,7 @@ link resolves. Broken link → block and ask the user to fix.
|
|
|
125
125
|
|
|
126
126
|
## See also
|
|
127
127
|
|
|
128
|
-
- [`engineering-memory-data-format`](
|
|
128
|
+
- [`engineering-memory-data-format`](../../docs/guidelines/agent-infra/engineering-memory-data-format.md)
|
|
129
129
|
— full schema
|
|
130
130
|
- [`capture-learnings`](../rules/capture-learnings.md) — when a
|
|
131
131
|
learning is better captured as an `incident-learnings` entry vs a
|
|
@@ -80,7 +80,7 @@ opts in.
|
|
|
80
80
|
|
|
81
81
|
The agent should now treat every loaded entry as an authority signal
|
|
82
82
|
with its declared `confidence` — see
|
|
83
|
-
[`memory-access`](
|
|
83
|
+
[`memory-access`](../../docs/guidelines/agent-infra/memory-access.md) for
|
|
84
84
|
how entries modulate edits.
|
|
85
85
|
|
|
86
86
|
## When to reject
|
|
@@ -96,5 +96,5 @@ how entries modulate edits.
|
|
|
96
96
|
- [`memory-add`](memory-add.md) — add a single entry
|
|
97
97
|
- [`memory-promote`](memory-promote.md) — promote an intake signal to
|
|
98
98
|
a curated entry
|
|
99
|
-
- [`memory-access`](
|
|
99
|
+
- [`memory-access`](../../docs/guidelines/agent-infra/memory-access.md) —
|
|
100
100
|
how entries flow into agent decisions
|
|
@@ -61,7 +61,7 @@ gate script to lower the bar.
|
|
|
61
61
|
### 3. Draft the curated entry
|
|
62
62
|
|
|
63
63
|
Using the schema in
|
|
64
|
-
[`engineering-memory-data-format`](
|
|
64
|
+
[`engineering-memory-data-format`](../../docs/guidelines/agent-infra/engineering-memory-data-format.md),
|
|
65
65
|
hydrate the full frontmatter:
|
|
66
66
|
|
|
67
67
|
- `id` — kebab-case slug (not the `sig-*` id — that is an intake marker).
|
|
@@ -142,4 +142,4 @@ git push -u origin memory/promote-<curated-id>
|
|
|
142
142
|
|
|
143
143
|
- [`/propose-memory`](propose-memory.md) — write-side entry point.
|
|
144
144
|
- [`/memory-add`](memory-add.md) — direct curated write (skips intake).
|
|
145
|
-
- [`engineering-memory-data-format`](
|
|
145
|
+
- [`engineering-memory-data-format`](../../docs/guidelines/agent-infra/engineering-memory-data-format.md)
|
|
@@ -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
|
|
@@ -8,6 +8,8 @@ suggestion:
|
|
|
8
8
|
rationale: "Gated by the onboarding-gate rule already; never inferred from prose."
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
<!-- cloud_safe: noop -->
|
|
12
|
+
|
|
11
13
|
# /onboard
|
|
12
14
|
|
|
13
15
|
Centralized first-run flow. Bundles what used to be scattered "ask once"
|
|
@@ -23,7 +25,7 @@ Triggered by the [`onboarding-gate`](../rules/onboarding-gate.md) rule when
|
|
|
23
25
|
- Change cost profile only → [`/set-cost-profile`](set-cost-profile.md).
|
|
24
26
|
- Single-value edit → ask the agent to change it, or edit
|
|
25
27
|
`.agent-settings.yml` directly. The agent follows the merge rules in
|
|
26
|
-
[`layered-settings`](
|
|
28
|
+
[`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md).
|
|
27
29
|
|
|
28
30
|
## Preconditions
|
|
29
31
|
|
|
@@ -132,7 +134,7 @@ template — `minimal` + `skill_improvement: true`):
|
|
|
132
134
|
|
|
133
135
|
Write `onboarding.onboarded: true` to `.agent-settings.yml` using the
|
|
134
136
|
section-aware merge rules from
|
|
135
|
-
[`layered-settings`](
|
|
137
|
+
[`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md#section-aware-merge-rules)
|
|
136
138
|
(preserve comments, key order, touch only the changed fields).
|
|
137
139
|
|
|
138
140
|
### 8. Summary
|
|
@@ -158,10 +160,10 @@ you ask it to change a value.
|
|
|
158
160
|
|
|
159
161
|
### 9. Maintainer-only feature pointer
|
|
160
162
|
|
|
161
|
-
|
|
162
|
-
maintainers who want to opt into artefact-engagement
|
|
163
|
-
can ignore it; the feature is **default-off**
|
|
164
|
-
explicitly enabled.
|
|
163
|
+
Print a one-screen hint after the summary — no question, no prompt, just a
|
|
164
|
+
pointer for maintainers who want to opt into the artefact-engagement
|
|
165
|
+
telemetry layer. Consumers can ignore it; the feature is **default-off**
|
|
166
|
+
and stays off unless explicitly enabled.
|
|
165
167
|
|
|
166
168
|
```
|
|
167
169
|
ℹ️ Maintainer telemetry (opt-in)
|
|
@@ -172,7 +174,7 @@ explicitly enabled.
|
|
|
172
174
|
|
|
173
175
|
The log is local-only JSONL — nothing uploaded, nothing shared across
|
|
174
176
|
projects. Reports: ./agent-config telemetry:report
|
|
175
|
-
Contract + privacy floor:
|
|
177
|
+
Contract + privacy floor: docs/contracts/artifact-engagement-flow.md
|
|
176
178
|
```
|
|
177
179
|
|
|
178
180
|
Skip this block in cloud surfaces (no settings file, no log path).
|
|
@@ -187,9 +189,16 @@ Skip this block in cloud surfaces (no settings file, no log path).
|
|
|
187
189
|
- Never overwrite a non-empty value without asking (applies to `user_name`
|
|
188
190
|
and `ide`).
|
|
189
191
|
|
|
192
|
+
## Cloud Behavior
|
|
193
|
+
|
|
194
|
+
On cloud surfaces (Claude.ai Web, Skills API) this command is **fully inert** —
|
|
195
|
+
there is no `.agent-settings.yml` to write, no `onboarding.onboarded` key to
|
|
196
|
+
flip, and no local IDE/rtk environment to capture. First-run setup is a
|
|
197
|
+
local-agent concern; the cloud agent should proceed without invoking it.
|
|
198
|
+
|
|
190
199
|
## See also
|
|
191
200
|
|
|
192
201
|
- [`onboarding-gate`](../rules/onboarding-gate.md) — rule that triggers this command
|
|
193
202
|
- [`set-cost-profile`](set-cost-profile.md) — isolated profile change
|
|
194
|
-
- [`layered-settings`](
|
|
203
|
+
- [`layered-settings`](../../docs/guidelines/agent-infra/layered-settings.md) — merge rules for mid-life edits
|
|
195
204
|
- [`agent-settings` template](../templates/agent-settings.md) — settings reference
|
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "audit agent infrastructure, tune the agent setup"
|
|
9
9
|
trigger_context: "maintainer working on .augment/ files"
|
|
10
|
+
superseded_by: optimize agents
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /optimize-agents is deprecated; use /optimize agents instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# /optimize-agents
|
|
13
18
|
|
|
14
19
|
Agent infrastructure audit: measure token overhead, check rule triggers, verify AGENTS.md, find stale references. **Suggest only — never auto-apply.**
|
|
@@ -89,7 +94,7 @@ Present candidates with explicit justification. **Never auto-apply.**
|
|
|
89
94
|
### 4. Check AGENTS.md + copilot-instructions.md
|
|
90
95
|
|
|
91
96
|
- **Budget**: AGENTS.md target ≤800 words (max ~1200). copilot-instructions.md < 60 lines (max ~150).
|
|
92
|
-
See `guidelines/agent-infra/size-and-scope.md` for all limits.
|
|
97
|
+
See `docs/guidelines/agent-infra/size-and-scope.md` for all limits.
|
|
93
98
|
- **Quality**: Dev Setup, Testing, Quality Tools need full detail — don't compress to one-liners
|
|
94
99
|
- **Duplication**: only word-for-word identical. Summary + detail = layered context, NOT duplication
|
|
95
100
|
- **Freshness**: paths, commands, references match reality?
|
|
@@ -6,8 +6,15 @@ disable-model-invocation: true
|
|
|
6
6
|
suggestion:
|
|
7
7
|
eligible: false
|
|
8
8
|
rationale: "Niche maintenance tool with no recurring NL trigger."
|
|
9
|
+
superseded_by: optimize augmentignore
|
|
10
|
+
deprecated_in: "1.15.0"
|
|
9
11
|
---
|
|
10
12
|
|
|
13
|
+
> ⚠️ /optimize-augmentignore is deprecated; use /optimize augmentignore instead.
|
|
14
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
15
|
+
|
|
16
|
+
<!-- cloud_safe: noop -->
|
|
17
|
+
|
|
11
18
|
# /optimize-augmentignore
|
|
12
19
|
|
|
13
20
|
Scans the project to find files that waste tokens in Augment's retrieval index
|
|
@@ -263,3 +270,10 @@ echo "Rules ignored: $rules_count"
|
|
|
263
270
|
- **Never ignore always-active rules** — only auto-loaded rules (those with `description` frontmatter) may be ignored.
|
|
264
271
|
- **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`.
|
|
265
272
|
- **Restore previously ignored skills** when the stack changes (e.g., Vue added to project → restore `vue` skill).
|
|
273
|
+
|
|
274
|
+
## Cloud Behavior
|
|
275
|
+
|
|
276
|
+
On cloud surfaces (Claude.ai Web, Skills API) this command is **fully inert** —
|
|
277
|
+
`.augmentignore` is an Augment-Code-specific retrieval-index config; it has
|
|
278
|
+
no equivalent on the cloud surfaces and no file to write. Index pruning is
|
|
279
|
+
a local-agent concern.
|
|
@@ -6,8 +6,13 @@ disable-model-invocation: true
|
|
|
6
6
|
suggestion:
|
|
7
7
|
eligible: false
|
|
8
8
|
rationale: "Niche maintenance tool with no recurring NL trigger."
|
|
9
|
+
superseded_by: optimize rtk
|
|
10
|
+
deprecated_in: "1.15.0"
|
|
9
11
|
---
|
|
10
12
|
|
|
13
|
+
> ⚠️ /optimize-rtk-filters is deprecated; use /optimize rtk instead.
|
|
14
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
15
|
+
|
|
11
16
|
# optimize-rtk-filters
|
|
12
17
|
|
|
13
18
|
## Instructions
|
|
@@ -7,8 +7,13 @@ suggestion:
|
|
|
7
7
|
eligible: true
|
|
8
8
|
trigger_description: "audit my skills, find duplicate skills"
|
|
9
9
|
trigger_context: "maintainer working on .augment/skills/ files"
|
|
10
|
+
superseded_by: optimize skills
|
|
11
|
+
deprecated_in: "1.15.0"
|
|
10
12
|
---
|
|
11
13
|
|
|
14
|
+
> ⚠️ /optimize-skills is deprecated; use /optimize skills instead.
|
|
15
|
+
> This shim is retained for one release cycle (1.15.0 → next minor) and forwards to the same instructions below. See [`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
16
|
+
|
|
12
17
|
# /optimize-skills
|
|
13
18
|
|
|
14
19
|
Skill audit: measure, find duplicates/merge candidates, run linter, present findings. **Suggest only — never auto-apply.**
|
|
@@ -78,7 +83,7 @@ done
|
|
|
78
83
|
```
|
|
79
84
|
|
|
80
85
|
Oversized → suggest splitting by responsibility or extracting reference material.
|
|
81
|
-
Size limits: see `guidelines/agent-infra/size-and-scope.md`.
|
|
86
|
+
Size limits: see `docs/guidelines/agent-infra/size-and-scope.md`.
|
|
82
87
|
|
|
83
88
|
### 6. Present findings
|
|
84
89
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: optimize
|
|
3
|
+
description: Optimize orchestrator — routes to skills, agents, augmentignore, rtk-filters
|
|
4
|
+
cluster: optimize
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
suggestion:
|
|
7
|
+
eligible: true
|
|
8
|
+
trigger_description: "optimize my skills, audit agents, tune augmentignore, optimize rtk filters"
|
|
9
|
+
trigger_context: "maintainer auditing or trimming agent infrastructure"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# /optimize
|
|
13
|
+
|
|
14
|
+
Top-level orchestrator for the `/optimize` family. Replaces 4 standalone
|
|
15
|
+
commands with a single entry point + sub-command dispatch.
|
|
16
|
+
|
|
17
|
+
## Sub-commands
|
|
18
|
+
|
|
19
|
+
| Sub-command | Routes to | Purpose |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `/optimize skills` | `optimize-skills.md` | Audit skills — measure baseline, find duplicates, run linter |
|
|
22
|
+
| `/optimize agents` | `optimize-agents.md` | Audit agent infrastructure — token overhead, rule triggers, AGENTS.md |
|
|
23
|
+
| `/optimize augmentignore` | `optimize-augmentignore.md` | Create or refine `.augmentignore` based on actual stack |
|
|
24
|
+
| `/optimize rtk` | `optimize-rtk-filters.md` | Create or refine project-local rtk filters |
|
|
25
|
+
|
|
26
|
+
Sub-command names match the locked contract in
|
|
27
|
+
[`docs/contracts/command-clusters.md`](../../docs/contracts/command-clusters.md).
|
|
28
|
+
|
|
29
|
+
## Dispatch
|
|
30
|
+
|
|
31
|
+
1. Parse the user's argument: `/optimize <sub-command> [args]`.
|
|
32
|
+
2. Look up the sub-command in the table above.
|
|
33
|
+
3. Load the body of the corresponding `commands/optimize-<sub>.md` file and
|
|
34
|
+
follow its `## Steps` (or `## Instructions`) section verbatim.
|
|
35
|
+
4. If the sub-command is unknown or missing, print the menu and ask:
|
|
36
|
+
|
|
37
|
+
> 1. skills — audit skills (find duplicates, run linter)
|
|
38
|
+
> 2. agents — audit agent infrastructure (token overhead, rule triggers)
|
|
39
|
+
> 3. augmentignore — create or refine `.augmentignore`
|
|
40
|
+
> 4. rtk — create or refine project-local rtk filters
|
|
41
|
+
|
|
42
|
+
## Migration
|
|
43
|
+
|
|
44
|
+
The 4 standalone `/optimize-*` commands continue to work for one release
|
|
45
|
+
cycle as deprecation shims. They emit a notice and route to the same
|
|
46
|
+
content. New invocations should use `/optimize <sub>`.
|
|
47
|
+
|
|
48
|
+
## Rules
|
|
49
|
+
|
|
50
|
+
- **Suggest only — never auto-apply.** All `/optimize` sub-commands are
|
|
51
|
+
audit-grade: they report and propose, but the user approves every change.
|
|
52
|
+
- **Do NOT chain sub-commands.** One `/optimize <sub>` per turn.
|
|
53
|
+
- If the user invokes `/optimize` with no argument, **show the menu** — do
|
|
54
|
+
not guess which sub-command they meant.
|
|
@@ -101,6 +101,6 @@ is intended (rarely).
|
|
|
101
101
|
## See also
|
|
102
102
|
|
|
103
103
|
- [`/memory-add`](memory-add.md) — curated (reviewer-validated) entries.
|
|
104
|
-
- [`engineering-memory-data-format`](
|
|
105
|
-
- [`memory-access`](
|
|
104
|
+
- [`engineering-memory-data-format`](../../docs/guidelines/agent-infra/engineering-memory-data-format.md)
|
|
105
|
+
- [`memory-access`](../../docs/guidelines/agent-infra/memory-access.md) — the
|
|
106
106
|
read-side contract that consumes what this command writes.
|
|
@@ -34,16 +34,18 @@ If no input resolves: ask **one** focused question:
|
|
|
34
34
|
|
|
35
35
|
### 2. Pick the output language
|
|
36
36
|
|
|
37
|
-
Apply the skill's language-strategy block.
|
|
37
|
+
Apply the skill's language-strategy block. Fallback order, first hit wins:
|
|
38
38
|
|
|
39
39
|
1. **User-message language** — latest user message decides. Honours
|
|
40
40
|
the global `language-and-tone` iron law.
|
|
41
|
-
2. **Ticket body language** —
|
|
42
|
-
with no prose)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
2. **Ticket body language** — when the invocation is minimal
|
|
42
|
+
(`/refine-ticket PROJ-123` with no prose), mirror the ticket's
|
|
43
|
+
own language (summary + description).
|
|
44
|
+
3. **`.agent-settings.yml` default** — fallback when both are silent;
|
|
45
|
+
English when the setting is absent.
|
|
46
|
+
|
|
47
|
+
Quoted identifiers (keys, paths, commands) stay native; only the
|
|
48
|
+
prose mirrors the picked language.
|
|
47
49
|
|
|
48
50
|
### 3. Run the refine-ticket skill
|
|
49
51
|
|