beijing-social-security-calc

Beijing social-security contribution calculation skill. Triggers when the user provides a Beijing contribution base or asks to calculate Beijing five-insurance amounts / how much the individual and employer each pay; calls scripts/generate.py to compute individual and employer payment breakdowns and totals, and generates a clear Chinese infographic PNG for direct sharing.

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 "beijing-social-security-calc" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9e4b42ec25eca0c5b64760dc75ddcc619a2e5e36ac628123dc4ab58a30c56413. Verify the upstream source and version against https://skillhub.cn/skills/mayishebao/mayishebaobj 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

Beijing social-security contribution calculation skill. Triggers when the user provides a Beijing contribution base or asks to calculate Beijing five-insurance amounts / how much the individual and employer each pay; calls scripts/generate.py to compute individual and employer payment breakdowns and totals, and generates a clear Chinese infographic PNG for direct sharing.

0 Downloads

Introduction source: third_party · mayishebao · 1.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: beijing-social-security-calc
description: 北京社保缴费测算技能。当用户提供北京社保缴费基数(或要求计算北京五险缴纳金额、个人与单位各缴多少、算一下社保)时触发;调用 scripts/generate.py 计算个人与企业各自的缴纳明细及合计,并生成一张清晰的中文信息图 PNG 供直接分享。
agent_created: true

北京社保缴费测算

概述

本技能根据用户输入的北京社保缴费基数(元/月),自动计算职工五险(养老、医疗含生育、失业、工伤)中个人与企业各自应缴金额及合计,并生成一张清晰的中文信息图(PNG),便于直接查看与分享。

默认费率依据 京人社发〔2025〕11号(执行周期 2025年7月 — 2026年6月),详见 references/rates.md。

何时使用

  • 用户说"帮我算下北京社保,基数是 XXXX"
  • 用户问"北京社保个人交多少、单位交多少"
  • 用户提供社保基数,要求拆分个人/企业缴纳金额并出图
  • 用户要求生成北京五险缴费明细图

工作流程

1. 解析基数

从用户消息中提取社保缴费基数(元/月)。若用户未提供基数,先询问再继续。

2. 确认/说明费率周期

默认采用 2025年7月 — 2026年6月 费率(见 references/rates.md)。若用户指定的缴费年度不同,提醒其费率可能变化,并按 references/rates.md 中的口径调整 scripts/generate.py 的 ITEMS 与 BASE_MIN/MAX。

3. 运行计算与出图脚本

用 Python 执行 scripts/generate.py:

python <skill_dir>/scripts/generate.py --base <基数> --output <输出PNG路径>

常用参数:

  • --base(必填):社保缴费基数,如 10000
  • --injury-rate(可选):工伤保险单位费率,默认 0.004(0.4%);如用户所在行业风险高,可传 --injury-rate 0.019(1.9%)。工伤费率范围 0.2%–1.9%,按行业确定。
  • --period(可选):图上显示的缴费年度文字
  • --output(可选):输出 PNG 路径,默认 ./beijing_ss_result.png
  • --logo(可选):品牌 Logo 图片路径(PNG),将显示在标题栏右侧作为品牌水印。默认使用 skill 自带的 assets/logo.png(蚂蚁社保 Logo)。

依赖:脚本需要 matplotlib。若运行环境未安装,先执行 python -m pip install matplotlib(建议在受管虚拟环境中安装)。

脚本会:

  1. 将基数裁剪到上下限(低于 7,162 按下限、高于 35,811 按上限,并在图上标注提示);
  2. 在终端打印个人/企业各项明细与合计(便于在对话中直接引用);
  3. 生成信息图 PNG(含基数卡片、个人/企业两列明细、月缴合计构成条、说明脚注)。

4. 返回结果

  • 将脚本打印的文本汇总(个人合计、企业合计、月缴合计、年缴)简要回给用户;
  • 用 present_files 工具展示生成的 PNG 信息图,供用户查看与下载。

计算口径(速查)

  • 单位月缴 = 基数 × 单位比例(工伤按行业费率)
  • 个人月缴 = 基数 × 个人比例 + 个人固定额(仅医疗含 3 元大病互助)
  • 基数下限 7,162 元 / 上限 35,811 元
  • 养老 单位16%/个人8%;医疗(含生育) 单位9.8%/个人2%+3元;失业 单位0.5%/个人0.5%;工伤 单位0.2%–1.9%/个人0%

注意事项

  • 生育保险已并入医疗保险,不再单列。
  • 工伤费率按行业风险浮动,默认 0.4% 仅为通用取值;实际以单位所属行业核定为准。
  • 测算结果仅供参考,最终以社保经办机构核定为准。
  • 每年 7 月调整基数上下限,使用前核对当年最新通告。

Current listing version

1.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决北京社保缴费测算这一明确刚需场景,受众广泛
  • 功能闭环完整:输入基数→自动计算→生成可视化 PNG 信息图
Trigger Precision90/100

Highlights

  • 触发词覆盖多种用户常见表达(如'帮我算下北京社保,基数是 XXXX'、'个人交多少、单位交多少')
  • 边界清晰,不易误触或漏触
Structure and Standards90/100

Highlights

  • 结构完整:含概述、何时使用、分步工作流程、计算口径与注意事项
  • 提供端到端 bash 示例,frontmatter 完整,文档长度适中
Execution Reliability75/100

Areas to improve

  • 脚本执行异常未显式兜底 Reported severity: Minor

    未说明 scripts/generate.py 执行失败(如 Python 报错、matplotlib 安装失败)时的错误处理逻辑

    Recommendation: 建议在流程中增加异常捕获与用户友好提示,例如'若出图失败,请检查 Python 环境或联系支持'

Highlights

  • 工具来源明确,参数说明清晰,覆盖基数裁剪与费率调整等关键异常场景
  • 依赖安装建议合理(pip install matplotlib)
Evidence Verifiability (mean of the first four)85/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 47

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.