daraja-agent-storefront SKILL.md skillA
daraja-agent-storefront from mr-macharia/mpesa-daraja-skills-and-mcp is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/daraja-agent-storefront@git:20261027.d560781Pins git:20261027.d560781 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- mr-macharia/mpesa-daraja-skills-and-mcp
- Path
skills/daraja-agent-storefront/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261027.d560781, committed Oct 27, 2026
- Size
- 4,502 bytes
- Repository stars
- 3
- License
- MIT
Recipe for an AI agent that sells and takes M-Pesa payments for a store, either inside a developer-built store with its own backend or as an agent-only seller in a chat. Covers working out which kind of store it is, the order-to-STK-to-confirmed flow, using the order ID as the account reference, tracking orders with forwarding or a CSV sales log, safe retries after failed payments, receipts, and refunds behind approval. Use when an agent handles selling, checkout or order payments for a shop…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Recipe: an agent that sells The agent takes the order, asks for payment with an STK Push, and only hands over the goods once M-Pesa confirms. It needs the `mpesa-daraja` MCP server connected (`mpesa_*` tools). ## First: which kind of store? Look before asking: | Sign | Kind | |---|---| | A codebase with orders/products, an API the agent can call | **developer-built store**: the store's backend owns orders; the agent drives checkout | | No codebase; a product list in chat, a spreadsheet or a file | **agent-only seller**: the agent keeps the record itself | If it's still unclear, ask one question: *"Do you have a shop system I should record orders in, or should I keep a sales log? (default: sales log)"*. ## Needs | Need | Default | |---|---| | Products and prices | from the store API, or a list the owner gives once | | Paybill or Till | from `mpesa_setup_status` | | Where results go | developer-built: `DARAJA_FORWARD_URL` to the store's webhook; agent-only: `mpesa_get_result` | | Receipt wording | "Paid KES <amount> for <items>. M-Pesa receipt <receipt>." | | Refund approval | the owner approves every refund (`DARAJA_APPROVAL_THRESHOLD=0`) | ## The sale, step by step …
Read the whole file at its exact version.
How to install
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/daraja-agent-storefront@sha256:6cc177a8038f49bbThe line at the top of this page pins the label git:20261027.d560781, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_jdrhtjjmsvuh4pjl)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 27, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (4502 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
mr-macharia/mpesa-daraja-skills-and-mcp · 3 stars · license MIT · pushed 2026-11-03 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_jdrhtjjmsvuh4pjl GET https://markdownregistry.com/api/v1/resolve?ref=mr-macharia/mpesa-daraja-skills-and-mcp/daraja-agent-storefront GET https://markdownregistry.com/api/v1/blob/6cc177a8038f49bbae2a1b0072484609f80153a12a356458f17d836044da6a23
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.