Observed since 20 Oct, 23:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xdevabir/enhance
AI prompt middleware — intelligently rewrites developer prompts before sending to coding agents
AI prompt middleware — upgrades vague developer prompts into production-quality instructions before sending to coding agents.
Instead of sending build login page directly to Claude/Codex/OpenCode:
Same effort. Dramatically better output.
npx @0xdevabir/enhance@latest "build a login page"
Runs directly without installing anything globally. Great for trying it out or if you hit permission errors.
npm install -g @0xdevabir/enhance
Permission error (EACCES)? Fix npm's global prefix first, then retry:
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
enhance setup
Detects which AI coding tools you have installed and automatically adds the /enhance slash command to 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 bug
/enhance refactor the user service
Options:
enhance setup --force # overwrite existing installations
enhance setup --all # install for all tools even if not detected
Open Claude Code, OpenCode, or Codex CLI in any project and type:
/enhance build a login page with email and password
enhance setup)/enhance build a login page with email and password
/enhance fix the auth bug
/enhance create a payment form with Stripe
/enhance refactor the user service to use dependency injection
/enhance add dark mode support
Requires API key:
export ANTHROPIC_API_KEY=sk-ant-...
# Basic — scans project, enhances prompt, calls Claude
enhance "build a login page"
# Dry run — see the enhanced prompt without calling AI
enhance "fix the auth bug" --dry-run
# Show enhanced prompt AND call AI
enhance "create dashboard component" --print-prompt
# See detected stack and intent
enhance "refactor user service" --verbose
# Use a different provider
enhance "add payment form" --provider codex
Create .enhancerc.json in your project root to customize behavior per-project:
{
"provider": "claude",
"model": "claude-sonnet-4-6",
"maxContextTokens": 3000,
"customInstructions": "Always use React Query. Prefer named exports."
}
| Key | Default | Description |
|---|---|---|
provider | claude | AI provider: claude, codex, opencode |
model | claude-sonnet-4-6 | Model ID |
maxContextTokens | 3000 | Max characters of project files to include |
customInstructions | — | Extra instructions always injected into every prompt |
Requires ANTHROPIC_API_KEY. Get one at console.anthropic.com.
export ANTHROPIC_API_KEY=sk-ant-...
enhance "build login page"
npm install -g @openai/codex
enhance "build login page" --provider codex
npm install -g opencode
enhance "build login page" --provider opencode
| Category | 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 |
| Testing | Vitest, Jest, Playwright, Cypress |
| Language | TypeScript vs JavaScript |
| Router | Next.js App Router vs Pages Router |
| Package manager | npm, yarn, pnpm, bun |
Input:
enhance "build login page"
Enhanced prompt sent to AI:
You are working inside a Next.js TypeScript project.
## Project Stack
- Language: TypeScript
- Frameworks: Next.js, React, TailwindCSS, shadcn/ui
- UI Library: shadcn/ui
- ORM: Prisma
- Next.js Router: App Router
## Task
Create: build login page
## Requirements
- Use TypeScript throughout — no `any`, prefer `unknown` with type guards
- Use Server Components by default — only add "use client" when needed
- Follow App Router conventions: page.tsx, layout.tsx, route.ts
- Use `next/navigation` for navigation
- Use Tailwind classes — no custom CSS unless unavoidable
- Use shadcn/ui components over building from scratch
- Never store plain text passwords — use bcrypt or argon2
- Use httpOnly, secure cookies for session tokens — never localStorage
- Validate and sanitize all auth inputs server-side
- Consider rate limiting on login/signup endpoints
- ...
git clone https://github.com/0xdevabir/agent-enhance.git
cd agent-enhance
npm install
# Run without building
npm run dev -- "build login page" --dry-run
# Run tests
npm test
# Build
npm run build
MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
oraEnvironment{
"local_name": "ora",
"alias": false,
"peer_metadata": null
} | ^9.4.0 | runtime |
chalkEnvironment{
"local_name": "chalk",
"alias": false,
"peer_metadata": null
} | ^5.6.2 | runtime |
commanderEnvironment{
"local_name": "commander",
"alias": false,
"peer_metadata": null
} | ^14.0.3 | runtime |
fast-globEnvironment{
"local_name": "fast-glob",
"alias": false,
"peer_metadata": null
} | ^3.3.3 | runtime |
cosmiconfigEnvironment{
"local_name": "cosmiconfig",
"alias": false,
"peer_metadata": null
} | ^9.0.1 | runtime |
@anthropic-ai/sdkEnvironment{
"local_name": "@anthropic-ai/sdk",
"alias": false,
"peer_metadata": null
} | ^0.98.0 | runtime |
tsxEnvironment{
"local_name": "tsx",
"alias": false,
"peer_metadata": null
} | ^4.22.3 | development |
tsupEnvironment{
"local_name": "tsup",
"alias": false,
"peer_metadata": null
} | ^8.5.1 | development |
vitestEnvironment{
"local_name": "vitest",
"alias": false,
"peer_metadata": null
} | ^4.1.7 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^6.0.3 | development |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^25.9.1 | development |
Source distribution
{
"shasum": "e56b5d7212f44c81f9d8b20c52e232d4d57adc75",
"tarball": "https://registry.npmjs.org/@0xdevabir/enhance/-/enhance-0.1.0.tgz",
"fileCount": 4,
"integrity": "sha512-tyKaQqT17xQMl6WJkb1xGD7UMg4Nlgd6S8C14J4ViXqSGM45j1gT0dwyvqwfUHCGQGh58S7WARdYVia4cLqKLA==",
"signatures": [
{
"sig": "MEUCIQCuBEQjJPFYPbUePIBW73G9pTB+z4ue+4+TVq9fJ8z/RQIgdJwxE8i6G4/a5+amelX05+TyTj//KNvDuL2I9SWHoxc=",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 39682
}Observed since 20 Oct, 23:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:f0a2ec34c052a85ff72e59891cbf18f242fae9f6a4c8c65e40eb74858ca8f8ac