Skip to content
affaan-m avatar

Prompt Optimizer

Turns a rough prompt into a ready-to-paste optimized version, matching it to ECC commands, skills, and agents without executing the task itself.

CCM score
69 of 100
skills.sh installs
14.5K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers six analysis phases: project detection, intent classification, scope assessment, ECC component matching, missing context detection, and workflow recommendation
  • Maps intents like new features, bug fixes, and refactors to specific commands such as /plan, /tdd, and /verify, plus matching skills and agents
  • Enforces advisory-only output: no code, files, or commands are produced, and "just do it" requests are redirected to a normal task request
  • Designed for users who want better prompts for Claude Code or ECC, and should not trigger on code or performance optimization requests

Install

$ npx -y skills add affaan-m/ecc --skill prompt-optimizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Prompt Optimizer

Analyze a draft prompt, critique it, match it to ECC ecosystem components, and output a complete optimized prompt the user can paste and run.

When to Use

  • User says "optimize this prompt", "improve my prompt", "rewrite this prompt"
  • User says "help me write a better prompt for..."
  • User says "what's the best way to ask Claude Code to..."
  • User says "优化prompt", "改进prompt", "怎么写prompt", "帮我优化这个指令"
  • User pastes a draft prompt and asks for feedback or enhancement
  • User says "I don't know how to prompt for this"
  • User says "how should I use ECC for..."
  • User explicitly invokes /prompt-optimize

Do Not Use When

  • User wants the task done directly (just execute it)
  • User says "优化代码", "优化性能", "optimize this code", "optimize performance" — these are refactoring tasks, not prompt optimization
  • User is asking about ECC configuration (use configure-ecc instead)
  • User wants a skill inventory (use skill-stocktake instead)
  • User says "just do it" or "直接做"

How It Works

Advisory only — do not execute the user's task.

Details

Repository
github.com/affaan-m/ecc
Categories
Agent Workflow & Planning, Skill & Plugin Building
First seen
Jul 14, 2026

More from affaan-m/ecc

All 257

Similar to Prompt Optimizer

More Agent Workflow & Planning