[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BDGAJDDM8HM02YH8HSBDE":3,"skill-same:01M69BDGAJDDM8HM02YH8HSBDE":104},{"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":23,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M69BDGAJDDM8HM02YH8HSBDE","create-workspace",null,"Provision a Microsoft.Chaos\u002Fworkspaces resource (v2), bind a managed identity, set scopes, and grant Reader RBAC on the scope.","microsoft\u002Fchaos-studio","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BCX96C2ZS87TPZT4BZGP8",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fcreate-workspace\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,9,26,27],"create","create workspace","identity","rbac","2026-11-10 10:12:30",false,"---\nname: create-workspace\ndescription: \"Provision a Microsoft.Chaos\u002Fworkspaces resource (v2), bind a managed identity, set scopes, and grant Reader RBAC on the scope.\"\n---\n\n# CreateWorkspace — Chaos Studio Workspace Provisioning\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 persists state to `startchaos-state.json`, renders cards, and produces the workspace + identity + Reader RBAC in one go. Use it when there is a user in the loop.\n\nIf you are an **autonomous agent** with no user to prompt, call `chaos_create_workspace` on the `chaos-studio` MCP server. Same provisioning + identity binding + Reader RBAC, returned as a single tool call. 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 provisioning logic lives in `scripts\u002FInvoke-CreateWorkspace.ps1`. The script handles input validation, workspace creation via `az chaos workspace create` (the CLI awaits the provisioning LRO), identity resolution, RBAC test\u002Fgrant, and state persistence.\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 with the required parameters.\n3. Handle exit codes that require user input (see below).\n4. Re-run with the user's answers as parameters.\n\n## Prerequisites\n\n- `state.auth.status == \"done\"` (run auth pre-flight first; the script refuses to start otherwise)\n- `state.context.subscriptionId` populated\n\n## Running the Script\n\n```powershell\n$env:STARTCHAOS_STATE_PATH = \"\u003Csession-dir>\u002Fstartchaos-state.json\"\n& \"\u003Cskill-dir>\u002Fscripts\u002FInvoke-CreateWorkspace.ps1\" `\n    -ResourceGroup \u003Crg> `\n    -WorkspaceName \u003Cname> `\n    -Scopes @('\u003Carm-id>', ...) `\n    [-Location \u003Cregion>] `\n    [-IdentityType SystemAssigned|UserAssigned] `\n    [-UserAssignedIdentityResourceId \u003Cuami-arm-id>]\n```\n\nIdempotent: re-runs short-circuit when `state.workspace.status == \"done\"`.\n\n## Exit Codes → AI Actions\n\n| Exit | Meaning | AI Action |\n|------|---------|-----------|\n| **0** | Workspace ready | Done — summary already rendered by script. |\n| **1** | Hard error | STOP. Render the error from script output. Wait for user. State has `workspace.lastError`. |\n\nIf a required parameter is missing, PowerShell's parameter binder fails before the script body runs — gather the missing input via `ask_user` and retry.\n\n## Script Parameters\n\n| Parameter | Required | Default | Description |\n|-----------|----------|---------|-------------|\n| `-ResourceGroup` | yes | — | Azure resource group name |\n| `-WorkspaceName` | yes | — | Name for the workspace resource |\n| `-Scopes` | yes | — | ARM IDs the workspace is allowed to target (subscription \u002F RG \u002F service group) |\n| `-Location` | no | `westus2` | Azure region |\n| `-IdentityType` | no | `SystemAssigned` | `SystemAssigned` or `UserAssigned` |\n| `-UserAssignedIdentityResourceId` | conditional | — | Required when `-IdentityType UserAssigned` |\n\n## What the Script Handles (no AI logic needed)\n\n- Input validation and ARM-ID well-formedness checks\n- Workspace creation via `az chaos workspace create` (identity + scopes)\n- Provisioning LRO awaited by the CLI, with terminal-state surfacing\n- Identity resolution (SystemAssigned principalId from response; UserAssigned via UAMI GET)\n- Per-scope `Test-CallerCanAssignRoles` + Reader role assignment with remediation card on denial\n- Atomic state writes with error envelopes\n- Idempotent re-runs\n\n## Related Skills\n\n- `start-chaos` — orchestrator that invokes this skill\n- `setup-scenario` — next phase after workspace creation\n","# CreateWorkspace — Chaos Studio Workspace Provisioning\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 persists state to `startchaos-state.json`, renders cards, and produces the workspace + identity + Reader RBAC in one go. Use it when there is a user in the loop.\n\nIf you are an **autonomous agent** with no user to prompt, call `chaos_create_workspace` on the `chaos-studio` MCP server. Same provisioning + identity binding + Reader RBAC, returned as a single tool call. 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 provisioning logic lives in `scripts\u002FInvoke-CreateWorkspace.ps1`. The script handles input validation, workspace creation via `az chaos workspace create` (the CLI awaits the provisioning LRO), identity resolution, RBAC test\u002Fgrant, and state persistence.\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 with the required parameters.\n3. Handle exit codes that require user input (see below).\n4. Re-run with the user's answers as parameters.\n\n## Prerequisites\n\n- `state.auth.status == \"done\"` (run auth pre-flight first; the script refuses to start otherwise)\n- `state.context.subscriptionId` populated\n\n## Running the Script\n\n```powershell\n$env:STARTCHAOS_STATE_PATH = \"\u003Csession-dir>\u002Fstartchaos-state.json\"\n& \"\u003Cskill-dir>\u002Fscripts\u002FInvoke-CreateWorkspace.ps1\" `\n    -ResourceGroup \u003Crg> `\n    -WorkspaceName \u003Cname> `\n    -Scopes @('\u003Carm-id>', ...) `\n    [-Location \u003Cregion>] `\n    [-IdentityType SystemAssigned|UserAssigned] `\n    [-UserAssignedIdentityResourceId \u003Cuami-arm-id>]\n```\n\nIdempotent: re-runs short-circuit when `state.workspace.status == \"done\"`.\n\n## Exit Codes → AI Actions\n\n| Exit | Meaning | AI Action |\n|------|---------|-----------|\n| **0** | Workspace ready | Done — summary already rendered by script. |\n| **1** | Hard error | STOP. Render the error from script output. Wait for user. State has `workspace.lastError`. |\n\nIf a required parameter is missing, PowerShell's parameter binder fails before the script body runs — gather the missing input via `ask_user` and retry.\n\n## Script Parameters\n\n| Parameter | Required | Default | Description |\n|-----------|----------|---------|-------------|\n| `-ResourceGroup` | yes | — | Azure resource group name |\n| `-WorkspaceName` | yes | — | Name for the workspace resource |\n| `-Scopes` | yes | — | ARM IDs the workspace is allowed to target (subscription \u002F RG \u002F service group) |\n| `-Location` | no | `westus2` | Azure region |\n| `-IdentityType` | no | `SystemAssigned` | `SystemAssigned` or `UserAssigned` |\n| `-UserAssignedIdentityResourceId` | conditional | — | Required when `-IdentityType UserAssigned` |\n\n## What the Script Handles (no AI logic needed)\n\n- Input validation and ARM-ID well-formedness checks\n- Workspace creation via `az chaos workspace create` (identity + scopes)\n- Provisioning LRO awaited by the CLI, with terminal-state surfacing\n- Identity resolution (SystemAssigned principalId from response; UserAssigned via UAMI GET)\n- Per-scope `Test-CallerCanAssignRoles` + Reader role assignment with remediation card on denial\n- Atomic state writes with error envelopes\n- Idempotent re-runs\n\n## Related Skills\n\n- `start-chaos` — orchestrator that invokes this skill\n- `setup-scenario` — next phase after workspace creation\n",{"name":5,"description":7},"main","6044a40e14cfafb6a7edb297a8a29e98cfe3c543","copilot-cli-plugin\u002Fskills\u002Fcreate-workspace",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":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add microsoft\u002Fchaos-studio --skill create-workspace",{"tool":48,"command":49},"bunx","bunx skills add microsoft\u002Fchaos-studio --skill create-workspace",{"tool":51,"command":52},"pnpm","pnpm dlx skills add microsoft\u002Fchaos-studio --skill create-workspace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fcreate-workspace\u002FSKILL.md",true,[56,62,66,70,74,78,82,86,90,94,98],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"backends\u002Fgithub-releases.md","REFERENCE","参考文档",1480,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fbackends\u002Fgithub-releases.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"backends\u002Fs3.md",1201,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fbackends\u002Fs3.md",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"backends\u002Fself-hosted.md",943,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fbackends\u002Fself-hosted.md",{"path":71,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":72,"sourceHtmlUrl":73},"backends\u002Fsvnpubsub.md",1917,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fbackends\u002Fsvnpubsub.md",{"path":75,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":76,"sourceHtmlUrl":77},"blockers\u002Ftarget-exists.md",658,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fblockers\u002Ftarget-exists.md",{"path":79,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":80,"sourceHtmlUrl":81},"blockers\u002Ftrusted-hardware.md",926,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fblockers\u002Ftrusted-hardware.md",{"path":83,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":84,"sourceHtmlUrl":85},"convenience-artefacts.md",3440,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fconvenience-artefacts.md",{"path":87,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":88,"sourceHtmlUrl":89},"outcomes\u002Fhandoff-non-pmc.md",1091,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Foutcomes\u002Fhandoff-non-pmc.md",{"path":91,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":92,"sourceHtmlUrl":93},"prerequisites.md",987,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Fprerequisites.md",{"path":95,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":96,"sourceHtmlUrl":97},"references.md",1821,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fmagpie\u002Fblob\u002Fmain\u002Fplugins\u002Fmagpie-release-management\u002Fskills\u002Fpromote\u002Freferences.md",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002FInvoke-CreateWorkspace.ps1","SCRIPT","脚本",8156,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fcreate-workspace\u002Fscripts\u002FInvoke-CreateWorkspace.ps1",[105,117,128,139,149,157],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":112,"publishedAt":28},"01M69BDNKG9SA6RN6T9MA63EP8","start-chaos","Orchestrate the full Chaos Studio v2 workflow: auth → workspace → scenario → run. Shares a single state file and supports resume.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fstart-chaos\u002FSKILL.md",[111],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[113,114,115,116],"start chaos","run","auth","workflow",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":124,"publishedAt":28},"01M69BDKWYZC4DFX9YC08310S6","setup-scenario","Discover recommended scenarios, build and validate a ScenarioConfiguration, and auto-fix resource permissions.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fsetup-scenario\u002FSKILL.md",[123],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[125,126,127],"setup scenario","setup","validate",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":135,"publishedAt":28},"01M69BDJ2ZYXPETM69X6SKP6YT","run-scenario","Execute a ScenarioConfiguration and stream ScenarioRun status with per-action breakdown until terminal state.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Frun-scenario\u002FSKILL.md",[134],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[136,114,137,138],"run scenario","terminal","status",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":28},"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?'.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fchaos-study\u002FSKILL.md",[],[146,114,147,148],"chaos study","azure","review",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":28},"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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fchaos-study-scope\u002FSKILL.md",[],[156,24],"chaos study scope",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":28},"01M69BD9106S43A040QY767T2B","chaos-study-run","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.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fchaos-studio\u002Fblob\u002Fmain\u002Fcopilot-cli-plugin\u002Fskills\u002Fchaos-study-run\u002FSKILL.md",[],[114,164,127,24,147],"chaos study run"]