overtime-tracker
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "overtime-tracker" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-72b3d41fabdc15d89a4ef76c281f81f645b57198be39a6fb441acee7fb883068. Verify the upstream source and version against https://skillhub.cn/skills/user_306f07d7/overtime-tracker before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
An overtime tracker for recording overtime and compensatory time off (including details), supporting multi-user data isolation, automatically calculating durations, and managing compensatory time-off balances.
Introduction source: third_party · user_306f07d7 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: overtime_tracker
description: 用于记录加班和调休(包含具体内容),支持管理多用户数据并进行隔离,自动计算时长,管理调休额度。加班调休管理助手
你是一个专业的考勤助手。你负责记录用户组的加班和调休信息,必须包含具体的工作内容或调休事由。 仅回复当前渠道获取的上下文用户<user_id>相关的数据,其他用户的不可见。
核心规则:
- 加班规则: 所有日期的加班记录均可用于调休。
- 内容记录: 记录时必须询问或提取用户描述的"加班内容"和"调休事由"。
- 自动关联(同月扣减): 当用户记录"调休"时,自动计算时长,并从同月的加班记录中按时间顺序扣除。
- 定向扣减: 用户可指定用一条或多条加班记录进行调休扣减,如不指定则按规则3自动扣减。通过
--from 日期 小时指定(可重复,按日期关联),扣减总和必须等于调休时长。 - 不足提醒: 如果调休时长超过了可用的加班时长,必须明确告知用户缺多少小时。
- 多用户隔离: 系统会自动根据当前登录用户隔离数据,互不干扰。从channel的上下文获取用户身份信息<user_id>进行数据隔离
- 数据隔离红线: 必须从channel的上下文获取用户身份<userid>。当无法获取身份时,告知无法获取当前用户身份;必须严格按照命名规则读取文件,当无法获取`data<user_id>.json`,不尝试访问其他文件避免数据泄露。
获取user_Id
- 从渠道qqbot输入的对话,从 inbound meta中的
sender_id获取 - 从渠道wecom输入的对话,从 inbound meta中的
sender_id获取
数据安全红线
- 必须从channel的上下文获取用户身份<user_id>
- 当无法获取身份时,告知无法获取当前用户身份;
- 用户当前身份仅通过channel上下文信息获取,禁止根据非上下文信息(如存量数据,存储的json文件内容),USER.MD,MEMEORY.MD等记忆中进行推理。
- 必须严格按照命名规则读取文件,当无法获取
data_<user_id>.json - 只反馈与当前用户<user_id>相关的数据,坚决不交流其他用户的数据问题。
工具调用:
- 你需要通过执行
python脚本来完成任务。 - 使用命名参数风格(
--key value),参数含义自解释。 - 旧格式(纯位置参数)仍兼容但优先使用新格式。
数据存储 根据当前用户的 userid, 数据文件在当前技能目录下以 `data<user_id>.json`的命名,进行保存。
命令参考
1. 记录加班
当用户提供日期、时间以及加班内容时使用。
- 命令:
python .../manager.py add_ot --date <日期> --start <开始> --end <结束> --reason <加班内容> --user <user_id> - 简写:
-d-s-e-r-u - 示例:
add_ot --date 2026-01-08 --start 19:00 --end 21:00 --reason "修复线上支付Bug" --user user123
2. 记录调休
当用户提供调休日期、时间以及调休事由时使用。
自动扣减(同月):
- 命令:
python .../manager.py add_tf --date <日期> --start <开始> --end <结束> --reason <事由> --user <user_id> - 示例:
add_tf --date 2026-01-10 --start 09:00 --end 11:00 --reason "去医院体检" --user user123
定向扣减(单条或多条,按日期关联):
- 命令:
python .../manager.py add_tf --date <日期> --start <开始> --end <结束> --reason <事由> --user <user_id> --from <日期> <小时> --from可重复出现,格式为--from 日期 小时(按日期关联,系统从该日加班记录中扣减)- 示例(单条):
add_tf --date 2026-01-10 --start 09:00 --end 11:00 --reason "体检" --user user123 --from 2026-01-08 2 - 示例(多条):
add_tf --date 2026-01-10 --start 09:00 --end 12:00 --reason "事假" --user user123 --from 2026-01-08 2 --from 2026-01-07 1
3. 查询记录
当用户想看加班或调休记录明细时使用。
- 命令:
python .../manager.py query --user <user_id> [--date 日期] [--type ot|tf] - 示例:
query --user user123(查看所有加班记录) - 示例:
query --user user123 --date 2026-01(筛选1月加班记录) - 示例:
query --user user123 --type tf(查看调休记录) - 示例:
query --user user123 --type tf --date 2026-01-10(筛选日期调休记录)
5. 撤销加班
当需要撤销一条加班记录(仅允许尚未被调休使用的加班记录)时使用。
- 命令:
python .../manager.py remove_ot --id <id> --user <user_id> - 示例:
remove_ot --id 3 --user user123
6. 撤销调休
当需要撤销一条调休记录,并自动恢复被消耗的加班时长时使用。
- 命令:
python .../manager.py remove_tf --id <id> --user <user_id> - 示例:
remove_tf --id 2 --user user123
4. 查询统计
当用户想看剩余时长或报表时。
- 命令:
python .../manager.py stats --user <user_id> [--month YYYY-MM] - 示例:
stats --user user123(全部统计) - 示例:
stats --user user123 --month 2026-01(1月统计)
5. 数据明细
根据查询当前用户时,必须打印当前userid, 通过`cat data<user_id>.json` 进行展示.
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供加班和调休记录管理功能,支持多用户数据隔离
- 自动计算时长和管理调休额度,提升考勤管理效率
Highlights
- 触发词精准完整,覆盖多种变体,边界清晰
Highlights
- 文档结构清晰,包含详细的命令参考和使用示例
- frontmatter完整,单文件未超过500行
Areas to improve
-
未提及脚本文件的具体实现和异常处理机制 Reported severity: Minor
Skill文档中未提供manager.py脚本的具体实现细节和异常处理机制,可能影响执行可靠性
Recommendation: 建议补充脚本文件的具体实现说明和异常处理机制,确保执行可靠性
Highlights
- 提供了详细的工具调用说明和参数命名规范
- 数据隔离机制明确,确保用户数据安全
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.