Installation

Install enhance globally, then run enhance setup to install the /enhance slash command into every AI coding tool it detects on your machine.

Install globally
Run setup
Use it

Prerequisites

  • Node.js 20 or later
  • At least one AI coding tool: Claude Code, OpenCode, or Codex CLI
1

Install (pick one)

Option A — No install needed (recommended)

Terminal
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)

Terminal
npm install -g @0xdevabir/enhance

Permission 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

Terminal (run once)
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/enhance
2

Run setup

Terminal
enhance setup

Detects which AI coding tools you have installed and installs the /enhance slash command for each one.

Output
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 bug

Setup options

Terminal
enhance setup --force   # overwrite existing installations
enhance setup --all     # install for all tools even if not in PATH
3

Use it

Open Claude Code, OpenCode, or Codex CLI in any project:

Claude Code / OpenCode / Codex
/enhance build a login page with email and password

That'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.