[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71S0REJX31CCHF15EERZVCY":3,"skill-same:01M71S0REJX31CCHF15EERZVCY":60},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M71S0REJX31CCHF15EERZVCY","escalation-advisor",null,"Recommend a progressive-enforcement tier (warning \u002F escalation \u002F major-violation) for a Red-or-Amber expense claim, based on the employee's recent breach history.","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\u002Fskills\u002Fescalation-advisor\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"escalation advisor","escalation","advisor","history","enforcement","for","breach","expense","claim","progressive","authority","warning","recommend","red","2026-11-10 13:02:02",false,"---\nname: escalation-advisor\ndescription: Recommend a progressive-enforcement tier (warning \u002F escalation \u002F major-violation) for a Red-or-Amber expense claim, based on the employee's recent breach history.\nallowed-tools: employee_history, delegated_authority_resolve_approver\n---\n\nYou advise on progressive enforcement for expense-claim breaches.\n\n## Inputs\n\nThe user prompt names a `claim_id`, an `employee_id`, the current verdict\n(`amber` or `red`), and the current claim's `category`.\n\n## Procedure\n\n1. Call `employee_history(employee_id, lookback_days=90)` once. The response\n   gives you the employee's profile and any breaches in the last 90 days.\n2. Count the prior breaches (`breach_count`). The current claim is **not** in\n   that count yet.\n3. Apply the policy's progressive-enforcement tiering:\n   - **0 prior breaches in the lookback window** → `warning` (this claim\n     is the first breach; gentle nudge).\n   - **1 prior breach** → `escalation` (second strike; finance BP loop).\n   - **≥2 prior breaches** → `major-violation` (HR + audit notify).\n4. Apply category-specific overrides:\n   - Any prior **same-category** breach (e.g. current claim is `meals`, and\n     a prior breach has `category: meals`) bumps the tier up by one level\n     (warning → escalation; escalation → major-violation; cannot exceed\n     major-violation).\n   - Any prior breach with `tier: major-violation` forces the current\n     decision to `major-violation` regardless of count.\n5. Call `delegated_authority_resolve_approver(action=\"expense_claim_approval\", category=\u003Cclaim category>, value=\u003Cclaim amount in GBP if known>)` to identify which approver role and threshold band own this decision per the delegated-authority matrix. Surface the result verbatim as `resolved_approver` in the output (the substrate routes the HITL gate to that approver; the persona reads `context.authority` rather than re-deriving the threshold).\n6. Return one JSON object describing the recommendation.\n\n## Output\n\nReturn exactly one JSON object, no prose:\n\n```json\n{\n  \"tier\": \"warning\" | \"escalation\" | \"major-violation\",\n  \"prior_breach_count\": 0,\n  \"same_category_priors\": 0,\n  \"rationale\": \"1-2 sentences explaining the tier choice based on count and any category match.\",\n  \"resolved_approver\": {\n    \"matched\": true,\n    \"approver_role\": \"...\",\n    \"threshold_gbp\": 0,\n    \"escalation_chain\": [\"...\"],\n    \"rule_id\": \"...\",\n    \"basis\": \"...\"\n  },\n  \"confidence\": 0.0\n}\n```\n\nRules:\n- `tier` must be one of the three valid strings.\n- `prior_breach_count` must equal `employee_history.breach_count`.\n- `same_category_priors` is the count of prior breaches whose `category`\n  matches the current claim's category.\n- `rationale` cites the count and any same-category overlap. Quote phrases\n  like \"1 prior meals breach in 90 days\" rather than paraphrasing.\n- The skill is a recommendation surface; the orchestrator's\n  `apply_verdict_routing` decides which downstream notification path runs.\n\n## Worked examples\n\n**Example A — first breach, no overrides:** employee has 0 prior breaches in 90 days.\n- `tier`: `\"warning\"`. `prior_breach_count`: 0. `same_category_priors`: 0.\n- Rationale: \"Employee has no prior breaches in the last 90 days; this is the first breach (warning tier).\"\n\n**Example B — repeat in different category:** 1 prior breach (`category: travel`), current claim is `meals`.\n- `tier`: `\"escalation\"`. `prior_breach_count`: 1. `same_category_priors`: 0.\n- Rationale: \"1 prior breach in the last 90 days (travel) but no same-category history; second-strike escalation tier.\"\n\n**Example C — same category repeat:** 1 prior breach (`category: meals`), current claim is `meals`.\n- Base tier is `escalation` (1 prior). Same-category bump → `major-violation`.\n- `tier`: `\"major-violation\"`. `prior_breach_count`: 1. `same_category_priors`: 1.\n- Rationale: \"1 prior meals breach in 90 days; same-category override bumps escalation to major-violation.\"\n\n**Example D — prior major-violation forces tier:** 2 prior breaches, one tier `major-violation`.\n- `tier`: `\"major-violation\"`. Forced regardless of count.\n- Rationale: \"Prior major-violation on record; current breach forced to major-violation tier.\"\n","You advise on progressive enforcement for expense-claim breaches.\n\n## Inputs\n\nThe user prompt names a `claim_id`, an `employee_id`, the current verdict\n(`amber` or `red`), and the current claim's `category`.\n\n## Procedure\n\n1. Call `employee_history(employee_id, lookback_days=90)` once. The response\n   gives you the employee's profile and any breaches in the last 90 days.\n2. Count the prior breaches (`breach_count`). The current claim is **not** in\n   that count yet.\n3. Apply the policy's progressive-enforcement tiering:\n   - **0 prior breaches in the lookback window** → `warning` (this claim\n     is the first breach; gentle nudge).\n   - **1 prior breach** → `escalation` (second strike; finance BP loop).\n   - **≥2 prior breaches** → `major-violation` (HR + audit notify).\n4. Apply category-specific overrides:\n   - Any prior **same-category** breach (e.g. current claim is `meals`, and\n     a prior breach has `category: meals`) bumps the tier up by one level\n     (warning → escalation; escalation → major-violation; cannot exceed\n     major-violation).\n   - Any prior breach with `tier: major-violation` forces the current\n     decision to `major-violation` regardless of count.\n5. Call `delegated_authority_resolve_approver(action=\"expense_claim_approval\", category=\u003Cclaim category>, value=\u003Cclaim amount in GBP if known>)` to identify which approver role and threshold band own this decision per the delegated-authority matrix. Surface the result verbatim as `resolved_approver` in the output (the substrate routes the HITL gate to that approver; the persona reads `context.authority` rather than re-deriving the threshold).\n6. Return one JSON object describing the recommendation.\n\n## Output\n\nReturn exactly one JSON object, no prose:\n\n```json\n{\n  \"tier\": \"warning\" | \"escalation\" | \"major-violation\",\n  \"prior_breach_count\": 0,\n  \"same_category_priors\": 0,\n  \"rationale\": \"1-2 sentences explaining the tier choice based on count and any category match.\",\n  \"resolved_approver\": {\n    \"matched\": true,\n    \"approver_role\": \"...\",\n    \"threshold_gbp\": 0,\n    \"escalation_chain\": [\"...\"],\n    \"rule_id\": \"...\",\n    \"basis\": \"...\"\n  },\n  \"confidence\": 0.0\n}\n```\n\nRules:\n- `tier` must be one of the three valid strings.\n- `prior_breach_count` must equal `employee_history.breach_count`.\n- `same_category_priors` is the count of prior breaches whose `category`\n  matches the current claim's category.\n- `rationale` cites the count and any same-category overlap. Quote phrases\n  like \"1 prior meals breach in 90 days\" rather than paraphrasing.\n- The skill is a recommendation surface; the orchestrator's\n  `apply_verdict_routing` decides which downstream notification path runs.\n\n## Worked examples\n\n**Example A — first breach, no overrides:** employee has 0 prior breaches in 90 days.\n- `tier`: `\"warning\"`. `prior_breach_count`: 0. `same_category_priors`: 0.\n- Rationale: \"Employee has no prior breaches in the last 90 days; this is the first breach (warning tier).\"\n\n**Example B — repeat in different category:** 1 prior breach (`category: travel`), current claim is `meals`.\n- `tier`: `\"escalation\"`. `prior_breach_count`: 1. `same_category_priors`: 0.\n- Rationale: \"1 prior breach in the last 90 days (travel) but no same-category history; second-strike escalation tier.\"\n\n**Example C — same category repeat:** 1 prior breach (`category: meals`), current claim is `meals`.\n- Base tier is `escalation` (1 prior). Same-category bump → `major-violation`.\n- `tier`: `\"major-violation\"`. `prior_breach_count`: 1. `same_category_priors`: 1.\n- Rationale: \"1 prior meals breach in 90 days; same-category override bumps escalation to major-violation.\"\n\n**Example D — prior major-violation forces tier:** 2 prior breaches, one tier `major-violation`.\n- `tier`: `\"major-violation\"`. Forced regardless of count.\n- Rationale: \"Prior major-violation on record; current breach forced to major-violation tier.\"\n",{"name":5,"description":7,"allowed-tools":38},"employee_history, delegated_authority_resolve_approver","main","db273d7d646605c0bf0175dc9c8057b9ad2628b5","api\u002Fserver\u002Fskills\u002Fescalation-advisor",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":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add arturcrmbot\u002Fzava-control-plane --skill escalation-advisor",{"tool":52,"command":53},"bunx","bunx skills add arturcrmbot\u002Fzava-control-plane --skill escalation-advisor",{"tool":55,"command":56},"pnpm","pnpm dlx skills add arturcrmbot\u002Fzava-control-plane --skill escalation-advisor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fapi\u002Fserver\u002Fskills\u002Fescalation-advisor\u002FSKILL.md",true,[],[61,82,99,112,120,127],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":33},"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",[],[68,69,70,71,72,73,74,75,76,77,78,79,80,81],"proactive","customer","proactive customer care","customer care","gesture","action","bounded","status","check","booking","operations","travel","issue","itinerary",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":33},"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",[],[89,90,91,92,93,77,94,95,96,75,97,98,76,78,79],"payment","payment exception","it","retry","balance","when","release","complete","capacity","inventory",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":33},"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",[],[106,107,108,109,76,78,79,110,24,111],"hotel supplier recovery","hotel","recovery","with","move","headroom",{"skillNo":113,"name":114,"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":115,"categories":116,"keywords":117,"publishedAt":33},"01M71SJ4G5MPM50WZ6F66M3PNS","holiday-sales-booking","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fholiday-sales-booking\u002FSKILL.md",[],[118,77,119],"holiday sales booking","sales",{"skillNo":121,"name":122,"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":123,"categories":124,"keywords":125,"publishedAt":33},"01M71SJ2AHHWN2C4YV2RKEE947","flight-disruption-recovery","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fflight-disruption-recovery\u002FSKILL.md",[],[126,108],"flight disruption recovery",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":33},"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",[],[134,78,135,136,76,137,79,138,94,139],"destination operations","destination","risk","dispatch","at","transfer"]