agentleFS
roedyrustamroedyrustam/doku-gemini-mcp/skills/generate-postman/SKILL.md

generate-postman

Skill2 starsChanged 9 days agoMITView on GitHub

Export a ready-to-use Postman Collection v2.1 with pre-request JavaScript scripts for automatic DOKU HMAC-SHA256 signature generation / Ekspor koleksi Postman v2.1 lengkap dengan script pre-request untuk pembuatan signature DOKU HMAC-SHA256.

  • Reads credentials

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 77

≈ “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

Generate Postman Collection / Ekspor Koleksi Postman DOKU

English | Bahasa Indonesia


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

English

Description

Generates a Postman Collection (doku-api-collection.json) containing API requests for DOKU Checkout, Virtual Accounts, QRIS, and Status Inquiry. Includes a Postman Pre-request Script written in JavaScript that dynamically computes SHA-256 Digest and HMAC-SHA256 Signature header before sending each request.

Trigger Conditions

Activate this skill when the user says:

  • "generate Postman collection"
  • "export DOKU Postman"
  • "create Postman collection for DOKU"

Pre-request Script Logic Included in Collection

const clientId = pm.environment.get("DOKU_CLIENT_ID");
const secretKey = pm.environment.get("DOKU_SECRET_KEY");
const requestId = CryptoJS.lib.WordArray.random(16).toString();
const timestamp = new Date().toISOString().replace(/\.\d{3}Z$/, 'Z');
const targetPath = pm.request.url.getPath();

let digest = "";
if (pm.request.body && pm.request.body.raw && ["POST", "PUT", "PATCH"].includes(pm.request.method)) {
    const rawBody = pm.request.body.raw;
    const hash = CryptoJS.SHA256(rawBody);
    digest = CryptoJS.enc.Base64.stringify(hash);
}

let component = `Client-Id:${clientId}\nRequest-Id:${requestId}\nRequest-Timestamp:${timestamp}\nRequest-Target:${targetPath}`;
if (digest) {
    component += `\nDigest:${digest}`;
}

const hmac = CryptoJS.HmacSHA256(component, secretKey);
const signature = "HMACSHA256=" + CryptoJS.enc.Base64.stringify(hmac);

pm.request.headers.add({ key: "Client-Id", value: clientId });
pm.request.headers.add({ key: "Request-Id", value: requestId });
pm.request.headers.add({ key: "Request-Timestamp", value: timestamp });
pm.request.headers.add({ key: "Signature", value: signature });

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

Bahasa Indonesia

Deskripsi

Menghasilkan Koleksi Postman (doku-api-collection.json) berisi permintaan API untuk DOKU Checkout, Virtual Account, QRIS, dan Status Inquiry. Dilengkapi dengan Pre-request Script JavaScript di Postman yang menghitung Digest SHA-256 dan Signature header HMAC-SHA256 secara dinamis sebelum setiap request dikirim.

Kondisi Pemicu

Aktifkan skill ini ketika pengguna mengatakan:

  • "generate Postman collection"
  • "ekspor Postman DOKU"
  • "buat koleksi Postman untuk 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.