agentleFS
roedyrustamroedyrustam/doku-gemini-mcp/skills/fetch-api-spec/SKILL.md

fetch-api-spec

Skill2 starsChanged 8 days agoMITView on GitHub

Fetch, extract, and structure official DOKU Payment Gateway API specs from developers.doku.com and persist locally / Mengambil dan menyusun spesifikasi API resmi DOKU dari developers.doku.com dan menyimpannya secara lokal.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    MANDATORY: When testing in Sandbox mode and needing to access the Payment Simulator, the AI Agent MUST use this exact URL: …

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fetch DOKU API Spec / Ambil Spesifikasi API DOKU

English | Bahasa Indonesia


<a name="english"></a>

English

Description

Fetches and updates the latest DOKU Payment Gateway API endpoint definitions, request payload structures, header requirements, and status code references from DOKU Developers Portal. Saves structured specification metadata to .doku-spec.json.

Trigger Conditions

Activate this skill when the user says:

  • "fetch DOKU API spec"
  • "update DOKU endpoints"
  • "download DOKU API documentation"

Step-by-Step Execution Protocol

  1. Verify Target Core Endpoints:
    • Checkout Initiate API: /checkout/v1/payment
    • Checkout Cancellation API: /checkout/v3/cancellations
    • Virtual Account API (Jokul v2): /doku-virtual-account/v2/payment-code
    • Virtual Account API (BI-SNAP): /virtual-accounts/bi-snap-va/v1.1/transfer-va/create-va
    • QRIS API (Jokul v2): /qris/v1/payment-code
    • QRIS API (SNAP MPM): /snap-adapter/b2b/v1.0/qr/qr-mpm-generate
    • SNAP B2B Token API: /authorization/v1/access-token/b2b
    • E-Wallet API: /e-wallet/v1/payment
    • Direct Card API: /credit-card/v1/payment
    • Status Inquiry API: /orders/v1/status/:invoice_number
    • Online Refund API: /orders/v1/refund
  2. Validate Mandatory Headers Standard:
    • Jokul v2: Client-Id, Request-Id, Request-Timestamp, Signature. (Note: Request-Target and Digest are used for Signature string, NOT as headers).
    • SNAP v1.0 Asymmetric: Content-Type: application/json, X-CLIENT-KEY, X-TIMESTAMP, X-SIGNATURE (SHA256withRSA).
    • SNAP v1.0 Symmetric: Authorization: Bearer <token>, X-PARTNER-ID, X-EXTERNAL-ID, X-TIMESTAMP, X-SIGNATURE (HMAC-SHA512), CHANNEL-ID.
  3. Generate Local Spec Cache (.doku-spec.json):
    {
      "apiVersion": "v2",
      "snapVersion": "v1.0",
      "lastUpdated": "2026-11-05T00:00:00Z",
      "endpoints": {
        "checkout": "/checkout/v1/payment",
        "checkoutCancel": "/checkout/v3/cancellations",
        "virtualAccount": "/doku-virtual-account/v2/payment-code",
        "snapVirtualAccount": "/virtual-accounts/bi-snap-va/v1.1/transfer-va/create-va",
        "qrisJokul": "/qris/v1/payment-code",
        "qrisSnap": "/snap-adapter/b2b/v1.0/qr/qr-mpm-generate",
        "snapB2bToken": "/authorization/v1/access-token/b2b",
        "status": "/orders/v1/status",
        "refund": "/orders/v1/refund"
      },
      "signatureAlgorithms": {
        "jokul": "HMACSHA256",
        "snapAsymmetric": "SHA256withRSA",
        "snapSymmetric": "HMAC-SHA512"
      }
    }

<a name="bahasa-indonesia"></a>

Bahasa Indonesia

Deskripsi

Mengambil dan memperbarui definisi endpoint API DOKU Payment Gateway terbaru, struktur payload request, persyaratan header, dan referensi status code dari DOKU Developers Portal. Menyimpan metadata spesifikasi ke .doku-spec.json.

Kondisi Pemicu

Aktifkan skill ini ketika pengguna mengatakan:

  • "fetch DOKU API spec"
  • "perbarui endpoint DOKU"
  • "unduh dokumentasi API DOKU"

🚨 SNAP Integration Mandate (CRITICAL)

MANDATORY: The AI Agent MUST automatically apply the SNAP API v1.0 standard (Standard Nasional Open API Pembayaran) for all DOKU integrations, instead of the legacy Jokul API v2, unless the user explicitly requests otherwise. All generated signatures, headers, and endpoints MUST follow the SNAP BI standard.

🧪 DOKU Sandbox Simulator

MANDATORY: When testing in Sandbox mode and needing to access the Payment Simulator, the AI Agent MUST use this exact URL: https://sandbox.doku.com/gtw-config-v2/simulator.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.