← Back to Skills Marketplace
enjuguna

Kenya Tax Rates

by Eric Kariuki · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
1871
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install kenya-tax-rates
Description
Calculate Kenya payroll deductions - PAYE, SHIF, NSSF, Housing Levy with accurate 2024/2025 rates
README (SKILL.md)

\r \r

Kenya Tax Rates Skill\r

\r Calculate Kenya payroll taxes and deductions with up-to-date rates for PAYE, SHIF, NSSF, and Housing Levy.\r \r

Features\r

\r

  • PAYE - 5-band progressive tax (10% to 35%)\r
  • SHIF - 2.75% Social Health Insurance (replaced NHIF Oct 2024)\r
  • NSSF - Two-tier pension with auto date-based limits\r
  • Housing Levy - 1.5% Affordable Housing Levy\r
  • Tax Reliefs - Personal, insurance, pension, mortgage\r \r

Usage\r

\r Install the npm package:\r \r

npm install kenya-tax-rates\r
```\r
\r
### Quick Net Salary\r
\r
```typescript\r
import { getNetSalary } from 'kenya-tax-rates';\r
\r
const netSalary = getNetSalary(100000);\r
// Returns ~KES 75,000\r
```\r
\r
### Full Payroll Breakdown\r
\r
```typescript\r
import { calculatePayroll } from 'kenya-tax-rates';\r
\r
const result = calculatePayroll({\r
  grossSalary: 100000,\r
  pensionContribution: 5000,  // optional\r
  insurancePremium: 2000,     // optional\r
});\r
\r
// Returns:\r
// {\r
//   grossSalary: 100000,\r
//   taxableIncome: 93590,\r
//   deductions: { shif: 2750, nssf: 2160, housingLevy: 1500, paye: 18594 },\r
//   netSalary: 74995,\r
//   employerContributions: { nssf: 2160, housingLevy: 1500 }\r
// }\r
```\r
\r
### Individual Calculators\r
\r
```typescript\r
import { calculatePaye, calculateShif, calculateNssf, calculateHousingLevy } from 'kenya-tax-rates';\r
\r
// PAYE with reliefs\r
const paye = calculatePaye(85000);\r
\r
// SHIF (2.75%, min KES 300, no cap)\r
const shif = calculateShif(50000); // 1375\r
\r
// NSSF (auto-detects 2024/2025 rates based on current date)\r
const nssf = calculateNssf(80000);\r
\r
// Housing Levy (1.5%)\r
const levy = calculateHousingLevy(100000); // 1500\r
```\r
\r
## Current Tax Rates\r
\r
### PAYE Monthly Bands\r
| Income (KES) | Rate |\r
|--------------|------|\r
| 0 - 24,000 | 10% |\r
| 24,001 - 32,333 | 25% |\r
| 32,334 - 500,000 | 30% |\r
| 500,001 - 800,000 | 32.5% |\r
| Above 800,000 | 35% |\r
\r
### NSSF Limits (auto-selected by date)\r
| Period | Lower Limit | Upper Limit | Max Contribution |\r
|--------|-------------|-------------|------------------|\r
| Feb 2024 - Jan 2025 | KES 7,000 | KES 36,000 | KES 2,160 |\r
| From Feb 2025 | KES 8,000 | KES 72,000 | KES 4,320 |\r
\r
### Reliefs\r
- Personal Relief: KES 2,400/month\r
- Insurance Relief: 15% of premiums, max KES 5,000/month\r
- Pension Deduction: Max KES 30,000/month\r
\r
## API Reference\r
\r
| Function | Description |\r
|----------|-------------|\r
| `calculatePayroll(input)` | Full payroll with all deductions |\r
| `getNetSalary(gross, date?)` | Quick net salary calculation |\r
| `calculatePaye(taxableIncome)` | PAYE with reliefs |\r
| `calculateShif(grossSalary)` | SHIF contribution |\r
| `calculateNssf(earnings, date?)` | NSSF two-tier contribution |\r
| `calculateHousingLevy(grossSalary)` | Housing levy (1.5%) |\r
\r
## Source\r
\r
- npm: [kenya-tax-rates](https://www.npmjs.com/package/kenya-tax-rates)\r
- GitHub: [enjuguna/kenya-tax-rates](https://github.com/enjuguna/kenya-tax-rates)\r
Usage Guidance
This skill appears coherent and limited to calculating Kenya payroll deductions. Before installing or running the suggested `npm install kenya-tax-rates`, verify the npm package and its GitHub repository (owner, recent commits, open issues). Inspect the package contents for any lifecycle scripts (postinstall) or unexpected network calls, prefer pinned versions, and if possible run the install in a sandboxed environment. If you rely on the calculations for payroll, cross-check the tax bands/rules against official Kenya tax guidance and your payroll policy.
Capability Analysis
Type: OpenClaw Skill Name: kenya-tax-rates Version: 1.0.1 The skill bundle is classified as suspicious due to the instruction to `npm install kenya-tax-rates` found in `SKILL.md`. While this command is plausibly needed for the stated purpose of calculating tax rates, it represents a significant supply chain risk by instructing the AI agent to execute a shell command to download and install an external, unanalyzed package. This constitutes a 'risky capability' even without clear malicious intent within the skill bundle itself.
Capability Assessment
Purpose & Capability
Name/description (Kenya payroll deductions) align with the content: examples, functions, tax bands and links to an npm package and GitHub repo that implement the calculators. There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md contains usage examples and API descriptions only; it does not instruct the agent to read arbitrary files, access credentials, or transmit data to unknown endpoints. The only external interactions described are installing and importing the npm package and links to npm/GitHub, which are consistent with the stated purpose.
Install Mechanism
There is no formal install spec in the skill bundle (instruction-only), but the README instructs users/agents to run `npm install kenya-tax-rates` from the public registry. Installing an npm package is a standard way to obtain this functionality, however npm installs can execute package lifecycle scripts (postinstall) and will download code from the registry — you should review the package source and publisher before installing.
Credentials
The skill declares no environment variables, credentials, or config paths. The requested inputs in examples are typical function arguments (grossSalary, pensionContribution, etc.) and are proportionate to a payroll calculator.
Persistence & Privilege
The skill does not request always:true, does not alter other skills or agent-wide configuration, and does not ask for persistent access. It's user-invocable and allows normal autonomous invocation (platform default).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kenya-tax-rates
  3. After installation, invoke the skill by name or use /kenya-tax-rates
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
- Added detailed documentation in SKILL.md covering all 2024/2025 Kenya payroll tax rates and calculation methods. - Clarified usage examples for calculating PAYE, SHIF (new 2.75% rate), NSSF (with new limits), and Housing Levy. - Listed all supported tax reliefs and provided updated API function reference.
Metadata
Slug kenya-tax-rates
Version 1.0.1
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Kenya Tax Rates?

Calculate Kenya payroll deductions - PAYE, SHIF, NSSF, Housing Levy with accurate 2024/2025 rates. It is an AI Agent Skill for Claude Code / OpenClaw, with 1871 downloads so far.

How do I install Kenya Tax Rates?

Run "/install kenya-tax-rates" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Kenya Tax Rates free?

Yes, Kenya Tax Rates is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Kenya Tax Rates support?

Kenya Tax Rates is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Kenya Tax Rates?

It is built and maintained by Eric Kariuki (@enjuguna); the current version is v1.0.1.

💬 Comments