integration-builder
Composes a complete payment integration by resolving capability fragments against the chosen provider's catalog entry, then emits a structured file plan for…
Audits an existing PagoKit integration in the current project against the generated per-provider checklist, so it covers every provider in the catalog rather than a hardcoded few. Checks .gitignore covers .env, that env vars are present and use test-key prefixes, that the
$ npx -y skills add Hainrixz/agente-pagokit --skill doctor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/doctorContext preview
The summary Claude sees to decide when to auto-load this skill.
Audits an existing PagoKit integration in the current project against the generated per-provider checklist, so it covers every provider in the catalog rather than a hardcoded few. Checks .gitignore covers .env, that env vars are present and use test-key prefixes, that the
name: doctor description: Audits an existing PagoKit integration in the current project against the generated per-provider checklist, so it covers every provider in the catalog rather than a hardcoded few. Checks .gitignore covers .env, that env vars are present and use test-key prefixes, that the webhook secret looks valid, that the webhook handler verifies signatures, that the minimum events for the integrated provider are routed, and that PAGOKIT_INTEGRATION.md exists. Used by /pagokit:doctor. Read-only — never writes files. when_to_use: | - The user invokes /pagokit:doctor - The user asks "is my payment integration set up correctly?", "did I miss something?", "is this safe to ship?" - The integration-specialist subagent wants a sanity check before declaring an integration complete allowed-tools: Read, Glob, Grep, Bash(ls *), Bash(test *), Bash(git ls-files *)
You audit an existing PagoKit-generated integration. Read-only. Never write files.
The first thing you read is `PAGOKIT_INTEGRATION.md` in the project root. It was written by integration-specialist when the integration was generated and contains:
If `PAGOKIT_INTEGRATION.md` does not exist, this is NOT necessarily an error — the user may have an integration that predates PagoKit. In that case, ask the user "I don't see `PAGOKIT_INTEGRATION.md`. Was this integration generated by PagoKit? If not, I can still audit a known provider — which one are you using?"
Run each check and report a list of `[OK] / [WARN] / [FAIL]` lines. Group by category. At the end, summarize: "N OK, M warnings, K failures."
| Check | How | Severity | |---|---|---| | `.gitignore` exists and includes `.env` (or `.env*` minus `.env.example`) | Read `.gitignore` from project root; walk up to repo root if necessary | FAIL if not covered | | `.env` not committed to git | If `.git/` exists, check `git ls-files .env` would be empty | FAIL if committed | | `.env.example` exists | Glob `.env.example` | WARN if missing | | `.env.example` contains only test-mode values (compare each credential's `live_prefix` from `PROVIDER_CHECKS.md`) | Read it, grep for live prefixes | FAIL if live keys present |
Read **`skills/doctor/PROVIDER_CHECKS.md`** and find the section for the integrated provider. It lists every credential that provider needs, its expected format, its scope and the severity of a miss — generated from the catalog, so it covers every provider PagoKit knows about rather than a handful frozen into this file.
Then read the user's `.env` (read it, never echo it) and compare.
For each required variable:
For each webhook file declared in `PAGOKIT_INTEGRATION.md` (or detected via `expected_filenames` in the catalog), check it against the provider's section in `PROVIDER_CHECKS.md` — which already states the verification family, the correct secret env var, whether the payload is authoritative, and the replay strategy:
If the integration declares an ORM (Prisma / Drizzle / SQLAlchemy / Active Record), verify these tables exist in the schema file:
Last check: does `PAGOKIT_PRODUCTION_CHECKLIST.md` exist in the project root?
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 [OK] .env.example uses test prefixes ... Webhook handler [OK] app/api/webhook/stripe/route.ts verifies signature [OK] raw body captured correctly (Next.js App Router pattern) [FAIL] customer.subscription.updated not routed (expected per Rule providers.json) ... (continue 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.
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.
Repo: Hainrixz/agente-pagokit
Composes a complete payment integration by resolving capability fragments against the chosen provider's catalog entry, then emits a structured file plan for…
Recommends the single best payment provider for the user's project after a short interactive wizard, then hands off to the implementer. Runs a deterministic…
Plans and executes a migration from one payment provider to another without downtime. Establishes what cannot move (stored card tokens usually cannot), maps…
Detects a project's technology stack, framework, deploy target, ORM, primary language, and active payment use cases by reading…
Covers everything after the subscription is created — trials, proration on upgrade and downgrade, dunning and retry schedules, grace periods, involuntary churn…
Explains what a merchant owes the tax authority once a payment succeeds, and whether a merchant of record removes that obligation. Covers the…