@vibecodiq/cli
v0.10.0
Published
Safety scanner, architecture guard & slice scaffolding for AI-built apps
Downloads
340
Maintainers
Readme
@vibecodiq/cli
Safety scanner, architecture guard & slice scaffolding for AI-built apps.
34 automated safety checks on auth, billing, admin, and architecture. Trust Score + AI Chaos Index computed locally. CI enforcement on every PR. Your code never leaves your machine.
Install
npx @vibecodiq/cli scan # Zero-install (recommended)
npm install -g @vibecodiq/cli # Or global installRequires Node.js 18+. Zero config. No login required.
Scan
Detect safety gaps and structural risk. Results in seconds.
npx @vibecodiq/cli scan # Safety scan — Trust Score (A-F)
npx @vibecodiq/cli scan --architecture # Architecture scan — AI Chaos Index (0-100)Guard
Enforce safety rules on every PR. Prevent regressions in CI.
npx @vibecodiq/cli guard init # Safety mode — CI workflow + baseline
npx @vibecodiq/cli guard init --all # Full mode — safety + architecture rules
npx @vibecodiq/cli guard check # Run checks locally or in CI (exit 1 on fail)Full mode (--all) creates:
.asa/rules/architecture.md— architecture rules for AI (Lovable, Bolt, v0).cursorrules— same rules for IDE (Cursor, Windsurf, Claude Code).github/workflows/asa-guard.yml— CI workflow that checks every PR.asa/baseline.json— snapshot of existing issues (won't block commits)
Create Slice
Scaffold domain slices with the correct file structure.
npx @vibecodiq/cli create-slice auth/login
npx @vibecodiq/cli create-slice billing/subscribe
npx @vibecodiq/cli create-slice admin/user-listCreates 4 template files per slice: Component, Hook, actions.ts, types.ts.
Waivers
Handle false positives without disabling checks.
npx @vibecodiq/cli waiver create AUTH-06 1c78c0cc "Custom auth via Edge Functions"What It Checks
Auth Safety (8 checks)
service_role key exposure, RLS policies, getUser() vs getSession(), NEXT_PUBLIC_ secrets, protected route redirects, client/server auth separation, eval()/dangerouslySetInnerHTML
Billing Safety (8 checks)
Stripe key exposure, webhook signature verification, raw body preservation, idempotent processing, client-side billing state, server-initiated checkout, success_url fulfillment, PCI raw card data
Admin Safety (4 checks)
Server-side auth on admin endpoints, admin route protection, debug route exposure, hardcoded credentials
Architecture (10 checks)
Domain isolation, cross-domain imports (AST-based), thin pages, shared/ separation, file size limits, empty slice detection, server action pragma, port compliance, CI/CD pipeline, test files
Foundation (4 checks)
.env.example exists, no committed secrets, TypeScript strict mode, global error boundary
34 checks total. Based on the ASA Standard.
How It Works
- Scan runs locally — CLI analyzes source files using AST parsing and pattern matching. No code is uploaded.
- Findings sent to API — only metadata (check IDs, pass/fail, relative file paths). No source code, no secrets.
- API returns intelligence — Trust Score, AI Chaos Index, fix prompts, shareable report link.
If the API is unavailable, CLI still works — you get local results without report link.
Learn More
- CLI Documentation — full command reference
- Safety Checks — detailed explanation of each check
- ASA Standard — open standard for protecting AI-built apps
- Vibecodiq — production safety for AI-built apps
