Index of every page on this site: llms.txt
All skills
sagochiko avatar

/aws-drawio-diagram

@fb0d598
Run it yourself

AWS の構成図を 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.

Use this Skill: https://skilld.dev/gh/sagochiko/aws-drawio-diagram-skill/aws-drawio-diagram

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesstyles.md

≈2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

スタイル文字列

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

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

リージョン

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

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

アベイラビリティゾーン

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

パブリックサブネット

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

プライベートサブネット

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 でアイコンの下に出る。

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 ではなく専用のシェイプを持つもの。

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種類あり、回ごとに変わると同じものに見えなくなる。

線

通常の流れ

edgeStyle=orthogonalEdgeStyle;html=1;endArrow=block;endFill=1;strokeColor=#545B64;rounded=0;labelBackgroundColor=none;verticalAlign=bottom;align=left;spacingLeft=6

補助の流れ

ログ、メトリクス、レプリケーション、関連付けなど、リクエストの本流ではないもの。破線にし、色も本流と変えてある。

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 の「線」の節にある。

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is safe and provides detailed instructions for generating AWS architecture diagrams using draw.io XML. It uses standard command-line tools for diagram export and XML validation, and generates a local helper script for coordinate calculations. It also includes functionality to edit existing diagrams provided by the user.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at fb0d598. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for sagochiko/aws-drawio-diagram-skill