[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71RHD328ACNSVCD5C4HJP3X":3,"skill-same:01M71RHD328ACNSVCD5C4HJP3X":80},{"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":28,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":65,"install":66,"resources":79},"01M71RHD328ACNSVCD5C4HJP3X","controller",null,"Approves AP invoices and material expense claims within the controller band; escalates to CFO above £250k.","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\u002Fcontroller\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000040","财务","PROFESSION","适用职业",[5,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"claim","claims","phase","balanced","workflow","auto","authority","persona","autonomous","insights","delegation","expense","decision","short","auth","scope","chain","get","SET","2026-11-10 13:02:02",false,"---\nname: controller\ndescription: Approves AP invoices and material expense claims within the controller band; escalates to CFO above £250k.\nallowed-tools:\nworkflow_label: AP \u002F Finance\nexternal_event: controller_signoff_decision\ndecision_policy: |\n    decision = None\n    reason = None\n\n    # autonomous-domain-insights v1.1 (A3): honour active Brand freezes.\n    # If a policy_set with verdict='freeze' is active on the invoice's\n    # brand, the controller refuses to auto-approve and continues the\n    # escalation chain upward to the CFO. Mirrors the ap_clerk hook (A2)\n    # so the freeze actually reaches the next level instead of being\n    # short-circuited mid-chain.\n    _ctx = context or {}\n    _payload = _ctx.get(\"invoice\") or _ctx.get(\"claim\") or {}\n    _brand_id = (\n        _payload.get(\"brand_id\")\n        or _ctx.get(\"brand_id\")\n        or _ctx.get(\"client_brand\")\n    )\n    if _brand_id:\n        _frozen = active_policies_for(\n            graph,\n            scope_kind=\"Brand\",\n            scope_id=str(_brand_id),\n            verdict=\"freeze\",\n        )\n        if _frozen:\n            _by = str(_frozen[0].get(\"persona_role\") or \"policy\")\n            decision = \"escalate\"\n            reason = (\n                \"active brand freeze on \" + str(_brand_id)\n                + \" (set by \" + _by + \") — escalating to CFO\"\n            )\n\n    if decision is None:\n        payload = (context or {}).get(\"invoice\") or (context or {}).get(\"claim\") or {}\n        value_raw = payload.get(\"amount_gbp\") or payload.get(\"amount\") or 0\n        try:\n            value = float(value_raw)\n        except (TypeError, ValueError):\n            value = None\n        category = (payload.get(\"category\") or \"standard\")\n        action = \"ap_invoice_approval\" if \"invoice\" in (context or {}) else \"expense_claim_approval\"\n\n        pc = precedent_check(\n            workflow_type=(context or {}).get(\"workflow_type\"),\n            phase=(context or {}).get(\"phase\"),\n            persona_role=\"controller\",\n        )\n        if pc.get(\"n_precedents\", 0) >= 3 and pc.get(\"verdict\") in {\"approve\", \"reject\"}:\n            decision = pc[\"verdict\"]\n            reason = \"following \" + str(pc[\"n_precedents\"]) + \" precedents\"\n        else:\n            auth = authority_check(\n                role=\"controller\",\n                action=action,\n                value=value,\n                category=category,\n            )\n\n            rule = str(auth.get(\"governing_rule_id\") or \"n\u002Fa\")\n            if value is None:\n                decision = \"reject\"\n                reason = \"missing value on payload — controller cannot resolve authority\"\n            elif auth.get(\"allowed\"):\n                decision = \"approve\"\n                reason = (\n                    \"within controller delegation per matrix rule \" + rule\n                    + \": \" + str(category) + \" GBP \" + str(value)\n                )\n            else:\n                decision = \"escalate\"\n                reason = (\n                    \"outside controller delegation per matrix rule \" + rule\n                    + \": \" + str(category) + \" GBP \" + str(value)\n                    + \" — \" + str(auth.get(\"reason\") or \"\")\n                )\npersonality:\n  risk_appetite: balanced\n  thoroughness: high\n  escalation_style: standard\n---\n\n# controller\n\nYou are the **controller** for the **AP \u002F Finance** workflow.\n\n## Decision policy\n\nApprove when the delegated-authority matrix confirms the controller is the matched approver for this action+value+category. Escalate to the CFO when the matrix routes the decision to `cfo`. Reject only when the request is malformed.\n\nThe thresholds are not inlined in this persona file — they live in `data\u002Fsynthetic\u002Fauthority\u002Fmatrix.json` and are resolved via the `authority_check` sandbox builtin. Matrix rules `AP-001..AP-004` (AP invoices) and `EXP-001..EXP-022` (expense claims) encode the controller's delegation bands.\n\n## When this fires\n\nThe orchestrator parks at the matching HITL gate and emits a `workflow.hitl.requested` FleetEvent carrying:\n\n- `persona: \"controller\"`\n- `external_event: \"controller_signoff_decision\"`\n- `context.invoice` or `context.claim`: payload with at minimum `amount` (GBP) and `category`\n\n## How a real human resolves the same gate\n\nWhen `controller` is NOT in `PERSONA_AUTO_CLOSE`, the gate stays open indefinitely. The real controller resolves it via the operator UI or by directly POSTing to `\u002Finternal\u002Fdurable-event` with kind `controller_signoff_decision`.\n","# controller\n\nYou are the **controller** for the **AP \u002F Finance** workflow.\n\n## Decision policy\n\nApprove when the delegated-authority matrix confirms the controller is the matched approver for this action+value+category. Escalate to the CFO when the matrix routes the decision to `cfo`. Reject only when the request is malformed.\n\nThe thresholds are not inlined in this persona file — they live in `data\u002Fsynthetic\u002Fauthority\u002Fmatrix.json` and are resolved via the `authority_check` sandbox builtin. Matrix rules `AP-001..AP-004` (AP invoices) and `EXP-001..EXP-022` (expense claims) encode the controller's delegation bands.\n\n## When this fires\n\nThe orchestrator parks at the matching HITL gate and emits a `workflow.hitl.requested` FleetEvent carrying:\n\n- `persona: \"controller\"`\n- `external_event: \"controller_signoff_decision\"`\n- `context.invoice` or `context.claim`: payload with at minimum `amount` (GBP) and `category`\n\n## How a real human resolves the same gate\n\nWhen `controller` is NOT in `PERSONA_AUTO_CLOSE`, the gate stays open indefinitely. The real controller resolves it via the operator UI or by directly POSTing to `\u002Finternal\u002Fdurable-event` with kind `controller_signoff_decision`.\n",{"name":5,"description":7,"personality":53,"allowed-tools":6,"external_event":56,"workflow_label":57,"decision_policy":58},{"thoroughness":54,"risk_appetite":32,"escalation_style":55},"high","standard","controller_signoff_decision","AP \u002F Finance","decision = None\nreason = None\n\n# autonomous-domain-insights v1.1 (A3): honour active Brand freezes.\n# If a policy_set with verdict='freeze' is active on the invoice's\n# brand, the controller refuses to auto-approve and continues the\n# escalation chain upward to the CFO. Mirrors the ap_clerk hook (A2)\n# so the freeze actually reaches the next level instead of being\n# short-circuited mid-chain.\n_ctx = context or {}\n_payload = _ctx.get(\"invoice\") or _ctx.get(\"claim\") or {}\n_brand_id = (\n    _payload.get(\"brand_id\")\n    or _ctx.get(\"brand_id\")\n    or _ctx.get(\"client_brand\")\n)\nif _brand_id:\n    _frozen = active_policies_for(\n        graph,\n        scope_kind=\"Brand\",\n        scope_id=str(_brand_id),\n        verdict=\"freeze\",\n    )\n    if _frozen:\n        _by = str(_frozen[0].get(\"persona_role\") or \"policy\")\n        decision = \"escalate\"\n        reason = (\n            \"active brand freeze on \" + str(_brand_id)\n            + \" (set by \" + _by + \") — escalating to CFO\"\n        )\n\nif decision is None:\n    payload = (context or {}).get(\"invoice\") or (context or {}).get(\"claim\") or {}\n    value_raw = payload.get(\"amount_gbp\") or payload.get(\"amount\") or 0\n    try:\n        value = float(value_raw)\n    except (TypeError, ValueError):\n        value = None\n    category = (payload.get(\"category\") or \"standard\")\n    action = \"ap_invoice_approval\" if \"invoice\" in (context or {}) else \"expense_claim_approval\"\n\n    pc = precedent_check(\n        workflow_type=(context or {}).get(\"workflow_type\"),\n        phase=(context or {}).get(\"phase\"),\n        persona_role=\"controller\",\n    )\n    if pc.get(\"n_precedents\", 0) >= 3 and pc.get(\"verdict\") in {\"approve\", \"reject\"}:\n        decision = pc[\"verdict\"]\n        reason = \"following \" + str(pc[\"n_precedents\"]) + \" precedents\"\n    else:\n        auth = authority_check(\n            role=\"controller\",\n            action=action,\n            value=value,\n            category=category,\n        )\n\n        rule = str(auth.get(\"governing_rule_id\") or \"n\u002Fa\")\n        if value is None:\n            decision = \"reject\"\n            reason = \"missing value on payload — controller cannot resolve authority\"\n        elif auth.get(\"allowed\"):\n            decision = \"approve\"\n            reason = (\n                \"within controller delegation per matrix rule \" + rule\n                + \": \" + str(category) + \" GBP \" + str(value)\n            )\n        else:\n            decision = \"escalate\"\n            reason = (\n                \"outside controller delegation per matrix rule \" + rule\n                + \": \" + str(category) + \" GBP \" + str(value)\n                + \" — \" + str(auth.get(\"reason\") or \"\")\n            )\n","main","db273d7d646605c0bf0175dc9c8057b9ad2628b5","api\u002Fserver\u002Fpersonae\u002Fcontroller",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":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add arturcrmbot\u002Fzava-control-plane --skill controller",{"tool":72,"command":73},"bunx","bunx skills add arturcrmbot\u002Fzava-control-plane --skill controller",{"tool":75,"command":76},"pnpm","pnpm dlx skills add arturcrmbot\u002Fzava-control-plane --skill controller","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fapi\u002Fserver\u002Fpersonae\u002Fcontroller\u002FSKILL.md",true,[],[81,102,119,133,141,148],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":48},"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",[],[88,89,90,91,92,93,94,95,96,97,98,99,100,101],"proactive","customer","proactive customer care","customer care","gesture","action","bounded","status","check","booking","operations","travel","issue","itinerary",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":48},"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",[],[109,110,111,112,113,97,114,115,116,95,117,118,96,98,99],"payment","payment exception","it","retry","balance","when","release","complete","capacity","inventory",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":48},"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",[],[126,127,128,129,96,98,99,130,131,132],"hotel supplier recovery","hotel","recovery","with","move","for","headroom",{"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":48},"01M71SJ4G5MPM50WZ6F66M3PNS","holiday-sales-booking","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fholiday-sales-booking\u002FSKILL.md",[],[139,97,140],"holiday sales booking","sales",{"skillNo":142,"name":143,"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":144,"categories":145,"keywords":146,"publishedAt":48},"01M71SJ2AHHWN2C4YV2RKEE947","flight-disruption-recovery","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fflight-disruption-recovery\u002FSKILL.md",[],[147,128],"flight disruption recovery",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":48},"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",[],[155,98,156,157,96,158,99,159,114,160],"destination operations","destination","risk","dispatch","at","transfer"]