layoff-defense

layoff-defense is a skill for Claude Code, Codex from 90le/worker-rights-cn. It costs 66 tokens per session (807 once invoked), scanned A, original, Apache-2.0.

A guide for workers in China facing dismissal, layoffs, forced resignation, pay cuts, job transfers, or contract expiry. It organizes the facts and identifies possible claims and next steps.

In plain words
What is it for?
It helps review termination documents, preserve evidence, request written reasons, negotiate, file a complaint, apply for labor arbitration, or decide when to consult a lawyer.
Why use it?
It helps a worker understand what kind of termination is being proposed and avoid signing or acting before checking the reasons, evidence, and procedure.

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 It helps review termination documents, preserve evidence, request written reasons, negotiate, file a complaint, apply for labor arbitration, or decide when to consult a lawyer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/90le/worker-rights-cn/layoff-defense
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 layoff-defense
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 layoff-defense

README.md
[![agentmods](https://agentmods.dev/badge/skills/90le/worker-rights-cn/layoff-defense/github.svg)](https://agentmods.dev/skills/90le/worker-rights-cn/layoff-defense)
Your own site
<a href="https://agentmods.dev/skills/90le/worker-rights-cn/layoff-defense"><img src="https://agentmods.dev/badge/skills/90le/worker-rights-cn/layoff-defense/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 layoff-defense

Your own site · 80×15
<a href="https://agentmods.dev/skills/90le/worker-rights-cn/layoff-defense"><img src="https://agentmods.dev/badge/skills/90le/worker-rights-cn/layoff-defense.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 14
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00066 $0.00807
Opus 5 $0.00033 $0.00404
Sonnet 5 $0.00013 $0.00161
Haiku 4.5 $0.00007 $0.00081

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

Security

Grade A, and why

layoff-defense 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 1 executable file (scripts/run_mapping_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/layoff-defense/SKILL.md · 64 lines

How it starts

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

Layoff Defense

Overview

Classify the termination scenario, identify worker-side claims, and produce a lawful action path. Always base the analysis on collected facts and label uncertainty.

Workflow

  1. Accept only normalized input supplied by the orchestrator and return only this skill's documented output. Do not ask the user to select or chain internal skills. Report missing facts to the orchestrator.
  2. Identify the employer's stated basis: mutual agreement, employee resignation, fault dismissal, non-fault dismissal, economic layoff, contract expiry, or unclear.
  3. Read references/legal-map.md and bind the classification to source-card anchors, evidence points, and risk prompts.
  4. Check protected-status and procedure issues before discussing money.
  5. Classify possible claims as confirmed, possible, or lawyer_check.
  6. Recommend a next action: do not sign yet, request written reason, preserve evidence, negotiate, complain, apply for arbitration, or consult a lawyer.

Classification

Use these practical categories:

  • mutual_termination: both sides negotiate a separation agreement.
  • employee_resignation: employee submits resignation; check whether it was forced or induced.
  • fault_dismissal: employer claims serious misconduct, fraud, dual employment, criminal liability, or rule violation.
  • non_fault_dismissal: medical, incompetence after training/transfer, or major change in objective circumstances.
  • economic_layoff: employer claims statutory mass layoff or operational difficulty.
  • contract_expiry: employer lets a fixed-term contract expire.
  • constructive_dismissal: salary reduction, forced transfer, unpaid wages, unpaid social insurance, or hostile pressure makes continued work impossible.
  • unclear_or_mixed: facts or documents conflict.

Red Flags

Escalate to lawyer_check when any of these appear:

  • Pregnancy, maternity, nursing period, medical treatment period, occupational disease exposure, suspected work injury.
  • Non-compete, confidentiality, stock options, executive status, foreign worker, labor dispatch, outsourcing, platform work.
  • Company asks the employee to sign resignation, broad waiver, confidentiality penalty, or "all disputes settled" language.
  • Employer refuses to provide written reason or asks for immediate departure without documents.
  • High claimed amount, group layoff, public-sector employer, or cross-city employment.

Read the full file on GitHub · 64 lines

Files

What ships with it

3 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 · 64 lines · 66 tokens per session scan A c16e2c1c0fca

Subscribe to this mod's changes

layoff-defense is a skill published in the GitHub repository 90le/worker-rights-cn (94 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 66 tokens to every session and 807 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

brazil-vat

> Use esta skill sempre que perguntarem sobre tributos indiretos brasileiros, IVA, tributos sobre o consumo, PIS, Cofins, ICMS, ISS, IPI, CBS, IBS, Imposto Seletivo, NF-e (Nota Fiscal Eletronica), NFS-e, Simples Nacional, registro de CNPJ, reforma tributaria (EC 132/2023, LC 214/2025, LC 227/2026) ou qualquer questao…

openaccountants/openaccountants · 213 tokens

br-return-assembly

Skill orquestrador final que monta o pacote completo de declarações do Brasil para autônomos e pequenos empresários residentes no Brasil (MEI, Simples Nacional, autônomo/pessoa física). Consome os outputs de todos os content skills do Brasil (br-irpf para Declaração de Ajuste Anual, br-simples para reconciliação de…

openaccountants/openaccountants · 209 tokens