sie-workload-analysis

Workload analysis tool: analyzes employee average daily work hours, overtime hours, non-workday overtime rate and number of overtime workers by project, and outputs overtime-load Top 10 and Bottom 10 employee rankings (including average clock-in/out times). Suitable for analyzing workload and overtime over a period, viewing project-level time and overtime statistics, or identifying employees with most/least overtime. Data source: Zhongsi Hulent attendance system API; account credentials are required to log in.

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 "sie-workload-analysis" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b7a703d27db9a423aeec67db36e55fbc47816d1b0a81494f67d5b0daa4d6f89e. Verify the upstream source and version against https://skillhub.cn/skills/user_7b1bf941/sie-workload-analysis 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

Workload analysis tool: analyzes employee average daily work hours, overtime hours, non-workday overtime rate and number of overtime workers by project, and outputs overtime-load Top 10 and Bottom 10 employee rankings (including average clock-in/out times). Suitable for analyzing workload and overtime over a period, viewing project-level time and overtime statistics, or identifying employees with most/least overtime. Data source: Zhongsi Hulent attendance system API; account credentials are required to log in.

0 Downloads

Introduction source: third_party · user_7b1bf941 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: workload-analysis
description: >
  工作负荷分析工具。按项目维度分析员工的工作日平均工作时长、加班时长,以及非工作日加班率与加班人数;
  输出加班负荷 Top 10 和 Bottom 10 员工排名(含平均上下班时间)。
  适用场景:(1) 用户要求分析某段时间的工作负荷、加班情况 (2) 用户需要按项目查看员工工时和加班统计
  (3) 用户需要找出加班最多或最少的员工 (4) 用户说"分析加班"、"工作负荷"、"加班排名"、"工时统计"等关键词。
  数据来源:中思互联考勤系统 API,需提供账号密码登录。

工作负荷分析 (Workload Analysis)

概述

分析指定时间段内员工的工时和加班数据,按项目维度和员工维度输出统计报告。

默认仅统计项目名含「数字能源」的产品,其他项目自动过滤。数字能源运维(特殊班次)不参与排序,固定放最后。

工作流程

1. 交互引导

调用本 skill 时,必须依次引导用户输入(未提供则逐项询问):

  1. 账号 — 中思互联 accountId
  2. 密码 — 登录密码
  3. 开始日期 — YYYY-MM-DD
  4. 结束日期 — YYYY-MM-DD
  5. 是否需要发送企业微信群 — 需提供 webhook URL
  6. 是否需要发送邮件 — 需提供 SMTP 配置 + 收件人

2. 执行分析

python3 scripts/workload_analysis.py \
  --account "<账号>" \
  --password "<密码>" \
  --start "YYYY-MM-DD" \
  --end "YYYY-MM-DD" \
  --output json
参数 说明
--output json JSON 格式(推荐)
--output text 可读文本
--send-email <addr> 发送邮件
--smtp-host / --smtp-port / --smtp-user / --smtp-password / --smtp-from SMTP 配置

3. 结果呈现

Agent 收到 JSON 后:

  1. 对话窗口:表格呈现三部分(项目 → Top 10 → Bottom 10)
  2. 企业微信群:通过 webhook POST Markdown 消息
  3. 邮件:脚本内置 HTML 表格 + 纯文本双版本;端口 465 走 SMTP_SSL,587 走 STARTTLS

4. 报告结构

部分 内容
按项目分析 人数、日均工时、日均加班、节假日加班人数、人均节假日加班、加班率
Top 10 排名、员工、项目、日均工时、均上班、均下班、工作日OT、节假日OT、总OT
Bottom 10 同上

计算规则

详见 references/calculation_rules.md。核心:

项目 规则
打卡窗口 每天 05:00 ~ 次日 05:00
上班/下班 窗口内最早/最晚打卡
休息排除 午休 12:00-13:30
工作日加班 18:00 起至下班
非工作日加班 首末次打卡差值
节假日判定 2026 年国务院安排硬编码 + API 后备
项目过滤 仅含「数字能源」的产品
排序 日均加班 + 节假日加班率降序,运维固定最后

数据 API

步骤 接口 说明
1 POST https://my.chinasie.com/certification/api/v1/certificate/login 获取 token
2 POST https://ihr.chinasie.com/punch/api/v1/punch/attendance/punchdetail/list 打卡明细(自动分页)
3 POST https://my.chinasie.com/datacenter/api/spot/findSpotManageInfo/0/200 员工→项目映射

Token 放在 Cookie: token=xxx 和 Authorization: Bearer xxx 中。

依赖

pip install requests

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 解决企业管理者对员工工时和加班情况的统计需求,具有明确实用价值
  • 按项目和员工维度输出详细分析报告,功能闭环完整
Trigger Precision92/100

Highlights

  • 触发词覆盖全面,包含"分析加班"、"工作负荷"、"加班排名"等关键词
  • 适用场景描述清晰,边界明确
Structure and Standards95/100

Highlights

  • 工作流程分阶段清晰,包含交互引导、执行分析、结果呈现
  • 提供完整的 bash 调用示例和参数说明
  • 计算规则和 API 接口文档详细
Execution Reliability88/100

Areas to improve

  • 网络异常处理 Reported severity: Minor

    未明确说明网络超时、API 限流等异常情况的重试机制

    Recommendation: 建议在脚本中增加网络异常重试逻辑,并在文档中说明

Highlights

  • 工具来源明确,参数说明完整
  • 覆盖主要异常场景,有节假日判定后备方案
  • 不可逆操作需用户明确配置,有确认机制
Evidence Verifiability (mean of the first four)88/100

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.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 94
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • ihr.chinasie.com
  • my.chinasie.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.