optimize-approachlisted
Install: claude install-skill mthines/agent-skills
# Optimize Approach
Given a change and its intent, decide whether it takes the **most optimal approach** — and if not, propose or apply a concretely better one.
This skill is the fourth review lens in this repo, distinct from the three that already exist:
| Lens | Question | Applies? |
| --- | --- | --- |
| `holistic-analysis` review | Does the diff *do what it claims* and *fit the system*? | No |
| `critical` | How could this *fail*? | No |
| `code-quality` simplify | Can this be *mechanically* simpler? | Yes — Class M only |
| **`optimize-approach`** *(this skill)* | Is this the *most optimal approach*, and if not what is? | Yes — gated |
> **This `SKILL.md` is a thin index.** Detailed rules live in `rules/*.md` and load on demand.
---
## Mode Detection
Parse the **first token** of `$ARGUMENTS`.
| Mode | Default | Trigger | What it does |
| --- | --- | --- | --- |
| `report` | **yes** | No mode token, or `report` | Emit a structured proposal (or nothing when optimal). Never edits files. |
| `apply` | | First token `apply` | Same analysis, then apply the top proposal behind a confidence gate. Own-work contexts only. |
| `plan` | | First token `plan` | Review a drafted plan's approach at plan time (aw-planner Phase 1). Returns plan-level proposals; the planner revises the plan. See [`rules/plan-mode.md`](./rules/plan-mode.md). |
## Flags
| Flag | Applies to | Effect |
| --- | --- | --- |
| `--no-confidence-gate` | `apply` | **Human-only override.** Bypasses the `con