salary-retroactive

HR compensation tool: for delayed salary adjustment approvals, automatically calculates owed retroactive amounts, supports pro rata for hire dates and cross-month back payments, and provides personal-income-tax bracket jump warnings.

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

HR compensation tool: for delayed salary adjustment approvals, automatically calculates owed retroactive amounts, supports pro rata for hire dates and cross-month back payments, and provides personal-income-tax bracket jump warnings.

0 Downloads

Introduction source: third_party · user_9dc76a02 · 2.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 薪资回溯补发计算
description: HR薪酬专用:调薪审批延迟了?自动计算应补差额,支持入职折算、跨月补发、个税跳档预警
version: 2.1.0
author: 陆磊
trigger:
  - "薪资回溯"
  - "补发计算"
  - "调薪补发"
  - "薪资差额计算"
  - "回溯调薪"
  - "工资补发"
pricing: 付费(按次计费:9.9元/次 / 包月套餐:99元/月)
permission:
  - "无特殊权限要求"
dependency:
  - "无外部依赖,AI自主计算"

薪资回溯补发计算 Skill

功能概述

当员工调薪的生效日期早于审批日期时,需要补发差额工资。本 Skill 自动计算:

  • 需要补发的月份
  • 每月差额
  • 入职/离职折算
  • 转正调薪分段计算
  • 税率跳档检查
  • 社保基数变化

追溯模式

本Skill支持两种国际通用的追溯模式:

Forwarding 转发式(中国标准)

特点:不动历史,差额计入当期薪资 适用地区:中国大陆、多数亚洲国家 流程:补发月份 → 加总差额 → 在审批当月/下月工资中发放 参考:房法明《跟着AI学习两种算薪追溯方法》指出,Forwarding是中国HR软件的普遍做法

Corrective 纠正式(西班牙/法国)

特点:改历史记录,包括财务凭证、个税申报、社保缴纳 适用地区:西班牙、法国等法规严格国家 流程:重算已发月份 → 冲销GL凭证 → 修正政府记录 后果:越晚改越贵,需要财务 + 法务配合 注意:中国HR常态下仅需Forwarding,Corrective仅供学术参考

如何选择

场景 推荐模式
国内企业调薪延迟 Forwarding
社保基数追溯调整 Forwarding
需要重开已关账期间 Forwarding(国内直接改分录)
西班牙/法国法规要求 Corrective
学术研究/系统设计参考 Corrective

典型场景

  1. 常规调薪:4月审批3月生效的调薪
  2. 入职调薪:员工入职即调薪,但审批延迟
  3. 跨月调薪:1月生效,3月才审批(跨2个月)
  4. 转正调薪:转正后调整薪资基数
  5. 离职补发:员工离职后发现之前调薪未执行
  6. 多次调薪叠加:员工在审批延迟期间经历多次调薪(如1月涨一次、3月又涨一次),合并计算总差额

使用方式

用户提供以下信息,Skill 自动计算并输出补发结果:

输入格式

请帮我计算薪资回溯补发:
- 员工姓名:王五
- 员工ID:EMP005
- 调薪生效日期:2024-03-01
- 调薪审批日期:2024-04-20
- 调薪前月薪:10000
- 调薪后月薪:15000
- 发薪周期类型:月底发当月

追问确认

计算前向用户确认以下信息:

  1. 发薪周期类型:每月几号发薪?发当月还是发上月?
  2. 生效月是否已按调薪后薪资发放?
  3. 审批月是否已按调薪后薪资发放?
  4. 是否有请假/病假?(影响折算)
  5. 是否涉及税率跳档?
  6. 是否跨社保调整月(7月)?

计算逻辑

第一步:判断补发月份

根据生效日期和发薪周期判断需要补发的月份:

发薪周期类型:

  • 类型A(1日-月底):每月1日到月底最后一天,月底发当月
  • 类型B(15日-次月14日):每月15日到次月14日,15日发当月
  • 类型C(上月26日-次月25日):上月26日到本月25日,26日发上月

判断逻辑:

  1. 确定生效日期落在哪个发薪周期 → 生效周期
  2. 确定审批日期落在哪个发薪周期 → 审批周期
  3. 如果生效周期序号 ≤ 审批周期序号,则需要补发
  4. 补发月数 = 生效月到审批前一个月的所有月份

示例:

  • 生效:2024-03-01,审批:2024-04-20,类型A(月底发)
  • 生效在3月周期,审批在4月周期
  • 补发月份:3月
  • 补发月数:1个月

第二步:计算每月差额

月度差额 = 调薪后月薪 - 调薪前月薪

示例:调薪前10000,调薪后15000 → 差额 = 5000元/月

第三步:计算基础补发总额

税前补发总额 = 每月差额 × 补发月数

示例:5000 × 2个月 = 10000元

第四步:特殊情况处理

入职折算

实际差额 = 基础差额 × 实际出勤天数 / 应出勤天数

示例:2月入职,在职10天,应出勤20天 → 2月差额 = 5000 × 10/20 = 2500元

离职折算

离职月差额 = 基础差额 × 在职天数 / 应出勤天数

示例:4月15日离职,应出勤22天,在职15天 → 4月差额 = 5000 × 15/22 ≈ 3409元

转正调薪分段

试用期差额 = (转正后月薪 - 试用期月薪) × 试用期天数 / 月天数
转正后差额 = 转正后月薪 × 转正后天数 / 月天数

示例:3月15日转正,试用期8000,转正10000 → 3月1-14日:差额 = 2000 × 14/31 ≈ 903元 → 3月15-31日:差额 = 10000 × 17/31 ≈ 5484元

第五步:个税与社保检查

税率跳档检查

判断补发后是否跳档:

月应税所得 税率 速算扣除
≤3000 3% 0
3001-12000 10% 210
12001-25000 20% 1410
25001-35000 25% 2660
35001-55000 30% 4410
55001-80000 35% 7160
>80000 45% 15160

如果(税前月薪 + 补发额)跨档,提示用户可能跳档。

社保基数变化

如果补发跨社保年度(每年7月):

  • 1-6月用旧基数,7月起用新基数
  • 需分别计算

输出格式

简单场景输出

【薪资回溯补发计算结果】
━━━━━━━━━━━━━━━━━━━━━━
员工:张三(EMP001)
调薪前月薪:10,000元
调薪后月薪:15,000元
差额:5,000元/月
生效日期:2024-03-01
审批日期:2024-04-20
发薪周期:月底发当月

补发月份:2024年3月(1个月)
税前补发总额:5,000元

确认事项:
- 3月工资是否已按调薪后15,000元发放?

明细:
| 月份 | 差额 | 说明 |
|------|------|------|
| 2024-03 | 5,000 | 生效日期3月在发薪周期内 |
━━━━━━━━━━━━━━━━━━━━━━

复杂场景输出

【薪资回溯补发计算结果】
━━━━━━━━━━━━━━━━━━━━━━
员工:李四(EMP004)
入职日期:2024-02-15
转正日期:2024-03-01
生效月:2024-02
审批月:2024-04
调薪前:8,000元
调薪后:12,000元
差额:4,000元/月
补发月数:3个月

入职折算:
- 2月出勤10天/应出勤20天 → 折算50%
- 2月实发差额:2,000元

明细:
| 月份 | 差额 | 说明 | 小计 |
|------|------|------|------|
| 2024-02 | 2,000 | 50%在职折算 | 2,000 |
| 2024-03 | 4,000 | 转正后全月 | 4,000 |
| 2024-04 | 4,000 | 审批补发 | 4,000 |

税前补发总额:10,000元

注意事项:
- 2月需按入职折算,应发10天工资
- 3月为转正后首个完整月
- 跨3个月需单独计税
━━━━━━━━━━━━━━━━━━━━━━

注意事项

  1. 月度边界:确认生效日期是月首还是月中
  2. 出勤折算:入职/离职当月按实际天数计算
  3. 试用期:试用期薪资与转正后不同
  4. 病假产假:期间不参与调薪
  5. 个税:补发工资并入当月计税,建议超过8000元时单独计税
  6. 社保:跨年度需检查基数调整

版本记录

  • v2.1.0(2026-07-22):多次调薪叠加 + 追溯模式选择
    • 新增calculate_multi()支持多次调薪叠加计算(stacked adjustments)
    • 新增Forwarding/Corrective两种追溯模式
      • Forwarding转发式:当期补差,不改历史(中国标准)
      • Corrective纠正式:改历史记录,含审批当月(西班牙/法国)
    • 交互式CLI现支持多笔调薪输入
    • 输出增加追溯模式标识
    • 参考文章:《跟着AI学习两种算薪追溯方法》(房法明)
  • v2.0.0(2026-07-22):完整重新实现
    • 三种发薪周期(月底/15日/26日)完整支持
    • 跨月补发逻辑修正
    • 入职折算、离职折算按实际天数计算
    • 转正调薪分段计算(试用期→转正比例分段)
    • 个税跳档预警
    • 社保基数变化检测(跨7月)
    • 交互式CLI模式
    • 格式化表格输出
  • v1.0.0(2026-07-16):基础功能,支持常规补发、入职折算、离职折算、转正调薪

Current listing version

2.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 针对 HR 薪酬回溯补发这一明确且高频的刚需场景,提供完整闭环解决方案
  • 支持多种发薪周期、入职/离职折算、转正分段、个税跳档预警、社保基数变化检测等复杂场景
  • 显著提升 HR 工作效率,具备高实用价值
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含多种用户表达变体,边界清晰
  • 能有效触发且不易与其他 Skill 重叠
Structure and Standards95/100

Highlights

  • 文档结构清晰完整,包含功能概述、使用方式、计算逻辑、输出格式等必要章节
  • 有详细的输入格式示例和追问确认项,便于用户理解和使用
  • frontmatter 完整,版本记录清晰
Execution Reliability95/100

Highlights

  • 计算逻辑完整,覆盖主要异常场景和边界条件
  • 有明确的输入格式和追问确认机制,确保计算准确性
  • 输出格式规范,包含明细和注意事项,便于 HR 执行
Evidence Verifiability (mean of the first four)95/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.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

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.