/afrotools:checkfrom afrotools
Pre-production security and correctness check for apps using African payment/messaging APIs. Scans for leaked API keys, verifies server-side payment confirmation with amount comparison, idempotency, idempotent webhook handling, and webhook signature verification against Afro.tools provider specs.
Ships in afrotools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The cheap check that always runs before going live. Speak to the user in their language, in plain words; report each problem as what could go wrong for them, then what you change.
Keys (rule 3): run the free script on the project, no AI involved. Its source is
scripts/scan-secrets.md (a fenced code block, not a runnable file: the
directory only accepts scripts from a Verified organization, which this plugin isn't yet). Write that
block, unchanged, to .afrotools/tools/scan-secrets.mjs in the project (create .afrotools/tools/
first if missing; overwrite the file if it already exists, so an older copy never runs), then:
node .afrotools/tools/scan-secrets.mjs .
Exit 0: nothing found. Exit 1: each line is file:line: reason. Exit 2: a file or folder could not
be read (it is named on a could not read line, the rest was scanned and its findings are printed):
say which, as not checked. If the output is a Node error such as Cannot find module, the script
did not run: fix the path and run it again; it is not a finding.
For each finding, never copy or move the key's value yourself. Replace the literal with
process.env.NAME read on the server only, rename a variable a bundler sends to the browser, and
stop tracking a committed .env (git rm --cached). Then tell the user the key must be treated as
leaked: regenerate it at the provider and put the new one in .env themselves. Moving it is not
enough while the old one is still valid and in the history.
Payments, webhooks and messages (rules 1, 2 and 4). For each provider the app uses (from
.afrotools/studio.md, or the code), fetch its specs: afrotools.get_spec() for the payment, its
status and its webhook. Then read the code that handles them and check, one line each, yes or no
with the file and line:
webhook.signature;rateLimit.storage: "database", not the in-memory default), a phone code is also
counted per phone number, and the email sign-up route is closed to strangers (enabling email and
password opens it, page or no page: only the owner's first account passes, then the owner creates
the others);A spec's gotcha may make a rule hard (for example a status call that fails in the sandbox): say so, and keep the payment pending rather than confirming it on a weaker proof.
Report in two groups: blocking (money or customer data at risk) and can wait. A way for
a stranger to send messages without a limit or to read customer data, for a customer to pay twice, or for an order to be marked paid without a verified payment, is always
blocking. If the user goes live without fixing a blocking point, add it to
.afrotools/accepted-risks.md in the format given in ../review/SKILL.md. Fix what
you can with the user's agreement, then run the check again.
Offer the deeper checks, strongly advised, never forced: a code review and a security audit by a
separate reviewer (/afrotools:review), saying what they catch and that they use tokens (the
assistant's usage, included in their plan up to a limit or billed by use).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub afrotools/afrotools --plugin afrotools13 skills in this plugin
/communicationsUse this skill whenever the user wants to send SMS, OTPs, verification codes, bulk notifications, WhatsApp messages, USSD menus, voice calls (voix), or transactional email via an African communications provider — including NimbaSMS, Africa's Talking, or any provider in the Afro.tools registry. Activate even for "send a verification code", "add SMS notifications" or "build a USSD menu", not just explicit mentions of a provider name. If the user is creating a new app or service from an idea, use the `studio` skill instead.
/debugUse this skill ONLY when the user has a failing integration that is specifically based on an Afro.tools spec — the user is integrating a provider whose spec exists in the Afro.tools registry (Paycard, LengoPay, Djomy, Wave, NimbaSMS, etc.) and encounters wrong status codes, auth errors, webhook failures, unexpected response fields, or runtime errors. Do NOT activate for generic debugging, non-afrotools providers, or integrations not based on an Afro.tools spec. This skill diagnoses whether the problem is a spec error, a missing gotcha, or an undocumented API change.
/diagnoseUse when afro.tools Studio or an afrotools skill did not work as expected: prepares a cleaned bug report and a link to a prefilled GitHub issue that the user reviews and submits themselves. Invoke with: /afrotools:diagnose. Manual invocation only.
Other plugins' skills for the same job