prompt-optimizer

Analyze draft prompts and generate optimized prompts matched to ECC commands, skills, and agents.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Femad-6/my-skills --skill prompt-optimizer-femad-6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-optimizer
Source: https://github.com/Femad-6/my-skills/tree/main/.github/skills/prompt-optimizer
Command: npx skills add https://github.com/Femad-6/my-skills --skill prompt-optimizer-femad-6

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 the project tech stack, and produces a ready-to-paste optimized prompt wired to the right ECC commands, skills, and agents. ## Core Features & Use Cases - Six-Phase Analysis Pipeline: Detects project tech stack, classifies intent (feature, bug fix, refactor, research, testing, review, docs, infrastructure, design), assesses scope from TRIVIAL to EPIC, and identifies missing context. - ECC Component Matching: Maps intent and tech stack (Python, Go, TypeScript, Swift, Kotlin, Java, and more) to specific commands like /plan, /tdd, /code-review, and /verify, plus matching skills and agents. - Structured Output: Delivers a diagnosis table, recommended components, full and quick optimized prompt versions, and model recommendations (Sonnet 4.6 vs Opus 4.6). - Use Case: A user pastes "帮我写一个用户登录页面". The Skill detects a Next.js project, then outputs a complete Chinese prompt covering auth requirements, TDD workflow, security constraints, acceptance criteria, and scope boundaries. ## Quick Start Ask the assistant to optimize your draft prompt, for example by saying "optimize this prompt: add a REST API endpoint for user profile updates".

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 or ECC?

Paste your draft prompt and ask to optimize it. The Skill runs a six-phase pipeline that detects your tech stack, classifies intent, assesses scope, and outputs a full optimized prompt with the right /plan, /tdd, /code-review, and /verify commands.

What triggers the prompt-optimizer skill?

It triggers on phrases like "optimize prompt", "improve my prompt", "rewrite this prompt", and Chinese equivalents such as "优化prompt" or "帮我优化这个指令". It does not trigger for code or performance optimization requests.

Does prompt-optimizer execute the task it optimizes?

No, it is advisory only. It never writes code, creates files, or runs commands. Its only output is an analysis plus an optimized prompt you can paste and run separately.

Which tech stacks does prompt optimization support?

It auto-detects stacks from project files like package.json, go.mod, pyproject.toml, Cargo.toml, and Gemfile. Supported mappings include Python/Django, Go, TypeScript/React, Spring Boot, Kotlin/Android, Swift/iOS, PostgreSQL, Perl, and C++.

When should I not use prompt optimization?

Skip it when you want the task executed directly, when asking about ECC configuration, or when requesting a skill inventory. It is designed only for improving prompt quality before execution.