A plugin for AI-assisted development tools that provides:
/optimizecommandoptimize_promptMCP tool- Skill definition
Refines your prompts to be clearer, more specific, and more actionable.
| Tool | Plugin Directory | Configuration |
|---|---|---|
| ZCode | ~/.zcode/cli/plugins/custom/prompt-optimizer/ |
Settings → Plugin Management → Discover → Add repo URL |
| Claude Code | ~/.claude/plugins/prompt-optimizer/ |
claude plugins install or manual copy |
| Codex CLI | ~/.codex/plugins/prompt-optimizer/ |
codex plugin install or manual copy |
| Reasonix | ~/.reasonix/skills/prompt-optimizer/ |
Automatic skill discovery |
| DSH | tools/dsh/npm/ (npm package, dsh-market ready) |
dsh plugin --profile web add dsh-prompt-optimizer |
| MimoCode | ~/.mimocode/plugins/prompt-optimizer/ |
Settings → Plugins |
| OpenCode | ~/.opencode/mcp-servers/prompt-optimizer/ |
MCP server configuration |
git clone https://github.com/goodie1972/prompt-optimizer.gitgit clone https://gitee.com/uprobao/prompt-optimizer.gitpip install prompt-optimizer-mcp- Copy the entire
prompt-optimizerfolder to:~/.zcode/cli/plugins/custom/prompt-optimizer/ - In ZCode, go to Settings → Plugin Management → Discover → Click
⊕→ Enter the repo URL:- GitHub:
https://github.com/goodie1972/prompt-optimizer - Gitee:
https://gitee.com/uprobao/prompt-optimizer
- GitHub:
- Enable the plugin.
- Configure your API key in
~/.zcode/mcp/prompt-optimizer/.env.
- Copy the entire
prompt-optimizerfolder to:~/.claude/plugins/prompt-optimizer/ - Restart Claude Code or run:
claude plugins install
- The
/optimizecommand andoptimize_promptMCP tool will be available.
- Copy the entire
prompt-optimizerfolder to:~/.codex/plugins/prompt-optimizer/ - Restart Codex or run:
codex plugin install
- The
/optimizecommand andoptimize_promptMCP tool will be available.
- Copy the
skills/prompt-optimizerfolder to:~/.reasonix/skills/prompt-optimizer/ - Restart Reasonix. The skill will be auto-discovered.
- Use the
optimize_promptskill in your workflows.
- Install via npm (recommended — appears in dsh-market):
dsh plugin --profile web add dsh-prompt-optimizer
- Or install from the repo:
cd tools/dsh/npm npm install dsh plugin --profile web add .
- The
/optimizecommand,optimize_promptMCP tool, and Settings page (Settings → Prompt Optimizer) will be available.
dsh-market submission: The DSH npm package is ready to be submitted to awesome-dsh-plugin via PR. See
tools/dsh/awesome-dsh-plugin-entry.ymlfor the registry entry.
- Copy the entire
prompt-optimizerfolder to:~/.mimocode/plugins/prompt-optimizer/ - In MimoCode Settings → Plugins, enable the plugin.
- The
/optimizecommand andoptimize_promptMCP tool will be available.
- Copy the
mcp/server.pyfile to:~/.opencode/mcp-servers/prompt-optimizer/server.py - Create a config file:
{ "mcpServers": { "prompt-optimizer": { "command": "python", "args": ["~/.opencode/mcp-servers/prompt-optimizer/server.py"], "env": {} } } } - Restart OpenCode. The
optimize_promptMCP tool will be available.
For all tools that use the MCP server:
~/.zcode/mcp/prompt-optimizer/.env
or environment variables:
OPTIMIZE_API_KEY+OPTIMIZE_BASE_URL+OPTIMIZE_MODEL- Or any known provider key (e.g.,
OPENAI_API_KEY,DEEPSEEK_API_KEY,AGNES_API_KEY)
In any supported tool's chat interface:
/optimize Your raw prompt here
In your tool's AI workflow, call:
optimize_prompt(prompt="Your raw prompt here")- Fixed recursive optimization issue: added marker and instruction to prevent infinite loops when using /optimize command repeatedly.
- Added multi-tool support: ZCode, Claude Code, Codex CLI, Reasonix, DSH, MimoCode, OpenCode
- DSH npm package with dsh-market registry ready
- Updated documentation with tool-specific installation guides
- Added Gitee mirror for China mainland users
- Documentation updated to bilingual (Chinese/English)
- Compatible with mcp 2.0.0 (
FastMCP→MCPServer)
- Initial release
- GitHub: https://github.com/goodie1972/prompt-optimizer
- Gitee: https://gitee.com/uprobao/prompt-optimizer
- PyPI: https://pypi.org/project/prompt-optimizer-mcp/
- Live Demo: https://goodie1972.github.io/prompt-optimizer/demo.html
- Issues: https://github.com/goodie1972/prompt-optimizer/issues
MIT © goodie1972