Skip to content
Back to skills

Debug

ASecurity

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...

  • 32 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsrustgodebuggingapi

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add afrotools/afrotools --skill debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/afrotools-debug/badge)](https://www.skillsdirectory.com/skills/afrotools-debug)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.