prorated-refund-calculator
Skill0 starsChanged 4 months agoMITView on GitHub
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.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/copilot-studio-galleryword for word, first seen Oct 13, 2026
- microsoft/new-copilot-studio-tech-guideword for word, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 2
- microsoft/new-copilot-studio-tech-guide★ 21100% same
- microsoft/copilot-studio-gallery★ 14100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- distance-calculatorSkill
- membership-card-pngSkill
- distance-calculatorSkill
- bundle-settlement-calculatorSkill
- markdown-optimizerSkill
- membership-card-pdfSkill
- membership-card-pngSkill
- merch-report-htmlSkill
- points-reconciliationSkill
- sales-analysisSkill
- slip-pdf-generatorSkill
- membership-card-pngSkill
- prorated-refund-calculatorSkill
- points-reconciliationSkill
- slip-pdf-generatorSkill
- membership-card-pngSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this skill in a BlastPass cancellation or trade-up, once you have:
- Distinctive: line 24
Do not invent any of these numbers.
- Very specific: line 29
Cooling-off (full refund): If within_cooling_off is true, refund the full annual_price.
- Very specific: line 51
Add --nonrefundable-credit <n> for MEGA members, or --within-cooling-off when the membership is still within the cooling-off window.
- Distinctive: line 60
When the cancellation happens alongside a console upgrade — the defective unit is credited under warranty and the customer puts the value …
- Distinctive: line 69
Use after (a) the Store Policy Agent confirms the defective unit is credited at its purchase price with no restocking fee, (b) the …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
- The Store Policy Agent has confirmed the member's tier and that a prorated refund (or cooling-off full refund) applies.
- The Membership MCP (
get_membership) has returned the membership record, includingannual_price,months_remaining,cancellation_fee,nonrefundable_credit, andwithin_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)
- Cooling-off (full refund). If
within_cooling_offis true, refund the fullannual_price. No fee, no proration. - 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.
- Non-refundable credit. Subtract
nonrefundable_credit(only the MEGA tier has one). For other tiers it is 0. - 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 10Add --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.66Use 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 theslip-pdf-generatorskill to print the slip.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

