Compensation IIT Calculator: Payroll Accounting and Exception Comparison of Two-Period Payroll Tables in Agents

Preface

HR and payroll specialists need to switch between Excel, the individual income tax system, and various regional social security policy pages daily. Single-person trial calculations are fine, but during batch calculations and cross-month reconciliation, formula versions and base contribution limits that fall behind can easily lead to miscalculations or missed anomalies. Bringing “calculating social insurance and housing fund contributions and individual income tax,” “parsing salary sheets,” “marking differences between two periods,” and “policy queries” into a single Skill allows triggering them through natural language in conversations, landing on the corresponding scripts by scenario. The following introduces what the Salary Tax Calculator (@user_fcba917f/salary-tax-calculator) on SkillHub can do, how to install it, and typical usage from official documentation.

What Is This

The Salary Tax Calculator is an Agent Skill for HR payroll calculation and auditing, version 1.0.0, sourced from the community, categorized as professional, and published by user_fcba917f (the SkillHub page lists the maintainer as EFU周博远). The tag indicates requires_api_key=false, meaning no additional API Key is needed for use.

Official entry points:

  • API / Skill package: https://api.skillhub.cn/user_fcba917f/salary-tax-calculator
  • SkillHub showcase page: https://www.skillhub.cn/skills/user_fcba917f/salary-tax-calculator

The core problem it solves: input salary-related data or upload salary sheets in an Agent session, and it automatically completes gross-to-net salary calculations, batch calculations, two-period comparisons, and anomaly marking. It can also query social insurance and housing fund policies online or through a knowledge base, and generate visual HTML reports when necessary.

Core Features

The following capabilities come from the official Skill documentation, mapped by module to the Python scripts within the skill.

Salary Calculation

Input pre-tax salary, social insurance and housing fund bases, etc., and automatically calculate the five social insurances and one housing fund, individual income tax, and net salary. Single-person scenarios can directly use tax_calculator.py.

Anomaly Detection

Upload or provide salary sheets for two periods (e.g., last month and this month), and after parsing, automatically compare differences and mark abnormal fluctuations. The workflow is salary_parser.py for parsing, followed by anomaly_detector.py for comparison.

Online and Knowledge Base Queries

Supports online searching for the latest social insurance contribution bases, housing fund ratios, and other policies; can also answer policy-related questions through knowledge base retrieval (official examples include questions like “What are the 2026 Beijing social insurance base upper and lower limits?”).

Report Generation

Can generate HTML reports, including salary composition pie charts, individual income tax bracket charts, anomaly fluctuation dashboards, etc., produced by report_generator.py.

Installation and Activation

The Skill follows the standard SKILL.md format. When installing on SkillHub, the official recommendation is to let the AI follow the installation documentation, or directly reference the coordinate @user_fcba917f/salary-tax-calculator.

1. Install SkillHub CLI (if not already installed)

First check whether the CLI is available:

command -v skillhub && skillhub --version

If not installed, follow the SkillHub installation documentation for a complete installation (CLI + default Skill):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Full installation instructions: https://skillhub.cn/install/skillhub.md.

2. Install this Skill to the current Agent’s skills directory

When installing the skill, you must use --dir to point to the skills directory actually read by the current Agent; if it is installed to the default ./skills/ but the Agent is not configured with that path, the skill will not be recognized.

skillhub install @user_fcba917f/salary-tax-calculator --dir <your skills directory>

Common paths (per SkillHub documentation; choose one based on your current client):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also send the official prompt in the conversation: “Please install @user_fcba917f/salary-tax-calculator according to https://skillhub.cn/install/skillhub.md.”

After completing the above steps and enabling Skills in the corresponding client, you can trigger the following scenarios in the conversation using natural language.

Typical Usage

The usage below comes from the official “Applicable Scenarios” table and can be reproduced in the Agent with similar expressions.

Single-person net salary calculation

Trigger example: “Monthly salary of 25,000 in Beijing, social insurance base based on actual earnings, help me calculate the net salary.”
Processing: tax_calculator.py calculates directly.

Batch net salary calculation

Trigger example: “Help me calculate the net salary for everyone in this Excel file.”
Processing: salary_parser.py parses → tax_calculator.py calculates in batch.

Monthly difference comparison

Trigger example: “These are last month’s and this month’s salary sheets, check whose changes are larger.”
Processing: salary_parser.py parses → anomaly_detector.py compares.

Policy query

Trigger example: “What are the 2026 Beijing social insurance base upper and lower limits?”
Processing: online search or knowledge base retrieval (depending on the Skill’s actual online/retrieval capabilities).

Report output

Trigger example: “Generate a detailed report for this salary.”
Processing: report_generator.py generates HTML.

Applicable Scenarios and Notes

Scenario Who it’s for Description
Individual/batch salary calculation HR accounting, personal net income estimation Depends on the skill’s built-in algorithms and base rules; when policies change, cross-check with online queries
Two-period salary sheet audit Payroll specialists, financial auditors Anomaly marking requires manual review combined with business reasons; should not be used alone as a compliance conclusion
Social insurance and housing fund calculation HR, employee self-service estimation Local ratios are based on the latest local policies; query results should be verified against official documents
Visual reports Internal explanation of salary composition Output as HTML, convenient for viewing locally

Limitations and notes:

  1. Community-sourced Skill; the pace of policy and tax rate updates follows the versions published by the maintainer. Cross-verification is recommended before critical payroll runs.
  2. Batch and comparison features depend on the salary sheet format being correctly parsed by salary_parser.py; inconsistent headers or column names may require clarifying field meanings in the conversation.
  3. No API Key is needed, but online queries are still affected by the runtime environment and the Agent’s tool permissions; without network access, policy-related questions may only be answerable within the skill’s built-in knowledge base scope.

Conclusion

The Salary Tax Calculator connects salary trial calculations, salary sheet parsing, two-period anomaly detection, policy queries, and HTML reports into a conversational chain, making it suitable for moving repetitive calculations from spreadsheet formulas into Agent workflows. Installation coordinate: @user_fcba917f/salary-tax-calculator; documentation and scenario tables are available on SkillHub at https://www.skillhub.cn/skills/user_fcba917f/salary-tax-calculator, and the skill package address is https://api.skillhub.cn/user_fcba917f/salary-tax-calculator.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye