Command Palette

Search for a command to run...

Назад к скиллам
скилл № 18775

new

Use when adding a new API provider to the Afro.tools registry. Point it at the provider's documentation URL (or a local file) and it will: discover all API…

БесплатноБез исполняемых скриптов
afrotoolsот afrotools★ 32 звезды на GitHub

Установить new в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/afrotools:new

Reads provider API documentation and scaffolds a complete, validated set of ATSS specs for every capability it finds. Acts as a meticulous contractor: read everything first, plan the full scope, implement each piece, verify each piece, then do a final sweep before declaring done.

Usage

/afrotools:new <docs_url_or_path> [category] [provider_slug]

category and provider_slug are optional — infer them from the docs when not provided.

Examples:

/afrotools:new https://docs.wave.com/business payment wave
/afrotools:new https://developer.orange.com/apis/om-webpay-senegal payment orangemoney-senegal
/afrotools:new ./local-api-docs.html communications nimbasms

Workflow

Step 0 — Create a git branch

Before writing any file, create a branch:

git pull origin main

# New provider (all capabilities in one PR):
git checkout -b spec/{provider_slug}

# Adding capabilities to an existing provider:
git checkout -b spec/{provider_slug}-{short-description}
# e.g. spec/wave-payouts, spec/nimbasms-contacts

Never write spec files directly on main.


Phase 1 — Read docs and understand the provider

Step 1. Ingest the documentation.

If the argument is a URL:

WebFetch(url)

If it is a local file path:

Read(path)

If the docs reference sub-pages (authentication guide, webhook reference, error codes, pagination), fetch those too before proceeding. Never assume the landing page contains everything — capabilities are often spread across multiple pages.

If the fetch fails (401, 403, timeout, or docs behind a login):

  1. Try appending /docs, /api, or /reference to the base URL.
  2. Ask the user if they have a Postman collection or OpenAPI file they can share as a local path.
  3. Ask them to paste the relevant documentation sections directly in the conversation.
  4. As a last resort, work from code examples visible on the provider's website or dashboard. Never invent fields — only document what you can verify.

Step 2. Extract provider metadata.

From the docs, identify:

  • Provider display name (e.g. "Wave", "NimbaSMS")
  • Provider slug — lowercase, no spaces. Single-word providers: wave, nimbasms. Compound names or geographic variants may use hyphens: orangemoney-mali, orangemoney-senegal.
  • Category — payment, communications (SMS, WhatsApp, USSD, voice, email providers) or identity (KYC, document verification, AML); extend only if genuinely needed. For communications, also list the provider's channels — only the ones its docs clearly document (sms, whatsapp, ussd, voice, email)
  • Countries where the provider operates (ISO 3166-1 alpha-2 codes)
  • Currencies accepted (ISO 4217 codes) — must be coherent with country list
  • Whether a sandbox/test environment exists (boolean)
  • Whether the API docs are publicly accessible (docs_public boolean)
  • Provider website URL and docs URL

If any field cannot be determined from the docs, mark it explicitly as unknown — never guess.

Step 3. Build a capability inventory table.

Read the entire documentation systematically. For every HTTP endpoint and webhook event, add a row:

# Capability (snake_case) HTTP Method Endpoint URL Type
1 create_payment POST /v1/payments synchronous
2 verify_payment GET /v1/payments/{id} synchronous
3 webhook_payment_completed — {your_webhook_url} webhook

Capability naming conventions:

  • create_{resource}, verify_{resource}, get_{resource}, list_{resources}
  • Actions: expire_checkout, refund_payment, confirm_otp
  • Webhooks: webhook_{event_name} (e.g. webhook_payment_completed, webhook_sms_status)

capability_type rules:

  • synchronous — result available immediately in the HTTP response
  • asynchronous — provider queues the work; you must poll a separate endpoint for the result
  • webhook — provider sends an HTTP POST to your URL when an event occurs

Which endpoints to include: Include every endpoint a developer needs to build a complete integration. Skip:

  • Admin/backoffice-only endpoints (not usable in customer-facing flows)
  • Pure infrastructure endpoints (health checks, /ping, uptime probes)
  • Explicitly deprecated endpoints — note them in the table with "deprecated" and skip implementing

When in doubt, include it. A spec is cheap; a missing one causes real integration failures.


CHECKPOINT 1 — Discovery verification (mandatory before writing any file)

Re-read the docs with the capability table in hand. Section by section, confirm:

  • Is every endpoint already in the table?
  • Are there webhook events documented on a separate page?
  • Are there async poll endpoints that pair with a queued action endpoint?
  • Are there utility endpoints (balance inquiry, recipient verification, transaction search)?

Do not start Phase 2 until you are confident the table is exhaustive. If something is ambiguous, resolve it explicitly

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/canonical_example_templates.md

FAQ

Что делает скилл new?

Use when adding a new API provider to the Afro.tools registry. Point it at the provider's documentation URL (or a local file) and it will: discover all API endpoints, create provider.json, generate schema.json + canonical_example.ts for every capability, run validation, and optionally verify response schemas against the live API. Invoke with: /afrotools:new <docs_url> [category] [provider_slug]. Manual invocation only.

Как установить скилл new?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл new запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить new с