AI agent setup
Tell your AI agent: "Set up ProdVerdict for this repo."
The agent runs a non-interactive bootstrap — config, scheduled workflow, Cursor MCP, and agent rule — and only asks you for credentials if they are missing from .env.local or your shell.
One command (agent or human)
npx prodverdict setup --yes --format agent --from-env
Returns JSON with:
| Field | Meaning |
|---|---|
verdict | pass, partial, or fail |
filesWritten | Paths created or updated |
envWired | Env var names applied from .env.local / .env |
missing | Credentials still needed (e.g. STRIPE_SECRET_KEY) |
nextSteps | What to do next |
MCP tool
If local MCP is already configured, the agent can call bootstrap_prodverdict instead of shelling out.
Args: stack (optional), repoRoot, fromEnv (default true), force, skipWorkflow.
Install agent skills
Before setup (no repo files yet) — global install:
npx skills add prodv-dev/prodverdict-sdk@prodverdict-setup -g -y
npx skills add prodv-dev/prodverdict-sdk@prodverdict-verify -g -y
On bootstrap — setup --yes copies skills into .cursor/skills/ automatically. Skip with --skip-skills.
See Agent skills for details.
Typical agent flow
npx prodverdict scan --format agent
npx prodverdict setup --yes --format agent --from-env
npx prodverdict status --format agent
npx prodverdict doctor --format agent
- Scan — detect stack and recommended contracts
- Bootstrap — write all files; wire MCP env from existing
.env.local - Status — confirm config, workflow, MCP, credentials
- Doctor — verify connectivity when credentials are present
When credentials are missing
The agent should guide you (not guess keys):
- Stripe: dashboard.stripe.com/apikeys — restricted key, Customers + Subscriptions read
- Postgres: read-only role — export
DATABASE_URL=postgresql://prodverdict_readonly:...@host/db - GitHub Actions secrets:
gh secret set STRIPE_SECRET_KEY,DATABASE_URL,SLACK_WEBHOOK_URL
Re-run bootstrap after exporting vars.
Customize prodverdict.yml
Bootstrap writes placeholder price IDs (price_your_*). The agent should grep your repo for real Stripe price IDs and update prodverdict.yml before the first live check.
Rules for agents
- Never commit secrets —
.env.localand MCP env stay local - Fail closed — missing credentials must fail checks, not pass silently
- Deterministic checks only — no LLM in the evaluation path
Interactive alternative
npx prodverdict setup
Human wizard with billing key and Postgres role helpers (~5 minutes).
See Cursor setup for MCP config details.