[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B53QF2BPZ8G0B6BS7BZ28":3,"skill-same:01M69B53QF2BPZ8G0B6BS7BZ28":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M69B53QF2BPZ8G0B6BS7BZ28","markdown-optimizer","滞销商品降价优化","Recommend a discount percentage and new price for each slow-moving product by running the bundled markdown_optimizer.py script, respecting pricing guardrails that come from the Store Policy Agent (never hardcode them). Use after sales-analysis-chart has identified the slow movers and after fetching the markdown guardrails via the Store Policy Agent's get_markdown_policy. The script applies the max-discount cap and margin floor, computes each new price and margin, flags items that cannot be meaningfully promoted within the floor for clearance instead, and renders a recommended-discount chart.","通过运行内置的 markdown_optimizer.py 脚本，为每件滞销商品推荐折扣百分比和新价格，同时遵循来自门店政策智能体的定价护栏规则（绝不硬编码这些规则）。应在 sales-analysis-chart 识别出滞销商品之后，并通过门店政策智能体的 get_markdown_policy 获取降价护栏规则之后使用。该脚本应用最大折扣上限和利润底线，计算每件商品的新价格和利润，标记那些在利润底线内无法有效促销而应转为清仓处理的商品，并绘制推荐折扣图表。","microsoft\u002Fnew-copilot-studio-tech-guide","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B4WAHGNC7KVW5MVXCGRYK",21,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Farchive\u002Fstore-solution\u002Fskills\u002Fmarkdown-optimizer\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C0EFP1FBNS6X12G64DAEV2","零售门店运营与促销执行","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0KXTA5713D0D0EFSJCWXG","销售运营专员","PROFESSION","适用职业",[31,32,33],"markdown optimizer","policy","pricing","2026-11-10 10:12:30",false,"---\nname: markdown-optimizer\ndescription: Recommend a discount percentage and new price for each slow-moving product by running the bundled markdown_optimizer.py script, respecting pricing guardrails that come from the Store Policy Agent (never hardcode them). Use after sales-analysis-chart has identified the slow movers and after fetching the markdown guardrails via the Store Policy Agent's get_markdown_policy. The script applies the max-discount cap and margin floor, computes each new price and margin, flags items that cannot be meaningfully promoted within the floor for clearance instead, and renders a recommended-discount chart.\n---\n\n# Markdown Optimizer (BlastBox Omega)\n\nThis skill decides **how much to mark down** each slow-moving product by **running the\nbundled `markdown_optimizer.py` script**. You do **not** write any Python and you do\n**not** hardcode the pricing rules: the guardrails come from the **Store Policy Agent**\nvia `get_markdown_policy(markdown_type)` and are passed to the script as CLI flags. This\nkeeps all policy in one place (the Policy Agent owns it).\n\n## When to use\n\nAfter `sales-analysis-chart` has produced the structured `slow_movers` list, and after\nyou have fetched the guardrails from the **Store Policy Agent**. Use it whenever a\nmanager asks what to mark down and by how much within policy.\n\n## Inputs (gather these first, then pass them as flags)\n\n1. **Slow movers** - the `slow_movers` JSON from `sales-analysis-chart`: a list of\n   `{sku, name, price, cost}` (extra keys are ignored).\n2. **Guardrails** - call the **Store Policy Agent** - `get_markdown_policy(\"promo\")`. It\n   returns `max_discount_pct`, `margin_floor_pct`, and `min_useful_promo_discount_pct`\n   (e.g. `30`, `15`, `10`). Pass all three. Do **not** invent or hardcode them. For a\n   clearance pass, call `get_markdown_policy(\"clearance\")` and use `--markdown-type clearance`.\n\n## Run the bundled script\n\nFor a promo markdown, pass the slow movers and the three guardrails:\n\n```bash\npython3 markdown_optimizer.py \\\n    --markdown-type promo \\\n    --max-discount 30 --margin-floor 15 --min-useful 10 \\\n    --slow-movers '[{\"sku\":\"SKU-VR-NEBULA\",\"name\":\"Nebula VR Headset\",\"price\":199.99,\"cost\":70.00},\n                    {\"sku\":\"SKU-GALAXY-PAD\",\"name\":\"Galaxy Pad Controller\",\"price\":49.99,\"cost\":18.00}]'\n```\n\nFor a clearance pass (no promo math, every item flagged for a manager decision):\n\n```bash\npython3 markdown_optimizer.py --markdown-type clearance \\\n    --slow-movers '[{\"sku\":\"SKU-OMEGA-CORE\",\"name\":\"Omega Core Console\",\"price\":399.99,\"cost\":320.00}]'\n```\n\nThe script prints one line per item, then `RECOMMENDATIONS_JSON=\u003Cjson>`, and writes\n`markdowns.png` (a bar chart of the recommended promo discounts).\n\n## What the script does (for your report, not for you to reimplement)\n\n- **floor price** = `cost \u002F (1 - margin_floor_pct\u002F100)` - the lowest price that still\n  keeps the required gross margin.\n- **recommended discount %** = `min(max_discount_pct, floor-allowed %)`. When the cap\n  binds you get the headline discount; when the **floor** binds the new margin equals the\n  floor (`binding` says which).\n- Items whose floor-allowed discount is below `min_useful_promo_discount_pct` come back\n  with `flag_clearance: true` - they can't be meaningfully promoted, so they should be\n  cleared out via a **clearance** pass (a separate decision requiring a manager flag).\n\n## Report\n\n- Present a table: product, current price, recommended discount %, new price, new margin,\n  and whether the **margin floor** or **max-discount cap** was binding.\n- Call out any item **flagged for clearance**, noting clearance is a separate manager\n  decision (`get_markdown_policy(\"clearance\")`).\n- Hand the finalized promo set (`RECOMMENDATIONS_JSON`) to **merch-report-pdf** for the\n  shareable report.\n\n## Notes\n\n- The bundled script is `markdown_optimizer.py`; it depends only on `matplotlib`\n  (available in the runtime) and prints recommendations even if the chart is skipped.\n- The guardrail numbers MUST come from the Store Policy Agent. If they are missing, fetch\n  them before running - do not guess.\n- All data is mock; recommendations are for demo purposes only.\n","# Markdown Optimizer (BlastBox Omega)\n\nThis skill decides **how much to mark down** each slow-moving product by **running the\nbundled `markdown_optimizer.py` script**. You do **not** write any Python and you do\n**not** hardcode the pricing rules: the guardrails come from the **Store Policy Agent**\nvia `get_markdown_policy(markdown_type)` and are passed to the script as CLI flags. This\nkeeps all policy in one place (the Policy Agent owns it).\n\n## When to use\n\nAfter `sales-analysis-chart` has produced the structured `slow_movers` list, and after\nyou have fetched the guardrails from the **Store Policy Agent**. Use it whenever a\nmanager asks what to mark down and by how much within policy.\n\n## Inputs (gather these first, then pass them as flags)\n\n1. **Slow movers** - the `slow_movers` JSON from `sales-analysis-chart`: a list of\n   `{sku, name, price, cost}` (extra keys are ignored).\n2. **Guardrails** - call the **Store Policy Agent** - `get_markdown_policy(\"promo\")`. It\n   returns `max_discount_pct`, `margin_floor_pct`, and `min_useful_promo_discount_pct`\n   (e.g. `30`, `15`, `10`). Pass all three. Do **not** invent or hardcode them. For a\n   clearance pass, call `get_markdown_policy(\"clearance\")` and use `--markdown-type clearance`.\n\n## Run the bundled script\n\nFor a promo markdown, pass the slow movers and the three guardrails:\n\n```bash\npython3 markdown_optimizer.py \\\n    --markdown-type promo \\\n    --max-discount 30 --margin-floor 15 --min-useful 10 \\\n    --slow-movers '[{\"sku\":\"SKU-VR-NEBULA\",\"name\":\"Nebula VR Headset\",\"price\":199.99,\"cost\":70.00},\n                    {\"sku\":\"SKU-GALAXY-PAD\",\"name\":\"Galaxy Pad Controller\",\"price\":49.99,\"cost\":18.00}]'\n```\n\nFor a clearance pass (no promo math, every item flagged for a manager decision):\n\n```bash\npython3 markdown_optimizer.py --markdown-type clearance \\\n    --slow-movers '[{\"sku\":\"SKU-OMEGA-CORE\",\"name\":\"Omega Core Console\",\"price\":399.99,\"cost\":320.00}]'\n```\n\nThe script prints one line per item, then `RECOMMENDATIONS_JSON=\u003Cjson>`, and writes\n`markdowns.png` (a bar chart of the recommended promo discounts).\n\n## What the script does (for your report, not for you to reimplement)\n\n- **floor price** = `cost \u002F (1 - margin_floor_pct\u002F100)` - the lowest price that still\n  keeps the required gross margin.\n- **recommended discount %** = `min(max_discount_pct, floor-allowed %)`. When the cap\n  binds you get the headline discount; when the **floor** binds the new margin equals the\n  floor (`binding` says which).\n- Items whose floor-allowed discount is below `min_useful_promo_discount_pct` come back\n  with `flag_clearance: true` - they can't be meaningfully promoted, so they should be\n  cleared out via a **clearance** pass (a separate decision requiring a manager flag).\n\n## Report\n\n- Present a table: product, current price, recommended discount %, new price, new margin,\n  and whether the **margin floor** or **max-discount cap** was binding.\n- Call out any item **flagged for clearance**, noting clearance is a separate manager\n  decision (`get_markdown_policy(\"clearance\")`).\n- Hand the finalized promo set (`RECOMMENDATIONS_JSON`) to **merch-report-pdf** for the\n  shareable report.\n\n## Notes\n\n- The bundled script is `markdown_optimizer.py`; it depends only on `matplotlib`\n  (available in the runtime) and prints recommendations even if the chart is skipped.\n- The guardrail numbers MUST come from the Store Policy Agent. If they are missing, fetch\n  them before running - do not guess.\n- All data is mock; recommendations are for demo purposes only.\n",{"name":5,"description":7},"main","a2c7726117cccf8b8e09a45674a5b75266117f03","sample\u002Farchive\u002Fstore-solution\u002Fskills\u002Fmarkdown-optimizer",18,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide","https:\u002F\u002Fmicrosoft.github.io\u002Fnew-copilot-studio-tech-guide\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 07:18:45",{"source":9,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add microsoft\u002Fnew-copilot-studio-tech-guide --skill markdown-optimizer",{"tool":55,"command":56},"bunx","bunx skills add microsoft\u002Fnew-copilot-studio-tech-guide --skill markdown-optimizer",{"tool":58,"command":59},"pnpm","pnpm dlx skills add microsoft\u002Fnew-copilot-studio-tech-guide --skill markdown-optimizer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Farchive\u002Fstore-solution\u002Fskills\u002Fmarkdown-optimizer\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"markdown_optimizer.py","SCRIPT","脚本",6281,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Farchive\u002Fstore-solution\u002Fskills\u002Fmarkdown-optimizer\u002Fmarkdown_optimizer.py",[70,87,102,115,128,135],{"skillNo":71,"name":72,"nameZh":73,"description":74,"descriptionZh":75,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":82,"publishedAt":34},"01M69B5V0891MZX3575Z1CBH7B","slip-pdf-generator","退货换货单 PDF 生成","Generate a printable BlastBox return \u002F RMA \u002F exchange slip as a PDF for the associate to hand to the customer. Use at the end of a return, warranty swap, membership cancellation, or upgrade once all amounts are final. The skill runs a bundled Python script that renders the confirmed slip values into a real PDF file.","生成一份可打印的 BlastBox 退货 \u002F RMA \u002F 换货单据 PDF，供店员交给客户。在退货、保修换货、会员取消或升级流程结束且所有金额最终确定后使用。该技能运行内置的 Python 脚本，将确认后的单据数据渲染为真实的 PDF 文件。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Fsolution\u002Fsrc\u002FBlastBoxAgents\u002Fbotcomponents\u002Fcra24a45_skill_md_d925ad573675\u002Ffiledata\u002FSKILL.md",[78,79],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0EFPH2EEPN3XZ4G2ME348","零售门店店员",[83,84,85,86],"slip pdf generator","PDF","customer","python",{"skillNo":88,"name":89,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":99,"publishedAt":34},"01M69B5SK7S95EJDCDVEH5CR5A","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.","在复杂的消费流程（购买、退货、促销倍数、过期）之后，核对客户的 BlastPoints 会员积分余额，并将净余额转换为店铺消费额度。当店员询问某会员的积分时，或在应追回此前已赚取积分的退货之后使用。该技能运行内置的 Python 脚本，按基础赚取率、促销倍数、等级奖励、积分追回和过期规则计算，然后输出积分账目和可兑换的店铺消费额度。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Fsolution\u002Fsrc\u002FBlastBoxAgents\u002Fbotcomponents\u002Fcra24a45_skill_md_4e6ebf925ae8\u002Ffiledata\u002FSKILL.md",[95,96],{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":97,"categoryName":98,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C1Q8YWNVH04KR82TB1RMBV","会员忠诚度管理",[100,101,85,86],"points reconciliation","claw",{"skillNo":103,"name":104,"nameZh":105,"description":106,"descriptionZh":107,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":108,"categories":109,"keywords":112,"publishedAt":34},"01M69B5R4AKKQ3E2Q7J67VQF9W","prorated-refund-calculator","按比例退款与换购结算","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.","当客户取消 BlastPass 会员资格时计算精确的分摊退款，以及瑕疵品换购更高价机型时的净结算金额。在商店策略代理（Store Policy Agent）确认退款规则且会员 MCP 返回会员详情后使用。该技能运行内置的 Python 脚本以确保计算精确。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Fsolution\u002Fsrc\u002FBlastBoxAgents\u002Fbotcomponents\u002Fcra24a45_skill_md_30aa9a7b2b7c\u002Ffiledata\u002FSKILL.md",[110,111],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},[113,114,85,32,86],"prorated refund calculator","MCP",{"skillNo":116,"name":117,"nameZh":118,"description":119,"descriptionZh":120,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":121,"categories":122,"keywords":125,"publishedAt":34},"01M69B5NT2G4A8E8BP7Q04APSC","membership-card-png","电子会员卡 PNG 生成","Generate a digital BlastPass membership card as a PNG image by running the bundled card_png.py script. Use when a member self-serves a lost\u002Fstolen\u002Fdamaged card replacement, or any time a card needs to be shown on screen (vs. printed). The skill takes the member details returned by the Membership MCP (get_membership) plus the new_card_serial returned by reissue_card and passes them as command-line flags to a bundled Python (matplotlib) script that renders a CR80-sized membership card to a real PNG. It only renders the card from already-retrieved values — it never looks anything up or invents data.","通过运行内置的 card_png.py 脚本，生成电子 BlastPass 会员卡的 PNG 图片。适用于会员自助补办遗失\u002F被盗\u002F损坏的卡片，或任何需要在屏幕上展示卡片（而非打印）的场景。该技能接收 Membership MCP（get_membership）返回的会员详情，以及 reissue_card 返回的 new_card_serial，并将它们作为命令行参数传递给内置的 Python（matplotlib）脚本，渲染出 CR80 尺寸的会员卡并生成真实的 PNG 文件。它仅根据已获取的值渲染卡片——从不自行查询任何信息或编造数据。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Fsolution\u002Fsrc\u002FBlastBoxAgents\u002Fbotcomponents\u002FDefault_draft_IsBewO.file.SKILL.md\u002Ffiledata\u002FSKILL.md",[123,124],{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":97,"categoryName":98,"taxonomyType":23,"taxonomyTypeDesc":24},[126,86,127,114],"membership card png","image",{"skillNo":129,"name":117,"nameZh":118,"description":119,"descriptionZh":120,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":134,"publishedAt":34},"01M69B5M5R4NDD56YXG27NMA2J","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Farchive\u002Fstore-solution\u002Fsrc\u002Fbotcomponents\u002FDefault_draft_IsBewO.file.SKILL.md\u002Ffiledata\u002FSKILL.md",[132,133],{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":97,"categoryName":98,"taxonomyType":23,"taxonomyTypeDesc":24},[126,86,127,114],{"skillNo":136,"name":72,"nameZh":137,"description":74,"descriptionZh":138,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":143,"publishedAt":34},"01M69B5JA3J0EZCP7VJHXX6F4M","退货换货单据 PDF 生成","生成可打印的 BlastBox 退货 \u002F RMA \u002F 换货单据 PDF，供店员交给顾客。在退货、保修换货、会员取消或升级流程结束、所有金额最终确定后使用。该技能运行内置的 Python 脚本，将已确认的单据信息渲染为真实的 PDF 文件。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fnew-copilot-studio-tech-guide\u002Fblob\u002Fmain\u002Fsample\u002Farchive\u002Fstore-solution\u002Fskills\u002Fslip-pdf-generator\u002FSKILL.md",[141,142],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":80,"categoryName":81,"taxonomyType":28,"taxonomyTypeDesc":29},[83,84,85,86]]