Devops network calculator for azure

From julianobarbosa/claude-code-skills · View interactive version

Devops network calculator for azure is an AI agent skill from the GitHub repository julianobarbosa/claude-code-skills. Azure network planning, CIDR calculation, subnet sizing, and best-practices tool. Use this skill whenever the user asks about subnet sizing, CIDR planning, AKS networking, NSG rules, network segmentation, IP address management, VNet planning, address space analysis, overlap detection, or any Azure n

How to use this skill

Skill file

Azure Network Calculator

Offline Azure network planning tool. Calculates CIDRs, detects overlaps, analyzes VNet utilization, plans AKS networking, and generates Terraform-ready output. Zero external dependencies — uses Python stdlib only.

Quick Start

# What CIDR do I need for 500 hosts?
python3 scripts/network-calc.py calculate --from-hosts 500

# Analyze current VNet
python3 scripts/network-calc.py analyze --from-tfvars terraform/terraform.tfvars

# Validate for overlaps (pre-commit compatible)
python3 scripts/network-calc.py validate --from-tfvars terraform/terraform.tfvars

# Find where to place a new subnet
python3 scripts/network-calc.py first-fit --vnet 10.50.0.0/20 \
  --subnets "10.50.0.0/22,10.50.4.0/22,10.50.8.0/26,10.50.9.0/24" --hosts 500

Commands

| Command | Purpose | Reference |

|---------|---------|-----------|

| calculate | CIDR info, host sizing, subnet splitting | CIDR Guide |

| analyze | VNet utilization, gap analysis | CIDR Guide |

| validate | Overlap detection, Azure constraint checks | Azure Constraints |

| first-fit | Find optimal placement for new subnet | CIDR Guide |

| plan-multi | Multi-environment VNet allocation | Segmentation |

Project Context

The reference VNet: 10.50.0.0/20 (4,096 IPs, 57.8% utilized)

| Subnet | CIDR | Usable |

|--------|------|--------|

| GatewaySubnet | 10.50.0.0/22 | 1,019 |

| PublicSubnet | 10.50.4.0/22 | 1,019 |

| AzureBastionSubnet | 10.50.8.0/26 | 59 |

| PrivateSubnet | 10.50.9.0/24 | 251 |

| Available gaps | | 1,708 |

Key files: terraform/terraform.tfvars, terraform/networking.tf, terraform/nsg.tf

Azure Quick Reference

Reference Guides

| Guide | When to Read |

|-------|-------------|

| CIDR Calculation Guide | Subnet sizing, gap analysis, overlap detection |

| AKS Networking Guide | CNI comparison, pod/service CIDR, node sizing |

| Segmentation Patterns | Design patterns, anti-patterns, decision matrices |

| Azure Constraints | Hard limits, naming rules, reserved addresses |

Templates

| Template | Purpose |

|----------|---------|

| VNet Layout | Terraform variable blocks for VNet config |

| AKS NSG Rules | NSG rules for AKS workloads |

| Multi-Env Plan | Multi-environment planning output |

Execution

Follow the instructions in ./workflow.md.


Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.