/maia:view [graph.json path] [--out output.html]from maia
Export and open a Maia knowledge graph as a self-contained HTML file
Ships in maia. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Export a Maia graph JSON to a self-contained HTML file and open it in the browser.
PLUGIN_ROOT="$HOME/.claude/plugins/cache/maia/maia/1.0.0"
[ -f "$PLUGIN_ROOT/.claude-plugin/plugin.json" ] || { echo "Plugin root not found. Run /maia:build first."; exit 1; }
BACKEND="$PLUGIN_ROOT/backend"
OUTPUT="$PLUGIN_ROOT/output"
From $ARGUMENTS:
If a .json path is given, use it as GRAPH
Otherwise, use the most recently modified *.json in $OUTPUT/ that is not theme.json:
GRAPH=$(ls -t "$OUTPUT/"*.json 2>/dev/null | grep -v theme.json | head -1)
If --out <path> is given, use that as HTML_OUT
Otherwise derive from the graph filename: $OUTPUT/<stem>.html
If no graph is found, tell the user:
No graph found. Run
/maia:build <topic>first.
VENV="$BACKEND/.venv"
[ -f "$VENV/bin/python" ] || { echo "Environment not set up. Run /maia:build first."; exit 1; }
cd "$BACKEND" && .venv/bin/python export_html.py "$GRAPH" "$HTML_OUT"
open "$HTML_OUT"
Report:
Opened:
<HTML_OUT>F — fullscreen · ← → — tour · EN / 中 — switch language
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bitqs/maia --plugin maia2 skills in this plugin