log-leave

log-leave is a skill for Claude Code from zhou210712/claude-for-legal-ZH. It costs 56 tokens per session (951 once invoked), scanned A, original, Apache-2.0.

A record-keeping tool for starting leave tracking when an employee begins time off. It records the basic details needed to calculate and monitor important dates under local Chinese employment rules.

In plain words
What is it for?
Use it to log sick leave, maternity leave, annual leave, work-injury leave, marriage leave, parental leave, or related leave, including location, dates, and whether the leave is intermittent.
Why use it?
It helps ensure leave deadlines and missing approvals or medical documents are noticed from the first day of leave.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

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

Good fit Use it to log sick leave, maternity leave, annual leave, work-injury leave, marriage leave, parental leave, or related leave, including location, dates, and whether the leave is intermittent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhou210712/claude-for-legal-zh/log-leave
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 zhou210712/claude-for-legal-ZH --skill log-leave
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 log-leave

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhou210712/claude-for-legal-zh/log-leave"><img src="https://agentmods.dev/badge/skills/zhou210712/claude-for-legal-zh/log-leave.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 951 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.00056 $0.00951
Opus 5 $0.00028 $0.00476
Sonnet 5 $0.00011 $0.00190
Haiku 4.5 $0.00006 $0.00095

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

Security

Grade A, and why

log-leave 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 13d 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/skills/log-leave/SKILL.md · 70 lines

What it actually says

/log-leave

~/.claude/plugins/config/claude-for-legal/employment-legal/leave-register.yaml 添加新假期条目,录入开始追踪截止日期所需的最低信息。当员工开始休假且你希望追踪器从第一天起监控时间节点时使用。

指令

  1. 读取 ~/.claude/plugins/config/claude-for-legal/employment-legal/CLAUDE.md → 管辖地表和假期管理部分。

  2. 一次性询问以下全部内容——不要逐个滴灌:

    几个快速问题以设置假期追踪:

    • 员工姓名或岗位(可匿名)
    • 工作地?(省/直辖市——这决定适用哪些规则)
    • 假期类型:病假/医疗期 / 产假(含各地奖励假) / 年休假 / 工伤假 / 婚假 / 育儿假 / 陪产假
    • 假期开始日期
    • 是否为间断性休假?
    • 预计返岗日期(如已知——不知则留空)
    • 请假申请是否已审批?如已审批,何时?
    • 医疗证明是否已提交?(医疗期/病假需提供)如已提交,日期?
  3. 使用 ~/.claude/plugins/config/claude-for-legal/employment-legal/CLAUDE.md 中的管辖地表,查找该管辖地该假期类型的适用假期权益(天数/月数)。主要法律依据:

    • 医疗期:企业职工患病或非因工负伤医疗期规定 [法条原文](按工作年限3-24个月)
    • 产假:女职工劳动保护特别规定第7条 [法条原文](98天基础)+ 各省/直辖市人口与计划生育条例奖励假
    • 年休假:职工带薪年休假条例第3条 [法条原文](按累计工作年限5/10/15天)
    • 工伤假:工伤保险条例第33条 [法条原文](停工留薪期一般不超过12个月)
  4. 根据提供的信息计算首个即将到来的截止日期:

    • 请假申请尚未审批 → 截止日期为审批完成前(提醒管理者及时审批)
    • 医疗证明要求但未收到 → 提醒管理者索要
    • 假期到期前 → 在75%用尽时预警
  5. 将新条目写入 ~/.claude/plugins/config/claude-for-legal/employment-legal/leave-register.yaml。如文件不存在,创建之。使用 YAML 格式:

    - employee: "[员工/岗位]"
      type: "[假期类型]"
      jurisdiction: "[省/直辖市]"
      start_date: "[YYYY-MM-DD]"
      expected_return: "[YYYY-MM-DD或空]"
      intermittent: [true/false]
      approved: [true/false]
      approval_date: "[YYYY-MM-DD或空]"
      cert_submitted: [true/false]
      cert_date: "[YYYY-MM-DD或空]"
      notes: "[备注]"
    
  6. 一行确认:

    "已登记。[员工/岗位] — [假期类型] — [管辖地] — 始于[日期]。首个截止日期:[什么和何时]。假期追踪器将自动预警。"

示例

/employment-legal:log-leave
/employment-legal:log-leave
张工(高级工程师,在北京工作)今天开始休病假,需要手术。
连续休假。请假已审批,尚未提交医疗证明。
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. 13d ago First seen · 70 lines · 56 tokens per session scan A 08f750d85ec7

Subscribe to this mod's changes

log-leave is a skill published in the GitHub repository zhou210712/claude-for-legal-ZH (212 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 951 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

specification-writing

A workflow for writing complete patent specifications from patent claims and an invention disclosure. It adapts the document to a chosen jurisdiction, such as the US, Europe, or China.

wanshuiyin/Auto-claude-code-research-in-sleep · 49 tokens

regulatory-research-fallback

Fallback workflow for regulatory research when web extraction tools fail on government PDFs.

HKUDS/OpenSpace · 20 tokens

x-scorecard

OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.

x-cmd/x-cmd · 57 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

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

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

nda-review

Use when the user uploads or pastes a non-disclosure agreement and asks for review, redline, risk assessment, or a recommendation on whether to sign. Identifies missing standard protections, one-sided or unusual provisions, and operational issues; produces a structured report with severity ratings and citations to…

LegalQuants/lq-ai · 79 tokens