Eraser 記法ガイド①
想定用途
- Eraserプラットフォームでダイアグラムを作成したい
- YAML形式の簡潔な構文でフローチャートやアーキテクチャ図を表現したい
- Eraserの基本的な記法を学習したい
プロンプト本文
このプロンプトは記法ガイドであり、AIにダイアグラム生成を依頼するためのテンプレートではありません。Eraserの記法を学習した後、以下の形式でダイアグラムを定義できます。
yaml
# ノード定義
ノード名 [属性] {
# サブノード定義
サブノード名 [属性]
}
# 関係定義
ノード1 > ノード2: [ラベル]属性一覧
形状 (shape)
oval: 楕円rectangle: 長方形diamond: ひし形rounded_rectangle: 角丸長方形cylinder: 円筒hexagon: 六角形triangle: 三角形cloud: クラウドdatabase: データベース
アイコン (icon)
file-text,bug,copy,check-squareuser,users,home,folderaws-api-gateway,aws-lambda,aws-simple-storage-servicek8s-control-plane,k8s-api,k8s-node- 他多数
色 (color)
red,green,blue,yellow,purple,orange,grey
使い方
- Eraser プラットフォームにアクセス
- 上記のYAML形式でダイアグラムを定義
- Eraserのエディタに貼り付けてレンダリング
入力例
yaml
# Issue Triage Flow
Issue type? [shape: oval, icon: file-text]
BugPath [color: red] {
Bug [icon: bug, color: red]
Has repro? [shape: diamond, icon: repeat]
}
FeaturePath [color: green] {
Feature [icon: zap, color: green]
Well specced? [shape: diamond, icon: check-square]
}
Issue ready to claim [shape: oval, icon: send]
# 関係
Issue type? > Bug
Bug > Has repro?
Has repro? > Issue ready to claim: Yes
Issue type? > Feature
Feature > Well specced?
Well specced? > Issue ready to claim: Yes出力例
Eraserプラットフォーム上で視覚的なフローチャートとしてレンダリングされます。
注意点
- これは記法ガイドです。AIにダイアグラム生成を依頼する場合は、この記法に従って定義を依頼してください
- Eraser専用の記法であり、他のダイアグラムツールとは互換性がありません
- 詳しくはEraser公式ドキュメントを参照してください