← スキル一覧に戻る

scenario
by boris-p
⭐ 0🍴 0📅 2026年1月15日
SKILL.md
name: scenario description: Create, edit, or upgrade scenarios and simulations.
Scenario Workflow
North Star
Scenarios must accurately represent how systems behave in the real world. Before implementing, first analyze and understand how the real system works - routing, failure modes, automatic behaviors. Once you have a clear mental model, proceed to implementation. If a visualization would confuse someone about how the system works, fix it.
Concepts
- Graph: Infrastructure topology (nodes + edges). Defines what exists.
- Scenario: Simulation that runs on a graph. Defines what happens (events, token flows).
- NodeState.metadata: Arbitrary JSON for dynamic state (e.g.,
{ role: "primary" }). Use for scenario-specific data that algorithms need.
Adding New Content
To add a graph:
- Create JSON in
src/data/graphs/ - Export from
src/data/graphs/index.ts
To add a scenario:
- Create JSON in
src/data/scenarios/ - Export from
src/data/scenarios/index.ts - Set
graphIdto match the target graph'sid
Key Files
- Graphs:
src/data/graphs/ - Scenarios:
src/data/scenarios/ - Types:
src/types/scenario.ts,src/types/graph-type.ts - Engine:
src/lib/scenario-engine/
Debugging
When debugging scenarios, do not run dev server. Instead:
- Analyze the JSON structure and code logic
- Write and run specific tests to verify behavior
- Check path selectors, event handlers, and token routing logic
Scenario Checklist
-
graphIdmatches a graph insrc/data/graphs/ - Exported from
src/data/scenarios/index.ts -
tokenFlowConfig.defaultEdgeDurationMsset -
requestFlowspaths use valid node IDs - Events ordered by
timestampMs
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です