一键导入
arch-merge-conflict
Merge two workspace.json commits, resolving merge conflicts while preserving element coordinates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Merge two workspace.json commits, resolving merge conflicts while preserving element coordinates
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a solution architecture document (SAD) and update Structurizr DSL based on input documents from the input folder
Collect all containers from Structurizr DSL and generate a resource table in resources.md
Export all Structurizr views to SVG files
Conduct an architecture review of a solution (SAD) from 5 role perspectives and generate a findings report
| name | arch-merge-conflict |
| description | Merge two workspace.json commits, resolving merge conflicts while preserving element coordinates |
| allowed-tools | Read, Bash, Write, Edit, AskUserQuestion, TodoWrite |
| user-invocable | true |
Merge two versions of the structurizr/workspace.json file from different commits, resolving merge conflicts to produce a valid JSON while preserving element coordinates.
Two commit IDs separated by a space, e.g.: abc1234 def5678
The first commit is the primary (its structure takes priority), the second is supplementary (missing data is taken from it).
If no arguments are provided — ask the user via AskUserQuestion:
Extract structurizr/workspace.json contents from both commits:
git show <primary_commit>:structurizr/workspace.json > /tmp/workspace_base.json
git show <supplementary_commit>:structurizr/workspace.json > /tmp/workspace_extra.json
Assemble the resulting workspace.json, following these rules:
elements sections inside views:
"elements": [
{
"id": "3",
"x": 240,
"y": 142
}
]
python3 -c "import json; json.load(open('structurizr/workspace.json'))"
scripts/validate-dsl.sh
Report to the user:
Delete temporary files:
rm -f /tmp/workspace_base.json /tmp/workspace_extra.json