BlastPoints积分对账与兑换
points-reconciliation
在客户经历复杂消费(购买、退货、促销倍数、积分过期)后,对其 BlastPoints 会员积分余额进行对账,并将净余额转换为门店信用额。当店员询问某会员的积分时使用,或在退货后需要追回先前已赚取积分时使用。该技能运行捆绑的 Python 脚本,应用基础赚取率、促销倍数、等级奖励、积分追回和过期规则,然后打印积分账簿和可兑换的门店信用额价值。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- points-reconciliation
- description
- Reconcile a customer's BlastPoints loyalty balance after a complex visit (purchases, returns, promo multipliers, expiry) and convert the net balance to store credit. Use when an associate asks about a member's points, or after a return that should claw back previously earned points. The skill runs a bundled Python script that applies the base earn rate, promo multipliers, tier bonus, clawbacks, and expiry, then prints a points ledger and the redeemable store-credit value.
02 资源文件 1
- 脚本points_reconciliation.py3.2 KB
03 SKILL.md 正文
BlastPoints Loyalty Reconciliation (BlastBox Omega)
This skill reconciles a member's BlastPoints after a visit that involves any
mix of earning, returns (clawback), promo events, and expiry, and converts the
net balance to store credit. The points math must be exact, so you run the
bundled points_reconciliation.py script — never estimate points by hand, and
never write your own code.
When to use
Use this skill when an associate asks things like:
- "How many BlastPoints does this member have after today?"
- "They returned a console — claw back the points they earned on it."
- "What's that worth in store credit?"
Confirm the member's tier with the Membership MCP / Store Policy Agent first,
and confirm any promo multiplier in effect with the Store Policy Agent
(Policy RAG MCP, search_policy "BlastPoints promo").
The points rules (single source of truth)
These mirror the BlastPoints Loyalty Program Terms held by the Store Policy Agent:
- Base earn: 10 points per $1 of merchandise.
- Promo multiplier: promo events (e.g. Triple BLAST Weekend = 3x) multiply the base earn before the tier bonus is applied.
- Tier bonus on earned points: Plus +0%, Plus Extra +20%, MEGA +50%.
- Clawback: returned items remove points using the same formula (the promo multiplier and tier bonus that applied to the original purchase).
- Expiry: points older than 90 days while the account was inactive are removed (provided as a number).
- Redemption: 1,000 points = $5.00 store credit, in whole 1,000-point blocks. The net balance never goes below 0.
Workflow
1. Gather the inputs
Get the tier (plus / extra / mega), the prior balance, the list of
purchases (each amount plus its promo_multiplier), the list of returns
to claw back (same shape), and any expired points.
2. Run the bundled script
Pass the inputs to points_reconciliation.py. Purchases and returns are JSON
lists of {"amount": <dollars>, "promo_multiplier": <x>}:
python3 points_reconciliation.py \
--tier extra \
--prior-balance 4200 \
--purchases '[{"amount": 499.99, "promo_multiplier": 3.0}]' \
--expired-points 800
Add --returns '[{"amount": 79.99, "promo_multiplier": 3.0}]' when items are
being returned and their points clawed back. The script prints a JSON object with
the ledger, net_balance, redeemable_blocks, and store_credit_value.
3. Report the result
- State the net BlastPoints balance and the store-credit value.
- Show the ledger lines (earn / clawback / expired) so the associate can verify.
- Offer to apply the redeemable store credit to the current transaction.
Worked example
Plus Extra member, prior balance 4,200, a Triple BLAST Weekend console purchase of $499.99 (3x), and 800 expired points:
- Earn: $499.99 x 3 x 1.2 (Plus Extra +20%) = 18,000
- Expired: -800
- Net = 4,200 + 18,000 - 800 = 21,400 BlastPoints
- Redeemable: 21 x 1,000 = $105.00 store credit
04 同仓库更多 Skills
退货换货单据 PDF 生成
slip-pdf-generator
生成一份可打印的 BlastBox 退货 / RMA / 换货单据(PDF 格式),供店员交给顾客。在退货、保修换货、会员取消或升级流程结束且所有金额最终确认后使用。该技能运行内置的 Python 脚本,将确认后的单据数据渲染为真实的 PDF 文件。
会员积分对账与兑换
points-reconciliation
在复杂的消费流程(购买、退货、促销倍数、过期)之后,核对客户的 BlastPoints 会员积分余额,并将净余额转换为门店购物金(store credit)。当店员询问会员积分时,或在退货后需要追回此前已发放的积分时使用。该技能运行内置的 Python 脚本,应用基础积分获取率、促销倍数、等级奖励、积分追回和过期规则,然后输出积分台账和可兑换的门店购物金金额。
会员退款与换购结算计算
prorated-refund-calculator
计算顾客取消 BlastPass 会员时的精确按比例退款,以及将有缺陷设备换购更高价机型时的净结算金额。在门店政策智能体(Store Policy Agent)确认退款规则、Membership MCP 返回会员详情后使用。该技能运行内置的 Python 脚本以确保计算精确无误。
会员卡 PNG 图片生成
membership-card-png
通过运行内置的 card_png.py 脚本,生成 BlastPass 电子会员卡的 PNG 图片。适用于会员自助补办丢失 / 被盗 / 损坏的卡,或任何需要在屏幕上展示卡(而非打印)的场景。该技能接收 Membership MCP(get_membership)返回的会员详情,以及 reissue_card 返回的新卡序列号 new_card_serial,将它们作为命令行参数传给内置的 Python(matplotlib)脚本,渲染出 CR80 尺寸的会员卡并生成真实 PNG。它仅根据已获取的值渲染卡面——绝不自行查询或虚构数据。
会员卡 PNG 图片生成
membership-card-png
通过运行内置的 card_png.py 脚本,生成 BlastPass 电子会员卡的 PNG 图片。适用于会员自助补办丢失 / 被盗 / 损坏的卡,或任何需要在屏幕上展示卡(而非打印)的场景。该技能接收 Membership MCP(get_membership)返回的会员详情,以及 reissue_card 返回的新卡序列号 new_card_serial,将它们作为命令行参数传给内置的 Python(matplotlib)脚本,渲染出 CR80 尺寸的会员卡并生成真实 PNG。它仅根据已获取的值渲染卡面——绝不自行查询或虚构数据。
退货换货单据 PDF 生成
slip-pdf-generator
生成可供打印的 BlastBox 退货 / RMA / 换货单据 PDF,供店员交给顾客。在退货、保修换货、会员取消或升级流程结束、所有金额最终确认后使用。该技能运行内置的 Python 脚本,将确认后的单据数据渲染为真实的 PDF 文件。