分析 Azure 资源组并生成 Mermaid 架构图,清晰展示资源关系与拓扑。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "azure-resource-visualizer" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/azure-resource-visualizer/SKILL.md 2. 保存为 ~/.claude/skills/azure-resource-visualizer/SKILL.md 3. 装好后重载技能,告诉我可以用了
请分析我的 Azure 资源组,并输出一份 Mermaid 架构图,展示虚拟网络、虚拟机、存储账户、数据库与负载均衡器之间的关系,同时按资源类型分组。
一份结构清晰的 Mermaid 图代码,展示资源分组、连接关系与整体架构拓扑。
请检查这个 Azure 资源组中的资源依赖关系,生成 Mermaid 图,并标出哪些资源直接连接、哪些资源作为核心依赖节点。
一份突出依赖链路和关键节点的 Mermaid 关系图,帮助理解资源间影响范围。
把该 Azure 资源组整理成适合技术文档使用的 Mermaid 架构图,要求命名清晰、层次分明,并附上对主要资源角色的简短说明。
一份适合粘贴到技术文档中的 Mermaid 图及简要说明,便于团队共享和维护。
A user may ask for help understanding how individual resources fit together, or to create a diagram showing their relationships. Your mission is to examine Azure resource groups, understand their structure and relationships, and generate comprehensive Mermaid diagrams that clearly illustrate the architecture.
If the user hasn't specified a resource group:
az.If a resource group is specified, validate it exists and proceed.
For bulk resource discovery across subscriptions, use Azure Resource Graph queries. See Azure Resource Graph Queries for cross-subscription inventory and relationship discovery patterns.
Once you have the resource group:
Query all resources in the resource group using Azure MCP tools or az.
Analyze each resource type and capture:
Map relationships by identifying:
Important: You must only use placeholder names to represent secret values, such as keys, connection strings, Key Vault secrets, etc. Use meaningful placeholder names to represent each secret in the diagram. Never put secret values in the resource diagram.
Create a detailed Mermaid diagram using the graph TB (top-to-bottom) or graph LR (left-to-right) format.
See example-diagram.md for a complete sample architecture diagram.
Key Diagram Requirements:
<br/> for line breaks)--> for data flow or dependencies-.-> for optional/conditional connections==> for critical/primary pathsResource Type Examples:
Use template-architecture.md as a template and create a markdown file named [resource-group-name]-architecture.md with:
…
分析并精简 Markdown 内容,降低 token 消耗并提升 AI 处理效率。
帮助分析代码库架构、查询依赖关系并生成交互式可视化图谱。