affaan-m avatar

Prompt Optimizer

This one sits between you and Claude Code to make your prompts actually work. Instead of executing tasks, it analyzes what you're asking for, figures out which ECC skills and commands apply, checks your tech stack from project files, and hands back a complete optimized prompt you can paste. It's especially useful when you're working cross-domain or don't know which skills exist for your stack. The six-phase pipeline catches missing context like acceptance criteria or security requirements before you waste a round trip. Supports both English and Chinese triggers. Think of it as a prompt linter that knows the entire ECC ecosystem.

skills.sh installs
6.3K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Frontend Development, Code Review & Quality, AI & Agent Building, Debugging
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1expo avatarexpo-observeexpo/skillsUse for anything related to EAS Observe — adding `expo-observe` to an Expo project (AppMetricsRoot/ObserveRoot HOC, markInteractive, the useObserve hook, the Ex6.2Kskills.sh installs
2forcedotcom avatarplatform-metadata-api-context-getforcedotcom/sf-skillsREQUIRED companion for Salesforce metadata generation — load this schema/API-context skill in the SAME turn as ANY metadata generation skill; if you load a gene6.2Kskills.sh installs
3affaan-m avatarjava-coding-standardsaffaan-m/eccJava coding standards for Spring Boot and Quarkus services: naming, immutability, Optional usage, streams, exceptions, generics, CDI, reactive patterns, and pro6.2Kskills.sh installs
4vinvcn avatarimprove-codebase-architecturevinvcn/mattpocock-skills-zh-cn扫描代码库中的深化机会,生成可视化 HTML 报告,然后围绕你选中的候选项继续追问。6.1Kskills.sh installs
5affaan-m avatarremotion-video-creationaffaan-m/eccBest practices for Remotion - Video creation in React. 29 domain-specific rules covering 3D, animations, audio, captions, charts, transitions, and more.6Kskills.sh installs
6forcedotcom avatarplatform-custom-tab-generateforcedotcom/sf-skillsUse this skill when users need to create or configure Salesforce Custom Tabs. Trigger when users mention tabs, navigation tabs, object tabs, web tabs, Visualfor6Kskills.sh installs