Leave Doc for Openclaw

A comprehensive leave application generator that automates document creation, workday calculations, and annual leave optimization.

ckchzh
v2.0.0
Mar 18, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install leave-doc

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install leave-doc using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Leave Doc?

Leave Doc is a professional utility designed to streamline the process of requesting time off by generating structured leave applications. As a key component of the Openclaw Skills ecosystem, it supports a wide variety of leave types including personal, sick, annual, marriage, and maternity leave. The skill ensures accuracy in corporate environments by automatically calculating workdays and excluding weekends from multi-day requests.

Beyond simple generation, Leave Doc helps users maximize their time off through intelligent annual leave planning. It provides templates suitable for official OA approval systems as well as quick emergency notifications for messaging platforms. This tool is essential for developers and professionals who want to maintain professional communication while managing their work-life balance using Openclaw Skills.

Leave Doc Use Cases

  • Creating formal leave applications for corporate OA (Office Automation) approval systems.
  • Calculating exact workday counts for long-term leave while automatically skipping weekends.
  • Rapidly generating emergency leave messages for platforms like WeChat or Slack when urgent situations arise.
  • Planning annual leave strategies to maximize consecutive days off by bridging holidays.

How Leave Doc Works

  1. The user provides the leave type, duration, and reason through a CLI command.
  2. The skill processes the input, identifying the specific template required for the leave category.
  3. For multi-day requests, the internal logic calculates the calendar span while filtering out non-working days.
  4. For planning requests, the algorithm analyzes leave balances to suggest optimal holiday 'bridging' scenarios.
  5. The tool outputs a formatted text block or document ready to be copied into an email or HR system.

Leave Doc Setup

To get started with this entry in the Openclaw Skills collection, ensure you have Python 3.6+ installed. Follow these steps:

# Navigate to the skill directory
cd leave-doc

# Make the script executable
chmod +x scripts/doc.sh

# Test the installation with the help command
bash scripts/doc.sh help

Leave Doc Data Schema & Taxonomy

The skill utilizes a structured input schema to generate precise leave documentation:

Attribute Description Examples
Leave Type The category of the request Personal, Sick, Annual, Marriage, Maternity
Duration Number of days requested 1, 2, 5, 10
Reason The justification for leave Family matters, Medical checkup, Travel
Output Format The target medium for the text Formal Document, Emergency Message

Leave Doc Advanced Features

  • Intelligent Workday Calculation: Automatically detects and excludes weekends from the total leave period.
  • Emergency Mode: One-click generation of urgent leave notices for immediate communication.
  • Holiday Bridging: Advanced annual leave planning that suggests the best dates to use leave for maximum rest.
  • Multi-type Support: Pre-configured templates for complex leave scenarios like maternity or bereavement leave within the Openclaw Skills framework.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*