AgentSkillsCN

azure-workload-docs

从已部署的基础设施中生成全面的 Azure 工作负载文档。可创建 7 种类型的文档:设计文档、运维手册、资源清单、备份/灾难恢复计划、合规性矩阵、成本估算以及文档索引。依托 WAF 评估、Bicep 模板与部署产物进行综合整理。**触发条件**包括:“生成文档”、“创建工作负载文档”、“记录部署过程”。

SKILL.md
--- frontmatter
name: azure-workload-docs
description: >
  Generates comprehensive Azure workload documentation from deployed infrastructure.
  Creates 7 document types: design document, operations runbook, resource inventory,
  backup/DR plan, compliance matrix, cost estimate, and documentation index.
  Synthesizes from WAF assessments, Bicep templates, and deployment artifacts.
  **Triggers**: "generate documentation", "create workload docs", "document the deployment"
compatibility: >
  Works with Claude Code, GitHub Copilot, VS Code, and any Agent Skills compatible tool.
  No external dependencies required.
license: MIT
metadata:
  author: jonathan-vella
  version: "1.0"
  category: workflow-automation

Azure Workload Documentation Skill

Generate comprehensive, production-ready documentation for deployed Azure infrastructure. This skill creates a complete documentation package from existing artifacts.

When to Use This Skill

Trigger PhraseUse Case
"Generate workload documentation"Create full doc package
"Document the deployment"Post-deployment documentation
"Create operations runbook"Specific runbook generation
"Generate resource inventory"List all deployed resources

Output Files

All documentation is saved to agent-output/{project}/:

FilePurposeTemplate
07-documentation-index.mdMaster index linking all docsRequired
07-design-document.md10-section technical designRequired
07-operations-runbook.mdDay-2 operational proceduresRequired
07-resource-inventory.mdComplete resource listingRequired
07-ab-cost-estimate.mdAs-built cost analysisRequired
07-compliance-matrix.mdSecurity control mappingOptional
07-backup-dr-plan.mdDisaster recovery proceduresOptional

Source Artifacts

This skill synthesizes from existing project artifacts:

SourceInformation Extracted
01-requirements.mdBusiness context, NFRs, compliance needs
02-architecture-assessment.mdWAF scores, SKU recommendations
04-implementation-plan.mdResource inventory, dependencies
06-deployment-summary.mdDeployed resources, outputs
infra/bicep/{project}/Actual configuration values

Example Prompts

Full Documentation Package

code
Generate comprehensive workload documentation for the ecommerce project.
Include all 7 document types with resource inventory from the deployed infrastructure.

Specific Documents

code
Create an operations runbook for the ecommerce deployment.
Focus on daily operations, incident response, and maintenance procedures.
code
Generate a resource inventory from the deployed Bicep templates.
Include resource names, SKUs, and monthly cost estimates.

Post-Deployment

code
Use the azure-workload-docs skill to document the infrastructure
we just deployed. Synthesize from the deployment summary and Bicep templates.

Document Templates

Document structures are defined in the templates folder. Follow these when generating output:

DocumentTemplate
Design DocumentSee 07-design-document.template.md (10 sections)
Operations RunbookSee 07-operations-runbook.template.md (6 sections)
Resource InventorySee 07-resource-inventory.template.md (2 sections + table)
Backup/DR PlanSee 07-backup-dr-plan.template.md (9 sections)
Compliance MatrixSee 07-compliance-matrix.template.md (6 sections)
Documentation IndexSee 07-documentation-index.template.md (5 sections)

Integration with Workflow

This skill is typically invoked:

  1. After Step 6 (Deploy) - Document what was deployed
  2. Via handoff button - From deploy or bicep-code agents
  3. Explicitly - User requests documentation at any time
code
Workflow Step 6 (Deploy) → azure-workload-docs skill → Step 7 outputs

Best Practices

  1. Run after deployment - Ensures documentation reflects actual state
  2. Include cost estimates - Use Azure Pricing MCP for accuracy
  3. Map to compliance frameworks - Reference specific controls
  4. Keep runbooks actionable - Include actual commands, not just concepts
  5. Version documentation - Include generation date and source artifacts
  6. Follow visual styling - Use callouts, emoji, collapsible sections per styling guide

Visual Styling Standards

MANDATORY: All generated documentation MUST follow:

📚 documentation-styling.md

Key requirements:

ElementUsageExample
CalloutsEmphasis & warnings> [!NOTE], > [!TIP], > [!WARNING]
Status EmojiProgress indicators✅ ⚠️ ❌ 💡
Category IconsResource sections💻 💾 🌐 🔐 📊
CollapsibleLong content (>10 rows)<details>...</details>
ReferencesEvidence linksMicrosoft Learn URLs in ## References section

References Section (Required)

Every document MUST include a ## References section at the bottom with relevant Microsoft Learn links:

markdown
---

## References

> [!NOTE]
> 📚 The following Microsoft Learn resources provide additional guidance.

| Topic                      | Link                                                                             |
| -------------------------- | -------------------------------------------------------------------------------- |
| Well-Architected Framework | [Overview](https://learn.microsoft.com/azure/well-architected/)                  |
| Azure Backup               | [Best Practices](https://learn.microsoft.com/azure/backup/backup-best-practices) |

What This Skill Does NOT Do

  • ❌ Generate Bicep or Terraform code (use bicep-code agent)
  • ❌ Create architecture diagrams (use azure-diagrams skill)
  • ❌ Deploy resources (use deploy agent)
  • ❌ Create ADRs (use azure-adr skill)
  • ❌ Perform WAF assessments (use architect agent)

Required Context

For best results, ensure these artifacts exist before invoking:

code
agent-output/{project}/
├── 01-requirements.md          # Optional but helpful
├── 02-architecture-assessment.md  # WAF scores, recommendations
├── 04-implementation-plan.md   # Resource inventory
└── 06-deployment-summary.md    # Deployed resources

infra/bicep/{project}/
├── main.bicep                  # Entry point
└── modules/                    # Module configurations

Output Quality Checklist

  • All resources from deployment summary are documented
  • SKUs and configurations match Bicep templates
  • Cost estimates reflect actual deployed SKUs
  • Runbook procedures are specific, not generic
  • Compliance controls map to actual implementations
  • DR procedures include RTO/RPO from requirements

Template References

When generating documentation, follow these template structures:

Generation Workflow

Follow these steps when generating documentation:

  1. Gather Context - Read project artifacts (01-06), Bicep templates, deployment outputs
  2. Load Templates - Read each template from .github/templates/07-*.template.md
  3. Extract Resources - Parse deployed resources from 06-deployment-summary.md
  4. Query Pricing - Use Azure Pricing MCP for cost estimates (if available)
  5. Generate Documents - Create each document following template H2 structure
  6. Cross-Reference - Ensure consistency across all documents
  7. Create Index - Generate 07-documentation-index.md linking all documents

Template Compliance Rules

CRITICAL: Templates define the H2 structure for each document.

RuleRequirement
Exact textUse template's H2 text verbatim
Exact orderRequired H2s appear in template-defined order
Anchor ruleExtra sections allowed only AFTER last H2
No omissionsAll template H2s must appear in output
AttributionInclude generation date and source in header

Example header format:

markdown
# Step 7: Design Document - {project-name}

> Generated by azure-workload-docs skill | {YYYY-MM-DD}
> Source artifacts: 02-architecture-assessment.md, 06-deployment-summary.md

Guardrails

DO

  • ✅ Read templates BEFORE generating any output
  • ✅ Parse actual Bicep for resource configurations
  • ✅ Include specific Azure CLI/PowerShell commands in runbooks
  • ✅ Map compliance controls to actual resource configurations
  • ✅ Use actual SKU names, not generic placeholders
  • ✅ Calculate costs from deployed SKUs, not estimates

DO NOT

  • ❌ Generate documents without reading templates first
  • ❌ Use placeholder text like "TBD" or "Insert here"
  • ❌ Create generic runbooks without project-specific commands
  • ❌ Skip sections defined in templates
  • ❌ Reorder H2 headings from template structure
  • ❌ Generate cost estimates without checking actual SKUs