一键导入
dynamo-script-analysis
專門分析當前 Dynamo 腳本邏輯,將工作區結構收斂成 Mermaid 流程圖、邏輯摘要與技術文件。當使用者要求「分析目前 Dynamo 腳本邏輯」、「產生流程圖」、「輸出 /image 類型分析」、「把 graph 解釋成可讀流程」時使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
專門分析當前 Dynamo 腳本邏輯,將工作區結構收斂成 Mermaid 流程圖、邏輯摘要與技術文件。當使用者要求「分析目前 Dynamo 腳本邏輯」、「產生流程圖」、「輸出 /image 類型分析」、「把 graph 解釋成可讀流程」時使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
專門處理 Autodesk Dynamo MCP 在多版本 Revit 的安裝、部署與最小驗證。當使用者要求「安裝 Autodesk Dynamo MCP」、「跨版本部署」、「依本機偵測版本安裝」、「建立快速安裝流程」時使用。
Specialized workflow for automating Autodesk Dynamo graph creation through MCP. Use when the user requests (1) Creating or placing Dynamo nodes (native/packages/custom), (2) Injecting Python scripts into Dynamo nodes, (3) Establishing node connections, (4) Analyzing workspace state, (5) Troubleshooting MCP integration (ghost connections, UI sync issues), (6) Working with Dynamo script libraries.
| name | dynamo-script-analysis |
| description | 專門分析當前 Dynamo 腳本邏輯,將工作區結構收斂成 Mermaid 流程圖、邏輯摘要與技術文件。當使用者要求「分析目前 Dynamo 腳本邏輯」、「產生流程圖」、「輸出 /image 類型分析」、「把 graph 解釋成可讀流程」時使用。 |
將「讀取當前工作區並轉成可讀邏輯圖」流程標準化,避免每次都用臨時 Prompt 手工猜測節點意義。
符合任一條件就啟用本 Skill:
/image 類型技術摘要。方向(direction) 由使用者決定,僅接受以下值:
TD:上到下(預設)LR:左到右RL:右到左BT:下到上若使用者未指定,預設使用 TD。
模式(mode) 決定圖表的資訊密度:
| mode | 說明 | 適用場景 |
|---|---|---|
pipeline(預設) | 工作流階段觀,自動分層並加中文描述 | 給人看的可讀邏輯圖 |
semantic | 同名節點合併並標注數量(如 Arc ×3) | 中型分析,需顯示節點比例 |
detail | 每個 Dynamo 節點對應一格(1:1) | debug、追查特定節點 |
若使用者未指定,預設使用 pipeline。
優先使用正式工具(預設 TD + pipeline,最可讀):
{
"name": "generate_workspace_mermaid",
"arguments": {
"direction": "<USER_CHOICE_OR_TD>",
"mode": "<pipeline|semantic|detail>",
"maxNodes": 60
}
}
若沒有即時連線,可改用 snapshot:
{
"name": "generate_workspace_mermaid",
"arguments": {
"snapshotPath": "tests/fixtures/workspace_mermaid_sample.json",
"direction": "<USER_CHOICE_OR_TD>",
"mode": "pipeline",
"maxNodes": 20
}
}
至少使用以下欄位:
summary: 檔名、節點數、複雜度、是否摘要截斷。logic_steps: 三到數步的人類可讀邏輯摘要。mermaid: 可直接嵌入 Markdown 的流程圖。top_node_types: 判斷主要運算類型。若需要保留分析報告,啟用 saveToFile=true:
{
"name": "generate_workspace_mermaid",
"arguments": {
"saveToFile": true,
"direction": "<USER_CHOICE_OR_TD>",
"mode": "pipeline",
"maxNodes": 60
}
}
若要避免「圖能產生但無法渲染」的狀況,先驗證再發佈。
前置需求:
npm install -g @mermaid-js/mermaid-cli建議命令(預設 TD + pipeline):
python tools/generate_mermaid_artifacts.py --save --output image/current_workspace_logic.md --validate
若要同時輸出 PNG:
python tools/generate_mermaid_artifacts.py --save --output image/current_workspace_logic.md --validate --render png
指定方向或模式:
python tools/generate_mermaid_artifacts.py --direction LR --mode semantic --save --output image/current_workspace_logic.md
若本次是驗證流程而非正式交付,完成後刪除中間輸出,避免污染版本控制。
建議清理清單:
tests/temp/*.jsonimage/*_TD.md、image/*_simplified.md.mmd、.png、.svgWindows PowerShell 範例:
if (Test-Path tests/temp) { Remove-Item tests/temp/*.json -Force -ErrorAction SilentlyContinue }
if (Test-Path image) { Remove-Item image/*_TD.md,image/*_simplified.md,image/*.mmd -Force -ErrorAction SilentlyContinue }
方向與模式範例(使用者要求由上而下):
{
"name": "generate_workspace_mermaid",
"arguments": {
"direction": "TD",
"mode": "pipeline",
"maxNodes": 60,
"saveToFile": true
}
}
bridge/python/server.pydomain/visual_analysis_workflow.mddomain/commands/image.mdtests/verify_generate_workspace_mermaid.pytools/generate_mermaid_artifacts.pySkill 版本:1.4 最後更新:2026-06-21