Use 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 th...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Debug?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/afrotools-debug)
---
name: debug
description: >
Use 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.
---
# Afro.tools — Debug skill
When this skill activates, fetch the spec for the affected provider and capability,
then systematically compare it against the user's implementation to find the gap.
## Workflow
1. Identify the provider slug and capability from the error, code snippet, or user
description. Ask if unclear — don't guess.
2. Fetch the spec:
```
afrotools.get_spec({ provider: "<slug>", capability: "<capability>" })
```
3. **Check gotchas first.** Most integration failures map directly to a documented
gotcha. Read every entry before looking elsewhere.
4. Cross-check the implementation against the spec:
- **Auth** — correct field name, location (header vs body), format string
- **Endpoint** — correct method and URL, path params in the right place
- **Field names** — provider fields are often non-standard (e.g. `paycard-amount`,
not `amount`); compare the user's payload against `input_schema`
- **Status values** — enums are case-sensitive (e.g. LengoPay uses `SUCCESS`,
not `success`); `code: 0` on Paycard means "found", not "paid"
- **Webhook** — returning HTTP 200 immediately, not fulfilling on a callback its spec does not trust alone (see its gotchas),
HTTPS required for some providers
5. Surface the diagnosis clearly:
- Quote the relevant spec field or gotcha
- Show what the code does vs. what the spec requires
- Provide a minimal corrected snippet
6. If the spec itself is wrong (not the user's code), or the provider's API changed, offer to
report it so the spec gets fixed:
```
afrotools.report_integration({ provider: "<slug>", capabilities: [{ capability: "<capability>", result: "wrong: <spec says … / API returns …>" }], summary: "<one line>", details: "<spec says … / API returns …>" })
```
Give the user the returned link to review and submit. Never put API keys, tokens, phone
numbers or personal data in `details`.