Usage
Enhance has two modes: the slash command inside your AI coding tool, and a standalone CLI that calls the AI directly.
Slash command (recommended)
After running enhance setup, open Claude Code, OpenCode, or Codex CLI in any project and type:
Your AI coding tool
/enhance build a login page with email and password
/enhance fix the auth bug
/enhance refactor the user service
/enhance create a payment form with StripeThe enhancement loop
Enhance never executes immediately. It shows you the enhanced prompt first and asks for approval.
1
You type a vague prompt
/enhance make dashboard2
Enhance scans + rewrites — shows you the result
## ✦ Enhanced Prompt
Context: Next.js App Router, TypeScript, TailwindCSS, shadcn/ui
Task: Build a responsive dashboard page at app/dashboard/page.tsx...
Requirements:
- Server Component by default
- Use shadcn Card, Table components
- No `any` types
...
> Does this look right? Reply yes to execute, no to refine.3a
Say yes → executes the task
yes3b
Say no → Enhance asks what to fix
no
# Claude asks: What's missing or wrong?
add dark mode and use recharts for the charts
# Enhance revises and shows the updated prompt again.Standalone CLI
Call the AI directly from your terminal. Requires an API key.
Terminal
export ANTHROPIC_API_KEY=sk-ant-...
# Enhance + call Claude
enhance "build a login page"
# Dry run — print enhanced prompt only
enhance "fix the auth bug" --dry-run
# Show enhanced prompt then call AI
enhance "create dashboard" --print-prompt
# See detected stack and intent
enhance "refactor user service" --verbose
# Use a different provider
enhance "add payment form" --provider codexWhat gets detected
Frameworks
Next.js, React, Vue, Svelte, Nuxt, Remix, Astro, Express, Fastify, Hono, NestJS
Styling
TailwindCSS, shadcn/ui, Material UI, Chakra UI, Ant Design
ORMs
Prisma, Drizzle, TypeORM, Mongoose
Router type
Next.js App Router vs Pages Router (auto-detected)
Language
TypeScript vs JavaScript
Package manager
npm, yarn, pnpm, bun