affaan-m/ECC · prompt-optimizer · SKILL.md
提示优化器
分析提示草稿,检测意图和缺失的上下文,匹配 ECC 命令、技能和客服代表,并输出一个可直接粘贴的优化提示,附带诊断和理由——仅提供建议,绝不执行任务。当用户说“优化提示”、“改进我的提示”、“重写此提示”、“帮我提示”、优化prompt、改进prompt、怎么写prompt或帮我优化这个指令时使用;不适用于优化代码或性能的请求。
这是公开 Agent Skill 的中文说明,由采集翻译或编辑润色,完整内容以上游 SKILL.md 为准。适用于 Cursor / Claude Code / Codex / Gemini。 打开上游 SKILL.md
安装
通用(npx skills)
npx skills add affaan-m/ECC -s prompt-optimizer
Cursor
把该 Skill 复制到项目的 .cursor/skills/prompt-optimizer/ 目录
Claude Code
/plugin marketplace add affaan-m/ECC
中文说明
# 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.** Do NOT write code, create files, run commands, or take any implementation action. Your ONLY output is an analysis plus an optimized prompt. If the user says "just do it", "直接做", or "don't optimize, just execute", do not switch into implementation mode inside this skill. Tell the user this skill only produces optimized prompts, and instruct them to make a normal task request if they want execution instead. Run this 6-phase pipeline sequentially. Present results using the Output Format below. ### Analysis Pipeline ### Phase 0: Project Detection Before analyzing the prompt, detect the current project context: 1. Check if a `CLAUDE.md` exists in the working directory — read it for project conventions 2. Detect tech stack from project files: - `package.json` → Node.js / TypeScript / React / Next.js - `go.mod` → Go - `pyproject.toml` / `requirements.txt` → Python - `Cargo.toml` → Rust - `build.grad