salary-summary

A payroll summary auto-generation tool. It takes four input Excel files (attendance summary, social insurance details, tax calculation sheet, and last month's payroll summary) and automatically generates the current month's payroll summary.

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 "salary-summary" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5de310bab9a893d87d86c8505499ca583b7e17cfa1e8671ae38b86df196dfa19. Verify the upstream source and version against https://skillhub.cn/skills/user_3a6b6cc0/salary-summary 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

A payroll summary auto-generation tool. It takes four input Excel files (attendance summary, social insurance details, tax calculation sheet, and last month's payroll summary) and automatically generates the current month's payroll summary.

0 Downloads

Introduction source: third_party · user_3a6b6cc0 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: salary-summary
description:
  工资汇总表自动生成工具。从考勤汇总表、社保明细、税款计算表和上月工资汇总表4个输入Excel文件,自动生成当月工资汇总表。
  触发词:工资汇总、薪资汇总、算工资、生成工资表、工资明细表、薪酬计算、做工资
  适用场景:用户提供考勤/社保/税务Excel文件,需要生成结构化的工资汇总表。
agent_created: true

工资汇总表生成 Skill

概述

从4个输入Excel文件自动生成工资汇总表。核心逻辑已实现为Python脚本(scripts/main.py),Skill负责调度和执行。

触发条件

当用户请求生成/制作工资汇总表、薪资汇总时触发。特征:

  • 提到"工资汇总"、"薪资汇总"、"算工资"、"工资表"等关键词
  • 工作区存在考勤/社保/税款等Excel文件
  • 用户提供了文件路径并要求生成汇总

工作流程

1. 确认输入文件

检查用户工作区或提供的路径,确认4个输入文件都存在:

文件类型 文件名特征 格式
考勤汇总表 含"考勤汇总" .xlsx
社保明细 含"社保" .xlsx
税款计算表 含"税款计算"或"工资薪金" .xls/.xlsx
上月工资汇总表 含"工资汇总表" .xlsx

如果用户未明确指定,脚本会自动按文件名模式匹配。若某些文件缺失,询问用户补充。

2. 确认目标月份

询问用户目标月份(如"2026年5月")。若用户未指定,尝试从文件名中推断。

3. 运行脚本

重要:Windows 下必须设置 PYTHONIOENCODING=utf-8,否则控制台中文输出会乱码。

在目标工作目录运行:

cd "<用户的工作目录>" && PYTHONIOENCODING=utf-8 C:/Users/xie/.workbuddy/binaries/python/versions/3.13.12/python.exe "<skill_dir>/scripts/main.py" -m "2026年5月"

可选参数:

  • -a <path> 指定考勤表路径
  • -s <path> 指定社保表路径
  • -t <path> 指定税款表路径
  • -p <path> 指定上月工资表路径
  • -m "月份" 指定目标月份
  • -o <path> 指定输出路径
  • -d <dir> 指定工作目录

4. 呈现结果

脚本运行完成后:

  1. 使用 present_files 展示生成的 {月份}工资汇总表.xlsx
  2. 口头总结:员工数、部门数、数据缺失项(如有)
  3. 输出表底部自动包含提醒区块(签字行下方空2行后),内容为公式列说明和 error 标记说明
  4. 提醒用户:公式列(绩效工资/考勤扣款/小计/应发合计/社保小计/实发金额)需在Excel中打开才会计算

依赖

  • Python 3.13 (openpyxl + xlrd)
  • 首次使用前需安装:pip install openpyxl xlrd

映射与公式规则

详细的字段映射和公式定义见 references/mapping.md。可在需要时加载。

关键规则摘要:

  • 考勤→F(计薪天数)/G(病假)/H(事假)/I(未打卡)/K(出勤)
  • 社保→AB(养老)/AC(医疗)/AD(工伤)/AE(失业)
  • 税款→AH(个税代扣)
  • 上月汇总→L(工资标准)/M(职级)/N-S(工资结构)
  • 缺失数据标记为 "error"
  • 员工按部门分组,部门间有小计行

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决企业高频刚需场景,显著提升工资汇总效率
  • 直接处理多源 Excel 文件,自动化生成结构化工资汇总表
Trigger Precision95/100

Highlights

  • 触发词覆盖完整,边界清晰,适用场景描述明确
Structure and Standards95/100

Highlights

  • Phase/步骤清晰,有出口条件,含端到端示例,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常,依赖说明清晰
Evidence Verifiability (mean of the first four)94/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 72

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.

Translation pending; see source documentation.

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