prompt-optimizer
Was er macht
Dieser KI-Agent hilft dir, deine Anfragen (Prompts) an andere KIs zu verbessern. Er analysiert, was du fragen willst, schlägt Verbesserungen vor und zeigt dir, welche KI-Tools für deine Aufgabe am besten geeignet sind.
Wann du ihn nutzt
- ✓Wenn du eine KI bitten möchtest, eine Anfrage, die du geschrieben hast, zu verbessern.
- ✓Wenn du nicht sicher bist, wie du die KI nach etwas fragen sollst.
- ✓Wenn du wissen willst, welche KI-Tools sich für eine bestimmte Aufgabe am besten eignen.
Link zum Skill
https://github.com/affaan-m/ECC/blob/main/skills/prompt-optimizer/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Optimiere diesen Prompt: 'Schreibe Code für eine einfache Website'.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent versteht zuerst dein Ziel und den Kontext deines Projekts. Danach schlägt er einen klareren Prompt vor und nennt die passendsten KI-Tools, um die Aufgabe zu erledigen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
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-eccinstead) - User wants a skill inventory (use
skill-stocktakeinstead) - 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:
- Check if a
CLAUDE.mdexists in the working directory — read it for project conventions - Detect tech stack from project files:
package.json→ Node.js / TypeScript / React / Next.jsgo.mod→ Gopyproject.toml/requirements.txt→ PythonCargo.toml→ Rustbuild.gradle/pom.xml→ Java / Kotlin (then check forquarkusin build file → Quarkus, orspring-boot→ Spring Boot)Package.swift→ SwiftGemfile→ Rubycomposer.json→ PHP*.csproj/*.sln→ .NETMakefile/CMakeLists.txt→ C / C++cpanfile/Makefile.PL→ Perl
- Note detected tech stack for use in Phase 3 and Phase 4
If no project files are found (e.g., the prompt is abstract or for a new project), skip detection and flag "tech stack unknown" in Phase 4.
Phase 1: Intent Detection
Classify the user's task into one or more categories:
| Category | Signal Words | Example |
|---|---|---|
| New Feature | build, create, add, implement, 创建, 实现, 添加 | "Build a login page" |
| Bug Fix | fix, broken, not working, error, 修复, 报错 | "Fix the auth flow" |
| Refactor | refactor, clean up, restructure, 重构, 整理 | "Refactor the API layer" |
| Research | how to, what is, explore, investigate, 怎么, 如何 | "How to add SSO" |
| Testing | test, coverage, verify, 测试, 覆盖率 | "Add tests for the cart" |
| Review | review, audit, check, 审查, 检查 | "Review my PR" |
| Documentation | document, update docs, 文档 | "Update the API docs" |
| Infrastructure | deploy, CI, docker, database, 部署, 数据库 | "Set up CI/CD pipeline" |
| Design | design, architecture, plan, 设计, 架构 | "Design the data model" |
Phase 2: Scope Assessment
If Phase 0 detected a project, use codebase size as a signal. Otherwise, estimate from the prompt description alone and mark the estimate as uncertain.
| Scope | Heuristic | Orchestration |
|---|---|---|
| TRIVIAL | Single file, < 50 lines | Direct execution |
| LOW | Single component or module | Single command or skill |
| MEDIUM | Multiple components, same domain | Command chain + /verify |
| HIGH | Cross-domain, 5+ files | /plan first, then phased execution |
| EPIC | Multi-session, multi-PR, architectural shift | Use blueprint skill for multi-session plan |
Phase 3: ECC Component Matching
Map intent + scope + tech stack (from Phase 0) to specific ECC components.
By Intent Type
| Intent | Commands | Skills | Agents |
|---|---|---|---|
| New Feature | /plan, /tdd, /code-review, /verify | tdd-workflow, verification-loop | planner, tdd-guide, code-reviewer |
| Bug Fix | /tdd, /build-fix, /verify | tdd-workflow | tdd-guide, build-error-resolver |
…
Häufige Fragen
Was ist ein 'Prompt'?
Ein Prompt ist die Anweisung oder Frage, die du einer künstlichen Intelligenz gibst.
Erledigt der Agent die Aufgabe für mich?
Nein, er optimiert nur deine Anfrage. Den optimierten Prompt musst du dann mit einem anderen KI-Tool verwenden, um die Aufgabe auszuführen.
Was sind 'ECC-Komponenten'?
Das sind die verschiedenen Tools und Agenten innerhalb des KI-Systems, die dabei helfen können, Aufgaben zu erledigen.
Details
Originalbeschreibung des Autors
Analyze draft prompts, detect intent and missing context, match ECC commands, skills, and agents, and output a ready-to-paste optimized prompt with diagnosis and rationale — advisory only, never executes the task. Use when the user says 'optimize prompt', 'improve my prompt', 'rewrite this prompt', 'help me prompt', 优化prompt, 改进prompt, 怎么写prompt, or 帮我优化这个指令; not for requests to optimize code or p
repo: affaan-m/ECC
Beliebtheit
- GitHub-Sterne
- 280k
- Platz im Ranking
- #387
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
accessibility
280kHilft deinem Agenten, barrierefreie Oberflächen zu bauen. Websites und Apps werden so auch für Blinde und Menschen mit eingeschränkter Mobilität gut nutzbar.
agent-architecture-audit
280kLässt deinen Agenten prüfen, ob alles richtig läuft. Er findet und behebt Probleme in KI-Systemen, damit sie wie erwartet arbeiten.
agent-eval
280kHilft deinem Agenten, verschiedene KI-Coding-Tools zu vergleichen. Er misst, welches für bestimmte Aufgaben schneller, günstiger und zuverlässiger ist.
agent-harness-construction
280kMacht deinen Agenten besser darin, Aufgaben zu lösen. Er optimiert die Tools und Anweisungen, die er nutzt, damit er mit höherer Wahrscheinlichkeit erfolgreich ist.
Ähnliche Skills
writing-skills
311kBringt deinem Agenten bei, neue Skills zu schreiben und jeden zuerst zu testen, und zu prüfen, ob der Skill das Verhalten des Agenten tatsächlich verändert.
writing-for-agents
310kErklärt, wie du klare Anweisungen für KI-Agenten schreibst, einschließlich Skills, AGENTS.md- und CLAUDE.md-Dateien, damit sich der Agent berechenbar verhält.
dspy
260kHilft deinem Agenten, KI-Programme zu bauen, indem Ein- und Ausgaben festgelegt werden, und die Prompts danach mit Beispieldaten optimiert.