원클릭으로
magic-graph
Specification Knowledge Graph — builds, analyzes, and visualizes the SDD artifact graph
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Specification Knowledge Graph — builds, analyzes, and visualizes the SDD artifact graph
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | magic-graph |
| description | Specification Knowledge Graph — builds, analyzes, and visualizes the SDD artifact graph |
| handoffs | [{"label":"Fix spec gaps","workflow":"magic-spec","prompt":"Orphaned files or missing Implements links found. Proceed to create or amend specifications.","condition":"gaps_detected"},{"label":"Adjust workspace boundaries","workflow":"magic-rule","prompt":"Community detection found boundary drift or split suggestions. Update workspace.json or RULES.md conventions.","condition":"boundary_drift"},{"label":"Run full ventilation","workflow":"magic-analyze","prompt":"Run full Mode C Ventilation to combine graph findings with registry, coverage, and rationale audit.","condition":"deep_audit_needed"}] |
Analysis triggers: "Build graph", "Spec graph", "Graph analysis", "Knowledge graph", "Community detection", "Workspace discovery".
HTML triggers: "Visualize graph", "Graph HTML", "Show graph", "Open graph visualization", "Generate graph visualization".
Executor:
node .magic/scripts/executor.js <script>for all commands. Read-only: this workflow does not modify.design/artifacts. Findings may trigger handoffs tomagic-specormagic-rule.
Run the full extract → build → analyze → export pipeline over .design/ SDD artifacts:
node .magic/scripts/executor.js build-spec-graph
Report to the user:
status ≠ Stable as PRIORITY_SPEC.workspace.json but not covered by any spec's Canonical References. Each orphan is a gap candidate.Implements: link to a parent spec. Report workspace and spec name.Run label propagation on the code + markdown dependency graph:
node .magic/scripts/executor.js detect-communities --include-md
Report:
LOW ALIGNMENT / WELL ALIGNED signal.BOUNDARY_DRIFT advisory.Generated only when invocation matches an HTML trigger phrase. Skip for analysis triggers.
node .magic/scripts/executor.js build-spec-graph --html
Output: .design/spec-graph.html — interactive vis.js visualization (community coloring, node inspector, search).
Inform user: "Graph visualization saved to .design/spec-graph.html. Open in a browser to explore."
Produce a consolidated graph advisory with 🟢/🟡/🔴 signal:
Graph Checklist
☐ build-spec-graph executed; god nodes, orphaned files, bridge specs reported
☐ detect-communities --include-md executed; Jaccard alignment reported
☐ PRIORITY_SPEC advisory issued for unstable god nodes (if any)
☐ BOUNDARY_DRIFT advisory issued for low-Jaccard communities (if any)
☐ Split suggestions reported for oversized communities (if any)
☐ Advisory Signal (🟢/🟡/🔴) issued
☐ [HTML only] spec-graph.html generated at .design/spec-graph.html
Workflow for simulating and validating Magic SDD engine logic.
Project Sync & Hygiene — synchronizes versions, documentation, and engine metadata
Session resume briefing — current position, progress, blockers, and the one next command
Workflow for executing tasks from the project plan.
Workflow for orchestrating tasks and generating the implementation plan.
Initialize Magic Spec development environment with junctions and symlinks.