agentleFS
rahmanef63rahmanef63/si-coder-agent/skills/sc-doku/SKILL.md

sc-doku

Skill13 starsChanged 2 months agoMITView on GitHub

Configure DOKU Checkout REST and DOKU MCP through SI-Coder named connections, then discover or invoke DOKU MCP tools without exposing merchant credentials.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Keep SC connection labels explicit, for example app-checkout-sandbox versus app-checkout-production.

    line 30
  2. Distinctive:

    Keep DOKU credentials in SC Connections.

    line 33
  3. Distinctive:

    Use the private setup UI or hidden TTY flow instead of chat:

    line 41
  4. Distinctive:

    Always begin in sandbox unless the user explicitly requests production and the merchant is activated.

    line 58
  5. Distinctive:

    All remote MCP tool calls require explicit confirmation because the discovered catalog can include payment creation, refunds, voids, and …

    line 70
  6. Very specific:

    Before a production payment/refund/void action, verify the selected user, named connection, environment, amount/currency, target …

    line 79

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

/sc-doku — DOKU Checkout + MCP

Language

Reply in the user's language unless they request another language.

Dashboard fields — do not interchange them

Open https://dashboard.doku.com/bo/developer/api-keys (Developer → API Keys). Current DOKU Dashboard may show four related surfaces:

  • Client ID — merchant/brand identifier used by Checkout/REST and DOKU MCP. Current public examples include BRN-...; older examples also use MCH-....
  • Secret Key — Checkout/Non-SNAP payment signing secret. Pair this with Client ID for DOKU Checkout.
  • API Key — DOKU MCP credential when MCP access is enabled. Pair this with Client ID for DOKU MCP; SC stores it under the internal key DOKU_MCP_API_KEY.
  • SNAP settings — separate advanced Direct API setup. SNAP can require OAuth tokens, client secret, and RSA public/private keys; it is not required for ordinary DOKU Checkout.

Environment boundary — production and sandbox are different credentials

  • Production Dashboard: https://dashboard.doku.com/bo/developer/api-keys → Developer → API Keys. Credentials copied here belong to production and must not be stored in a connection labelled sandbox.
  • Sandbox: register/login at https://sandbox.doku.com/bo/sandbox-registration and use the Sandbox Client ID + Sandbox Secret Key issued there. Sandbox and production credentials are separate.
  • Keep SC connection labels explicit, for example app-checkout-sandbox versus app-checkout-production. Never infer environment from the credential prefix alone.

Connection model

Keep DOKU credentials in SC Connections. Use separate named connections for sandbox and production when practical.

  • Checkout / Non-SNAP REST (checkout-rest): Dashboard Client ID + Secret Key. Do not use the dashboard API Key for Checkout signatures.
  • DOKU MCP (mcp-api-key): Dashboard Client ID + API Key; SC stores that API Key internally as DOKU_MCP_API_KEY. MCP access must be enabled for the merchant. Optional DOKU_MCP_ENV=sandbox|production defaults to sandbox.
  • SNAP / Direct API is a separate advanced integration. It uses SNAP token/signature rules (including RSA public/private keys for asymmetric token signatures and client-secret-based symmetric signatures). Do not enable or paste SNAP keys when the application only uses DOKU Checkout.

For MCP credentials, DOKU's current guide says to request “Payment Integration via MCP Server (AI Agents)”. SC stores the raw API key privately and derives Authorization: Basic base64(apiKey + ":") only in memory while calling DOKU. Never store the encoded Authorization header as another credential.

Use the private setup UI or hidden TTY flow instead of chat:

sc browser
# or create a connection explicitly, then use hidden credential entry:
sc user connection-add <user> doku "DOKU MCP Sandbox" --source sc --auth mcp-api-key --default
sc user credential-set <user> doku --connection <connection>

Checkout REST credentials cannot be safely verified by creating a payment behind the user's back. Saving them without live verification is acceptable only through SC's explicit unverified-save path; verify them in the application's DOKU sandbox flow.

MCP environments

Current official endpoints:

  • sandbox: https://api-sandbox.doku.com/doku-mcp-server/mcp
  • production: https://mcp.doku.com/mcp

Always begin in sandbox unless the user explicitly requests production and the merchant is activated.

Discover tools dynamically

DOKU MCP exposes many payment/transaction tools and the catalog can evolve. Do not hardcode a static list.

sc doku mcp tools --user <user> --connection <connection>

Agents using the SI-Coder MCP call the read-only machine function sc.doku.mcp.tools with explicit user and connection.

Invoke a DOKU MCP tool

All remote MCP tool calls require explicit confirmation because the discovered catalog can include payment creation, refunds, voids, and other financially consequential actions.

printf '%s' '{"non_secret":"tool arguments"}' \
  | sc doku mcp call <tool-name> --user <user> --connection <connection> --confirm

The SI-Coder MCP equivalent is sc.doku.mcp.call with confirm=true. Credential-shaped fields are rejected by SC's machine safety boundary.

Before a production payment/refund/void action, verify the selected user, named connection, environment, amount/currency, target invoice/transaction, and user intent. Never infer a financial operation from an ambiguous request.

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.