[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RXQF3ZGV10MZW4BKJY36C":3,"skill-same:01M71RXQF3ZGV10MZW4BKJY36C":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M71RXQF3ZGV10MZW4BKJY36C","sourcing_lead",null,"Approves high-band POs and runs RFP \u002F sourcing events; coordinates with category managers and the CPO on strategic spend.","arturcrmbot\u002Fzava-control-plane","arturcrmbot","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156445312?v=4","01M71R9QBEJ4ZSX5AXBGBYH82C","Artur Zielinski","01M71R9QCJSV19ESCAF5773TWH",1,"MIT","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fapi\u002Fserver\u002Fpersonae\u002Fsourcing_lead\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"sourcing lead","lead","sourcing","join","phase","unknown","recommend","float","attributes","events","actions","as","watch","active","do","portfolio","append","context","cypher","procurement","2026-11-10 13:02:02",false,"---\nname: sourcing_lead\ndescription: Approves high-band POs and runs RFP \u002F sourcing events; coordinates with category managers and the CPO on strategic spend.\nallowed-tools:\nworkflow_label: Procurement\nexternal_event: sourcing_event_decision\ndecision_policy: |\n    event = (context or {}).get(\"sourcing_event\") or (context or {}).get(\"purchase_order\") or {}\n    value_raw = event.get(\"amount_gbp\") or event.get(\"amount\") or 0\n    try:\n        value = float(value_raw)\n    except (TypeError, ValueError):\n        value = None\n\n    auth = authority_check(\n        role=\"sourcing_lead\",\n        action=\"purchase_order_approval\",\n        value=value,\n        category=(event.get(\"category\") or \"standard\"),\n    )\n\n    rule = str(auth.get(\"governing_rule_id\") or \"n\u002Fa\")\n    if value is None:\n        decision = \"reject\"\n        reason = \"missing event value\"\n    elif auth.get(\"allowed\"):\n        decision = \"approve\"\n        reason = \"within sourcing lead delegation per \" + rule + \": GBP \" + str(value)\n    else:\n        decision = \"escalate\"\n        reason = \"outside sourcing lead delegation per \" + rule + \" — CPO sign-off required\"\nsummary_policy: |\n    # Phase B3 of autonomous-domain-insights v1.1: vendor-spend\n    # concentration watch. Two cypher queries (Kuzu 0.6.1 doesn't\n    # do GROUP BY gracefully alongside attribute projections) joined\n    # in Python.\n    vendor_rows = graph.query(\n        \"MATCH (o:Organisation) WHERE o.kind = 'vendor' \"\n        \"RETURN o.id AS id, o.name AS name, o.risk_band AS rb \"\n        \"ORDER BY o.id\"\n    )\n    spend_rows = graph.query(\n        \"MATCH (m:Money)-[:PAYS]->(o:Organisation) \"\n        \"WHERE o.kind = 'vendor' \"\n        \"RETURN o.id AS id, sum(m.amount) AS total\"\n    )\n    spend_by_vendor = {}\n    for r in spend_rows:\n        spend_by_vendor[r[\"id\"]] = float(r[\"total\"] or 0)\n\n    total_vendor_spend = 0.0\n    for v in spend_by_vendor.values():\n        total_vendor_spend = total_vendor_spend + v\n\n    risks = []\n    proposed_actions = []\n    active_pauses = 0\n    fingerprint_parts = []\n    top_pct = 0.0\n\n    for r in vendor_rows:\n        vid = r[\"id\"]\n        vname = r[\"name\"] or vid\n        rb = r[\"rb\"]\n        spend = spend_by_vendor.get(vid, 0.0)\n        if total_vendor_spend > 0:\n            concentration = spend \u002F total_vendor_spend\n        else:\n            concentration = 0.0\n        pct_int = int(concentration * 100)\n        if concentration > top_pct:\n            top_pct = concentration\n        has_pause = len(active_policies_for(\n            graph,\n            scope_kind=\"Organisation\",\n            scope_id=vid,\n            verdict=\"freeze\",\n        )) > 0\n        if has_pause:\n            active_pauses = active_pauses + 1\n        is_risk = False\n        if concentration > 0.12:\n            is_risk = True\n        elif rb in (\"amber\", \"red\") and concentration > 0.05:\n            is_risk = True\n        fingerprint_parts.append(\n            \"(\" + vid + \",\" + str(pct_int) + \",\" + str(rb or \"\")\n            + \",\" + str(has_pause) + \")\"\n        )\n        if is_risk:\n            risks.append({\n                \"id\": vid,\n                \"name\": vname,\n                \"rb\": rb,\n                \"concentration\": concentration,\n                \"pct_int\": pct_int,\n                \"has_pause\": has_pause,\n            })\n            if not has_pause:\n                slug = vid.lower().replace(\"org-vendor-\", \"\")\n                proposed_actions.append({\n                    \"id\": \"pause-vendor-\" + slug,\n                    \"label\": (\n                        \"Pause new POs to \" + vname\n                        + \" (\" + str(pct_int) + \"% concentration)\"\n                    ),\n                    \"kind\": \"policy_set\",\n                    \"verdict\": \"freeze\",\n                    \"decided_on\": [vid],\n                    \"attributes\": {\"expiry_days\": 14, \"scope\": \"vendor_po\"},\n                    \"reason\": (\n                        vname + \" carries \" + str(pct_int)\n                        + \"% of total vendor spend (risk_band \"\n                        + (rb or \"unknown\")\n                        + \") — request alternate sourcing\"\n                    ),\n                })\n\n    vendors_tracked = len(vendor_rows)\n    concentration_risks = len(risks)\n\n    if concentration_risks == 0:\n        headline = \"Vendor portfolio diversified\"\n    else:\n        headline = (\n            str(concentration_risks)\n            + \" vendor(s) above concentration threshold — recommend pauses\"\n        )\n\n    body = \", \".join(\n        x[\"name\"] + \": \" + str(x[\"pct_int\"]) + \"%\" for x in risks\n    )\n\n    fp = \"sourcing_lead:\" + \",\".join(fingerprint_parts)\n    if len(fp) > 256:\n        fp = fp[:256]\n\n    summary = {\n        \"headline\": headline,\n        \"body\": body,\n        \"kpis\": {\n            \"vendors_tracked\": vendors_tracked,\n            \"concentration_risks\": concentration_risks,\n            \"active_pauses\": active_pauses,\n            \"total_vendor_spend_gbp\": float(total_vendor_spend),\n            \"top_vendor_pct\": float(top_pct),\n        },\n        \"proposed_actions\": proposed_actions,\n        \"fingerprint\": fp,\n    }\npersonality:\n  risk_appetite: balanced\n  thoroughness: medium\n  escalation_style: standard\n---\n\n# sourcing_lead\n\nYou are the **Sourcing Lead** for the **Procurement** workflow.\n\n## Decision policy\n\nApprove sourcing events within the lead band. Escalate strategic spend to the CPO.\n\nBands in `data\u002Fsynthetic\u002Fauthority\u002Fmatrix.json` (`PO-003`).\n\n## Summary policy\n\nOn every insight cadence tick the sourcing lead aggregates `(Money)-[:PAYS]->(Organisation {kind: 'vendor'})` totals to compute per-vendor portfolio concentration. A vendor is flagged as a \"concentration risk\" when its share of total vendor spend exceeds 12%, OR when its `risk_band` is `amber`\u002F`red` and concentration exceeds 5%. For each at-risk vendor that does NOT already have an active freeze policy (per `active_policies_for(scope_kind=\"Organisation\", verdict=\"freeze\")`), it proposes a 14-day `policy_set` action labelled \"Pause new POs to \u003Cvendor> (\u003Cpct>% concentration)\".\n\nThe fingerprint is a deterministic tuple-string `sourcing_lead:(vendor_id, pct_int, risk_band, has_pause)…` in vendor-id sorted order so the cadence loop only writes a new Insight when a vendor's concentration (rounded to integer percent), risk band, or pause-state actually changed.\n\n## When this fires\n\nThe orchestrator parks at the sourcing event gate carrying `context.sourcing_event` or `context.purchase_order`.\n\n## How a real human resolves the same gate\n\nWhen `sourcing_lead` is NOT in `PERSONA_AUTO_CLOSE`, the gate stays open. The real sourcing lead resolves it via the procurement console.\n","# sourcing_lead\n\nYou are the **Sourcing Lead** for the **Procurement** workflow.\n\n## Decision policy\n\nApprove sourcing events within the lead band. Escalate strategic spend to the CPO.\n\nBands in `data\u002Fsynthetic\u002Fauthority\u002Fmatrix.json` (`PO-003`).\n\n## Summary policy\n\nOn every insight cadence tick the sourcing lead aggregates `(Money)-[:PAYS]->(Organisation {kind: 'vendor'})` totals to compute per-vendor portfolio concentration. A vendor is flagged as a \"concentration risk\" when its share of total vendor spend exceeds 12%, OR when its `risk_band` is `amber`\u002F`red` and concentration exceeds 5%. For each at-risk vendor that does NOT already have an active freeze policy (per `active_policies_for(scope_kind=\"Organisation\", verdict=\"freeze\")`), it proposes a 14-day `policy_set` action labelled \"Pause new POs to \u003Cvendor> (\u003Cpct>% concentration)\".\n\nThe fingerprint is a deterministic tuple-string `sourcing_lead:(vendor_id, pct_int, risk_band, has_pause)…` in vendor-id sorted order so the cadence loop only writes a new Insight when a vendor's concentration (rounded to integer percent), risk band, or pause-state actually changed.\n\n## When this fires\n\nThe orchestrator parks at the sourcing event gate carrying `context.sourcing_event` or `context.purchase_order`.\n\n## How a real human resolves the same gate\n\nWhen `sourcing_lead` is NOT in `PERSONA_AUTO_CLOSE`, the gate stays open. The real sourcing lead resolves it via the procurement console.\n",{"name":5,"description":7,"personality":44,"allowed-tools":6,"external_event":48,"summary_policy":49,"workflow_label":50,"decision_policy":51},{"thoroughness":45,"risk_appetite":46,"escalation_style":47},"medium","balanced","standard","sourcing_event_decision","# Phase B3 of autonomous-domain-insights v1.1: vendor-spend\n# concentration watch. Two cypher queries (Kuzu 0.6.1 doesn't\n# do GROUP BY gracefully alongside attribute projections) joined\n# in Python.\nvendor_rows = graph.query(\n    \"MATCH (o:Organisation) WHERE o.kind = 'vendor' \"\n    \"RETURN o.id AS id, o.name AS name, o.risk_band AS rb \"\n    \"ORDER BY o.id\"\n)\nspend_rows = graph.query(\n    \"MATCH (m:Money)-[:PAYS]->(o:Organisation) \"\n    \"WHERE o.kind = 'vendor' \"\n    \"RETURN o.id AS id, sum(m.amount) AS total\"\n)\nspend_by_vendor = {}\nfor r in spend_rows:\n    spend_by_vendor[r[\"id\"]] = float(r[\"total\"] or 0)\n\ntotal_vendor_spend = 0.0\nfor v in spend_by_vendor.values():\n    total_vendor_spend = total_vendor_spend + v\n\nrisks = []\nproposed_actions = []\nactive_pauses = 0\nfingerprint_parts = []\ntop_pct = 0.0\n\nfor r in vendor_rows:\n    vid = r[\"id\"]\n    vname = r[\"name\"] or vid\n    rb = r[\"rb\"]\n    spend = spend_by_vendor.get(vid, 0.0)\n    if total_vendor_spend > 0:\n        concentration = spend \u002F total_vendor_spend\n    else:\n        concentration = 0.0\n    pct_int = int(concentration * 100)\n    if concentration > top_pct:\n        top_pct = concentration\n    has_pause = len(active_policies_for(\n        graph,\n        scope_kind=\"Organisation\",\n        scope_id=vid,\n        verdict=\"freeze\",\n    )) > 0\n    if has_pause:\n        active_pauses = active_pauses + 1\n    is_risk = False\n    if concentration > 0.12:\n        is_risk = True\n    elif rb in (\"amber\", \"red\") and concentration > 0.05:\n        is_risk = True\n    fingerprint_parts.append(\n        \"(\" + vid + \",\" + str(pct_int) + \",\" + str(rb or \"\")\n        + \",\" + str(has_pause) + \")\"\n    )\n    if is_risk:\n        risks.append({\n            \"id\": vid,\n            \"name\": vname,\n            \"rb\": rb,\n            \"concentration\": concentration,\n            \"pct_int\": pct_int,\n            \"has_pause\": has_pause,\n        })\n        if not has_pause:\n            slug = vid.lower().replace(\"org-vendor-\", \"\")\n            proposed_actions.append({\n                \"id\": \"pause-vendor-\" + slug,\n                \"label\": (\n                    \"Pause new POs to \" + vname\n                    + \" (\" + str(pct_int) + \"% concentration)\"\n                ),\n                \"kind\": \"policy_set\",\n                \"verdict\": \"freeze\",\n                \"decided_on\": [vid],\n                \"attributes\": {\"expiry_days\": 14, \"scope\": \"vendor_po\"},\n                \"reason\": (\n                    vname + \" carries \" + str(pct_int)\n                    + \"% of total vendor spend (risk_band \"\n                    + (rb or \"unknown\")\n                    + \") — request alternate sourcing\"\n                ),\n            })\n\nvendors_tracked = len(vendor_rows)\nconcentration_risks = len(risks)\n\nif concentration_risks == 0:\n    headline = \"Vendor portfolio diversified\"\nelse:\n    headline = (\n        str(concentration_risks)\n        + \" vendor(s) above concentration threshold — recommend pauses\"\n    )\n\nbody = \", \".join(\n    x[\"name\"] + \": \" + str(x[\"pct_int\"]) + \"%\" for x in risks\n)\n\nfp = \"sourcing_lead:\" + \",\".join(fingerprint_parts)\nif len(fp) > 256:\n    fp = fp[:256]\n\nsummary = {\n    \"headline\": headline,\n    \"body\": body,\n    \"kpis\": {\n        \"vendors_tracked\": vendors_tracked,\n        \"concentration_risks\": concentration_risks,\n        \"active_pauses\": active_pauses,\n        \"total_vendor_spend_gbp\": float(total_vendor_spend),\n        \"top_vendor_pct\": float(top_pct),\n    },\n    \"proposed_actions\": proposed_actions,\n    \"fingerprint\": fp,\n}\n","Procurement","event = (context or {}).get(\"sourcing_event\") or (context or {}).get(\"purchase_order\") or {}\nvalue_raw = event.get(\"amount_gbp\") or event.get(\"amount\") or 0\ntry:\n    value = float(value_raw)\nexcept (TypeError, ValueError):\n    value = None\n\nauth = authority_check(\n    role=\"sourcing_lead\",\n    action=\"purchase_order_approval\",\n    value=value,\n    category=(event.get(\"category\") or \"standard\"),\n)\n\nrule = str(auth.get(\"governing_rule_id\") or \"n\u002Fa\")\nif value is None:\n    decision = \"reject\"\n    reason = \"missing event value\"\nelif auth.get(\"allowed\"):\n    decision = \"approve\"\n    reason = \"within sourcing lead delegation per \" + rule + \": GBP \" + str(value)\nelse:\n    decision = \"escalate\"\n    reason = \"outside sourcing lead delegation per \" + rule + \" — CPO sign-off required\"\n","main","db273d7d646605c0bf0175dc9c8057b9ad2628b5","api\u002Fserver\u002Fpersonae\u002Fsourcing_lead",2,"https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane","https:\u002F\u002Fgithub.com\u002Farturcrmbot","2026-09-28 17:47:06",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add arturcrmbot\u002Fzava-control-plane --skill sourcing_lead",{"tool":65,"command":66},"bunx","bunx skills add arturcrmbot\u002Fzava-control-plane --skill sourcing_lead",{"tool":68,"command":69},"pnpm","pnpm dlx skills add arturcrmbot\u002Fzava-control-plane --skill sourcing_lead","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fapi\u002Fserver\u002Fpersonae\u002Fsourcing_lead\u002FSKILL.md",true,[],[74,95,112,126,134,141],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":39},"01M71SJECD4KXSSJV1B0HSY4T4","proactive-customer-care","Proactively notifies and, where warranted, extends a small bounded goodwill gesture to a customer whose itinerary materially changed.","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fproactive-customer-care\u002FSKILL.md",[],[81,82,83,84,85,86,87,88,89,90,91,92,93,94],"proactive","customer","proactive customer care","customer care","gesture","action","bounded","status","check","booking","operations","travel","issue","itinerary",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":39},"01M71SJ9VHGNNTB6452H1KRZD6","payment-exception","Resolves a failed balance payment by retrying it to complete the booking, or releasing the booking's inventory when retry is not viable.","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fpayment-exception\u002FSKILL.md",[],[102,103,104,105,106,90,107,108,109,88,110,111,89,91,92],"payment","payment exception","it","retry","balance","when","release","complete","capacity","inventory",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":39},"01M71SJ6S6XREB0J6CCVCSFZ9E","hotel-supplier-recovery","Restores accommodation for a shortfall-hit hotel allotment by moving contracted rooms from a donor allotment with headroom, resolving the reported supplier shortfall.","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fhotel-supplier-recovery\u002FSKILL.md",[],[119,120,121,122,89,91,92,123,124,125],"hotel supplier recovery","hotel","recovery","with","move","for","headroom",{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M71SJ4G5MPM50WZ6F66M3PNS","holiday-sales-booking","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fholiday-sales-booking\u002FSKILL.md",[],[132,90,133],"holiday sales booking","sales",{"skillNo":135,"name":136,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":39},"01M71SJ2AHHWN2C4YV2RKEE947","flight-disruption-recovery","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fflight-disruption-recovery\u002FSKILL.md",[],[140,121],"flight disruption recovery",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":39},"01M71SHYPK8HNQ80C9XAWSER53","destination-operations","Dispatches a replacement resort transfer when an arrival is at risk, rebinding any travellers on the at-risk transfer to the replacement.","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fdestination-operations\u002FSKILL.md",[],[148,91,149,150,89,151,92,152,107,153],"destination operations","destination","risk","dispatch","at","transfer"]