AI Agent Hub
Back to skills
Ant Social Security Shanghai Housing Fund Calculator icon

Ant Social Security Shanghai Housing Fund Calculator

Life Service Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @mayishebao/mayishebaosh.

About this skill

Problem

When discussing Shanghai housing fund contributions, the practical need is often not policy lookup but a quick calculation of individual, employer, and total amounts from a contribution base and several rates. Manual math can miss a rate, while switching to a spreadsheet adds friction. This skill gives a short path from a base salary to a shareable detail image.

How It Works

The skill runs scripts/calculate_shanghai_housing_fund.py with a required contribution base and optional --rates and --output arguments. The calculation is straightforward:

  • Individual contribution = base salary × contribution rate
  • Employer contribution = base salary × contribution rate
  • Total contribution = individual contribution + employer contribution

The default rates are 5%, 6%, and 7%, with results rounded to two decimal places. The script requires Python 3.8+ and Pillow, and outputs a PNG information graphic with the title “Shanghai Housing Fund Contribution Estimate,” a table for rates, individual, employer, and total amounts, and the assets/logo.png brand mark in the bottom-right corner.

Scope

It covers only the basic Shanghai housing fund contribution portion, not supplementary housing fund contributions, and it does not automatically handle annual upper or lower limits. If users need to compare supplementary funds, custom rates, or boundary values, confirm the specific rules first and then pass the rates to the script. For branded output, use the default logo or specify another image with --logo.

Use Cases

  • During payroll discussion, the user provides a Shanghai housing fund base and asks for individual, employer, and total amounts at 5%, 6%, and 7%.
  • HR needs a shareable housing fund estimate image for onboarding notes, showing both employee and employer contributions across default rates.
  • Support staff answers an employee question by converting a base salary into a branded contribution table with three rate scenarios.
  • Content operations creates a housing fund explainer card from a given base and a 5%, 6%, and 7% comparison table.

Best For

  • HR handling Shanghai payroll questions needs to calculate individual, employer, and total housing fund amounts from a base salary across rates.
  • Customer support answering employee benefits queries needs to turn a base salary and default rates into a sendable detail image.
  • Content operations producing social security explainers needs a branded Shanghai housing fund estimate card with three rates.
  • Benefits consultants preparing compensation notes need a quick 5%, 6%, and 7% contribution result image.