← Files ConductorARCHIVED FILE

commands/conductor-optimize.md

1.53 KB · Oct 3, 2026 · 06:32 UTC

↓ Download file

---
name: conductor-optimize
description: Review and optimize an existing Conductor workflow
---

Run the optimization checklist in [skills/conductor/references/optimization.md](../skills/conductor/references/optimization.md) against a workflow the user names.

## Procedure

1. **Identify the target.** Ask the user: a JSON file path, or a registered workflow name (+ optional version)? If they don't say, ask once.
2. **Load the definition.**
   - File: `Read` the JSON.
   - Registered: `conductor workflow get {name}` (omit `--version` for latest).
3. **Load each SIMPLE task's definition.** Timeouts, retry policy, rate limits, and `concurrentExecLimit` live on the task definition, not on the workflow task. Run `conductor taskDef get {name}` for every distinct SIMPLE task type referenced.
4. **Walk every checklist item.** Categories A–E (A1–A7, B1–B7, C1–C5, D1–D3, E1–E3). Don't skip any — record findings as INFO if the item is fine, just to show coverage.
5. **Report findings grouped by severity** (CRITICAL / WARN / INFO). Use the report template in optimization.md. See [skills/conductor/examples/review-workflow.md](../skills/conductor/examples/review-workflow.md) for the expected shape.
6. **Offer fixes one at a time.** Don't apply changes silently. For each fix, describe what you'd change before doing it. Some findings (e.g. `failureWorkflow` design, retry semantics) need user input before you can implement.

If the user wants only a quick scan, prioritize CRITICAL items and skip the INFO-only output. Otherwise, full report.

SHA-256: 1e76b6fdf0d4709d016d82c1db0d11716ad08fff29c3458ede88afa59c85ab4f