daraja-tax-remittance SKILL.md skillA
daraja-tax-remittance 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-tax-remittance@git:20261020.f2e8fadPins git:20261020.f2e8fad 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-tax-remittance/SKILL.md- Versions recorded
- 3
- Latest version
- git:20261020.f2e8fad, committed Oct 20, 2026
- First version recorded
- Oct 19, 2026
- Size
- 2,147 bytes
- Repository stars
- 3
- License
- MIT
Remits taxes to the Kenya Revenue Authority (KRA) from a business shortcode through Safaricom Daraja's Tax Remittance API (CommandID PayTaxToKRA, PartyB 572572, AccountReference set to the KRA Payment Registration Number). Use when a system must pay KRA taxes such as VAT, PAYE or withholding tax via M-Pesa.
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
# Tax Remittance to KRA
**Pre-condition:** your business needs a prior integration with KRA to declare tax and generate a **PRN (Payment Registration Number)**. Daraja only moves the money.
## Request
`POST /mpesa/b2b/v1/remittax`
```json
{
"Initiator": "TaxPayer",
"SecurityCredential": "<encrypted>",
"CommandID": "PayTaxToKRA",
"SenderIdentifierType": "4",
"RecieverIdentifierType": "4",
"Amount": 239,
"PartyA": "888880",
"PartyB": "572572",
"AccountReference": "PRN1234XN",
"Remarks": "VAT Sept",
"QueueTimeOutURL": "https://example.com/payments/tax/timeout",
"ResultURL": "https://example.com/payments/tax/result"
}
```
Fixed values: `PartyB` is always `572572`, both identifier types are always `"4"`, and `AccountReference` is the PRN.
Validate the body: `python scripts/validate_request.py tax body.json`
## Responses
- **Sync**: `ResponseCode "0"`, `ConversationID` and `OriginatorConversationID`.
- **Result**: the B2B envelope. `TransactionID` is the receipt, and `ResultParameters` include `Amount`, `DebitPartyAffectedAccountBalance`, `TransCompletedTime` and `ReceiverPartyPublicName` (the tax collector).
## Workflow
```
…Read the whole file at its exact version.
How to install
mdr add mr-macharia/mpesa-daraja-skills-and-mcp/daraja-tax-remittance@sha256:34f00a58f5b174a5The line at the top of this page pins the label git:20261020.f2e8fad, 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_wyg4rmnqlvcuq4qr)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Oct 19, 2026 and Oct 20, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261020.f2e8fad latest | 2026-10-20 | f2e8fad | 2,147 B | A | view · diff |
| git:20261020.312e4eb | 2026-10-20 | 312e4eb | 2,153 B | A | view · diff |
| git:20261019.9e3c915 | 2026-10-19 | 9e3c915 | 2,169 B | A | view |
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 (2147 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_wyg4rmnqlvcuq4qr GET https://markdownregistry.com/api/v1/resolve?ref=mr-macharia/mpesa-daraja-skills-and-mcp/daraja-tax-remittance GET https://markdownregistry.com/api/v1/blob/34f00a58f5b174a5fc055733276c3730d7a8c99e10e657c1b6c1b88328f92af8
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.