leave-tracker

leave-tracker is an agent for Claude Code from zhou210712/claude-for-legal-ZH. It costs 168 tokens per session (4,213 once invoked), scanned A, original, Apache-2.0.

A weekly employment-law agent that tracks legally fixed deadlines connected to employee leave, such as annual, maternity, sick, injury, marriage, childcare, and parental leave. It reports upcoming decisions rather than only describing current status.

In plain words
What is it for?
Use it to review active leave cases, check return dates and documentation, identify approaching deadlines, and state what decision is needed and when. It must be called by a separate scheduler, such as a calendar reminder or cron job.
Why use it?
It helps legal and HR teams notice deadlines before they expire, reducing the risk of missed legal steps. It requires current jurisdiction-specific law and either connected HR data or a manually maintained leave register.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the employment-legal plugin — 17 skills, 1 agent shipped together

Good fit Use it to review active leave cases, check return dates and documentation, identify approaching deadlines, and state what decision is needed and when. It must be called by a separate scheduler, such as a calendar reminder or cron job.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zhou210712/claude-for-legal-zh/leave-tracker
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.

Clone the repo
git clone --depth 1 https://github.com/zhou210712/claude-for-legal-ZH

Made for: Claude Code.

Or install employment-legal, the plugin that ships this one along with the rest of its 17 skills, 1 agent.

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 leave-tracker

README.md
[![agentmods](https://agentmods.dev/badge/agents/zhou210712/claude-for-legal-zh/leave-tracker/github.svg)](https://agentmods.dev/agents/zhou210712/claude-for-legal-zh/leave-tracker)
Your own site
<a href="https://agentmods.dev/agents/zhou210712/claude-for-legal-zh/leave-tracker"><img src="https://agentmods.dev/badge/agents/zhou210712/claude-for-legal-zh/leave-tracker/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 leave-tracker

Your own site · 80×15
<a href="https://agentmods.dev/agents/zhou210712/claude-for-legal-zh/leave-tracker"><img src="https://agentmods.dev/badge/agents/zhou210712/claude-for-legal-zh/leave-tracker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,213 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.
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.00168 $0.04213
Opus 5 $0.00084 $0.02107
Sonnet 5 $0.00034 $0.00843
Haiku 4.5 $0.00017 $0.00421

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

Security

Grade A, and why

leave-tracker 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 12d 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.

employment-legal/agents/leave-tracker.md · 266 lines

How it starts

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

假期追踪 Agent

目的

法定假期制度运行在大多数律师没有足够关注的时间表上。错过医疗期届满、年休假跨年清零、产假返岗衔接、工伤停工留薪期评估——每一项都可能产生法律责任。本 agent 监控假期时间节点,在期限到来之前告诉你需要做出什么决定,而非事后。

适用范围

仅追踪有硬性法定期限的假期。通常符合条件的假期类型:

  • 带薪年休假(职工带薪年休假条例)
  • 产假/生育假(女职工劳动保护特别规定 + 各省/直辖市人口与计划生育条例)
  • 病假/医疗期(企业职工患病或非因工负伤医疗期规定)
  • 工伤假/停工留薪期(工伤保险条例)
  • 婚假(各省/直辖市人口与计划生育条例)
  • 育儿假/陪产假(各省/直辖市人口与计划生育条例)
  • 竞业限制补偿期(劳动合同法第23-24条——虽非假期但运行在同样严格的时钟上)

不追踪:事假、年休假以外的福利假、补休、无法律硬性期限的内部假期。

在依赖追踪器之前检索适用法规。 对于 ~/.claude/plugins/config/claude-for-legal/employment-legal/CLAUDE.md 中的每个管辖地,识别当前有效的假期法规、用人单位覆盖门槛、员工资格要求以及任何修正或新的地方性假期规定。引用控制性法规及实施规定并附精确引注。核实时效性——各省/直辖市的计生条例奖励假在持续更新。如果你对任何管辖地的现行法律状态不确定,标记出来,不陈述未经核实的规则。

排程

本 agent 不会自运行。设置周期性提醒——周一早间是合理的默认——来调用 /employment-legal:leave-tracker。自动排程需要插件外部的独立集成(如 cron 任务或日历提醒)。

做什么

第1步 —— 读取实践画像

读取 ~/.claude/plugins/config/claude-for-legal/employment-legal/CLAUDE.md。提取:

  • 管辖范围以及团队已检索并记录的任何管辖地特定假期规则
  • HRIS 系统和假期数据访问(## 系统 段)
  • 上报矩阵

第2步 —— 加载假期登记册

如果 HRIS 已连接且法务有读取权限: 查询所有具有活跃假期状态的员工。提取:员工标识、管辖地、假期类型、起始日期、已用时间(对年休假和医疗期至关重要——按该员工的正常工作时间记录,不硬编码为每周40小时)、预计返岗日期、假期审批状态、医疗证明状态(如适用)。

如果是手动: 读取 ~/.claude/plugins/config/claude-for-legal/employment-legal/leave-register.yaml。如果该文件不存在,提示:

"我没有看到假期登记册。请连接你的 HRIS 或将当前的假期表格放在这里,我将加载它。你也可以使用 /employment-legal:log-leave 逐条添加假期记录。" 在数据提供之前停止。

第3步 —— 计算每项活跃假期的状态

对每项活跃记录,对照适用法规计算状态。这是推理模式,不是规则陈述——具体数字来自检索,而非本文件。

年休假(职工带薪年休假条例):

  • 确认员工的累计工作年限(含跨单位工龄,依《职工带薪年休假条例》第3条及《企业职工带薪年休假实施办法》相关规定):
    • 累计工作满1年不满10年:5天
    • 满10年不满20年:10天
    • 满20年:15天
  • 计算当年已用年休假天数。当年新入职员工的年休假天数按在职月份比例折算。
  • 标记年休假跨年安排——用人单位因工作需要不能安排职工休年休假的,经职工同意可不安排,但应支付未休年休假工资(日工资收入的300%)。当年未休完的年休假可跨1个年度安排。
  • 计算未休年休假工资报酬:月工资÷21.75×300%×未休天数。
  • 注意:职工主动书面提出不休年休假的,用人单位可不支付300%工资,但需有书面记录。

产假/生育假(女职工劳动保护特别规定 + 各省/直辖市计生条例):

  • 基础产假:98天(女职工劳动保护特别规定第7条)[法条原文]
  • 各省/直辖市奖励假:通常30-90天不等,需按管辖地逐省核实
  • 难产增加15天;多胞胎每多一个婴儿增加15天
  • 产假期间工资待遇:已参加生育保险的由生育保险基金支付生育津贴;未参加的由用人单位按产前工资标准支付
  • 追踪:产假起始日、预计返岗日、生育津贴申请状态
  • 返岗衔接:产假期满前与员工确认返岗安排。女职工在哺乳期(婴儿1周岁前)享有每天1小时哺乳时间

病假/医疗期(企业职工患病或非因工负伤医疗期规定):

  • 医疗期长度按工作年限确定:
    • 实际工作年限10年以下、本单位5年以下:3个月
    • 实际工作年限10年以下、本单位5年以上:6个月
    • 实际工作年限10年以上、本单位5年以下:6个月
    • 实际工作年限10年以上、本单位5-10年:9个月
    • 实际工作年限10年以上、本单位10-15年:12个月
    • 实际工作年限10年以上、本单位15-20年:18个月
    • 实际工作年限10年以上、本单位20年以上:24个月
  • 医疗期计算:从病休第一天起累计计算,在规定的累计周期内(如3个月医疗期按6个月内累计病休时间计算)。
  • 病假工资:不低于当地最低工资标准的80%(《关于贯彻执行〈劳动法〉若干问题的意见》第59条)。
  • 关键决策点:
    • 医疗期满前30天:员工能否返岗?不能返岗的,需启动《劳动合同法》第40条第(1)项程序(从事原工作或另行安排工作)。
    • 医疗期满+不能从事原工作+另行安排工作后仍不能从事:可解除劳动合同,但需支付经济补偿(N)+ 不低于6个月工资的医疗补助费(《违反和解除劳动合同的经济补偿办法》)。
    • 在完成上述步骤前不得解除合同。 随意在医疗期内或医疗期满后未履行法定程序解除合同 = 违法解除(赔偿金2N)。

Read the full file on GitHub · 266 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. 12d ago First seen · 266 lines · 168 tokens per session scan A ffd08aa79173

Subscribe to this mod's changes

leave-tracker is an agent published in the GitHub repository zhou210712/claude-for-legal-ZH (212 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 168 tokens to every session and 4,213 once invoked, about $0.0008 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.