Skip to content
Development
Command

/doctor

Audit an existing PagoKit integration — gitignore, env vars, key prefixes, webhook secret, raw body, replay protection, idempotency, DB schema, minimum events handled.

From plugin
pagokit
708 skills1 agent8 commands5 hooks
> /plugin marketplace add Hainrixz/agente-pagokit
> /plugin install pagokit@tododeia

Command definition

doctor.md
description: Audit an existing PagoKit integration — gitignore, env vars, key prefixes, webhook secret, raw body, replay protection, idempotency, DB schema, minimum events handled.
argument-hint: (no arguments)

You are entering the PagoKit `doctor` flow. Read-only audit — never write files.

1. **Invoke the `doctor` skill**, which:

  • Reads `PAGOKIT_INTEGRATION.md` from the project root for context (provider, files generated, events routed, ORM, deploy target).
  • If the file is missing, asks the user which provider they're using and proceeds best-effort.
  • Runs each check in the categories defined in the skill: Environment hygiene · Required env vars · Webhook handler quality · Idempotency · DB schema · Production-readiness pointer.
  • Emits a per-check status line `[OK] / [WARN] / [FAIL]`.
  • Produces a summary count and a "Next steps" list.

2. **Report the audit result to the user** verbatim in their language. Format:

   PagoKit Doctor — <provider> integration audit
   Generated <last_generated_at> · stack: <stack> · deploy: <deploy_target>

   Environment hygiene
     [OK]   .gitignore covers .env
     [OK]   .env not tracked in git
     ...

   Webhook handler
     [OK]   app/api/webhook/stripe/route.ts verifies signature
     [FAIL] customer.subscription.updated not routed
     ...

   (per category)

   Summary: 17 OK · 2 warnings · 1 failure

   Next steps:
   1. Route the missing event customer.subscription.updated (see templates/stripe/subscription.md).
   2. Address the warnings before going live.

3. **Never echo secret values** even when you read `.env`. Just report match / no-match against pattern.

Anti-patterns

  • Do NOT write files, run migrations, or modify settings during a `doctor` flow. Pure read.
  • Do NOT recommend fixes that require live keys. First step is always: make the sandbox green.
  • Do NOT skip categories. Even if early categories fail badly, run the full audit so the user gets a complete picture.
Read more
@hainrixz
Ships withpagokit

Claude Code plugin that picks and implements the right payment method for your app — from your terminal. 42 providers, 136 payment rails, and deterministic validators that block insecure payment code as it is written.

708 skills1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
70
Star history of Hainrixz/agente-pagokit on GitHub, a chart by star-history.com

Other commands on pagokit.

add

add

Command

Add a second payment provider alongside an existing integration, without touching the one already running.

@hainrixz@hainrixzInstall Command
compare

compare

Command

Compare two or more payment providers head to head for a concrete situation — real fees on a real amount, coverage, onboarding…

@hainrixz@hainrixzInstall Command
coverage

coverage

Command

Show what you can actually use in a given country — providers, local rails, currency exponent, e-invoicing obligation, and…

@hainrixz@hainrixzInstall Command
harden

harden

Command

Audit a hand-written payment integration and FIX what it finds. Unlike /pagokit:doctor, which is read-only, this one writes.

@hainrixz@hainrixzInstall Command
migrate

migrate

Command

Migrate from one payment provider to another, keeping the old one running until the new one is proven.

@hainrixz@hainrixzInstall Command
start

start

Command

Analyze the current project and generate a production-ready payment integration (frontend + backend + webhook + DB + portal +…

@hainrixz@hainrixzInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command