prompt-optimizer
Analyze the original prompt, identify intent and gaps, match ECC components (skills/commands/agents/hooks), and return an optimized prompt ready to paste. Advisory only: never execute the task itself. Trigger when the user asks to optimize or improve a prompt, asks how to write one, requests help refining an instruction, or explicitly requests better prompt quality. Equivalent Chinese phrases also trigger: “优化prompt”, “改进prompt”, “怎么写prompt”, and “帮我优化这个指令”. Do not trigger when the user wants direct task execution or says “直接做” (just do it). Do not trigger for “优化代码”, “优化性能”, “optimize performance”, or “optimize this code”: these are refactoring/performance tasks rather than prompt optimization.
Translation reviewedRead the original Chinese text
分析原始提示,识别意图和差距,匹配ECC组件(技能/命令/代理/钩子),并输出一个可直接粘贴的优化提示。仅提供咨询角色——绝不自行执行任务。触发时机:当用户说“优化提示”、“改进我的提示”、“如何编写提示”、“帮我优化这个指令”或明确要求提高提示质量时。中文等效表达同样触发:“优化prompt”、“改进prompt”、“怎么写prompt”、“帮我优化这个指令”。不触发时机:当用户希望直接执行任务,或说“直接做”时。不触发时机:当用户说“优化代码”、“优化性能”、“optimize performance”、“optimize this code”时——这些是重构/性能优化任务,而非提示优化。
Target: Software development & testing. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original Chinese text
Topics in the source
- Prompt 优化器
- 何时使用
- 不要用于
- 工作原理
- 分析流程
- 阶段 0:项目检测
- 阶段 1:意图检测
- 阶段 2:范围评估
分析一个草稿提示,对其进行评估,匹配到 ECC 生态系统组件,并输出一个完整的优化提示供用户复制粘贴并运行。 用户说“优化这个提示”、“改进我的提示”、“重写这个提示” 用户说“帮我写一个更好的提示来...” 用户说“询问 Claude Code 的...最佳方式是什么?” 用户说“优化prompt”、“改进prompt”、“怎么写prompt”、“帮我优化这个指令” 用户粘贴一个草稿提示并要求反馈或改进 用户说“我不知道如何为此编写提示” 用户说“我应该如何使用 ECC 来...” 用户明确调用 /prompt-optimize 用户希望直接执行任务(直接执行即可) 用户说“优化代码”、“优化性能”、“optimize this code”、“optimize performance”——这些是重构任务,不是提示优化 用户询问 ECC 配置(改用 configure-ecc) 用户想要技能清单(改用 skill-stocktake) 用户说“直接做”或“just do it” 仅提供建议——不要执行用户的任务。 不要编写代码、创建文件、运行命令或采取任何实现行动。你的唯一输出是分析加上一个优化后的提示。 如果用户说“直接做”、“just do it”或“不要优化,直接执行”,不要在此技能内切换到实现模式。告诉用户此技能只生成优化提示,并指示他们如果要执行任务,请提出正常的任务请求。 按顺序运行这个 6 阶段流程。使用下面的输出格式呈现结果。 在分析提示之前,检测当前项目上下文: 1. 检查工作目录中是否存在 CLAUDE.md——读取它以了解项目惯例 2. 从项目文件中检测技术栈: package.json → Node.js / TypeScript / React / Next.js go.mod → Go pyproject.toml / requirements.txt → Python Cargo.toml → Rust build.gradle / pom.xml → Java / Kotlin(然后检查构建文件中的quarkus → Quarkus,或spring-boot → Spring Boot) Package.swift → Swift Gemfile → Ruby composer.json → PHP .csproj / .sln → .NET Makefile / CMakeLists.txt → C / C++ cpanfile / Makefile.PL → Perl 3. 记录检测到的技术栈,用于阶段 3 和阶段 4 如果未找到项目文件(例如,提示是抽象的或用于新项目),则跳过检测并在阶段 4 标记“技术栈未知”。 将用户的任务分类为一个或多个类别: | 类别 | 信号词 | 示例 | |----------|-----
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/zh-CN/skills/prompt-optimizer/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:42.531Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.