flex-work-pay
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 "flex-work-pay" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-50ca49de26a4620d8c6607a123d1bb94cb4439a12be8154f57988fb11ca0956e. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/fty20265779 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
Flex-work pay calculator: Cover flexible employment scenarios such as part-time work, service contracts, subcontracting, and platform dispatches to estimate gross pay, deductions, taxes, and net amount. Intended for calculating flexible-work wages, part-time compensation, platform settlements, and reverse-calculating post-tax amounts. Not intended for determining labor relationships.
Introduction source: third_party · user_f1b049da · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: flex-work-pay
slug: fty20265779
displayName: 灵活用工算薪
version: 1.0.0
summary: 覆盖兼职、劳务、承揽、平台派单等灵活用工场景,试算应付、扣费、税费与到手。
license: MIT
description: 覆盖兼职、劳务、承揽、平台派单等灵活用工场景,试算应付、扣费、税费与到手。当用户要算灵活用工工资、兼职劳务报酬、平台派单结算、税后反算时使用。非劳动关系认定工具。灵活用工算薪
原创通用试算:适用于各类灵活用工就业场景(兼职、临时、实习补贴、劳务/承揽结算、平台接单、项目制外包个人侧等)。
先选结算身份与计薪方式,再算应付总额 → 平台/渠道扣费 → 税费(可选)→ 到手;支持「谈妥到手反推应付」。
本 Skill 不判断是否构成劳动关系/劳动关系误判风险;税费为本地粗算,以合同与扣缴义务人、税务机关为准。
适用场景(全覆盖入口)
| 场景标签 | 典型计薪 | 常见税费口径(试算可选) |
|---|---|---|
| 兼职/临时工(按小时日) | 时薪×小时 / 日薪×天 | 劳务报酬预扣 或 不计税(对方自行) |
| 项目承揽/一单了 | 一口价 / 里程碑 | 劳务报酬(按次) |
| 平台派单/众包 | 单量×单价 − 平台抽成 | 平台代扣或经营所得粗估 |
| 实习/补贴 | 月补贴或日津贴 | 常按劳务或补贴约定 |
| 多雇主碎片化 | 分段汇总后再税 | 分笔试算 + 月汇总 |
硬约束
- 必须先选
roleMode+payMode,禁止默认当成「标准工资薪金累计预扣」却不声明。 - 金额一律
round2;输出须含:毛应付、扣费、应税口径说明、估税、到手、公式摘要。 - 税后反算与正算分函数;反算说明可能因累进税率有多解,返回主解并提示校验。
- 平台抽成、渠道费、保证金等用显式字段,禁止 silently 吞掉。
- 文案免责:非工资条法律效力;社保公积金若双方另有约定用开关另计,默认 0。
- 与已有个税 Skill 分工:标准雇员走
iit-wage-withhold;年终奖走iit-bonus-alone;本 Skill 专注灵活用工结算包。
核心模型
export type RoleMode =
| 'labor_reward' // 劳务报酬(最常见个人灵工)
| 'wage_employee' // 已签劳动合同(转介工资预扣 Skill)
| 'business_est' // 个体/经营所得粗估(仅提示,不替代汇算)
| 'no_tax_local' // 合同约定由个人自行申报,本侧只算扣费到手
export type PayMode =
| 'hourly'
| 'daily'
| 'piece' // 计件
| 'fixed' // 一口价/项目
| 'mixed' // 多段明细求和
export type FlexPayInput = {
roleMode: RoleMode
payMode: PayMode
/** 计薪明细:按时/日/件或固定额 */
lines: Array<{
label?: string
unitPrice: number
qty: number // 小时、天、件数;fixed 时 qty=1
}>
platformFeeRate?: number // 平台抽成比例 0~1
platformFeeFixed?: number // 固定服务费
otherDeductions?: number // 其他扣款
/** 谈妥的是税前应付还是税后到手 */
quoteType: 'gross' | 'net'
netTarget?: number // quoteType=net 时
regionHint?: string
}
export type FlexPayResult = {
grossPay: number // 应付合计(扣平台前)
platformFee: number
otherDeductions: number
taxableBaseNote: string
estimatedTax: number
netPay: number // 到手
formula: string
warnings: string[]
}
劳务报酬预扣(常用默认税模块)
按次(或约定的计税单位)粗算,对齐常见预扣逻辑:
- 收入额
I:≤4000 → 减除 800;>4000 → 减除 20% - 预扣预缴应纳税所得额
T= 收入额 − 减除 - 税率:
T≤20000→ 20%;≤50000→ 30% 速算 2000;>50000→ 40% 速算 7000 - 预扣税额 =
T × 率 − 速算
const round2 = (n: number) => +n.toFixed(2)
export function laborRewardWithhold(income: number): { taxable: number; tax: number; rate: number; quick: number } {
if (!Number.isFinite(income) || income < 0) throw new Error('收入无效')
const deduct = income <= 4000 ? Math.min(800, income) : round2(income * 0.2)
const taxable = round2(Math.max(0, income - deduct))
let rate = 0.2, quick = 0
if (taxable > 50000) { rate = 0.4; quick = 7000 }
else if (taxable > 20000) { rate = 0.3; quick = 2000 }
const tax = round2(Math.max(0, taxable * rate - quick))
return { taxable, tax, rate: rate * 100, quick }
}
正算流程
grossPay = Σ(unitPrice × qty)platformFee = grossPay × rate + fixedbaseForTax = grossPay − platformFee − other(是否税前扣费按合同;默认先扣费再税,并在warnings写明)- 按
roleMode估税(labor_reward用上式;no_tax_local税=0;wage_employee提示改用工资预扣 Skill) netPay = baseForTax − estimatedTax(若税由企业承担另模式,见 templates)
税后反算(谈妥到手)
给定目标到手 netTarget、平台费率与身份:迭代或公式反推 grossPay(劳务累进时用分段或数值迭代),并回算一遍正算校验误差 ≤0.05 元。
Agent 执行步骤
- 问清:场景标签、计薪方式、单价与数量、平台扣费、谈税前还是税后、谁负责报税。
- 选用模型计算;输出结构化结果 + 三行「风险提示」(劳动关系、发票、汇算)。
- 多笔结算:先分笔再可选「本月合计」列表,勿把不同扣缴义务人强行合并计税。
附加
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 覆盖兼职、劳务、承揽、平台派单等高频灵活用工场景,满足用户计算应付、扣费、税费与到手金额的核心需求
- 支持税后反推功能,提升实际谈判与结算效率
Highlights
- 触发描述完整覆盖多种灵活用工变体,边界清晰,不易误触或漏触
Highlights
- Phase/步骤清晰,含正算、反算、Agent 执行流程,frontmatter 完整,文档结构规范
Highlights
- 税费计算逻辑对齐常见预扣口径,参数校验完备,反算结果有误差校验机制
- 提供明确风险提示(劳动关系、发票、汇算),增强用户风险意识
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.
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.
User discussion
No verified reviews yet.