Docs
Quick start
npm install -g @sinameraji/pm
cd your-product-repo
pm init # paste your Anthropic API key
pm audit
Don't want to install globally? npx @sinameraji/pm@latest audit works without
any install. macOS users hitting EACCES on global install:
one-time prefix fix.
PM runs on the source code in your current directory (primary source of truth). No
browser automation, no fake signups. Step 2 of pm audit optionally asks for
your public marketing URL (landing/pricing/features) — auxiliary context that helps with
positioning. Skip with Enter.
PM uses Claude (Sonnet 4.6 by default, Opus 4.7 on the deep tier). You
bring your own Anthropic API key — your key, your rate limits, your bill. A typical audit
takes 8–12 minutes and costs roughly $1–3 at your account's rates. Nothing is transmitted
anywhere except api.anthropic.com.
The six-stage method
PM runs a deterministic pipeline. Each stage checkpoints to disk and can be replayed independently. Artifacts live in .pm/artifacts/{audit_id}/:
map.yaml— the static code map (routes, forms, components, nav)lean-canvas.yaml— Stage A: what the builder intendedpaths.yaml— Stage B: imagined user journey per personadelta.yaml— Stage C: the structured differenceproblems.yaml— Stage D: ranked by leverage argumentsolutions.yaml+prototypes/*.html— Stage E: top-5 fixesspec.md+spec.html— Stage F: the PM deliverable
Commands
pm init— initialize.tpm/and walk you through Anthropic key + tierpm audit— run the full audit on this codebasepm audit --no-stream— disable the streaming progress UI for CIpm report [audit_id]— show a prior spec.md / spec.htmlpm config get/set/unset/show— inspect or change configpm cost— show what your audits cost, aggregated locallypm feedback— how to send feedback about an audit
Privacy & security
PM runs on your machine. Prompts go directly to api.anthropic.com using your
API key. There is no PM-operated backend; no analytics; no phone-home. Your source code
never leaves your machine except as inference prompts you can inspect in
pm audit --verbose.