log-leave

Log employee leave events and calculate the first upcoming deadline.

183|37|Updated May 15, 2026
One-click install
npx skills add https://github.com/zhou210712/claude-for-legal-ZH --skill log-leave-zhou210712
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: log-leave
Source: https://github.com/zhou210712/claude-for-legal-ZH/tree/main/employment-legal/skills/log-leave
Command: npx skills add https://github.com/zhou210712/claude-for-legal-ZH --skill log-leave-zhou210712

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

帮助你在员工开始休假时,快速把假期的关键信息录入假期登记册,并据此计算审批状态、医疗/证明提交要求以及到期预警节点,避免错过管理与合规时点。

Core Features & Use Cases

  • 最小信息建档:按假期类型、管辖地、开始/返岗、是否间断、审批与证明提交情况建立一条新的登记记录。
  • 基于管辖地与假期类型的权益计算:引用管辖地表中的对应规则,计算首个即将到来的截止日期,并覆盖常见中国法假期场景(医疗期、产假、年休假、工伤假等)。
  • 到期前预警与管理提示:当审批未完成或证明未提交时,生成面向管理者的提醒;在假期用尽前进行预警提示。
  • 适用场景:员工病假/医疗期、产假(含奖励假)、年休假、工伤停工留薪期、婚假/育儿假/陪产假等的用假与到期管理。

Quick Start

请你在命令行中执行 employment-legal:log-leave,并按提示补全员工/岗位、工作地、假期类型、开始日期、间断性、预计返岗(如有)、审批与证明提交情况,以便自动写入 leave-register.yaml 并计算首个截止日期。

Frequently Asked Questions about log-leave

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track employee medical leave and calculate compliance deadlines?

To track employee medical leave and calculate compliance deadlines, you can log the leave event into a YAML register. The system then applies jurisdiction mapping to compute the first upcoming cutoff for approval, proof submission, and leave expiration.

How does deadline calculation work for different PRC leave categories?

Deadline calculation for PRC leave categories works by referencing jurisdiction mapping rules configured in CLAUDE.md. It covers medical, maternity, annual, work-injury, and other leave types to determine entitlements and the first upcoming compliance cutoff.

What is the best way to log HR leave events and generate deadline alerts?

The best way to log HR leave events and generate deadline alerts is to record leave details like type, jurisdiction, and dates into a YAML file. The system automatically calculates upcoming deadlines and generates management alerts for pending approvals or missing proofs.

Can I use YAML logging for maternity and annual leave tracking across different jurisdictions?

Yes, you can use YAML logging for maternity and annual leave tracking across different jurisdictions. The workflow writes leave entries to a local configuration file and references jurisdiction-specific entitlement rules to calculate expiration and submission deadlines.

Do I need to manually calculate proof submission deadlines for work-injury leave?

No, you do not need to manually calculate proof submission deadlines for work-injury leave. When you log the leave event with its relevant details, the system automatically computes the first upcoming deadline for proof submission based on jurisdiction rules.

Why does leave tracking fail to alert managers before expiration dates?

Leave tracking may fail to alert managers if the leave event was not properly logged into the YAML register or if the jurisdiction mapping in CLAUDE.md lacks the correct entitlement rules. Accurate entry of leave type and dates is required for automatic expiration alerts.