visualize
Render and open the current project's brief graph as an interactive HTML visualization
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Render and open the current project's brief graph as an interactive HTML visualization
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Start or resume session - loads state and continues work
First-run guided onboarding (teach the register → hunt → rest loop + a consented first hunt) OR reconfigure an existing install (shells `igris configure`). Branches on `igris onboarding status`. Usage: /setup
Guided project handoff — export a project's brain slice to a portable bundle, or import one with a preview/confirm ceremony. Usage: /handoff export <project> | /handoff import <bundle>
Release preparation - changelog generation, version bumps, release notes
Show system status report - briefs, session, blockers, git status
Search the brain's learnings with hybrid BM25+vector recall - filter by project or global, show ranked results (ID/title/snippet/score), and pull a learning into context. Usage: /search <query> [--project <slug> | --global] [--pull <id>] [--limit <N>]
| name | visualize |
| tier | opt-in |
| description | Render and open the current project's brief graph as an interactive HTML visualization |
| disable-model-invocation | false |
| allowed-tools | ["Bash","mcp__igris-brain__igris_brief_graph_render"] |
| triggers | ["/visualize","visualize briefs","show brief graph","render brief graph","brief visualization"] |
Render the current project's brief-and-edges graph (FR-111) as a self-contained interactive HTML file, then open it in the OS default browser. Wraps igris_brief_graph_render + cross-platform openers; no other side effects.
$ARGUMENTS is optional.
$CLAUDE_PROJECT_DIR basename (the active working directory)./visualize my-app).Cross-project rendering of multiple projects in one call is out of scope (see FR-111 Phase 2).
If $ARGUMENTS is non-empty, use its first token as $PROJECT. Otherwise:
PROJECT="$(basename "$CLAUDE_PROJECT_DIR")"
Call igris_brief_graph_render with:
project: resolved $PROJECToutput_path: omitted (let the handler default to ~/.igris/projects/$PROJECT/visualizations/briefs-graph-{timestamp}.html)The handler returns JSON with output_path, node_count, edge_count, goal_count, god_nodes, render_time_ms, html_size_bytes. Capture output_path as $OUT.
If the call fails (brain MCP offline, project not found, render error), surface the error message verbatim to the user and stop — do NOT attempt to open anything.
Run the cross-platform open ladder. Pass the path as an argument; never eval.
open_in_browser() {
local path="$1"
# Headless guard: no DISPLAY and no WAYLAND_DISPLAY -> print path, skip open.
if [ -z "${DISPLAY:-}" ] && [ -z "${WAYLAND_DISPLAY:-}" ] && [[ "$OSTYPE" != darwin* ]]; then
echo "(headless — open manually: $path)"
return 0
fi
# 1) macOS
if [[ "$OSTYPE" == darwin* ]]; then
open "$path" && return 0
fi
# 2) WSL — detect via /proc/version, prefer wslview, fallback to cmd.exe
if grep -qi microsoft /proc/version 2>/dev/null; then
if command -v wslview >/dev/null 2>&1; then
wslview "$path" && return 0
fi
cmd.exe /c start "" "$path" 2>/dev/null && return 0
fi
# 3) Linux
if [[ "$OSTYPE" == linux* ]] && command -v xdg-open >/dev/null 2>&1; then
xdg-open "$path" >/dev/null 2>&1 & disown
return 0
fi
# 4) Fallback — print path, do not fail
echo "(could not auto-open — open manually: $path)"
return 0
}
open_in_browser "$OUT"
Print one line summarizing the render and open:
Rendered $PROJECT graph -> $OUT ($node_count nodes, $edge_count edges, ${render_time_ms}ms)
If the open step printed a "headless" or "could not auto-open" message, that line is shown above this confirmation. Do not duplicate.
~/.igris/projects/{project}/visualizations/. Files are timestamped, never overwritten.docs/visualization.md "Empty graph?" — run the FR-105/TD-057 backfill.brain-mcp-server/scripts/render_brief_graph.ts.