Installation
Install enhance globally, then run enhance setup to install the /enhance slash command into every AI coding tool it detects on your machine.
Prerequisites
- Node.js 20 or later
- At least one AI coding tool: Claude Code, OpenCode, or Codex CLI
Install (pick one)
Option A — No install needed (recommended)
npx @0xdevabir/enhance@latest "build a login page"Runs directly without touching your system. Use this if you just want to try it, or if you see a permission error below.
Option B — Global install (for daily use)
npm install -g @0xdevabir/enhancePermission error? (EACCES)
This means Node.js was installed without nvm and your system owns /usr/local/lib/node_modules. Fix it once with Option C, or just use Option A above.
Option C — Fix npm prefix, then install
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
npm install -g @0xdevabir/enhanceRun setup
enhance setupDetects which AI coding tools you have installed and installs the /enhance slash command for each one.
Enhance — Setup
Detected: Claude Code, OpenCode
Not found: Codex CLI
✓ Claude Code → ~/.claude/commands/enhance.md
✓ OpenCode → ~/.opencode/commands/enhance.md
Ready. In any project, type:
/enhance build a login page
/enhance fix the auth bugSetup options
enhance setup --force # overwrite existing installations
enhance setup --all # install for all tools even if not in PATHUse it
Open Claude Code, OpenCode, or Codex CLI in any project:
/enhance build a login page with email and passwordThat's it.
Enhance scans your project, rewrites the prompt with full context and best practices, and shows you the result before executing. Say yes to proceed or no to refine.