Add insights into the infra planner skill#2345
Conversation
00046ff to
86d8c08
Compare
1dee28d to
8c93843
Compare
7683113 to
787dd22
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the azure-enterprise-infra-planner skill to incorporate environment-derived “insights” (via the insights_get MCP tool) into the infra planning workflow, while also refactoring the workflow into phase-specific reference files.
Changes:
- Refactors the planner workflow into seven phase documents and updates the main workflow entrypoint to reference them.
- Introduces insights extraction/application guidance and adds plan schema + integration test expectations for
inputs.insightsApplied. - Updates skill docs (quick reference, checklists, verification steps) to reflect the new insights-aware process.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/azure-enterprise-infra-planner/integration.test.ts | Adds soft-checking for insights generation and asserts inputs.insightsApplied exists. |
| plugin/skills/azure-enterprise-infra-planner/version.json | Bumps skill version config from 1.1 to 1.2. |
| plugin/skills/azure-enterprise-infra-planner/SKILL.md | Updates tool list, links to workflow/phases, and adds sample plan link. |
| plugin/skills/azure-enterprise-infra-planner/references/workflow.md | Replaces inline workflow with a phased table and adds insights artifact output. |
| plugin/skills/azure-enterprise-infra-planner/references/waf-checklist.md | Rewords checklist guidance to be more principle-based and explicit about tradeoffs. |
| plugin/skills/azure-enterprise-infra-planner/references/verification.md | Adds an “Insights Checks” section to verification. |
| plugin/skills/azure-enterprise-infra-planner/references/resources/README.md | Updates phase reference for when resource reference files should be loaded. |
| plugin/skills/azure-enterprise-infra-planner/references/constraints/README.md | Updates phase reference for when constraint files should be loaded. |
| plugin/skills/azure-enterprise-infra-planner/references/research.md | Removes the old monolithic research phase document (superseded by phased docs). |
| plugin/skills/azure-enterprise-infra-planner/references/plan-schema.md | Adds required inputs.insightsApplied and updates references to new phase docs. |
| plugin/skills/azure-enterprise-infra-planner/references/phases/1-extract-insights.md | New Phase 1 doc: extract and persist insights to .azure/insights.json. |
| plugin/skills/azure-enterprise-infra-planner/references/phases/2-research-best-practices.md | New Phase 2 doc: clarify requirements, derive sub-goals, run WAF MCP research. |
| plugin/skills/azure-enterprise-infra-planner/references/phases/3-research-resources.md | New Phase 3 doc: apply WAF checklist, integrate insights, and do resource lookups. |
| plugin/skills/azure-enterprise-infra-planner/references/phases/4-generate-plan.md | New Phase 4 doc: write the plan JSON and set status to draft. |
| plugin/skills/azure-enterprise-infra-planner/references/phases/5-verify.md | New Phase 5 doc: verify plan, fix issues, and manage approval loop. |
| plugin/skills/azure-enterprise-infra-planner/references/phases/6-generate-iac.md | New Phase 6 doc: generate Bicep/Terraform from approved plan. |
| plugin/skills/azure-enterprise-infra-planner/references/phases/7-deploy.md | New Phase 7 doc: deploy with confirmation and correct scope selection. |
JasonYeMSFT
left a comment
There was a problem hiding this comment.
Since your new skill instructions asked the agent to use sub agent, I would like to learn more about how the agent reacts in your testing. For VS Code and Copilot CLI, is the agent able to create ad-hoc subagents to execute the steps you described?
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
bfdfa88 to
ed53e90
Compare
- Reduce token usage by removing sample infra plan - Write JSON plan progressively to prevent context loss on compact
This works really well. We tested on several models including Sonnet 4.6, GPT 5.5. Opus 4.6, Opus 4.7 and in all of the tests it was able to spawn the subagents and run them in parallel when instructed to. It also spawns the right kind of agents as well. For example, we can explicitly tell it to spawn |
|
@Jbrocket Could you please review this PR as a code owner? |
Description
This PR concerns the azure-enterprise-infra-planner skill. It integrates insights into the infrastructure planning process, which are patterns derived from a user’s existing Azure environment (generated using the
insights_getMCP tool). This helps align plans more closely with how users already use Azure, with the goal of reducing manual editing and increasing plan acceptance.This PR contains two main changes:
Testing and Metrics
Checklist
cd tests && npm test)npm run test:skills:integration -- <skill>)USE FOR/DO NOT USE FOR/PREFER OVERclauses: confirmed no routing regressions for competing skills