본문으로 건너뛰기
cccskills
무료GitHub에 공개

oci-drawio

OCI(Oracle Cloud Infrastructure)のアーキテクチャ構成図を draw.io 形式(.drawio)で生成・編集する。AWS/Azure の構成図を OCI へ変換することもできる。

Generate, edit, and convert OCI architecture diagrams in draw.io (.drawio) format using official Oracle icons.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구AWSAzureKubernetes
설치 방법 보기

포함된 파일(34)

  • SKILL.md5.3 KB
  • components/ai.json120.9 KB
  • components/aliases.json4.2 KB
  • components/applications.json110.2 KB
  • components/compute.json32.5 KB
  • components/database.json398.5 KB
  • components/developer.json367.3 KB
  • components/general.json72.0 KB
  • components/governance.json22.2 KB
  • components/hybrid.json21.3 KB
  • components/index.json7.6 KB
  • components/migration.json17.4 KB
  • components/monitoring.json63.2 KB
  • components/name_overrides.json9.4 KB
  • components/networking.json87.6 KB
  • components/security.json115.9 KB
  • components/storage.json62.5 KB
  • examples/basic-web-3tier.drawio56.6 KB
  • examples/ha-architecture.drawio92.5 KB
  • examples/specs/basic-web-3tier.json1.1 KB
  • examples/specs/ha-architecture.json2.0 KB
  • icons/oci-shapes.xml1.4 MB
  • reference/cloud-mapping.md5.7 KB
  • reference/component-list.md5.8 KB
  • reference/explanation.md2.4 KB
  • reference/layout-rules.md5.5 KB
  • reference/spec-format.md4.5 KB
  • reference/xml-spec.md4.9 KB
  • scripts/build_drawio.py20.6 KB
  • scripts/gen_component_list.py2.8 KB
  • scripts/oci_components.py5.3 KB
  • scripts/validate_drawio.py9.1 KB
  • setup.sh19.4 KB
  • templates/base_diagram.drawio1.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

OCI draw.io 構成図スキル

Oracle 公式アイコンを使って OCI アーキテクチャ図(.drawio)を生成・編集する。

重要な前提

アイコンは1つあたり中央値 4,177 文字の base64 を含む(最大 286,555 文字)。 XML を手書きすると10アイコン程度で出力トークン上限に達し、途中で切れた壊れた ファイルができる。 そのため新規作成は必ず生成スクリプトを使う。


手順: 新規作成

1. コンポーネント名を確認する

components/index.json(8KB)を読むか、名前解決を直接試す。

python3 scripts/oci_components.py "ロードバランサー相当" "ADB" "kubernetes"

別名・略称(VPC IGW ADB OSS KMS Kubernetes など)や部分一致でも解決できる。 一覧は reference/component-list.md(234件・カテゴリ別)。

2. スペックを書く

1〜2KB の JSON か YAML。座標も base64 も書かない。

{
  "title": "OCI 3-Tier Web Architecture",
  "region": "Japan East (Tokyo)",
  "vcn": {
    "label": "VCN (10.0.0.0/16)",
    "gateways": { "left": ["Internet Gateway", "NAT Gateway"], "right": ["Service Gateway"] },
    "subnets": [
      { "label": "Edge Subnet (10.0.1.0/24)", "nodes": [{ "component": "Load Balancer", "id": "lb" }] },
      { "label": "App Subnet (10.0.2.0/24)", "nodes": ["VM Instance x3"] },
      { "label": "Data Subnet (10.0.3.0/24)", "nodes": [{ "component": "Autonomous Database", "id": "db" }] }
    ]
  },
  "regional_services": ["Object Storage", "Vault"],
  "edges": [["Internet Gateway", "lb"], ["lb", "VM Instance 1"], ["VM Instance 1", "db"]]
}

形式の詳細 → reference/spec-format.md 配置の考え方 → reference/layout-rules.md

3. 生成して検証する

python3 scripts/build_drawio.py spec.json -o output.drawio
python3 scripts/validate_drawio.py output.drawio

validate_drawio.py が [OK] を返すまで直す。警告を残したまま渡さない。

4. 設計ポイントを解説する(必須)

図を渡して終わりにせず、設計判断をテキストで説明する。 形式 → reference/explanation.md


手順: 既存ファイルの編集

  1. .drawio を XML として読む
  2. <mxCell> を追加・変更・削除する(reference/xml-spec.md)
  3. python3 scripts/validate_drawio.py target.drawio で検証する
  4. 設計ポイントの変更点を説明する

既にファイル内にある style 文字列はそのまま再利用する。新しいアイコンを足すときだけ components/{カテゴリ}.json から style をコピーする。SVG を自分で埋め込まない。

大幅な作り直しになる場合は、スペックを書き起こして build_drawio.py で作り直す方が速い。


手順: AWS / Azure からの変換

  1. 元の構成図(画像・XML・説明文)から構成要素と接続を読み取る
  2. reference/cloud-mapping.md で OCI のコンポーネントに対応づける
  3. 上記「新規作成」の手順で図を作る
  4. 解説には サービスマッピング表 と 差異・注意点 を必ず含める (reference/explanation.md)

ファイル構成

パス内容
scripts/build_drawio.pyスペック → .drawio
scripts/validate_drawio.py.drawio の検証
scripts/oci_components.pyコンポーネント名の解決(単体でも実行可)
components/index.json名前 → カテゴリ(8KB)
components/aliases.json別名・略称 → 正式名
components/{カテゴリ}.jsonstyle を含む定義(必要なカテゴリだけ読む)
reference/spec-format.mdスペック形式
reference/xml-spec.mddraw.io XML 仕様(手編集用)
reference/layout-rules.md配置・座標の規則
reference/cloud-mapping.mdAWS/Azure → OCI 対応表
reference/explanation.md設計ポイント解説の形式
reference/component-list.mdコンポーネント一覧(自動生成)
examples/specs/*.jsonサンプルのスペック
examples/*.drawioサンプルの出力
templates/base_diagram.drawio手編集用の雛形
setup.shアイコンの再取得(任意。同梱済みなので通常は不要)

出力

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

이 스킬의 문제 신고