← 返回 Skills 市场
Kenya Tax Rates
作者
Eric Kariuki
· GitHub ↗
· v1.0.1
1871
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install kenya-tax-rates
功能描述
Calculate Kenya payroll deductions - PAYE, SHIF, NSSF, Housing Levy with accurate 2024/2025 rates
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install kenya-tax-rates - 安装完成后,直接呼叫该 Skill 的名称或使用
/kenya-tax-rates触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
Kenya Tax Rates 是什么?
Calculate Kenya payroll deductions - PAYE, SHIF, NSSF, Housing Levy with accurate 2024/2025 rates. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1871 次。
如何安装 Kenya Tax Rates?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install kenya-tax-rates」即可一键安装,无需额外配置。
Kenya Tax Rates 是免费的吗?
是的,Kenya Tax Rates 完全免费(开源免费),可自由下载、安装和使用。
Kenya Tax Rates 支持哪些平台?
Kenya Tax Rates 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Kenya Tax Rates?
由 Eric Kariuki(@enjuguna)开发并维护,当前版本 v1.0.1。
推荐 Skills