slash command · AI & ML
Prompt Optimize
by wshobson
Optimize prompts for production with CoT, few-shot, and constitutional AI patterns
- Claude Code
- Codex
- ★ 43k on GitHub
- Updated 2026-11-18
- MIT
Calyban is a free desktop app. It checks Prompt Optimize for red flags before installing, lets you choose the agent and folder, and undoes it in one click.
Install Prompt Optimize manually
Prefer the terminal? This does the same thing as Calyban's install.
Claude Code
mkdir -p ~/.claude/commands
curl -fsSL https://raw.githubusercontent.com/wshobson/agents/42203085cfc5736204bf0f6d436dff7e1da0bf3f/plugins/llm-application-dev/commands/prompt-optimize.md -o ~/.claude/commands/prompt-optimize.mdCodex
mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/wshobson/agents/42203085cfc5736204bf0f6d436dff7e1da0bf3f/plugins/llm-application-dev/commands/prompt-optimize.md -o ~/.codex/prompts/prompt-optimize.mdStart a new Claude Code & Codex session afterwards so it picks up the change.
Similar slash commands
Astra Reviewaffaan-mSend Claude-written code to GPT-6-Astra (ChatGPT, via Codex CLI) for an independent cross-provider review, then fix what it finds.Model Routeaffaan-mRecommend the best model tier for the current task based on complexity, risk, and budget.Multi Backendaffaan-mRun a backend-focused multi-model workflow for APIs, algorithms, data, and business logic.Multi Executeaffaan-mExecute a multi-model implementation plan while preserving Claude as the only filesystem writer.Multi Frontendaffaan-mRun a frontend-focused multi-model workflow for components, layouts, animation, and UI polish.Multi Planaffaan-mCreate a multi-model (Codex + Antigravity) implementation plan without modifying production code. Requires the external ccg-workflow runtime, not part of the base ECC install (see Prerequisite below). Use when the user…
Guides
Listed in the public Calyban catalog. Prompt Optimize is made by wshobson, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.