SuperAPI AI Directory

log-leave

General & other

View repository

Updated 10-15 20:29

About this skill

/log-leave

Add a new leave entry to ~/.claude/plugins/config/claude-for-legal-zh/employment-legal/leave-register.yaml , entering the minimum information needed to start tracking deadlines. Use when an employee begins leave and you want the tracker to monitor time milestones from day one.

Instructions

  1. Read ~/.claude/plugins/config/claude-for-legal-zh/employment-legal/CLAUDE.md → jurisdiction table and leave management section.

  2. Ask for all of the following at once—do not drip them one by one:

A few quick questions to set up leave tracking:

  • Employee name or position (may be anonymous)
  • Work location? (Province/Municipality—this determines which rules apply)
  • Leave type: sick leave/medical period / maternity leave (including local bonus leave) / annual leave / work injury leave / marriage leave / parental leave / paternity leave
  • Leave start date
  • Is it intermittent leave?
  • Expected return-to-work date (if known—leave blank if not)
  • Has the leave request been approved? If so, when?
  • Has the medical certificate been submitted? (Required for medical period/sick leave) If so, date?
  1. Use ~/.claude/plugins/config/claude-for-legal-zh/employment-legal/CLAUDE.md jurisdiction table in to find the applicable leave entitlement (days/months) for this leave type in that jurisdiction. Main legal bases:

    • Medical period: Provisions on the Medical Period for Enterprise Employees Sick or Injured Due to Non-Work-Related Injury [法条原文](3-24 months based on years of service)
    • Maternity leave: Special Provisions on Labor Protection for Female Employees Article 7 [法条原文](98 days base) + local bonus leave under each province/municipality population and family planning regulations
    • Annual leave: Regulations on Paid Annual Leave for Employees Article 3 [法条原文](5/10/15 days based on cumulative years of service)
    • Work injury leave: Work Injury Insurance Regulations Article 33 [法条原文](the suspension-with-pay period generally does not exceed 12 months)
  2. Calculate the first upcoming deadline based on the information provided:

    • Leave request not yet approved → deadline is before approval is completed (remind manager to approve promptly)
    • Medical certificate required but not received → remind manager to request it
    • Before leave expires → warn at 75% exhausted
  3. Write the new entry to ~/.claude/plugins/config/claude-for-legal-zh/employment-legal/leave-register.yaml. If the file does not exist, create it. Use YAML format:

    - 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: "[备注]"
    
  4. One-line confirmation:

    "Registered. [Employee/Position] — [Leave type] — [Jurisdiction] — started on [date]. First deadline: [what and when]. The leave tracker will automatically warn."

Example

/employment-legal:log-leave
/employment-legal:log-leave
张工(高级工程师,在北京工作)今天开始休病假,需要手术。
连续休假。请假已审批,尚未提交医疗证明。