AGENT SKILL

points-reconciliation

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.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 16
Forks
25

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.

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:

  1. Base earn: 10 points per $1 of merchandise.
  2. Promo multiplier: promo events (e.g. Triple BLAST Weekend = 3x) multiply the base earn before the tier bonus is applied.
  3. Tier bonus on earned points: Plus +0%, Plus Extra +20%, MEGA +50%.
  4. Clawback: returned items remove points using the same formula (the promo multiplier and tier bonus that applied to the original purchase).
  5. Expiry: points older than 90 days while the account was inactive are removed (provided as a number).
  6. 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

microsoft
microsoft/copilot-studio-gallery

dock-assignment-pass-pdf

Render the completed truck loading-dock assignment as a driver-facing one-page PDF.

文档处理
★ 16
microsoft
microsoft/copilot-studio-gallery

loading-dock-selector

Reason over weather, one current dock snapshot, optional ETA, and verified Drive Priority Pass to select and explain one loading dock.

★ 16
microsoft
microsoft/copilot-studio-gallery

newsletter-style-email-composer

Use when the user asks to email a report, findings, or metrics to someone as a polished, newsletter-style message. Builds an Outlook-safe HTML email from figures that already exist (headline, KPI tiles, up to two bar charts drawn with HTML table cells so they render in classic Outlook, Gmail and dark mode, short findings, data notes and the non-audit disclaimer) using the shared brand tokens, attaches the PDF report, and creates a draft for the user to review. Do NOT use for a short plain-text status update, or for building the underlying analysis, charts, or report itself -- this skill only composes the email.

文档处理邮件与沟通
★ 16
microsoft
microsoft/copilot-studio-gallery

polished-report-builder

Use when the user asks to turn analysis results, metrics, or findings into a polished, presentation-ready report, one-pager, or executive summary -- especially when existing analysis (e.g. from the spreadsheet analysis skill) needs to become a document someone will actually read. Builds a branded PDF with reportlab from a short content file (headline, KPI tiles, one chart per point, data notes and the non-audit disclaimer) using the shared brand tokens, and runs a QA pass before delivery to catch walls of text, chart clutter, low-resolution charts, missing data notes or poor contrast. Do NOT use for a quick inline chat answer, a single ad-hoc chart with no report structure around it, a raw data export with no narrative, or to compute the figures themselves.

行政与办公人员文档处理
★ 16
microsoft
microsoft/copilot-studio-gallery

spreadsheet-data-analysis-reporting

Use for any request that needs figures from the sales spreadsheets (Excel/CSV), even a single file or a single period - e.g. 'analyse Q4', 'how did sales do last month', 'compare regions', YoY/MoM/QoQ/YTD growth, top products, share of revenue, trends, outliers, currency-converted totals, or building/updating a consolidated master file. Finds and loads the relevant files, cleans and normalises them, computes metrics with standard definitions and edge-case handling, flags outliers and data issues, explains every transformation, and produces on-brand charts. Use this before the report or email skills whenever numbers must be computed. Do NOT use for questions that need no data (e.g. 'what does YoY mean') or for re-formatting results already computed in this conversation.

数据分析师电子表格分析与可视化
★ 16
microsoft
microsoft/copilot-studio-gallery

generating-podcast-script

Use this skill whenever the user asks to write, generate, or create a podcast script or podcast episode — from a topic, or from source material such as a news digest, newsletter, email review, or set of articles — and optionally convert it to audio with Azure Text-to-Speech. Handles the initial request and every follow-up refinement (source, topic, length, cast, narration) in the same task.

邮件与沟通图像与多媒体
★ 16