aa-expense-splitter
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 "aa-expense-splitter" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f5fd95556a82995ba38d3f2d719606aceb672076c5e443004272b431a7fb7c23. Verify the upstream source and version against https://skillhub.cn/skills/user_cb37ec27/aa-expense-splitter 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
Expense Splitter: Triggered when the user says “AA split/how to split a meal/who owes whom/trip or shared-rent splitting/bill split.” Calculates each person's share for a meal, trip, or shared-rent period and provides a minimal-transfer settlement plan; supports equal split, designated-person splits, and weighted splits.
Introduction source: third_party · user_cb37ec27 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: aa-expense-splitter
slug: aa-expense-splitter
displayName: 聚餐 AA 分摊计算器
description: 当用户说"AA 分摊/聚餐怎么算/谁该给谁转钱/旅行合租分摊/账单平摊"时使用。把一顿饭、一次旅行或一段合租的公共开销算清每人该付多少,并用最少笔转账结清,支持均摊、指定人分摊与按权重分摊。
version: 1.0.0
category: 生活助手
platforms:
- WorkBuddy
- Claude Code
- Cursor
- QClaw
- ima
author: Dream
license: MIT
disable: true聚餐 AA 分摊计算器
聚餐抢着买单、旅行一堆公共开销、合租水电要平摊——最后谁该给谁转多少钱,全靠脑子算准出错。这个 skill 一键算清。
痛点
- 多人混着付,记账靠回忆,月底算不清谁欠谁。
- 有人吃的贵、有人只喝了口水,均摊不公平。
- 转账一笔笔对,容易多转或漏转。
目标用户
所有会跟朋友/同事/室友一起消费、需要算账的人——几乎人人都用得上。
核心能力
- 均摊:写
all即全员平分。 - 指定人分摊:只让部分人承担,如
甲,乙。 - 按权重分摊:吃贵的多付,如
丙:2,甲:1(丙 2 份、甲 1 份)。 - 最少笔数结账:贪心算法把"谁转谁"压到最少,告别连环转账。
- 净额守恒:总付 = 总欠,金额不会算飞。
执行方式
脚本 split.py(零依赖,仅标准库)存于技能目录:
SKILL=~/.workbuddy/skills/aa-expense-splitter
PY=python3 # 或受管理 Python:/Users/simon/.workbuddy/binaries/python/versions/3.13.12/bin/python3
# 1) 计算分摊与结账
$PY $SKILL/split.py 账单.csv
# 2) 显式列出参与人(当 shared_with 用到 "all" 时)
$PY $SKILL/split.py 账单.csv --people 甲,乙,丙
# 3) 机器可读输出
$PY $SKILL/split.py 账单.csv --json
# 4) 没有数据?生成示例自测
$PY $SKILL/split.py --demo --output demo.csv
$PY $SKILL/split.py --selftest
账单 CSV 格式(表头固定)
| 列 | 含义 |
|---|---|
payer |
付款人 |
amount |
金额(自动去 ¥/逗号) |
shared_with |
参与分摊的人;all=全员;甲,乙=指定;丙:2,甲:1=加权 |
示例
账单.csv:
payer,amount,shared_with
甲,480,all
乙,128,甲,乙
丙,300,丙:2,甲:1
甲,60,all
输出:
总开销:¥968.00
甲:净额 ¥196.00(多付)
丙:净额 ¥-80.00(少付)
乙:净额 ¥-116.00(少付)
结账方案:
乙 → 甲:¥116.00
丙 → 甲:¥80.00
边界与说明
- 纯本地运行,账单不上传任何服务器。
- 金额单位为元(¥),跨币种请先统一。
- 不含"谁请客免单"这类非 AA 场景;若某人全请,把对应行
shared_with只写他自己即可。
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决聚餐、旅行、合租等多场景分摊痛点,受众广泛
- 支持均摊、指定人分摊、权重分摊及最少笔数结账,功能实用
Highlights
- 触发词覆盖全面,边界清晰,有效区分 AA 分摊场景
Areas to improve
-
缺少 When to Use 和完整 Phase 划分 Reported severity: Minor
文档未明确划分使用阶段和步骤,缺少 When to Use 章节
Recommendation: 补充 When to Use 说明,并按 Phase 划分执行步骤,提升可读性
Highlights
- 文档结构基本完整,含痛点、能力、示例及边界说明
Areas to improve
-
异常处理未覆盖 Reported severity: Minor
未提及 CSV 格式错误、金额解析失败等常见异常的应对方式
Recommendation: 补充异常处理说明,如格式校验、错误提示机制
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.