local-rules-adapter

local-rules-adapter is a skill for Claude Code, Codex from 90le/worker-rights-cn. It costs 102 tokens per session (1,031 once invoked), scanned A, original, Apache-2.0.

A routing guide for China labor cases that identifies which city-specific rules and official sources need checking. It covers local wage standards, social insurance, housing funds, arbitration details, and some compensation limits.

In plain words
What is it for?
Use it when a case involves cities such as Beijing, Shanghai, Shenzhen, Guangzhou, or Hangzhou, local minimum wages, unpaid wages, high-wage compensation caps, or local arbitration requirements.
Why use it?
Local labor rules and procedures can differ by city, so it helps identify the correct location-based checks and marks information that still needs verification.

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 when a case involves cities such as Beijing, Shanghai, Shenzhen, Guangzhou, or Hangzhou, local minimum wages, unpaid wages, high-wage compensation caps, or local arbitration requirements.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/90le/worker-rights-cn/local-rules-adapter"><img src="https://agentmods.dev/badge/skills/90le/worker-rights-cn/local-rules-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,031 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 high

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 →

  • high System Prompt Leakage · line 30
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
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.00102 $0.01031
Opus 5 $0.00051 $0.00515
Sonnet 5 $0.00020 $0.00206
Haiku 4.5 $0.00010 $0.00103

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

Security

Grade A, and why

local-rules-adapter 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run_city_rule_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/local-rules-adapter/SKILL.md · 55 lines

How it starts

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

Local Rules Adapter

Overview

Identify which local rules and official sources must be verified before a worker-rights answer becomes final. Use this skill as a routing layer; do not turn local statistical or social-insurance data into a final economic-compensation cap unless the reference marks that use as verified.

Workflow

  1. Normalize the city from user facts using references/city-rules.json.
  2. If the city is missing or unsupported, return needs_city and ask for workplace city, employer registered city, labor contract performance place, and termination date.
  3. For 工资低于最低工资 or 欠薪, read minimum_wage_or_wage_payment. Collect workplace city, pay period, full-time or part-time status, whether normal labor was provided, and itemized wage components. Keep unpaid wages separate from the minimum-wage gap and use a numerical standard only while its source health is current.
  4. For high-wage economic-compensation caps, read the city's economic_compensation_high_wage_cap object.
  5. Use national anchors from national_source_anchors, usually LCL-2012#art47 and LCL-REG-2008#art27, with local source IDs from the city entry.
  6. Separate these statuses:
    • verified_final: source can be used directly for the stated local use.
    • verified_candidate: official data exists, but the output must still say local HRSS/arbitration practice should confirm the exact use.
    • verified_reference_only: useful for social insurance or statistics, not final wage-cap calculation.
    • local_verify: official local amount or form has not been verified.
  7. Compare each used card's effective_date, expiry_date, and current_as_of against the response date. If it is not yet effective, expired, or more than 366 days past review, treat it as local_verify, name the source ID, and do not reuse its numerical value.
  8. Add local_verify flags whenever city data, arbitration commission forms, statute limitation details, medical period, wage-payment period, housing fund, tax, or social-insurance details affect the answer.
  9. For Guangzhou economic layoffs, route both economic_layoff_local_procedure and guangzhou_economic_layoff_report_package so the answer checks the plan, worker-opinion process, written HRSS report package, HRSS feedback response, final publication, and wage/social-insurance clearance.
  10. If the case needs calculations, pass verified facts to compensation-calculator; pass local source status and caveats alongside the amount.
  11. If the case needs filing, pass jurisdiction and form caveats to arbitration-drafter.

Read the full file on GitHub · 55 lines

Files

What ships with it

4 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. 10d ago First seen · 55 lines · 102 tokens per session scan A 26811c526704

Subscribe to this mod's changes

local-rules-adapter is a skill published in the GitHub repository 90le/worker-rights-cn (93 stars, last pushed 29d ago), licensed Apache-2.0. It adds 102 tokens to every session and 1,031 once invoked, about $0.0005 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

flexible-contract

A tool that drafts Korean employment contracts for flexible schedules, including variable hours, chosen hours, and remote work.

kimlawtech/korean-contracts · 83 tokens

china-translate

A Chinese-English translation and localisation guide for technical text and product interfaces. Localisation means adapting wording and cultural references so they sound natural to users in the target language.

dongsheng123132/u-claw · 32 tokens

deutsch-englisch-digitale-inhalte-handbuch

Für Deutsch Englisch AGB: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Schnittstellenkarte mit Zuständigkeits- und Nachweisfragen. Fachgebiet: AGB-Recht-Prüfer. Route: deutsch-englisch-digitale-inhalte-handbuch.

Klotzkette/claude-fuer-deutsches-recht · 68 tokens

deutsch-englisch-agb

Für Deutsch Englisch AGB: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Schnittstellenkarte mit Zuständigkeits- und Nachweisfragen. Fachgebiet: AGB-Recht-Prüfer. Route: deutsch-englisch-agb.

Klotzkette/claude-fuer-deutsches-recht · 60 tokens

privacy-global-jp

A document generator for Korean services that also serve people in Japan. It creates Korean and Japanese privacy policies and terms of service while reflecting relevant rules in both countries.

kimlawtech/korean-privacy-terms · 71 tokens

region-config

Configure a brand's regional settings — timezone, languages, currency, compliance regulations (GDPR, CCPA, APPI, LGPD, EU AI Act Article 50, and more), local platforms, business hours, holiday calendars, and data-residency rules — written to a persistent per-region config file plus a practical compliance checklist.…

indranilbanerjee/digital-marketing-pro · 150 tokens