sagochiko/aws-drawio-diagram-skill / skills/aws-drawio-diagram
aws-drawio-diagram
VerifiedAWS の構成図を draw.io の XML(.drawio)で描く。公式の AWS4 アイコンを使い、タイトルや凡例や番号バッジのような装飾を足さず、どのサービスがどこにあって何とつながっているかだけで読める図にする。AWS 構成図、アーキテクチャ図、インフラ構成図、ネットワーク構成図、VPC の図を描いてほしいとき、draw.io で AWS の図を作りたいとき、既存の構成図を直したいときは必ずこの Skill を使う。Use this whenever the user asks for an AWS architecture diagram, cloud infrastructure diagram, VPC diagram, or a draw.io file of AWS resources, even if they don't say "draw.io". Mermaid、PlantUML、Python の diagrams ライブラリなど、ほかの形式を指定されたときは使わない。Do not use it when the user explicitly asks for Mermaid, PlantUML, or the Python diagrams library.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 23.1 KB |
| references/cli.md | markdown | 1.1 KB |
| references/edit.md | markdown | 1.4 KB |
| references/styles.md | markdown | 8.0 KB |
references/styles.md
View on GitHub# スタイル文字列
draw.io の `style=` にそのまま入れる。
このファイルは awslabs/agent-plugins の aws-architecture-diagram スキルのスタイル文字列を元に、色と枠の描き方を変えたもの(Apache License 2.0、詳しくは配布元のリポジトリの NOTICE)。
## 入れ子の枠
外から順に AWS Cloud、リージョン、VPC、アベイラビリティゾーン、サブネット。
AWS Cloud、リージョン、VPC、AZ は AWS 公式のアイコンパッケージ(2026年7月31日版)に合わせ、塗らない。サブネットだけは draw.io の既定の形で、枠線を引かずに塗る(パブリック `#F2F6E8`、プライベート `#E6F6F7`)。面の色でパブリックとプライベートを見分けられる。AZ の名前は左上に置く。中央に置くと、上から本流へ入る線が名前を貫く。
サブネットのアイコンは `group_security_group`(鍵)を使う。`group_public_subnet` や `group_private_subnet` は draw.io に無い名前で、アイコンが空白になる。
### AWS Cloud
```text
html=1;whiteSpace=wrap;fontSize=12;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_aws_cloud_alt;strokeColor=#000000;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#000000;container=1;collapsible=0;recursiveResize=0
```
### リージョン
```text
html=1;whiteSpace=wrap;fontSize=12;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_region;strokeColor=#00A4A6;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#000000;dashed=1;container=1;collapsible=0;recursiveResize=0
```
### VPC
```text
html=1;whiteSpace=wrap;fontSize=12;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_vpc2;strokeColor=#8C4FFF;fillColor=none;verticalAlign=top;align=left;spacingLeft=30;fontColor=#000000;container=1;collapsible=0;recursiveResize=0
```
### アベイラビリティゾーン
```text
fillColor=none;strokeColor=#00A4A6;dashed=1;verticalAlign=top;align=left;spacingLeft=10;fontSize=12;fontColor=#000000;whiteSpace=wrap;html=1;container=1;collapsible=0;recursiveResize=0
```
### パブリックサブネット
```text
html=1;whiteSpace=wrap;fontSize=12;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_security_group;grStroke=0;strokeColor=#7AA116;fillColor=#F2F6E8;verticalAlign=top;align=left;spacingLeft=30;fontColor=#248814;container=1;collapsible=0;recursiveResize=0
```
### プライベートサブネット
```text
html=1;whiteSpace=wrap;fontSize=12;shape=mxgraph.aws4.group;grIcon=mxgraph.aws4.group_security_group;grStroke=0;strokeColor=#00A4A6;fillColor=#E6F6F7;verticalAlign=top;align=left;spacingLeft=30;fontColor=#147EBA;container=1;collapsible=0;recursiveResize=0
```
## サービスアイコン
### サービス単位のアイコン
`{CATEGORY_COLOR}` と `{shape_name}` を埋める。ラベルは `verticalLabelPosition=bottom` でアイコンの下に出る。
```text
fontColor=#16191F;fillColor={CATEGORY_COLOR};strokeColor=#ffffff;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.{shape_name}
```
### 独立したシェイプ
NAT Gateway や Internet Gateway のように、`resourceIcon` ではなく専用のシェイプを持つもの。
```text
fontColor=#16191F;fillColor={CATEGORY_COLOR};strokeColor=none;verticalLabelPosition=bottom;verticalAlign=top;align=center;html=1;fontSize=12;aspect=fixed;shape=mxgraph.aws4.{shape_name}
```
### カテゴリの色とアイコン名
`{CATEGORY_COLOR}` にはカテゴリの色、`{shape_name}` にはアイコン名を入れる。
色は AWS 公式のアイコンパッケージ(2026年7月31日版)に合わせてある。draw.io のパレットは ELB を Compute にも、API Gateway を Application Integration にも載せているが、その色は使わない。
| カテゴリ | `{CATEGORY_COLOR}` | サービスとアイコン名 |
|---|---|---|
| Compute | `#ED7100` | EC2 `ec2`、Lambda `lambda` |
| Containers | `#ED7100` | Fargate `fargate`、ECS `ecs`、EKS `eks`、ECR `ecr` |
| Database | `#C925D1` | Aurora `aurora`、RDS `rds`、DynamoDB `dynamodb`、ElastiCache `elasticache` |
| Networking | `#8C4FFF` | CloudFront `cloudfront`、ELB(ALB を含む)`elastic_load_balancing`、API Gateway `api_gateway`、Route 53 `route_53`、Transit Gateway `transit_gateway`、Direct Connect `direct_connect`、Site-to-Site VPN `site_to_site_vpn`、Global Accelerator `global_accelerator` |
| Analytics | `#8C4FFF` | Kinesis Data Streams `kinesis_data_streams`、Data Firehose `kinesis_data_firehose`、Glue `glue`、Athena `athena`、QuickSight `quicksight`、Redshift `redshift`、EMR `emr`、Lake Formation `lake_formation` |
| AI | `#01A88D` | Bedrock `bedrock`、Bedrock AgentCore `bedrock_agentcore` |
| IoT | `#7AA116` | IoT Core `iot_core` |
| App Integration | `#E7157B` | SQS `sqs`、SNS `sns`、EventBridge `eventbridge`、Step Functions `step_functions` |
| Storage | `#7AA116` | S3 `s3`、EFS `elastic_file_system` |
| Management | `#E7157B` | CloudWatch `cloudwatch_2`、CloudTrail `cloudtrail`、Systems Manager `systems_manager` |
| Security | `#DD344C` | WAF `waf`、ACM `certificate_manager_3`、Cognito `cognito`、IAM `identity_and_access_management`、KMS `key_management_service`、Secrets Manager `secrets_manager` |
### リソースアイコンと汎用アイコン
上の「独立したシェイプ」のスタイルに入れる。独立したサービスアイコンを持たない部品と、AWS の外のものだけを載せている。ALB や S3 のバケットのように、サービスアイコンを持つサービスのリソースアイコンは使わない。
| もの | `{CATEGORY_COLOR}` | `{shape_name}` |
|---|---|---|
| NAT Gateway | `#8C4FFF` | `nat_gateway` |
| Internet Gateway | `#8C4FFF` | `internet_gateway` |
| VPC エンドポイント | `#8C4FFF` | `endpoints` |
| Site-to-Site VPN の接続 | `#8C4FFF` | `vpn_connection` |
| カスタマーゲートウェイ | `#8C4FFF` | `customer_gateway` |
| Transit Gateway のアタッチメント | `#8C4FFF` | `transit_gateway_attachment` |
| 利用者(複数) | `#242F3E` | `users` |
| 利用者(1人) | `#242F3E` | `user` |
| インターネット | `#242F3E` | `internet` |
| 社内データセンター | `#242F3E` | `corporate_data_center` |
| クライアント PC | `#242F3E` | `client` |
| モバイル端末 | `#242F3E` | `mobile_client` |
| オンプレミスのサーバー | `#242F3E` | `traditional_server` |
| 工場 | `#7AA116` | `factory` |
| センサー | `#7AA116` | `sensor` |
インターネットは `internet` に決める。draw.io には絵が3種類あり、回ごとに変わると同じものに見えなくなる。
## 線
### 通常の流れ
```text
edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;endFill=1;strokeColor=#545B64;rounded=0;labelBackgroundColor=none;verticalAlign=bottom;align=left;spacingLeft=6
```
### 補助の流れ
ログ、メトリクス、レプリケーション、関連付けなど、リクエストの本流ではないもの。破線にし、色も本流と変えてある。
```text
edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;endFill=1;strokeColor=#E7157B;rounded=0;dashed=1;labelBackgroundColor=none;verticalAlign=bottom;align=left;spacingLeft=6
```
### 横向きの線
始点と終点がほぼ同じ高さにある線は、上の2つのスタイルの `align=left;spacingLeft=6` を `align=center` に置き換える。ラベルが線の上の真ん中に出る。縦向きの線は置き換えない。縦向きで中央寄せにすると、文字が線に重なる。
### 接続点
`exitX`、`exitY`、`entryX`、`entryY` を 0 から 1 で指定する。辺の中央は次のとおり。
| 辺 | X | Y |
|---|---|---|
| 上 | 0.5 | 0 |
| 下 | 0.5 | 1 |
| 左 | 0 | 0.5 |
| 右 | 1 | 0.5 |
下の辺の中央はラベルに隠れるので、そこから出す線と入れる線は `exitDy` や `entryDy` でラベルの下までずらし、`exitPerimeter=0` や `entryPerimeter=0` を足す。ずらす量は SKILL.md の「線」の節にある。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |