city-salary: Instructions file for Codex

AGENTS.md

city-salary AGENTS.md is an instructions file for Codex, OpenCode from weante/city-salary. It costs 1,640 tokens per session, scanned A, original, MIT.

Repository instructions for calculating employee pay deductions and contributions in Guangdong, China, for the 2025–2026 period. They cover 21 cities and include a single-file calculator that starts by asking for a city.

In plain words
What is it for?
Calculating items such as pension, unemployment insurance, medical insurance, work injury insurance, maternity coverage, and housing-fund contributions for Guangdong cities.
Why use it?
They give a coding agent the local rates and rules needed for consistent calculations instead of leaving it to guess or use the wrong city’s figures.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex; mentions OpenCode.

This is weante/city-salary's own configuration. It tells Codex and OpenCode how to work on city-salary itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything city-salary configures →

Reuse

Borrowing it

Nothing to install: this file belongs to weante/city-salary. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/weante/city-salary/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/weante/city-salary

Made for: Codex, OpenCode.

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 city-salary AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/weante/city-salary/agents-md/github.svg)](https://agentmods.dev/instructions/weante/city-salary/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/weante/city-salary/agents-md"><img src="https://agentmods.dev/badge/instructions/weante/city-salary/agents-md/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 city-salary AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/weante/city-salary/agents-md"><img src="https://agentmods.dev/badge/instructions/weante/city-salary/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,640 This file is loaded in full into every session.
When invoked 1,640 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01640 $0.01640
Opus 5 $0.00820 $0.00820
Sonnet 5 $0.00328 $0.00328
Haiku 4.5 $0.00164 $0.00164

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

Security

Grade A, and why

city-salary AGENTS.md 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 9d ago.

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.

AGENTS.md · 24 lines

How it starts

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

AGENTS.md — 城市工资计算规则(city-salary)

本文件为通用 Agent 指令,支持读取 AGENTS.md 的 Agent 工具(Codex、opencode、TRAE、WorkBuddy 等)可直接使用本仓库;需要交互式计算器时使用 skills/city-salary/assets/calculator.html(单文件 HTML,打开先选城市)。

计算规则(2025-2026年度 · 已内置广东省21市)

  1. 先确认城市,再取该市参数(内置:深圳/广州/东莞/佛山/珠海/惠州/江门/中山/汕头/韶关/湛江/肇庆/茂名/梅州/汕尾/河源/阳江/清远/潮州/揭阳/云浮)。用户报未内置城市时,说明可联网补充数据。
  2. 全省统一(广东):养老单位16%/个人8%(上限27549;下限广州5510、其他4775;深圳深户单位17%);失业单位0.8%/个人0.2%(2520~44265);工伤单位0.2%起;生育多数并入医保;公积金0或5%~12%。
  3. 各市医保(分档城市多档可选,档次由单位参保方式决定):深圳一档6%/2%、二档1.5%/0.5%(深户仅一档)672733633;广州6%/2%(含生育)623431170;东莞三档(统账有个账5%/2%、统账无个账4.5%/0.5%、单建统筹2.45%/0.5%)477527549;佛山统账4.5%/2%、单建4.5%/0%(另生育1%)46699660;珠海一档(统账)6%/1.5%、二档(单建)3%/0% 477527549;惠州统账5.6%/2%、单建4%/0% 446322315;江门6%/2%(含生育)428021399;中山统账5.8%/2%、单建3.3%/0.7% 425021250;汕头统账7%/2%、单建6%/0% 395319764;韶关5.5%/2%(另生育0.9%单缴)491524573;湛江统账6.7%/2%、单建6.2%/0% 454322717;肇庆5.5%/2%(另生育0.8%)452022599;茂名7%/2%(含生育)448922446;梅州企业5.5%/2%、机关事业6.5%/2% 431321567;汕尾统账6%/2%、单建4.8% 458522923;河源5%/2%(机关事业6%)428821441;阳江5%/2%(另生育1%)412020598;清远6.5%/2%(另生育1%)415720787;潮州综合医保7.4%/2%或6.9%/2%、住院医保(单建)4.5%/0.5% 376318816;揭阳6%/2% 372718636;云浮6%/2%(另生育1%)4556~22782。
  4. 公积金基数(下限上限):深圳252048471;广州250041697;东莞208027391;佛山208031395;珠海208036279;惠州185034290;江门185027628;中山208029430;汕头185027698;韶关175029283;湛江185029640;肇庆185028220;茂名175026100;梅州175026315;汕尾175027849;河源175025470;阳江175028356;清远175027593;潮州175026043;揭阳175024618;云浮175027642。
  5. 个人社保 = 养老8% + 医疗(个人费率) + 失业0.2%(+深圳长护0.125%可选);公积金 = 基数×比例(0或5~12%)。
  6. 个税累计预扣预缴:已就业月数 = 当前月 − 就业起始月 + 1;累计应纳税所得额 = 月薪×月数 − (五险一金+5000+专项附加)×月数 → 七级税率表(3%~45%)→ 当月个税 = 累计税额 − 上月累计税额。
  7. 专项附加扣除(勾选启用,自动填默认值:子女教育/婴幼儿照护2000、赡养老人1500、住房租金按城市标准;范围0~上限):子女教育/婴幼儿照护二选一(2000/月/子女)、房贷利息(1000)与住房租金二选一(租金按城市:广深1500/月,佛莞中珠惠汕湛茂揭清江肇潮梅阳韶1100/月,汕尾河源云浮800/月)、继续教育400、赡养老人(独生3000/非独生≤1500)、大病医疗年度80000(汇算时扣)。
  8. 年终奖单独计税:奖金÷12找月均税率(3%45%月表)→ 全额×税率−速算扣除;临界值陷阱:36000/144000/300000/420000/660000/960000,多1元少拿230988000元,命中必须警告。
  9. 补充扣除:税优健康险≤200/月、个人养老金≤1000/月、企业年金≤工资4%。

Read the full file on GitHub · 24 lines

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. 9d ago First seen · 24 lines · 1,640 tokens per session scan A 293656a78140

Subscribe to this mod's changes

city-salary AGENTS.md is an instructions file published in the GitHub repository weante/city-salary (2 stars, last pushed 10d ago), licensed MIT. It adds 1,640 tokens to every session, about $0.0082 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-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,735 tokens