compensation-calculator

compensation-calculator is a skill for Claude Code, Codex from 90le/worker-rights-cn. It costs 64 tokens per session (1,138 once invoked), scanned A, original, Apache-2.0.

A calculator for estimating money claims in Chinese employment disputes. It covers items such as severance, unpaid wages, extra pay for missing written contracts, and unused annual leave.

In plain words
What is it for?
Use it to calculate worker-side claim ranges and build a baseline estimate from case details or monthly payroll records.
Why use it?
It provides a structured estimate from employment dates, wages, region, termination details, and other claim information. When required facts are missing, it reports the missing inputs instead of guessing.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the worker-rights-cn plugin — 11 skills, 5 hooks, 1 MCP server shipped together

Good fit Use it to calculate worker-side claim ranges and build a baseline estimate from case details or monthly payroll records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/90le/worker-rights-cn/compensation-calculator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 90le/worker-rights-cn --skill compensation-calculator
Clone the repo
git clone --depth 1 https://github.com/90le/worker-rights-cn

Made for: Claude Code, Codex.

Or install worker-rights-cn, the plugin that ships this one along with the rest of its 11 skills, 5 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compensation-calculator

README.md
[![agentmods](https://agentmods.dev/badge/skills/90le/worker-rights-cn/compensation-calculator/github.svg)](https://agentmods.dev/skills/90le/worker-rights-cn/compensation-calculator)
Your own site
<a href="https://agentmods.dev/skills/90le/worker-rights-cn/compensation-calculator"><img src="https://agentmods.dev/badge/skills/90le/worker-rights-cn/compensation-calculator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compensation-calculator

Your own site · 80×15
<a href="https://agentmods.dev/skills/90le/worker-rights-cn/compensation-calculator"><img src="https://agentmods.dev/badge/skills/90le/worker-rights-cn/compensation-calculator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,138 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.01138
Opus 5 $0.00032 $0.00569
Sonnet 5 $0.00013 $0.00228
Haiku 4.5 $0.00006 $0.00114

Measured 11d ago against content hash ae5523caf928, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

compensation-calculator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/calculate_compensation.py, scripts/run_edge_cases.py, scripts/run_golden_cases.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/worker-rights-cn/skills/compensation-calculator/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Compensation Calculator

Overview

Estimate monetary claims with a deterministic script where possible. Do not rely on free-form arithmetic for core amounts.

Required Facts

Before calculating, collect:

  • Work start date.
  • End date or expected termination date.
  • Average monthly wage for the last 12 months or actual shorter period.
  • City or region.
  • Local average monthly wage if wage-cap analysis is needed.
  • Termination path: mutual, non-fault without notice, economic layoff, unlawful, unknown.
  • Previous month's wage if claiming substitute notice wage under a non-fault dismissal path.
  • Unpaid wages, unused annual leave days, unsigned-contract months, overtime amount, if claimed.

If wage or dates are missing, output missing inputs instead of estimating.

Script Use

Use scripts/calculate_compensation.py for deterministic baseline calculations:

python3 scripts/calculate_compensation.py --input case.json

To derive the wage base from up to 12 monthly payroll records without saving them, use a UTF-8 CSV with exactly month,gross_wage columns:

python3 scripts/calculate_compensation.py --input case.json --payroll-csv payroll.csv

The result includes the source SHA-256, normalized monthly rows, missing-month list, total, average, and calculation formula. The CSV average replaces any average_monthly_wage supplied in the JSON; verify missing months and the legally applicable wage-base period before relying on it.

For a standard-hours overtime estimate, set work_schedule_type to standard and provide an explicit overtime_monthly_wage_base in the JSON. Then import a UTF-8 CSV with exactly work_date,started_at,ended_at,break_minutes,day_type,compensatory_leave_minutes:

python3 scripts/calculate_compensation.py --input case.json --attendance-csv attendance.csv

day_type is workday, rest_day, or statutory_holiday. Timestamps use local YYYY-MM-DDTHH:MM. The script rejects overlaps, aggregates split shifts by work date, preserves the source SHA-256, and emits each daily formula and amount. It supports only standard hours; comprehensive or flexible schedules require separate approval documents and local analysis. Attendance rows and day labels remain worker-provided facts that must be checked against original records and employer-arrangement evidence.

Read the full file on GitHub · 105 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 105 lines · 64 tokens per session scan A ae5523caf928

Subscribe to this mod's changes

compensation-calculator is a skill published in the GitHub repository 90le/worker-rights-cn (94 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 64 tokens to every session and 1,138 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

compliance

Compliance expert for SOC 2, GDPR, HIPAA, PCI-DSS, and security frameworks.

RightNow-AI/openfang · 22 tokens

dependency-audit

Audits direct and transitive dependencies for license compliance, maintenance health, CVEs, abandoned packages, and bloat. Triggers on: "audit dependencies", "license check", "dependency health", "abandoned packages", "unused dependencies", "license compliance", "supply chain", "dependency risk".

Mathews-Tom/armory · 66 tokens

commercial-legal-pl

Skill do analizy i tworzenia umów według polskiego prawa, ze szczególnym uwzględnieniem umów B2B, IP i IT (body leasing, NDA, wdrożenia, SaaS, przeniesienie praw autorskich, ugody). Powstał w Kancelarii Radców Prawnych Żurawska Piotrowski i Wspólnicy (ktzr.pl). Używaj zawsze gdy użytkownik prosi o przeanalizowanie…

apiotrowski-afk/commercial-legal-pl · 231 tokens

anvil-adsense-audit

A pre-submission audit for websites applying to Google AdSense, Google's advertising programme. It checks policy, content, crawling, privacy, and site-readiness items and records each as Pass, Fail, Unknown, or Not applicable.

PNGTRID/AnvilWiki · 136 tokens

counterparty-guard

A Russian business-counterparty check based on an identification number called an INN. It gathers public records about a company or sole proprietor and presents deal-risk signals.

ilyautov/small-business-ru · 252 tokens

contract-review

A contract-checking tool for Russian law, aimed at small businesses without an in-house lawyer. It reviews supply, service, contractor, NDA, and SaaS agreements and explains risky or missing terms in plain language.

ilyautov/small-business-ru · 175 tokens