Files
process-leave-attendance-de…/development/REQUIREMENTS.md
chenfuqiang ee2a4d9e22
All checks were successful
技能自动化发布 / release (push) Successful in 15s
feat: 初始化高校人事请假考勤技能 (process-leave-attendance-default)
基于 skill-template 脚手架开发,包含:
- 5 张业务表(教职工、请假政策、考勤日历、请假记录、假期余额)
- 请假核算引擎(扣薪计算、审批层级判定、年假抵扣)
- CLI 入口(import-employees / calculate-leave / render-html)
- HTML 审批与扣薪报告生成
- 示例数据与完整测试套件(295 tests passed)
2026-09-07 16:59:24 +08:00

37 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# REQUIREMENTS — 高校人事请假考勤
## 0. 技能标识
- slug:`process-leave-attendance-default`
- 中文 name:高校人事请假考勤
- description:针对高校教职工请假申请,按学校政策自动核算扣薪、判定审批层级并输出审批单与扣薪报告
- developer_ids:`[12500]`
- category:人事;emoji:📋
- 网页 RPA:`not_needed`
- V1:请假核算 + 审批判定 + 假期余额 + HTML 报告(**不**接入 llm-manager)
## 0.1 宿主入口定位
| 主能力 | 对话 | 数据管理 | 定时 | 教程章节 |
|--------|------|----------|------|----------|
| import-employees | 挂 | toolbar(教职工) | 不挂 | 入口一 |
| calculate-leave | 挂 | toolbar(教职工) | 不挂 | 入口一 |
| render-html | 挂 | toolbar(请假记录) | 不挂 | 入口一 |
定时:整技能不挂;理由:按需核算,无需周期触发。
## 关键决策摘要
- 扣薪按假别分层:带薪天数内 0 扣薪;部分比例扣薪;超出后无薪
- 工作日计算排除周末与考勤日历中的节假日
- 事假可用年假抵扣(政策配置 can_offset_annual)
- 审批层级按天数与阈值判定(≤3 系主任;≤10 +人事处;>10 +校领导)
- 产假/育假需校领导审批
- HTML 报告必做
## 验收
- 导入 → 核算 → 报告闭环可用
- 未知假别或缺证件时明确报错
- 请假记录写入后自动更新假期余额