← 返回 Skills 市场
runkecheng

Attendance Check

作者 runkecheng · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
39
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install attendance-check
功能描述
查询基础业务开发部的考勤数据。当用户要求查看基础业务开发部(或旗下的支付清算组、支付前端组、支付应用组、APP组、商户运营组、增值业务组、业务管理组)的考勤情况、平均工时、缺卡记录时使用。提供三个报告:各组平均工时排行、月平均工时低于 9.5h 的员工列表、当月缺卡记录明细。
使用说明 (SKILL.md)

基础业务开发部考勤查询

通过飞书考勤 API 查询基础业务开发部各团队的考勤数据,生成三种报告:

  1. 各组平均工时排行
  2. 月平均工时低于 9.5h 的员工名单
  3. 当月缺卡记录明细(含日期和类型)

使用方法

查当月考勤

python3 scripts/query_attendance.py

查指定月份

python3 scripts/query_attendance.py 202606   # 查2026年6月
python3 scripts/query_attendance.py 202605   # 查2026年5月

报告说明

报告一:各组平均工时排行

  • 按平均工时从高到低排序
  • 平均工时 = 各组成员总实际工时 ÷ 总工作日数
  • 排除周末节假日和全天请假
  • 半天请假工时计入总工时,但不计为工作日
  • 列出团队名称、人数、平均工时、总工时、总工作日

报告二:月平均工时低于 9.5h 的员工

  • 平均工时 = 总实际工时 ÷ 工作日天数
  • 只计应出勤 > 0 的工作日(排除周末和节假日)
  • 请假处理:全天/半天请假天数都计入请假统计
    • 全天请假(1天):实际工时为0,完全排除
    • 半天请假(0.5天):实际出勤工时计入总工时,但该天不计入工作日数
  • 列出姓名、所属团队、平均工时、总工时、工作天数、请假天数

报告三:当月缺卡情况

  • 识别上班缺卡和下班缺卡
  • 排除查询当天(当天数据未完整,避免误报)
  • 列出姓名、团队、日期、缺卡类型
  • 末尾按人员汇总缺卡次数
  • 输出完整,不省略任何记录

注意事项

  • 脚本硬编码了基础业务开发部的员工工号列表,员工变动时需要更新 EMPLOYEE_IDS 数组
  • 当前覆盖的团队:支付清算组、支付前端组、支付应用组、APP组、商户运营组、增值业务组、业务管理组
  • 如需查询其他部门,需修改 VALID_DEPARTMENTSEMPLOYEE_IDS
  • API 限制:单次最多查 200 人,30 天时间窗口
  • 缺卡报告自动排除查询当天,避免因当天未下班导致的误报
安全使用建议
Install only if this is an internal, authorized HR or management tool. The publisher should remove and rotate the embedded Feishu secret, load credentials from a secure environment, document the API permissions, and restrict the skill to users allowed to view employee attendance data.
能力评估
Purpose & Capability
The stated purpose, Feishu attendance queries, employee ID list, and reports for low hours and missing clock records are coherent, but the capability handles sensitive personnel data and includes a hardcoded app secret.
Instruction Scope
Usage is user-invoked and scoped to a department/month, but the artifact has no role check, approval gate, or clear access-control boundary for who may run personnel attendance reports.
Install Mechanism
The install artifacts are simple markdown, metadata, and one Python script; however metadata says no API key is required while the script embeds Feishu credentials directly.
Credentials
Network calls to Feishu are expected for the attendance-reporting purpose, but embedding reusable credentials in a published skill is disproportionate and exposes account/API authority beyond normal local use.
Persistence & Privilege
No persistence, background worker, file mutation, deletion, local credential-store access, or privilege escalation was found; the script runs on demand and prints reports.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install attendance-check
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /attendance-check 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
新增各组平均工时排行报告(报告一),按平均工时从高到低排序展示各团队数据
v1.0.0
初始版本:基础业务开发部考勤查询,支持月平均工时统计和缺卡记录查询
元数据
Slug attendance-check
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Attendance Check 是什么?

查询基础业务开发部的考勤数据。当用户要求查看基础业务开发部(或旗下的支付清算组、支付前端组、支付应用组、APP组、商户运营组、增值业务组、业务管理组)的考勤情况、平均工时、缺卡记录时使用。提供三个报告:各组平均工时排行、月平均工时低于 9.5h 的员工列表、当月缺卡记录明细。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。

如何安装 Attendance Check?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install attendance-check」即可一键安装,无需额外配置。

Attendance Check 是免费的吗?

是的,Attendance Check 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Attendance Check 支持哪些平台?

Attendance Check 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Attendance Check?

由 runkecheng(@runkecheng)开发并维护,当前版本 v1.1.0。

💬 留言讨论