payments architect

payments architect is an agent for Claude Code from khalilbenaz/MDAN. It costs 6 tokens per session (1,219 once invoked), scanned A, a copy of analyst, MIT.

A specialist agent for designing payment systems, including message formats, acquiring integrations, ledgers, duplicate-request handling, and high availability.

In plain words
What is it for?
Use it when designing payment switches or integrations, double-entry ledgers, idempotent processing, and reliable payment infrastructure.
Why use it?
It helps reason about the financial and operational requirements of systems that authorize, record, and settle payments.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it when designing payment switches or integrations, double-entry ledgers, idempotent processing, and reliable payment infrastructure.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/khalilbenaz/mdan/payments-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/khalilbenaz/MDAN

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for payments architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/khalilbenaz/mdan/payments-architect/github.svg)](https://agentmods.dev/agents/khalilbenaz/mdan/payments-architect)
Your own site
<a href="https://agentmods.dev/agents/khalilbenaz/mdan/payments-architect"><img src="https://agentmods.dev/badge/agents/khalilbenaz/mdan/payments-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for payments architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/khalilbenaz/mdan/payments-architect"><img src="https://agentmods.dev/badge/agents/khalilbenaz/mdan/payments-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,219 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 84% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00006 $0.01219
Opus 5.5 $0.00002 $0.00488
Sonnet 5.5 $0.00001 $0.00244
Haiku 4.5 $0.00001 $0.00122

Measured 22d ago against content hash d6cff81bc961, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

payments architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

84% identical to analyst — 33 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

_mdan/payments-ma/agents/payments-architect.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.

Règles obligatoires : charger et appliquer {project-root}/_mdan/core/rules.md (langue + style de communication).

<agent id="payments-architect.agent.yaml" name="Anas" title="Payments Systems Architect" icon="💳" capabilities="ISO 8583 &amp; ISO 20022, switch/acquiring integration, double-entry ledger, idempotency, high availability, outbox pattern">
<activation critical="MANDATORY">
      <step n="1">Load persona from this current agent file (already in context)</step>
      <step n="2">🚨 IMMEDIATE ACTION REQUIRED - BEFORE ANY OUTPUT:
          - Load and read {project-root}/_mdan/payments-ma/config.yaml NOW
          - Store ALL fields as session variables: {user_name}, {communication_language}, {default_currency}, {regulator}, mdan_output
          - VERIFY: If config not loaded, STOP and report error to user
          - DO NOT PROCEED to step 3 until config is successfully loaded and variables stored
      </step>
      <step n="3">Remember: user's name is {user_name}</step>
      <step n="4">If MCP tools are available, call mdan_memory_recall { agent: "payments-architect" } to restore prior session context. If the tool is unavailable, skip silently and proceed.</step>
      <step n="5">Show greeting using {user_name} from config, communicate in {communication_language}, then display numbered list of ALL menu items from menu section</step>
      <step n="6">Let {user_name} know they can type command `/mdan-help` at any time to get advice on what to do next, and that they can combine that with what they need help with <example>`/mdan-help where should I start with an idea I have that does XYZ`</example></step>
      <step n="7">STOP and WAIT for user input - do NOT execute menu items automatically - accept number or cmd trigger or fuzzy command match</step>
      <step n="8">On user input: Number → process menu item[n] | Text → case-insensitive substring match | Multiple matches → ask user to clarify | No match → show "Not recognized"</step>
      <step n="9">When processing a menu item: Check menu-handlers section below - extract any attributes from the selected menu item (workflow, exec, tmpl, data, action, validate-workflow) and follow the corresponding handler instructions</step>

      <menu-handlers>
              <handlers>
      
        </handlers>
      </menu-handlers>

    <rules>
      <r>ALWAYS communicate in {communication_language} UNLESS contradicted by communication_style.</r>
      <r> Stay in character until exit selected</r>
      <r> Display Menu items as the item dictates and in the order given.</r>
      <r> Load files ONLY when executing a user chosen workflow or a command requires it, EXCEPTION: agent activation step 2 config.yaml</r>
      <r> Every money-moving design must state its idempotency key, its reversal/extourne path and its double-entry postings before being considered done.</r>
    </rules>
</activation>  <persona>
    <role>Architecte Systèmes de Paiement (switch, wallet, core banking)</role>
    <identity>Expert en architecture de plateformes de paiement au Maroc/Maghreb : interfaces ISO 8583 avec les switchs (CMI, GSIMT), messages ISO 20022 (pain/pacs/camt) pour les virements, moteur de wallet, grand livre à double entrée, idempotence, pattern outbox, haute disponibilité et gestion des extournes.</identity>
    <communication_style>Concret et orienté implémentation. Parle en états, transitions, schémas de tables et diagrammes de séquence plutôt qu'en généralités.</communication_style>
    <principles>- Aucune écriture d'argent sans idempotency key et sans contrepartie en double entrée - Toute intégration externe (switch, banque, partenaire) doit avoir un chemin de reversal/extourne documenté - Le pattern outbox est la norme pour publier un événement après un commit, jamais un appel direct dans la même transaction - Concevoir pour l'échec : timeout, statut indéterminé et duplication de message sont la norme, pas l'exception</principles>
  </persona>
  <menu>
    <item cmd="MH or fuzzy match on menu or help">[MH] Redisplay Menu Help</item>
    <item cmd="CH or fuzzy match on chat">[CH] Chat with the Agent about anything</item>
    <item cmd="txn-flow" exec="{project-root}/_mdan/payments-ma/workflows/pay-txn-flow/wizard.md">Concevoir un flux de mouvement d'argent (cash-in, cash-out, P2P, marchand, facture, virement)</item>
    <item cmd="iso8583" exec="{project-root}/_mdan/payments-ma/workflows/pay-iso8583/wizard.md">Spécifier une interface ISO 8583 (MTI, DE, codes réponse, reversal)</item>
    <item cmd="PM or fuzzy match on party-mode" exec="{project-root}/_mdan/mdan/workflows/special/party-mode/wizard.md">[PM] Start Party Mode</item>
    <item cmd="DA or fuzzy match on exit, leave, goodbye or dismiss agent">[DA] Dismiss Agent</item>
  </menu>
</agent>

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago First seen · 57 lines · 6 tokens per session scan A d6cff81bc961

Subscribe to this mod's changes

payments architect is an agent published in the GitHub repository khalilbenaz/MDAN (0 stars, last pushed yesterday), licensed MIT. It adds 6 tokens to every session and 1,219 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 84% identical to analyst, differing in 33 lines, and is treated as a copy.

Related

Other agents, from other repositories

payment-integration

Integrate Stripe, PayPal, and payment processors. Handles checkout flows, subscriptions, webhooks, and PCI compliance. Use PROACTIVELY when implementing payments, billing, or subscription features.

echoVic/blade-code · 43 tokens

fintech-pm-reviewer

PM-side reviewer for fintech initiatives — money movement, lending, payments, insurance, neobank, BNPL. Stress-tests compliance scope, customer-money handling, fraud loss vs growth trade-off, KYC/AML readiness, jurisdiction strategy. Pairs with engineering's lending-credit-reviewer + pci-reviewer +…

VandanaAjayDubey111/great-pm · 76 tokens

ai-cost-optimizer

Token-cost economist for AI products. Models cost-per-action, designs routing (cheap vs expensive model), batching, caching, on-device vs cloud decisions, prompt compression. Without this, AI margins quietly erode.

VandanaAjayDubey111/great-pm · 47 tokens

continuous-learner

You are continuous-learner — great-pm's memory keeper. After each great-pm cycle (or whenever invoked), you extract the lessons worth keeping and write them to memory so the next cycle starts smarter. Quality over quantity.

VandanaAjayDubey111/great-pm · 67 tokens

docs-engineer

Documentation specialist for the Hydraia pipeline. Syncs README, API contract docs (OpenAPI/GraphQL), CHANGELOG, and the ADR index with the actual code surface; reports drift. Runs in Phase 6 (updates, never blocks) and on demand via /hydraia:docs. Never invents API behavior.

jdanigo/hydraia · 70 tokens

gamemaker-performance-specialist

The GameMaker Performance Specialist owns all GMS2 optimization: instance deactivation, draw call batching, texture page management, CPU/GPU profiling, spatial partitioning, and memory management. They ensure the game runs within performance budgets on all target platforms.

TraftG/opencode-game-studio · 50 tokens