AGENT SKILL

会员退款与换购结算计算

prorated-refund-calculator

计算顾客取消 BlastPass 会员时的精确按比例退款,以及将有缺陷设备换购更高价机型时的净结算金额。在门店政策智能体(Store Policy Agent)确认退款规则、Membership MCP 返回会员详情后使用。该技能运行内置的 Python 脚本以确保计算精确无误。

适用职业计费专员
License 许可
MIT
最近更新
2026-11-14
Stars
★ 0
Forks
1

01 前言 Front Matter

name
prorated-refund-calculator
description
Calculate the exact prorated refund when a customer cancels a BlastPass membership, and the net settlement when a defective unit is traded up to a pricier model. Use after the Store Policy Agent confirms the refund rule and the Membership MCP has returned the membership details. The skill runs a bundled Python script so the arithmetic is exact.

03 SKILL.md 正文

Prorated Refund Calculator (BlastPass)

This skill computes the exact refund owed when a customer cancels their BlastPass membership, and the net settlement when a defective unit is credited toward a pricier model. The math must be exact and consistent, so you run the bundled blastpass_refund.py script — never compute the refund in your head, and never write your own code.

When to use

Use this skill in a BlastPass cancellation or trade-up, once you have:

  1. The Store Policy Agent has confirmed the member's tier and that a prorated refund (or cooling-off full refund) applies.
  2. The Membership MCP (get_membership) has returned the membership record, including annual_price, months_remaining, cancellation_fee, nonrefundable_credit, and within_cooling_off.

Do not invent any of these numbers. They come from the Membership MCP and the Store Policy Agent.

The refund rules (single source of truth)

  1. Cooling-off (full refund). If within_cooling_off is true, refund the full annual_price. No fee, no proration.
  2. Prorated cancellation (the usual case). Otherwise refund the value of the whole unused months left on the 12-month term, then subtract the tier cancellation fee.
  3. Non-refundable credit. Subtract nonrefundable_credit (only the MEGA tier has one). For other tiers it is 0.
  4. The refund is never negative.

Workflow

1. Compute the membership refund

Take annual_price, months_remaining, cancellation_fee, nonrefundable_credit, and within_cooling_off from the get_membership result, and run:

python3 blastpass_refund.py refund \
  --annual-price 129.99 --months-remaining 8 --cancellation-fee 10

Add --nonrefundable-credit <n> for MEGA members, or --within-cooling-off when the membership is still within the cooling-off window. The script prints the breakdown and a REFUND DUE: $... line.

Worked example: BlastPass Plus Extra, annual_price 129.99, months_remaining 8, cancellation_fee 10 -> monthly $10.8325, prorated $86.66, minus $10 = $76.66.

2. (Trade-up only) Compute the upgrade settlement

When the cancellation happens alongside a console upgrade — the defective unit is credited under warranty and the customer puts the value toward a pricier model, applying the membership refund as store credit — run:

python3 blastpass_refund.py settle \
  --defective-credit 399.99 --upgrade-price 499.99 --membership-credit 76.66

Use after (a) the Store Policy Agent confirms the defective unit is credited at its purchase price with no restocking fee, (b) the Warehouse MCP returns the upgrade model's price, and (c) the prorated refund above is known. The script prints the breakdown and a NET DUE FROM CUSTOMER: $... (or REFUND TO CUSTOMER: $...) line.

Worked example: defective base console credited $399.99, MEGA edition $499.99, membership refund $76.66 applied as credit -> upgrade difference $100.00, net $23.34 due from the customer.

3. Report the result

  • State the refund due and (if a trade-up) the net due / refund clearly.
  • Show the breakdown lines so the associate can verify how it was derived.
  • Offer to cancel the membership via the Membership MCP (cancel_membership) and to hand the final numbers to the slip-pdf-generator skill to print the slip.

04 同仓库更多 Skills

microsoft
microsoft/new-copilot-studio-tech-guide-kr

退货换货单据 PDF 生成

slip-pdf-generator

生成一份可打印的 BlastBox 退货 / RMA / 换货单据(PDF 格式),供店员交给顾客。在退货、保修换货、会员取消或升级流程结束且所有金额最终确认后使用。该技能运行内置的 Python 脚本,将确认后的单据数据渲染为真实的 PDF 文件。

零售门店店员文档处理
★ 0
microsoft
microsoft/new-copilot-studio-tech-guide-kr

会员积分对账与兑换

points-reconciliation

在复杂的消费流程(购买、退货、促销倍数、过期)之后,核对客户的 BlastPoints 会员积分余额,并将净余额转换为门店购物金(store credit)。当店员询问会员积分时,或在退货后需要追回此前已发放的积分时使用。该技能运行内置的 Python 脚本,应用基础积分获取率、促销倍数、等级奖励、积分追回和过期规则,然后输出积分台账和可兑换的门店购物金金额。

零售门店店员会员忠诚度管理
★ 0
microsoft
microsoft/new-copilot-studio-tech-guide-kr

会员卡 PNG 图片生成

membership-card-png

通过运行内置的 card_png.py 脚本,生成 BlastPass 电子会员卡的 PNG 图片。适用于会员自助补办丢失 / 被盗 / 损坏的卡,或任何需要在屏幕上展示卡(而非打印)的场景。该技能接收 Membership MCP(get_membership)返回的会员详情,以及 reissue_card 返回的新卡序列号 new_card_serial,将它们作为命令行参数传给内置的 Python(matplotlib)脚本,渲染出 CR80 尺寸的会员卡并生成真实 PNG。它仅根据已获取的值渲染卡面——绝不自行查询或虚构数据。

客户支持专员会员忠诚度管理
★ 0
microsoft
microsoft/new-copilot-studio-tech-guide-kr

会员卡 PNG 图片生成

membership-card-png

通过运行内置的 card_png.py 脚本,生成 BlastPass 电子会员卡的 PNG 图片。适用于会员自助补办丢失 / 被盗 / 损坏的卡,或任何需要在屏幕上展示卡(而非打印)的场景。该技能接收 Membership MCP(get_membership)返回的会员详情,以及 reissue_card 返回的新卡序列号 new_card_serial,将它们作为命令行参数传给内置的 Python(matplotlib)脚本,渲染出 CR80 尺寸的会员卡并生成真实 PNG。它仅根据已获取的值渲染卡面——绝不自行查询或虚构数据。

客户支持专员会员忠诚度管理
★ 0
microsoft
microsoft/new-copilot-studio-tech-guide-kr

退货换货单据 PDF 生成

slip-pdf-generator

生成可供打印的 BlastBox 退货 / RMA / 换货单据 PDF,供店员交给顾客。在退货、保修换货、会员取消或升级流程结束、所有金额最终确认后使用。该技能运行内置的 Python 脚本,将确认后的单据数据渲染为真实的 PDF 文件。

零售门店店员零售门店运营与促销执行
★ 0
microsoft
microsoft/new-copilot-studio-tech-guide-kr

销售数据分析与滞销品识别

sales-analysis

通过运行捆绑的 sales_analysis.py 脚本,将来自 Sales & Performance MCP 的原始每周销售数据和商品目录事实转化为商品分析。在季度末降价复盘中作为第一步使用,适用于经理想了解某段时期内的畅销商品和滞销/呆滞库存的情况。该 MCP 仅返回原始数据,因此脚本会计算销售速度、库存覆盖周数和利润率,然后以结构化 JSON 形式打印畅销商品和滞销商品。它不渲染任何图表(所有可视化由 merch-report-html 技能负责),也不决定折扣(将滞销商品交给 markdown-optimizer 处理)。

数据分析师数据分析与报告
★ 0