ECC/commands
Jinyi_Yang 83f6d5679c
feat(skills): add prompt-optimizer skill and /prompt-optimize command (#418)
* feat(skills): add prompt-optimizer skill and /prompt-optimize command

Adds a prompt-optimizer skill that analyzes draft prompts, matches them
to ECC components (skills/commands/agents), and outputs a ready-to-paste
optimized prompt. Advisory role only — never executes the task.

Features:
- 6-phase analysis pipeline (project detection, intent, scope, component
  matching, missing context, workflow + model recommendation)
- Auto-detects project tech stack from package.json, go.mod, etc.
- Maps intents to ECC commands, skills, and agents by type and tech stack
- Recommends correct model tier (Sonnet vs Opus) based on task complexity
- Outputs Full + Quick versions of the optimized prompt
- Hard gate: never executes the task, only produces advisory output
- AskUserQuestion trigger when 3+ critical context items are missing
- Multi-prompt splitting guidance for HIGH/EPIC scope tasks
- Feedback footer for iterative refinement

Also adds /prompt-optimize command as an explicit invocation entry point.

* fix: keep prompt optimizer advisory-only

* fix: refine prompt optimizer guidance

---------

Co-authored-by: Affaan Mustafa <affaan@dcube.ai>
2026-03-12 23:40:02 -07:00
..
build-fix.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
checkpoint.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
claw.md feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
code-review.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
e2e.md fix: harden hook portability and plugin docs 2026-03-09 22:49:43 -07:00
eval.md feat: package as Claude Code plugin with marketplace distribution 2026-01-22 04:16:49 -08:00
evolve.md feat: project-scoped instinct isolation 2026-03-01 12:07:13 -08:00
go-build.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
go-review.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
go-test.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
gradle-build.md feat: add Kotlin, Android, and KMP rules, agent, skills, and command 2026-03-10 20:53:39 -07:00
harness-audit.md feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
instinct-export.md feat: project-scoped instinct isolation 2026-03-01 12:07:13 -08:00
instinct-import.md feat: project-scoped instinct isolation 2026-03-01 12:07:13 -08:00
instinct-status.md feat: project-scoped instinct isolation 2026-03-01 12:07:13 -08:00
learn-eval.md docs: clarify learn-eval verdict flow 2026-03-10 20:14:19 -07:00
learn.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
loop-start.md feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
loop-status.md feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
model-route.md feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
multi-backend.md fix(commands): make ace-tool MCP optional in multi-* commands with built-in fallbacks 2026-03-04 14:49:53 -08:00
multi-execute.md fix(commands): make ace-tool MCP optional in multi-* commands with built-in fallbacks 2026-03-04 14:49:53 -08:00
multi-frontend.md fix(commands): make ace-tool MCP optional in multi-* commands with built-in fallbacks 2026-03-04 14:49:53 -08:00
multi-plan.md fix(commands): make ace-tool MCP optional in multi-* commands with built-in fallbacks 2026-03-04 14:49:53 -08:00
multi-workflow.md feat: add orchestration workflows and harness skills 2026-03-12 14:49:05 -07:00
orchestrate.md feat: add orchestration workflows and harness skills 2026-03-12 14:49:05 -07:00
plan.md fix: harden hook portability and plugin docs 2026-03-09 22:49:43 -07:00
pm2.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
projects.md fix: resolve CI failures on main — lint, hooks validator, and test alignment 2026-03-02 22:15:46 -08:00
promote.md fix: resolve CI failures on main — lint, hooks validator, and test alignment 2026-03-02 22:15:46 -08:00
prompt-optimize.md feat(skills): add prompt-optimizer skill and /prompt-optimize command (#418) 2026-03-12 23:40:02 -07:00
python-review.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
quality-gate.md feat: deliver v1.8.0 harness reliability and parity updates 2026-03-04 14:48:06 -08:00
refactor-clean.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
resume-session.md docs: align session commands with session manager 2026-03-10 20:24:15 -07:00
save-session.md docs: align session commands with session manager 2026-03-10 20:24:15 -07:00
sessions.md feat: add orchestration workflows and harness skills 2026-03-12 14:49:05 -07:00
setup-pm.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
skill-create.md feat: add skill-create and continuous-learning-v2 commands 2026-01-27 04:01:06 -08:00
tdd.md fix: harden hook portability and plugin docs 2026-03-09 22:49:43 -07:00
test-coverage.md docs: enhance 5 thin commands and add Rust API example 2026-02-12 15:38:27 -08:00
update-codemaps.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
update-docs.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
verify.md feat: package as Claude Code plugin with marketplace distribution 2026-01-22 04:16:49 -08:00