[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71S4HJAD4B9GKA8W8R9ZN1H":3,"skill-same:01M71S4HJAD4B9GKA8W8R9ZN1H":87},{"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":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":59,"install":60,"resources":72},"01M71S4HJAD4B9GKA8W8R9ZN1H","author-ambient-trigger",null,"v4 sub-skill #5 (optional). Adds the `ambient:` block — declares\nan AmbientAgent that watches the bus \u002F graph \u002F clock and spawns\nworkflows of the listed types. Skipped when the operator answers\n\"no\" to \"does this domain need an ambient hook?\".","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\u002Fdocs\u002Fsuperpowers\u002Fskills\u002Fcompose-domain\u002Fsub-skills\u002Fauthor-ambient-trigger\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"author ambient trigger","author","trigger","ambient","clock","generators","codegen","when","Existing","which","true","types","design","v3","time","domain","only","brief","workflows","sandbox","2026-11-10 13:02:02",false,"---\nname: author-ambient-trigger\ndescription: |\n  v4 sub-skill #5 (optional). Adds the `ambient:` block — declares\n  an AmbientAgent that watches the bus \u002F graph \u002F clock and spawns\n  workflows of the listed types. Skipped when the operator answers\n  \"no\" to \"does this domain need an ambient hook?\".\naudience: design-time-only\nforbidden-runtime: true\ninputs:\n  - brief.function (so codegen knows which file to append to)\noutputs:\n  - brief.ambient (optional)\n  - \u003Csandbox>\u002Fapi\u002Fserver\u002Fservices\u002Fambient_agents\u002F\u003Cfunction>.py (append-or-create)\nhands_off_to: existing v3 generators\n---\n\n# author-ambient-trigger\n\nMost domains need no ambient hook (the workflow is operator-driven\nend-to-end). When one is needed, declare it as a single block:\n\n```yaml\nambient:\n  name: \u003CPascalCase>                     # e.g. VendorRiskWatcher\n  function: \u003Cone of the 10 keys>         # which file to land in\n  reasoning_skill: \u003Ckebab>               # optional GHCP skill, null = deterministic\n  spawnable_workflow_types: [\u003Cwt>, ...]  # workflows this watcher may spawn\n  triggers:                              # ≥ 1 of: bus | cypher | cadence\n    - kind: bus\n      event_type: \u003CFleetEvent type>\n      filter:     \u003CCypher-like predicate>\n    - kind: cypher\n      pattern:        \"(node:Type {prop:value})\"\n      sweep_seconds:  3600\n    - kind: cadence\n      cron: \"0 0 * * *\"\n```\n\n## Procedure\n\n1. Ask the operator: \"does this domain need an ambient hook?\".\n2. If no → write nothing, return cleanly. Pipeline continues.\n3. If yes → propose the `ambient:` block and write it to the brief.\n4. Run `validator.py:validate(brief)`. STOP on `SchemaError`.\n5. Render with `codegen.render_ambient(brief)` → `(file_path, append_block)`.\n   File path is `api\u002Fserver\u002Fservices\u002Fambient_agents\u002F\u003Cfunction>.py`.\n6. The codegen wraps the constructor in a sentinel block\n   `# compose-domain:ambient:\u003Cworkflow_type>` so `graduate.sh`\n   appends idempotently.\n7. The constructor is guarded by `if hasattr(_module, \"AmbientAgent\")`\n   so the file is import-clean before Phase 3 lands the\n   `AmbientAgent` primitive.\n\n## Constraints\n\n- `ambient.function` must equal `brief.function` (same registry\n  ownership). Validator enforces.\n- Every entry in `spawnable_workflow_types` must be present in the\n  live `api.shared.domains.DOMAINS` registry OR be the brief's own\n  `domain.workflow_type` (forward-declaration of self-spawning).\n- Triggers form a discriminated union: each entry sets exactly one\n  of `bus | cypher | cadence` and supplies the kind-specific keys.\n","# author-ambient-trigger\n\nMost domains need no ambient hook (the workflow is operator-driven\nend-to-end). When one is needed, declare it as a single block:\n\n```yaml\nambient:\n  name: \u003CPascalCase>                     # e.g. VendorRiskWatcher\n  function: \u003Cone of the 10 keys>         # which file to land in\n  reasoning_skill: \u003Ckebab>               # optional GHCP skill, null = deterministic\n  spawnable_workflow_types: [\u003Cwt>, ...]  # workflows this watcher may spawn\n  triggers:                              # ≥ 1 of: bus | cypher | cadence\n    - kind: bus\n      event_type: \u003CFleetEvent type>\n      filter:     \u003CCypher-like predicate>\n    - kind: cypher\n      pattern:        \"(node:Type {prop:value})\"\n      sweep_seconds:  3600\n    - kind: cadence\n      cron: \"0 0 * * *\"\n```\n\n## Procedure\n\n1. Ask the operator: \"does this domain need an ambient hook?\".\n2. If no → write nothing, return cleanly. Pipeline continues.\n3. If yes → propose the `ambient:` block and write it to the brief.\n4. Run `validator.py:validate(brief)`. STOP on `SchemaError`.\n5. Render with `codegen.render_ambient(brief)` → `(file_path, append_block)`.\n   File path is `api\u002Fserver\u002Fservices\u002Fambient_agents\u002F\u003Cfunction>.py`.\n6. The codegen wraps the constructor in a sentinel block\n   `# compose-domain:ambient:\u003Cworkflow_type>` so `graduate.sh`\n   appends idempotently.\n7. The constructor is guarded by `if hasattr(_module, \"AmbientAgent\")`\n   so the file is import-clean before Phase 3 lands the\n   `AmbientAgent` primitive.\n\n## Constraints\n\n- `ambient.function` must equal `brief.function` (same registry\n  ownership). Validator enforces.\n- Every entry in `spawnable_workflow_types` must be present in the\n  live `api.shared.domains.DOMAINS` registry OR be the brief's own\n  `domain.workflow_type` (forward-declaration of self-spawning).\n- Triggers form a discriminated union: each entry sets exactly one\n  of `bus | cypher | cadence` and supplies the kind-specific keys.\n",{"name":5,"inputs":44,"outputs":46,"audience":49,"description":50,"hands_off_to":51,"forbidden-runtime":52},[45],"brief.function (so codegen knows which file to append to)",[47,48],"brief.ambient (optional)","\u003Csandbox>\u002Fapi\u002Fserver\u002Fservices\u002Fambient_agents\u002F\u003Cfunction>.py (append-or-create)","design-time-only","v4 sub-skill #5 (optional). Adds the `ambient:` block — declares\nan AmbientAgent that watches the bus \u002F graph \u002F clock and spawns\nworkflows of the listed types. Skipped when the operator answers\n\"no\" to \"does this domain need an ambient hook?\".\n","existing v3 generators",true,"main","db273d7d646605c0bf0175dc9c8057b9ad2628b5","docs\u002Fsuperpowers\u002Fskills\u002Fcompose-domain\u002Fsub-skills\u002Fauthor-ambient-trigger",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":61,"prompt":71,"zipAvailable":52},[62,65,68],{"tool":63,"command":64},"npx","npx skills add arturcrmbot\u002Fzava-control-plane --skill author-ambient-trigger",{"tool":66,"command":67},"bunx","bunx skills add arturcrmbot\u002Fzava-control-plane --skill author-ambient-trigger",{"tool":69,"command":70},"pnpm","pnpm dlx skills add arturcrmbot\u002Fzava-control-plane --skill author-ambient-trigger","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fdocs\u002Fsuperpowers\u002Fskills\u002Fcompose-domain\u002Fsub-skills\u002Fauthor-ambient-trigger\u002FSKILL.md",[73,79,83],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"__init__.py","SCRIPT","脚本",0,"https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fdocs\u002Fsuperpowers\u002Fskills\u002Fcompose-domain\u002Fsub-skills\u002Fauthor-ambient-trigger\u002F__init__.py",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"codegen.py",3860,"https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fdocs\u002Fsuperpowers\u002Fskills\u002Fcompose-domain\u002Fsub-skills\u002Fauthor-ambient-trigger\u002Fcodegen.py",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"validator.py",4490,"https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fdocs\u002Fsuperpowers\u002Fskills\u002Fcompose-domain\u002Fsub-skills\u002Fauthor-ambient-trigger\u002Fvalidator.py",[88,109,125,139,147,154],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"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",[],[95,96,97,98,99,100,101,102,103,104,105,106,107,108],"proactive","customer","proactive customer care","customer care","gesture","action","bounded","status","check","booking","operations","travel","issue","itinerary",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"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",[],[116,117,118,119,120,104,26,121,122,102,123,124,103,105,106],"payment","payment exception","it","retry","balance","release","complete","capacity","inventory",{"skillNo":126,"name":127,"nameZh":6,"description":128,"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},"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",[],[132,133,134,135,103,105,106,136,137,138],"hotel supplier recovery","hotel","recovery","with","move","for","headroom",{"skillNo":140,"name":141,"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":142,"categories":143,"keywords":144,"publishedAt":39},"01M71SJ4G5MPM50WZ6F66M3PNS","holiday-sales-booking","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fholiday-sales-booking\u002FSKILL.md",[],[145,104,146],"holiday sales booking","sales",{"skillNo":148,"name":149,"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":150,"categories":151,"keywords":152,"publishedAt":39},"01M71SJ2AHHWN2C4YV2RKEE947","flight-disruption-recovery","https:\u002F\u002Fgithub.com\u002Farturcrmbot\u002Fzava-control-plane\u002Fblob\u002Fmain\u002Fverticals\u002Ftravel\u002Fskills\u002Fflight-disruption-recovery\u002FSKILL.md",[],[153,134],"flight disruption recovery",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"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",[],[161,105,162,163,103,164,106,165,26,166],"destination operations","destination","risk","dispatch","at","transfer"]