[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RCFE1E01NKRCTBE48CWAW":3,"skill-same:01M71RCFE1E01NKRCTBE48CWAW":72},{"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":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":57,"install":58,"resources":71},"01M71RCFE1E01NKRCTBE48CWAW","ap_clerk",null,"Processes AP invoices via three-way match (PO, goods receipt, invoice); auto-approves clean matches, queues mismatches for the controller.","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\u002Fap_clerk\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ap clerk","clerk","active","phase","queues","value","float","at","matrix","circuit","as","controller","domain","three","either","clean","auto","context","brand","loop","2026-11-10 13:02:02",false,"---\nname: ap_clerk\ndescription: Processes AP invoices via three-way match (PO, goods receipt, invoice); auto-approves clean matches, queues mismatches for the controller.\nallowed-tools:\nworkflow_label: AP \u002F Finance\nexternal_event: ap_invoice_processing_decision\ndecision_policy: |\n    # Phase A2 of autonomous-domain-insights v1.1: honour active brand freeze\n    # policies. When the invoice references a Brand with an active policy_set\n    # freeze Decision (e.g. set by CFO via the v1 closed loop), auto-escalate\n    # to the persona that set the freeze instead of running the normal\n    # delegation logic. No-op when no brand is referenced or no freeze is\n    # active — existing behaviour falls through unchanged.\n    _ctx = context or {}\n    _invoice_pre = _ctx.get(\"invoice\") or {}\n    _brand_id = (\n        _ctx.get(\"brand_id\")\n        or _invoice_pre.get(\"brand_id\")\n        or _invoice_pre.get(\"client_brand\")\n        or _invoice_pre.get(\"brand\")\n        or None\n    )\n    if _brand_id:\n        try:\n            _policies = active_policies_for(\n                graph, scope_kind=\"Brand\", scope_id=str(_brand_id),\n                verdict=\"freeze\",\n            )\n        except Exception:\n            _policies = []\n        if _policies:\n            _p = _policies[0]\n            decision = \"escalate\"\n            reason = (\n                \"frozen by \" + str(_p.get(\"persona_role\") or \"policy\")\n                + \": \" + str(_p.get(\"reason\") or \"active brand freeze\")\n            )\n\n    # The persona sandbox runs this whole block as a single exec(), so we\n    # must guard the existing logic explicitly — assigning `decision` above\n    # does NOT short-circuit the rest of the body.\n    if decision is None:\n        invoice = (context or {}).get(\"invoice\") or {}\n        # The orchestrator may pass either the validator wrapper (matched at the\n        # top level + payload nested under 'three_way_match') or the raw verdict.\n        match_outer = (context or {}).get(\"three_way_match\") or {}\n        inner = match_outer.get(\"three_way_match\") or match_outer\n        matched = bool(match_outer.get(\"matched\") or inner.get(\"matched\"))\n        value_raw = (\n            inner.get(\"invoice_amount_gbp\")\n            or invoice.get(\"amount_gbp\")\n            or invoice.get(\"amount\")\n            or 0\n        )\n        try:\n            value = float(value_raw)\n        except (TypeError, ValueError):\n            value = None\n\n        auth = authority_check(\n            role=\"ap_clerk\",\n            action=\"ap_invoice_approval\",\n            value=value,\n            category=(invoice.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 invoice amount\"\n        elif not matched:\n            decision = \"escalate\"\n            reason = (\n                \"three-way match failed (matrix rule \" + rule\n                + \") — controller review required\"\n            )\n        elif auth.get(\"allowed\"):\n            decision = \"approve\"\n            reason = (\n                \"three-way match ok and within AP clerk delegation per \"\n                + rule + \": GBP \" + str(value)\n            )\n        else:\n            decision = \"escalate\"\n            reason = (\n                \"value outside AP clerk delegation per \" + rule\n                + \" (GBP \" + str(value) + \") — controller review required\"\n            )\npersonality:\n  risk_appetite: conservative\n  thoroughness: high\n  escalation_style: reluctant\n---\n\n# ap_clerk\n\nYou are the **AP Clerk** for the **AP \u002F Finance** workflow.\n\n## Decision policy\n\nAuto-approve invoices that pass three-way match and fall within the AP clerk delegation band per the authority matrix. Escalate everything else — the controller decides.\n\nThe thresholds live in `data\u002Fsynthetic\u002Fauthority\u002Fmatrix.json` (`AP-001`, `AP-002`).\n\n## When this fires\n\nThe orchestrator parks at the AP clerk gate carrying `context.invoice` and `context.three_way_match`.\n\n## How a real human resolves the same gate\n\nWhen `ap_clerk` is NOT in `PERSONA_AUTO_CLOSE`, the gate stays open. The real AP clerk resolves it via the AP queue UI.\n","# ap_clerk\n\nYou are the **AP Clerk** for the **AP \u002F Finance** workflow.\n\n## Decision policy\n\nAuto-approve invoices that pass three-way match and fall within the AP clerk delegation band per the authority matrix. Escalate everything else — the controller decides.\n\nThe thresholds live in `data\u002Fsynthetic\u002Fauthority\u002Fmatrix.json` (`AP-001`, `AP-002`).\n\n## When this fires\n\nThe orchestrator parks at the AP clerk gate carrying `context.invoice` and `context.three_way_match`.\n\n## How a real human resolves the same gate\n\nWhen `ap_clerk` is NOT in `PERSONA_AUTO_CLOSE`, the gate stays open. The real AP clerk resolves it via the AP queue UI.\n",{"name":5,"description":7,"personality":44,"allowed-tools":6,"external_event":48,"workflow_label":49,"decision_policy":50},{"thoroughness":45,"risk_appetite":46,"escalation_style":47},"high","conservative","reluctant","ap_invoice_processing_decision","AP \u002F Finance","# Phase A2 of autonomous-domain-insights v1.1: honour active brand freeze\n# policies. When the invoice references a Brand with an active policy_set\n# freeze Decision (e.g. set by CFO via the v1 closed loop), auto-escalate\n# to the persona that set the freeze instead of running the normal\n# delegation logic. No-op when no brand is referenced or no freeze is\n# active — existing behaviour falls through unchanged.\n_ctx = context or {}\n_invoice_pre = _ctx.get(\"invoice\") or {}\n_brand_id = (\n    _ctx.get(\"brand_id\")\n    or _invoice_pre.get(\"brand_id\")\n    or _invoice_pre.get(\"client_brand\")\n    or _invoice_pre.get(\"brand\")\n    or None\n)\nif _brand_id:\n    try:\n        _policies = active_policies_for(\n            graph, scope_kind=\"Brand\", scope_id=str(_brand_id),\n            verdict=\"freeze\",\n        )\n    except Exception:\n        _policies = []\n    if _policies:\n        _p = _policies[0]\n        decision = \"escalate\"\n        reason = (\n            \"frozen by \" + str(_p.get(\"persona_role\") or \"policy\")\n            + \": \" + str(_p.get(\"reason\") or \"active brand freeze\")\n        )\n\n# The persona sandbox runs this whole block as a single exec(), so we\n# must guard the existing logic explicitly — assigning `decision` above\n# does NOT short-circuit the rest of the body.\nif decision is None:\n    invoice = (context or {}).get(\"invoice\") or {}\n    # The orchestrator may pass either the validator wrapper (matched at the\n    # top level + payload nested under 'three_way_match') or the raw verdict.\n    match_outer = (context or {}).get(\"three_way_match\") or {}\n    inner = match_outer.get(\"three_way_match\") or match_outer\n    matched = bool(match_outer.get(\"matched\") or inner.get(\"matched\"))\n    value_raw = (\n        inner.get(\"invoice_amount_gbp\")\n        or invoice.get(\"amount_gbp\")\n        or invoice.get(\"amount\")\n        or 0\n    )\n    try:\n        value = float(value_raw)\n    except (TypeError, ValueError):\n        value = None\n\n    auth = authority_check(\n        role=\"ap_clerk\",\n        action=\"ap_invoice_approval\",\n        value=value,\n        category=(invoice.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 invoice amount\"\n    elif not matched:\n        decision = \"escalate\"\n        reason = (\n            \"three-way match failed (matrix rule \" + rule\n            + \") — controller review required\"\n        )\n    elif auth.get(\"allowed\"):\n        decision = \"approve\"\n        reason = (\n            \"three-way match ok and within AP clerk delegation per \"\n            + rule + \": GBP \" + str(value)\n        )\n    else:\n        decision = \"escalate\"\n        reason = (\n            \"value outside AP clerk delegation per \" + rule\n            + \" (GBP \" + str(value) + \") — controller review required\"\n        )\n","main","db273d7d646605c0bf0175dc9c8057b9ad2628b5","api\u002Fserver\u002Fpersonae\u002Fap_clerk",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":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add arturcrmbot\u002Fzava-control-plane --skill ap_clerk",{"tool":64,"command":65},"bunx","bunx skills add arturcrmbot\u002Fzava-control-plane --skill ap_clerk",{"tool":67,"command":68},"pnpm","pnpm dlx skills add arturcrmbot\u002Fzava-control-plane --skill ap_clerk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fapi\u002Fserver\u002Fpersonae\u002Fap_clerk\u002FSKILL.md",true,[],[73,94,111,125,133,140],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"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",[],[80,81,82,83,84,85,86,87,88,89,90,91,92,93],"proactive","customer","proactive customer care","customer care","gesture","action","bounded","status","check","booking","operations","travel","issue","itinerary",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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",[],[101,102,103,104,105,89,106,107,108,87,109,110,88,90,91],"payment","payment exception","it","retry","balance","when","release","complete","capacity","inventory",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"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",[],[118,119,120,121,88,90,91,122,123,124],"hotel supplier recovery","hotel","recovery","with","move","for","headroom",{"skillNo":126,"name":127,"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":128,"categories":129,"keywords":130,"publishedAt":39},"01M71SJ4G5MPM50WZ6F66M3PNS","holiday-sales-booking","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fholiday-sales-booking\u002FSKILL.md",[],[131,89,132],"holiday sales booking","sales",{"skillNo":134,"name":135,"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":136,"categories":137,"keywords":138,"publishedAt":39},"01M71SJ2AHHWN2C4YV2RKEE947","flight-disruption-recovery","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fflight-disruption-recovery\u002FSKILL.md",[],[139,120],"flight disruption recovery",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"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",[],[147,90,148,149,88,150,91,26,106,151],"destination operations","destination","risk","dispatch","transfer"]