daraja-teach-me SKILL.md skillA

daraja-teach-me 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.

Install it, pinned
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/daraja-teach-me@git:20261027.a2d753d

Pins git:20261027.a2d753d 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-teach-me/SKILL.md
Versions recorded
1
Latest version
git:20261027.a2d753d, committed Oct 27, 2026
Size
5,155 bytes
Repository stars
3
License
MIT

An interactive tutor that teaches M-Pesa Daraja step by step in the sandbox. Offers a learning roadmap by category (foundations, collecting money, paying out, callbacks, operations, payment design) plus a build-your-own-gateway track, explains each idea in plain language with diagrams, then has the learner run a real sandbox call and checks their understanding. Refuses production credentials. Use when the user says "teach me", "explain M-Pesa", "I'm new to Daraja", "how does STK Push work…

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

# Teach me M-Pesa Daraja

You are a tutor, not a code generator. The learner should leave each lesson able to explain the idea and having run it once in the sandbox.

## Sandbox only

Before the first hands-on step, check the environment:

```bash
mpesa status
```

or call `mpesa_setup_status` with the MCP server.

- If `DARAJA_ENV` is `production`, **stop**. Say: "Lessons run in the sandbox only. Set `DARAJA_ENV=sandbox` with sandbox keys, then we'll continue." Do not run any call.
- If the learner pastes keys that look like production keys, or says they are, refuse to use them and tell them to rotate any secret they pasted into a chat.
- No keys yet: start with lesson F2 in [lessons.md](lessons.md), which walks through creating a sandbox app.
- Never print a consumer secret, passkey or initiator password, even sandbox ones.

Sandbox money is not real, so the learner can make mistakes freely. Say so once.

## How to run a session

1. **Ask two things**: what they want to build (or "just curious"), and how much they know (never coded / coded but new to payments / built payments elsewhere).
2. **Show the roadmap** below and suggest a path. Let them pick.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/daraja-teach-me@sha256:eac5cff8b720070a

The line at the top of this page pins the label git:20261027.a2d753d, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_u7guolcdkvuxmtm2.svg)](https://markdownregistry.com/a/art_u7guolcdkvuxmtm2)

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.

versioncommittedcommitsizeaudit
git:20261027.a2d753d latest2026-10-27 a2d753d 5,155 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5155 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

GitHub

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_u7guolcdkvuxmtm2
GET https://markdownregistry.com/api/v1/resolve?ref=mr-macharia/mpesa-daraja-skills-and-mcp/daraja-teach-me
GET https://markdownregistry.com/api/v1/blob/eac5cff8b720070aec4e834382146e40d48cf4d1b858b0c78e05f52efdf2347b

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.

More from mr-macharia/mpesa-daraja-skills-and-mcp

AGENTS.md AGENTS.md file
mr-macharia/mpesa-daraja-skills-and-mcp · AGENTS.md
git:20261028.0602c87 · audit A · 3 stars
daraja-account-ops SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-account-ops/SKILL.md · Uses Safaricom Daraja's Transaction Status, Transaction Reversal and Account Balance APIs, whose results arrive…
git:20261020.f2e8fad · audit A · 3 stars
daraja-agent-storefront SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-agent-storefront/SKILL.md · Recipe for an AI agent that sells and takes M-Pesa payments for a store, either inside a developer-built store with its…
git:20261027.d560781 · audit A · 3 stars
daraja-auth SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-auth/SKILL.md · Generates, caches and refreshes Safaricom Daraja OAuth 2.0 access tokens from the Consumer Key and Secret…
git:20261021.84f51bc · audit A · 3 stars
daraja-b2b SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-b2b/SKILL.md · Implements Safaricom Daraja B2B payments between shortcodes: BusinessPayBill (to a Paybill and account)…
git:20261020.f2e8fad · audit A · 3 stars
daraja-b2c SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-b2c/SKILL.md · Implements Safaricom Daraja B2C payouts from a business shortcode to customers' M-Pesa wallets (BusinessPayment…
git:20261020.f2e8fad · audit A · 3 stars
daraja-bill-manager SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-bill-manager/SKILL.md · Integrates M-Pesa Bill Manager through Safaricom Daraja. Covers opting a Paybill in, sending single or bulk SMS…
git:20261020.f2e8fad · audit A · 3 stars
daraja-c2b SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-c2b/SKILL.md · Implements Safaricom Daraja C2B (Customer-to-Business) for Paybill and Till numbers. Covers registering Validation and…
git:20261020.f2e8fad · audit A · 3 stars
daraja-callbacks SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-callbacks/SKILL.md · Builds resilient Safaricom Daraja callback and webhook receivers: STK CallBackURL; C2B Validation and Confirmation…
git:20261021.84f51bc · audit A · 3 stars
daraja-checkout SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-checkout/SKILL.md · End-to-end recipe for adding M-Pesa checkout to an existing web or mobile app with STK Push. Works out the stack…
git:20261027.d560781 · audit A · 3 stars
daraja-credentials-security SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-credentials-security/SKILL.md · Manages Safaricom Daraja secrets safely (Consumer Key and Secret, M-Pesa Express passkey, initiator password…
git:20261021.84f51bc · audit A · 3 stars
daraja-dynamic-qr SKILL.md skill
mr-macharia/mpesa-daraja-skills-and-mcp · skills/daraja-dynamic-qr/SKILL.md · Generates M-Pesa Dynamic QR codes with Safaricom Daraja for Buy Goods, Paybill, agent withdrawal, send money or…
git:20261020.f2e8fad · audit A · 3 stars

Every file in mr-macharia/mpesa-daraja-skills-and-mcp

Browse by kind, by grade A, or by owner.