[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BDJ2ZYXPETM69X6SKP6YT":3,"skill-same:01M69BDJ2ZYXPETM69X6SKP6YT":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":17,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M69BDJ2ZYXPETM69X6SKP6YT","run-scenario","混沌场景执行与监控","Execute a ScenarioConfiguration and stream ScenarioRun status with per-action breakdown until terminal state.","执行 ScenarioConfiguration，并以流式方式输出 ScenarioRun 状态及各操作的细分进度，直至达到终止状态。","microsoft\u002Fchaos-studio","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BCX96C2ZS87TPZT4BZGP8",3,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Frun-scenario\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C6B2VST2786D83B9YZBXAF","混沌工程与韧性测试","SCENARIO","使用场景",[31,32,33,34],"run","run scenario","terminal","status","2026-11-10 10:12:30",false,"---\nname: run-scenario\ndescription: \"Execute a ScenarioConfiguration and stream ScenarioRun status with per-action breakdown until terminal state.\"\n---\n\n# RunScenario — Scenario Execution & Status Streaming\n\n> ⛔ **ABSOLUTE RULE**: Do NOT improvise, skip, or substitute any step. On ANY error, STOP and wait for the user.\n\n## When to use this skill (vs. the MCP server)\n\nThis skill is the **human-interactive** path: it reads run context from `startchaos-state.json`, renders status cards, and persists the run result. Use it when there is a user in the loop.\n\nIf you are an **autonomous agent** with no user to prompt, use `chaos_execute_scenario` + `chaos_get_scenario_run` (MCP) for a non-interactive run-and-poll flow. Cancellation: `chaos_cancel_scenario_run`. See `mcp\u002FREADME.md`.\n\nBoth surfaces target `Microsoft.Chaos` `2026-05-01-preview` and use the local `az login` session for auth.\n\n## How It Works\n\nAll execution and status-streaming logic lives in `scripts\u002FInvoke-RunScenario.ps1`. The script handles confirmation gating, starting the run via `az chaos scenario run start --skip-validation --no-wait`, ScenarioRun ID resolution (start result + `run list` fallback), per-poll status rendering via `az chaos scenario run show`, terminal-state detection, and the final summary.\n\nThe AI orchestrator's **only** job is:\n\n1. Set `$env:STARTCHAOS_STATE_PATH` to `${SESSION_DIR}\u002Fstartchaos-state.json`.\n2. Run the script.\n3. Handle exit codes (see below).\n\nThe script takes **no parameters**: configuration name, scenario, and workspace are all read from state.\n\n## Prerequisites\n\n- `state.setup.status == \"done\"` (configuration must exist and be validated)\n- `state.setup.configuration.id` populated\n\n## Running the Script\n\n```powershell\n$env:STARTCHAOS_STATE_PATH = \"\u003Csession-dir>\u002Fstartchaos-state.json\"\n& \"\u003Cskill-dir>\u002Fscripts\u002FInvoke-RunScenario.ps1\"\n```\n\nFor non-interactive sessions, set `$env:STARTCHAOS_NONINTERACTIVE=1` to skip the confirmation prompt.\n\n## Exit Codes → AI Actions\n\n| Exit | Meaning | AI Action |\n|------|---------|-----------|\n| **0** | Run reached a terminal state (Succeeded \u002F Failed \u002F Canceled) | Done — final card already rendered by script. Inspect `state.run.status` for terminal classification. |\n| **1** | Hard error before\u002Fduring execution | STOP. Render the error from script output. Wait for user. State has `run.lastError`. |\n\n## Cancellation\n\nOn `Ctrl+C`, the script invokes `ScenarioRuns_Cancel` (POST `...\u002Fruns\u002F{runId}\u002Fcancel`) best-effort and persists `state.run.lastError = \"user-cancelled\"`.\n\n## What the Script Handles (no AI logic needed)\n\n- Confirmation card with scenario, parameters, and scope summary (suppressed when `STARTCHAOS_NONINTERACTIVE=1`)\n- Run start via `az chaos scenario run start --skip-validation --no-wait` (validation already gated upstream)\n- ScenarioRun ID resolution from the start result, with `az chaos scenario run list` fallback\n- Per-poll status via `az chaos scenario run show`: top status, elapsed time, per-action `scenarioRunSummary[]` table, resource count, error counts\n- Terminal-state detection (`Succeeded`, `Failed`, `Canceled`) and final summary card\n- Atomic state writes with error envelopes\n- Cancellation handling\n\n## Related Skills\n\n- `setup-scenario` — must complete before this skill\n- `chaos-impact` — post-run Azure Monitor impact synthesis\n- `start-chaos` — orchestrator that invokes this skill\n","# RunScenario — Scenario Execution & Status Streaming\n\n> ⛔ **ABSOLUTE RULE**: Do NOT improvise, skip, or substitute any step. On ANY error, STOP and wait for the user.\n\n## When to use this skill (vs. the MCP server)\n\nThis skill is the **human-interactive** path: it reads run context from `startchaos-state.json`, renders status cards, and persists the run result. Use it when there is a user in the loop.\n\nIf you are an **autonomous agent** with no user to prompt, use `chaos_execute_scenario` + `chaos_get_scenario_run` (MCP) for a non-interactive run-and-poll flow. Cancellation: `chaos_cancel_scenario_run`. See `mcp\u002FREADME.md`.\n\nBoth surfaces target `Microsoft.Chaos` `2026-05-01-preview` and use the local `az login` session for auth.\n\n## How It Works\n\nAll execution and status-streaming logic lives in `scripts\u002FInvoke-RunScenario.ps1`. The script handles confirmation gating, starting the run via `az chaos scenario run start --skip-validation --no-wait`, ScenarioRun ID resolution (start result + `run list` fallback), per-poll status rendering via `az chaos scenario run show`, terminal-state detection, and the final summary.\n\nThe AI orchestrator's **only** job is:\n\n1. Set `$env:STARTCHAOS_STATE_PATH` to `${SESSION_DIR}\u002Fstartchaos-state.json`.\n2. Run the script.\n3. Handle exit codes (see below).\n\nThe script takes **no parameters**: configuration name, scenario, and workspace are all read from state.\n\n## Prerequisites\n\n- `state.setup.status == \"done\"` (configuration must exist and be validated)\n- `state.setup.configuration.id` populated\n\n## Running the Script\n\n```powershell\n$env:STARTCHAOS_STATE_PATH = \"\u003Csession-dir>\u002Fstartchaos-state.json\"\n& \"\u003Cskill-dir>\u002Fscripts\u002FInvoke-RunScenario.ps1\"\n```\n\nFor non-interactive sessions, set `$env:STARTCHAOS_NONINTERACTIVE=1` to skip the confirmation prompt.\n\n## Exit Codes → AI Actions\n\n| Exit | Meaning | AI Action |\n|------|---------|-----------|\n| **0** | Run reached a terminal state (Succeeded \u002F Failed \u002F Canceled) | Done — final card already rendered by script. Inspect `state.run.status` for terminal classification. |\n| **1** | Hard error before\u002Fduring execution | STOP. Render the error from script output. Wait for user. State has `run.lastError`. |\n\n## Cancellation\n\nOn `Ctrl+C`, the script invokes `ScenarioRuns_Cancel` (POST `...\u002Fruns\u002F{runId}\u002Fcancel`) best-effort and persists `state.run.lastError = \"user-cancelled\"`.\n\n## What the Script Handles (no AI logic needed)\n\n- Confirmation card with scenario, parameters, and scope summary (suppressed when `STARTCHAOS_NONINTERACTIVE=1`)\n- Run start via `az chaos scenario run start --skip-validation --no-wait` (validation already gated upstream)\n- ScenarioRun ID resolution from the start result, with `az chaos scenario run list` fallback\n- Per-poll status via `az chaos scenario run show`: top status, elapsed time, per-action `scenarioRunSummary[]` table, resource count, error counts\n- Terminal-state detection (`Succeeded`, `Failed`, `Canceled`) and final summary card\n- Atomic state writes with error envelopes\n- Cancellation handling\n\n## Related Skills\n\n- `setup-scenario` — must complete before this skill\n- `chaos-impact` — post-run Azure Monitor impact synthesis\n- `start-chaos` — orchestrator that invokes this skill\n",{"name":5,"description":7},"main","6044a40e14cfafb6a7edb297a8a29e98cfe3c543","copilot-cli-plugin\u002Fskills\u002Frun-scenario",4,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-10-28 22:44:24",{"source":9,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add microsoft\u002Fchaos-studio --skill run-scenario",{"tool":55,"command":56},"bunx","bunx skills add microsoft\u002Fchaos-studio --skill run-scenario",{"tool":58,"command":59},"pnpm","pnpm dlx skills add microsoft\u002Fchaos-studio --skill run-scenario","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Frun-scenario\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002FInvoke-RunScenario.ps1","SCRIPT","脚本",13507,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Frun-scenario\u002Fscripts\u002FInvoke-RunScenario.ps1",[70,84,98,113,129,141],{"skillNo":71,"name":72,"nameZh":73,"description":74,"descriptionZh":75,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":76,"categories":77,"keywords":80,"publishedAt":35},"01M69BDNKG9SA6RN6T9MA63EP8","start-chaos","混沌测试工作流编排","Orchestrate the full Chaos Studio v2 workflow: auth → workspace → scenario → run. Shares a single state file and supports resume.","编排完整的 Chaos Studio v2 工作流：认证 → 工作区 → 场景 → 运行。共享单一状态文件并支持断点续跑。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fstart-chaos\u002FSKILL.md",[78,79],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[81,31,82,83],"start chaos","auth","workflow",{"skillNo":85,"name":86,"nameZh":87,"description":88,"descriptionZh":89,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":90,"categories":91,"keywords":94,"publishedAt":35},"01M69BDKWYZC4DFX9YC08310S6","setup-scenario","混沌场景搭建与配置","Discover recommended scenarios, build and validate a ScenarioConfiguration, and auto-fix resource permissions.","发现推荐场景，构建并验证 ScenarioConfiguration，并自动修复资源权限。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fsetup-scenario\u002FSKILL.md",[92,93],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[95,96,97],"setup scenario","setup","validate",{"skillNo":99,"name":100,"nameZh":101,"description":102,"descriptionZh":103,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":108,"publishedAt":35},"01M69BDGAJDDM8HM02YH8HSBDE","create-workspace","创建 Chaos 工作区","Provision a Microsoft.Chaos\u002Fworkspaces resource (v2), bind a managed identity, set scopes, and grant Reader RBAC on the scope.","预配 Microsoft.Chaos\u002Fworkspaces 资源（v2），绑定托管标识，设置作用域，并在该作用域上授予 Reader RBAC 角色。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fcreate-workspace\u002FSKILL.md",[106,107],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[109,110,10,111,112],"create workspace","create","rbac","identity",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":125,"publishedAt":35},"01M69BDCS0CFAC1240TJKR91FY","chaos-study","混沌工程研究运行","Guided help for running a Chaos Studio study against an Azure workspace scope: frame a steady-state question with you, discover live which actions Chaos Studio offers for that region, freeze a plan, run a validated scenario configuration only with your explicit consent, collect the before\u002Fduring\u002Fafter signals you chose, and write a self-contained HTML report for your review. Start here for questions like 'what happens to my service when X?' or 'is my service resilient to X?'.","为指导运行针对 Azure 工作区范围的 Chaos Studio 研究：与您一起构建稳定状态问题，动态发现 Chaos Studio 在该区域提供的操作，冻结计划，仅在您明确同意的情况下运行经过验证的场景配置，收集您选择的之前\u002F期间\u002F之后信号，并编写一份自包含的 HTML 报告供您审阅。当遇到'当 X 发生时我的服务会怎样？'或'我的服务能否抵御 X？'这类问题时，请从这里开始。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fchaos-study\u002FSKILL.md",[121,122],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2K0CN9HRHVCE0RCDD30J4","实验设计与假设验证",[126,31,127,128],"chaos study","azure","review",{"skillNo":130,"name":131,"nameZh":132,"description":133,"descriptionZh":134,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":139,"publishedAt":35},"01M69BDAY9AM9RXZKCW8653V5C","chaos-study-scope","混沌研究范围界定","Frame a Chaos study before anything runs: resolve or create a Chaos Studio V2 workspace, read the resources the service discovered inside its scopes, discover live which actions and scenarios are available for that region, express a falsifiable steady-state predicate, verify the action fits what is in scope, then freeze and hash the study plan.","在运行任何操作之前构建 Chaos（混沌）研究框架：解析或创建 Chaos Studio V2 工作区，读取服务在其范围内发现的资源，动态发现该区域中可用的操作和场景，表达一个可证伪的稳定状态谓词，验证该操作是否符合范围内的内容，然后冻结并对研究计划进行哈希处理。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fchaos-study-scope\u002FSKILL.md",[137,138],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},[140,110],"chaos study scope",{"skillNo":142,"name":143,"nameZh":144,"description":145,"descriptionZh":146,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":153,"publishedAt":35},"01M69BD9106S43A040QY767T2B","chaos-study-run","Chaos 研究计划执行","Execute a frozen Chaos study plan against Azure using Chaos Studio V2: verify plan integrity, create and validate a scenario configuration, require an explicit typed consent phrase, collect baseline evidence, execute the scenario run, collect during and post-recovery evidence, and always clean up the configuration. Dry-run by default.","使用 Chaos Studio V2 针对 Azure 执行已冻结的 Chaos 研究计划：验证计划完整性、创建并验证场景配置、要求显式输入同意短语、收集基线证据、执行场景运行、收集运行期间及恢复后的证据，并始终清理配置。默认为试运行（dry-run）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fchaos-study-run\u002FSKILL.md",[149,150],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[31,154,97,110,127],"chaos study run"]