Agent skill

Cn Severance Calculator

by mohitagw15856 in mohitagw15856/pm-claude-skills

Estimate economic compensation (经济补偿金) when employment ends in mainland China: N, N+1 or 2N under the Labour Contract Law, with the high-earner cap, the part-year rule and the questions that decide…

MITAuto-check passed

Install Cn Severance Calculator

skills CLI
$ npx skills add mohitagw15856/pm-claude-skills --skill cn-severance-calculator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitagw15856/pm-claude-skills cn-severance-calculator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cn-severance-calculator .claude/skills/cn-severance-calculator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cn-severance-calculator
GitHub stars
1.4k
Token cost
~1.3k tokens
SKILL.md length
620 words
Files
2 (incl. scripts)
Skills in repo
1,348
Repo updated
First seen
Licence
MIT

At a glance

Estimate economic compensation (经济补偿金) when employment ends in mainland China: N, N+1 or 2N under the Labour Contract Law, with the high-earner cap, the part-year rule and the questions that decide…

  • Asked 我被裁员了能拿多少补偿
  • SKILL.md covers What This Skill Produces, Required Inputs, Framework: Which Case Applies and Programmatic Helper, plus 4 more sections
  • Runs Python scripts from its folder; calls python3
  • How much severance am I owed in China

What it does

Cn Severance Calculator is an agent skill from mohitagw15856/pm-claude-skills. Estimate economic compensation (经济补偿金) when employment ends in mainland China: N, N+1 or 2N under the Labour Contract Law, with the high-earner cap, the part-year rule and the questions that decide which case applies. Use when asked 我被裁员了能拿多少补偿, N+1 怎么算, 经济补偿金计算, 违法解除 2N, or how much severance am I owed in China. Produces the scenario that likely applies and why, the calculation shown step by step, what to check before signing anything, and where to get it confirmed. Not legal advice.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/cn_severance.py`).

The repository describes itself as: 1255 professional Agent Skills for Claude, ChatGPT, Gemini, Cursor & Codex — PRDs, postmortems, leases, medical bills, layoffs, go-bags, new countries. Plain markdown, MIT, in… The licence is MIT.

When your agent uses it

  • Asked 我被裁员了能拿多少补偿
  • How much severance am I owed in China

Example prompts

  • “/cn-severance-calculator”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 1cbf1f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cn Severance Calculator loads about 1.3k tokens when it runs. Until then it costs about 128 tokens; SKILL.md has 620 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~128
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from mohitagw15856/pm-claude-skills at commit 1cbf1f0, republished under its MIT licence (© mohitagw15856). 620 words, ~1,281 tokens.

Download SKILL.mdSave it as .claude/skills/cn-severance-calculator/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cn-severance-calculator
description
Estimate economic compensation (经济补偿金) when employment ends in mainland China: N, N+1 or 2N under the Labour Contract Law, with the high-earner cap, the part-year rule and the questions that decide which case applies. Use when asked 我被裁员了能拿多少补偿, N+1 怎么算, 经济补偿金计算, 违法解除 2N, or how much severance am I owed in China. Produces the scenario that likely applies and why, the calculation shown step by step, what to check before signing anything, and where to get it confirmed. Not legal advice.
version
1.0.0

China Severance Calculator (经济补偿金)

When a job ends in mainland China, the amount owed depends on how it ended, how long the person worked, what they earned, and the city. People often accept less than they are owed because they do not know which case applies or how the cap works. This skill works out the likely case, shows the calculation, and lists what to check before signing a termination agreement.

Write the output in Simplified Chinese unless asked otherwise. For decoding a severance agreement outside China, see severance-agreement-decoder.

What This Skill Produces

  • The likely scenario: N, N+1 or 2N, with the article and the facts it depends on
  • The calculation, step by step: years counted, monthly base, cap check, total
  • A before-you-sign list: what else may be owed (unused leave, unpaid wages, bonus, social insurance)
  • Where to confirm: the local labour arbitration commission or a labour lawyer

Required Inputs

Ask for these if not provided:

  • Start date and last day of service
  • Average monthly wage over the last 12 months, before tax, including regular bonuses and allowances
  • How the employment is ending: who proposed it, the reason given, whether 30 days' written notice was given
  • City of the workplace, and its published average monthly wage if the person earns a lot
  • Any agreement they have been asked to sign

Framework: Which Case Applies

How it endedUsuallyArticle
Employer proposes, both agree to endN36, 46
Employer ends it for incapacity or a major change of circumstances (Art. 40), with 30 days' noticeN40, 46
As above, without 30 days' noticeN + 140
Economic layoff (Art. 41)N41, 46
Fixed-term contract not renewed by the employer, or renewed on worse terms the employee refusesN46
Employee resigns because the employer failed its duties (unpaid wages, no social insurance)N38, 46
Unlawful termination by the employer2N48, 87
Employee resigns for personal reasonsUsually nothing

Calculation (Art. 47):

  • Years: one month's wage per full year. A part year of six months or more counts as one year; less than six months counts as half.
  • Monthly base: the average monthly wage over the 12 months before the end.
  • Cap: if the average exceeds three times the city's published average monthly wage, the base is three times that figure and years are capped at 12.
  • The +1: one month's wage in lieu of notice. Which month's wage is used varies by locality.

Flags to raise:

  • Service before 1 January 2008 may be calculated differently.
  • Pregnancy, maternity, occupational illness, medical treatment periods and some long-service cases restrict termination; if any apply, the termination itself may be unlawful.
  • Compensation is separate from unpaid wages, unused annual leave pay and bonus already earned.
Show full SKILL.md (165 more words)Show less

Programmatic Helper

bash
python3 skills/cn-severance-calculator/scripts/cn_severance.py --start 2018-03-01 --end 2026-09-30 --avg-wage 25000 --scenario n
python3 skills/cn-severance-calculator/scripts/cn_severance.py --start 2018-03-01 --end 2026-09-30 --avg-wage 25000 \
    --scenario n_plus_1 --last-month-wage 26000 --local-avg 12000

The end date counts as a day worked. Standard library only.

Output Format

经济补偿金估算:[姓名]

一、适用情形:[N / N+1 / 2N],依据 [条款],因为 [事实]。如有不确定的事实,列出。

二、计算过程 | 项目 | 数值 | 说明 | | 工作年限 | ... | 起止日期,折算规则 | | 月工资基数 | ... | 12 个月平均;是否封顶 | | N | ... | | | +1 / ×2 | ... | | | 合计 | ... | |

三、签字前请确认

  • 未付工资、未休年假工资、已发生的奖金、社保公积金缴纳情况
  • 协议中是否有放弃其他权利的条款

四、去哪里确认:当地劳动人事争议仲裁委员会,或劳动法律师

End verbatim: "以上为估算,不构成法律意见。各地规定和裁判口径不同,签署任何协议前请向当地劳动仲裁机构或劳动法律师确认。"

Quality Checks

  • The scenario is tied to an article and to the facts given
  • Years counted follow the six-month rule, and the end date counts as worked
  • The cap is checked when the city's average wage is known, and flagged when it is not
  • Other amounts owed are listed separately from compensation
  • The disclaimer appears verbatim

Anti-Patterns

  • Assuming N+1 by default. The +1 applies to one specific case.
  • Using base salary only when bonuses and allowances form part of the wage.
  • Skipping the protected-period check. It can turn N into 2N.
  • Advising the person to sign. Calculate, list what to check, and point to confirmation.

Example Trigger Phrases

  • "公司要裁我,工作 6 年半,月薪 3 万,能拿多少补偿?"
  • "N+1 到底怎么算?"
  • "公司没提前通知就辞退我,是不是违法解除?"
  • "How much severance am I owed in Shanghai?"

© mohitagw15856, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in skills/cn-severance-calculator of mohitagw15856/pm-claude-skills.

  • SKILL.md
  • scripts/cn_severance.py

Open the folder on GitHubat commit 1cbf1f0

Compare with similar skills

Cn Severance Calculator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cn Severance Calculator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cn Severance Calculator this skillmohitagw15856/pm-claude-skills1.4k—~1.3kAutomated safety check: PassMIT
Implementing End To End Encryption For Messagingmukul975/Anthropic-Cybersecurity-Skills34k—~843Automated safety check: PassApache-2.0
Unit Economics Calculatorrevfactory/harness-1001.3k—~668Automated safety check: PassApache-2.0
Eol Resistor Calculatorsickn33/agentic-awesome-skills47k1 repos~3.5kAutomated safety check: PassMIT
Task Effort EstimatorDonchitos/Claude-Code-Game-Studios26k—~1.2kAutomated safety check: PassMIT
Progressive Estimationsickn33/agentic-awesome-skills47k2 repos~863Automated safety check: PassMIT

Similar skills

  • Implementing End To End Encryption For Messaging

    mukul975/Anthropic-Cybersecurity-Skills

    Implements a simplified Signal Protocol-style end-to-end encryption scheme for messaging, covering key exchange, forward secrecy, and the core cryptographic components so no server or intermediary…

    34k GitHub stars~843 tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Unit Economics Calculator

    revfactory/harness-100

    Methodology for systematically calculating startup unit economics (LTV, CAC, margin, BEP).

    1.3k GitHub stars~668 tokensUpdated 6 mo ago
    Business, Finance & HRAuto-check passed
  • Eol Resistor Calculator

    sickn33/agentic-awesome-skills

    Calculates and validates end-of-line (EOL, SEOL, DEOL, TEOL) resistor loops for intrusion alarm panels (Honeywell, DSC, Paradox, Bosch) with wire gauge drop and state tables.

    47k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Task Effort Estimator

    Donchitos/Claude-Code-Game-Studios

    Estimates the effort for a game development task from code complexity, scope, risk and past sprint data, returning a range with a confidence level.

    26k GitHub stars~1.2k tokensUpdated 3 days ago
    Product & Project ManagementAuto-check passed
  • Progressive Estimation

    sickn33/agentic-awesome-skills

    Estimate AI-assisted and hybrid human+agent development work with research-backed PERT statistics and calibration feedback loops

    47k GitHub starsUsed in 2 repos~863 tokens
    Data & AnalyticsAuto-check passed
  • Dead End Pages

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing a site's internal link graph for dead-end pages, suggesting related-content links to add to thin or standalone pages, or reviewing CMS templates that produce…

    74k GitHub stars~683 tokensUpdated 4 days ago
    Data & AnalyticsAuto-check passed

More from mohitagw15856/pm-claude-skills

All 1,348 skills in this repo
  • Car Tco

    mohitagw15856/pm-claude-skills

    Compare the total cost of car ownership across buy-new, buy-used, lease, and keep-your-current-car — depreciation, insurance, maintenance ramp, and fuel over a real horizon, not just the monthly…

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Cs Health Scorecard

    mohitagw15856/pm-claude-skills

    Build a customer health scorecard for a specific account. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Exit Waterfall

    mohitagw15856/pm-claude-skills

    Compute who gets what at each exit price from a cap table — liquidation preferences, conversion points, and where the founders' share collapses.

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Feature Prioritisation

    mohitagw15856/pm-claude-skills

    Apply prioritisation frameworks (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) to rank features and backlog items.

    1.4k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Fire Number

    mohitagw15856/pm-claude-skills

    Compute a financial-independence (FIRE) target and years-to-reach with every assumption labeled as an assumption — plus a sensitivity table instead of a single false-precision answer.

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Freelance Rate

    mohitagw15856/pm-claude-skills

    Derive a freelance day/hourly rate backwards from target income, honest billable utilization, overhead, and the self-employment tax premium — the arithmetic that proves a rate is not salary÷2000.

    1.4k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Questions about Cn Severance Calculator

What does Cn Severance Calculator do?

Estimate economic compensation (经济补偿金) when employment ends in mainland China: N, N+1 or 2N under the Labour Contract Law, with the high-earner cap, the part-year rule and the questions that decide…. Cn Severance Calculator is an agent skill from mohitagw15856/pm-claude-skills. Estimate economic compensation (经济补偿金) when employment ends in mainland China: N, N+1 or 2N under the Labour Contract Law, with the high-earner cap, the part-year rule and the questions that decide which case applies.

When should I use Cn Severance Calculator?

Cn Severance Calculator fits situations like: asked 我被裁员了能拿多少补偿; how much severance am I owed in China.

How do I install Cn Severance Calculator in Claude Code?

Run `npx skills add mohitagw15856/pm-claude-skills --skill cn-severance-calculator -a claude-code`. Or copy the skill folder (skills/cn-severance-calculator in mohitagw15856/pm-claude-skills) into .claude/skills/cn-severance-calculator in your project. Claude Code loads it when a task matches its description.

How do I install Cn Severance Calculator in Codex?

Run `npx skills add mohitagw15856/pm-claude-skills --skill cn-severance-calculator -a codex`. Or copy the skill folder (skills/cn-severance-calculator in mohitagw15856/pm-claude-skills) into .agents/skills/cn-severance-calculator in your project. Codex loads it when a task matches its description.

Can I use Cn Severance Calculator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitagw15856/pm-claude-skills --skill cn-severance-calculator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cn-severance-calculator, .gemini/skills/cn-severance-calculator, .github/skills/cn-severance-calculator and .opencode/skills/cn-severance-calculator in your project.

What does Cn Severance Calculator need to run?

Going by SKILL.md and its folder, Cn Severance Calculator needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Cn Severance Calculator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cn Severance Calculator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Cn Severance Calculator use?

Cn Severance Calculator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cn Severance Calculator use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cn Severance Calculator?

Skills that share tags, products or a category with Cn Severance Calculator: Implementing End To End Encryption For Messaging (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Unit Economics Calculator (revfactory/harness-100, 1.3k stars), Eol Resistor Calculator (sickn33/agentic-awesome-skills, 47k stars) and Task Effort Estimator (Donchitos/Claude-Code-Game-Studios, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cn Severance Calculator?

mohitagw15856 (a GitHub user) maintains it in mohitagw15856/pm-claude-skills, which has 1,434 GitHub stars. The repository holds 1,348 skills in this directory. The repository was last updated on October 9, 2026.

Source: mohitagw15856/pm-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.