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.
curl -O https://raw.githubusercontent.com/weante/city-salary/main/AGENTS.mdgit clone --depth 1 https://github.com/weante/city-salaryWrote 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.
[](https://agentmods.dev/instructions/weante/city-salary/agents-md)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01400 | $0.01400 |
| Opus 5.5 | $0.00560 | $0.00560 |
| Sonnet 5.5 | $0.00280 | $0.00280 |
| Haiku 4.5 | $0.00140 | $0.00140 |
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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 37 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,打开先选城市)。
本文件只保留每次必读的仓库约定、计算口径、交互要求与数据状态指针;337 城参数、分省费率与历年批次取证日志已移到 skills/city-salary/references/,按需查阅。
计算口径要点
- 个税累计预扣预缴:已就业月数 = 当前月 − 就业起始月 + 1;累计应纳税所得额 = 月薪×月数 − (五险一金+5000+专项附加+补充扣除)×月数 → 七级税率表(3%~45%)→ 当月个税 = 累计税额 − 上月累计税额。
- 专项附加扣除(勾选启用,自动填默认值:子女教育/婴幼儿照护2000、赡养老人1500、住房租金按城市标准;范围0~上限):子女教育/婴幼儿照护二选一(2000/月/子女)、房贷利息(1000)与住房租金二选一(租金按城市:北京/上海/广州/深圳1500/月,佛莞中珠惠汕湛茂揭清江肇潮梅阳韶1100/月,汕尾河源云浮800/月)、继续教育400、赡养老人(独生3000/非独生≤1500)、大病医疗年度80000(只在汇算清缴时扣,不进月度预扣;年度金额按全年12个月计并封顶80000,不随就业月数折算)。
- 年终奖单独计税:奖金÷12找月均税率(3%
45%月表)→ 全额×税率−速算扣除;临界值陷阱:36000/144000/300000/420000/660000/960000,多1元少拿230988000元,命中必须警告。 - 补充扣除:税优健康险≤200/月、个人养老金≤1000/月、企业年金≤本人缴费工资计税基数的4%(模板以养老缴费基数计)。这三项既减税、也是个人真实现金支出,算"到手现金"时必须扣出去。
交互要求
- 用户给工资查询时:先确认城市,再追问缺失参数(月薪、基数是否等于工资、公积金比例、专项附加、年终奖、当前月份、深圳的户籍/医疗档次)
- 计算后主动提示:公积金比例提升收益、年终奖陷阱、未用扣除项、基数低于工资的影响
仓库约定与红线
- 数值唯一真源是
skills/city-salary/assets/calculator.html的CITIES;文档参数经node tools/gen-city-params.js --extract从CITIES落到skills/city-salary/data/cities.json(docRate/docNote人工措辞按城市名保留),再由--write生成到skills/city-salary/references/city-parameters.md的 generated 区(<!-- generated:begin -->至<!-- generated:end -->,勿手改),AGENTS.md不再复制参数表。 - 改数值必须同步跑
node tools/sync.js、node tools/test-calc.js、node tools/check-golden.js、node tools/check-dom.js、node tools/check-sync.js、node tools/data-quality.js、node tools/test-export.js、node tools/e2e-smoke.js、node tools/check-jsdoc.js;黄金快照禁止用--update造绿。 - 新增或修改城市参数:只改
CITIES→node tools/gen-city-params.js --extract重建 JSON →node tools/gen-city-params.js --write重写 references 生成区 → 跑check-sync的 B 项(生成物 diff + JSON 是否等于 CITIES 提取结果 + docRate/docNote 措辞能否回溯到数值)。漏跑--extract会报「请运行 node tools/gen-city-params.js --extract 重建 JSON」。 - 文档里的断言数、机制规模数字由
check-sync的 C/D 项守卫,不要手写旧数字。 - 维护流程见
CONTRIBUTING.md,年度节奏见docs/maintenance-calendar.md,安装说明见docs/INSTALL-*.md。
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.
- 2d ago Changed · +28 tokens per session 7e79cbea0692
- 4d ago Changed · -415 lines · -53,624 tokens per session 987962ef71e6
- 28d ago Changed · +215 lines · +15,244 tokens per session e51a0e7e20c3
- 29d ago Changed · +180 lines · +22,597 tokens per session bf3766b3e7be
- 1mo ago Changed · +1,672 tokens per session 64e39ac7e749
- 1mo ago Changed · +283 tokens per session 091f55dd8e33
- 1mo ago Changed · +587 tokens per session aabeb551fa77
- 1mo ago Changed · +27 tokens per session ef11cc4a88fb
- 1mo ago Changed · +27 lines · +11,605 tokens per session 49b4c6a08a27
- 1mo ago First seen · 30 lines · 2,981 tokens per session scan A 94cc552d185f
city-salary AGENTS.md is an instructions file published in the GitHub repository weante/city-salary (3 stars, last pushed yesterday), licensed MIT. It adds 1,400 tokens to every session, about $0.0056 per session on Opus 5.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.
city-salary AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| city-salary AGENTS.mdweante/city-salary | Instructions file | 3 | yesterday | MIT | A | 1,400 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode ai-customization.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 1,907 | GitHub Copilot |