← 返回 Skills 市场
Leave Doc
作者
BytesAgain2
· GitHub ↗
· v2.0.0
· MIT-0
446
总下载
0
收藏
2
当前安装
12
版本数
在 OpenClaw 中安装
/install leave-doc
功能描述
请假条生成器。事假、病假、年假、婚假、产假模板、多天请假自动计算工作日、紧急请假、年假规划。Leave application generator for personal, sick, annual, marriage, maternity leave with workday calculation, eme...
使用说明 (SKILL.md)
leave-doc
请假条生成器。支持多种请假类型、多天请假自动计算工作日、紧急请假模板、年假最优规划。
Usage
Run the script at scripts/doc.sh with the following commands:
| Command | Description |
|---|---|
doc.sh leave "类型" "天数" "原因" |
基础请假条 |
doc.sh multi-day "类型" "天数" "原因" |
多天请假(自动排除周末计算工作日) |
doc.sh emergency |
紧急请假模板(含微信消息模板) |
doc.sh annual-plan "年假天数" |
年假最优规划(拼假方案) |
doc.sh help |
显示帮助信息 |
Supported Leave Types
事假 | 病假 | 年假 | 婚假 | 产假 | 陪产假 | 丧假 | 调休
Examples
# 基础请假条
bash scripts/doc.sh leave "事假" "2" "家中有事需要处理"
# 多天请假(自动计算工作日,排除周末)
bash scripts/doc.sh multi-day "年假" "5" "出国旅行"
# 紧急请假
bash scripts/doc.sh emergency
# 年假规划
bash scripts/doc.sh annual-plan "10"
Requirements
- Python 3.6+
- No external dependencies
💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com
安全使用建议
This skill appears coherent and implemented locally: it generates leave templates and optionally stores simple logs under ~/.local/share/leave-doc (or a path you set via LEAVE_DOC_DIR). Recommended precautions before installing or running: (1) inspect the scripts yourself (they are short and readable); (2) if you don't want local logs, set LEAVE_DOC_DIR to a directory you control or remove/ignore scripts/script.sh; (3) run in a sandbox if you are unsure. There are no network calls or credential requests in the code, so the risk surface is limited to local file writes.
功能分析
Type: OpenClaw Skill
Name: leave-doc
Version: 2.0.0
The skill bundle is a legitimate leave application generator that provides templates for various leave types and calculates workdays. The core logic in `scripts/doc.sh` uses Python to format text templates based on user input, while `scripts/script.sh` provides basic local data logging and management without any network access or sensitive data exfiltration.
能力评估
Purpose & Capability
The name/description (leave application generation, multi-day calculation, annual-plan, emergency templates) match the provided files. scripts/doc.sh implements leave, multi-day, emergency and annual-plan features; scripts/script.sh is a small local utility for storing/listing data which is plausible for a helper tool.
Instruction Scope
SKILL.md instructs running scripts/doc.sh and the script only uses local date/time logic and prints templates. The scripts do not read system config files, reach out to external endpoints, or attempt to access credentials. They do create and write to a local data directory (default: $XDG_DATA_HOME or $HOME/.local/share/leave-doc).
Install Mechanism
There is no install specification (instruction-only skill plus local scripts). No downloads, package installs, or external installers are included.
Credentials
The skill declares no required environment variables or credentials. The scripts optionally honor LEAVE_DOC_DIR and XDG_DATA_HOME/HOME for where to store data, which is reasonable for a local utility and does not require secrets.
Persistence & Privilege
always is false and the skill does not request elevated privileges. scripts/script.sh will create a per-user data directory and log files under $LEAVE_DOC_DIR or the default ~/.local/share/leave-doc; this is expected behavior but users should be aware that the skill stores data locally.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install leave-doc - 安装完成后,直接呼叫该 Skill 的名称或使用
/leave-doc触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v2.3.4
yaml-fix+quality
v2.3.3
yaml-fix+quality
v2.3.2
Quality upgrade
v2.3.1
Quality upgrade: custom functionality
v2.3.0
Quality fixes: removed third-party references, aligned docs with implementation
v2.2.0
Enhanced descriptions for better AI triggering
v1.0.2
Runtime fix
v1.0.1
Add runtime declaration + security compliance
v1.1.1
Brand: [email protected]
v1.1.0
Pain-point upgrade: new commands solving real user problems, tips.md reference doc.
v1.0.0
Initial release with Chinese SEO keywords.
元数据
常见问题
Leave Doc 是什么?
请假条生成器。事假、病假、年假、婚假、产假模板、多天请假自动计算工作日、紧急请假、年假规划。Leave application generator for personal, sick, annual, marriage, maternity leave with workday calculation, eme... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 446 次。
如何安装 Leave Doc?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install leave-doc」即可一键安装,无需额外配置。
Leave Doc 是免费的吗?
是的,Leave Doc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Leave Doc 支持哪些平台?
Leave Doc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Leave Doc?
由 BytesAgain2(@ckchzh)开发并维护,当前版本 v2.0.0。
推荐 Skills