prompt-optimizer

Analyzes draft prompts and generates optimized prompts matched to ECC components.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/freedom909/real-estate-saas --skill prompt-optimizer-freedom909
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prompt-optimizer
Source: https://github.com/freedom909/real-estate-saas/tree/main/.trae/skills/prompt-optimizer
Command: npx skills add https://github.com/freedom909/real-estate-saas --skill prompt-optimizer-freedom909

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Vague or incomplete prompts lead to poor AI coding results. This Skill diagnoses weaknesses in a draft prompt, detects missing context like tech stack and acceptance criteria, and rewrites it into a complete, ready-to-paste prompt aligned with the ECC ecosystem of commands, skills, and agents. ## Core Features & Use Cases - Six-Phase Analysis Pipeline: Detects project tech stack from files like package.json or go.mod, classifies intent (feature, bug fix, refactor, research), assesses scope from TRIVIAL to EPIC, and identifies missing context. - ECC Component Matching: Maps the task to specific slash commands (/plan, /tdd, /verify), skills (tdd-workflow, blueprint), agents (code-reviewer), and model recommendations (Sonnet 4.6 vs Opus 4.6). - Bilingual Trigger Support: Responds to both English and Chinese optimization requests such as "优化prompt" or "rewrite this prompt". - Use Case: A user pastes "帮我写一个用户登录页面". The Skill detects a Next.js + TypeScript project, flags missing security and acceptance criteria, and outputs a full optimized prompt with /plan, /tdd, /code-review, and /verify workflow stages. ## Quick Start Ask the AI to optimize or rewrite your draft prompt, for example by saying "optimize this prompt for adding a user profile API endpoint".

Frequently Asked Questions about prompt-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a prompt for Claude Code?▼

Paste your draft prompt and ask to optimize or rewrite it. The Skill runs a six-phase pipeline that detects your project tech stack, classifies intent and scope, matches ECC components, and returns a complete optimized prompt ready to copy-paste.

What ECC components does prompt optimization recommend?▼

Recommendations include slash commands like /plan, /tdd, /code-review, and /verify, skills such as tdd-workflow and blueprint, agents like code-reviewer and architect, plus a model tier suggestion based on task scope from TRIVIAL to EPIC.

Does prompt-optimizer execute the task it optimizes?▼

No, it is advisory only and never writes code, creates files, or runs commands. Its only output is an analysis plus an optimized prompt. If you want execution, make a normal task request instead.

Can I use prompt-optimizer with Chinese prompts?▼

Yes, it triggers on Chinese phrases like "优化prompt", "改进prompt", and "帮我优化这个指令", and responds in the same language as the user's input while following the same analysis pipeline.

When should I not use prompt-optimizer?▼

Do not use it when you want the task executed directly, when asking about code or performance optimization (those are refactoring tasks), or when you need ECC configuration help or a skill inventory.

How does prompt-optimizer handle large multi-session tasks?▼

For HIGH or EPIC scope tasks, it recommends splitting work into sequential prompts: research and planning first, one implementation phase per prompt with /verify gates, and /save-session plus /resume-session to preserve context between sessions.