ワンクリックで
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.