Skip to content

/pith-graph

Run the Pith wiki graph generator for the current project. Scans wiki/ for .md files, extracts [[wikilinks]], and opens an interactive force-directed graph in the browser as wiki-graph.html.

From plugin
9712 skills4 commands4 hooks
shell
$ npx -y skills add abhisekjha/pith --skill pith-graph --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/pith-graph
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Run the Pith wiki graph generator for the current project. Scans wiki/ for .md files, extracts [[wikilinks]], and opens an interactive force-directed graph in the browser as wiki-graph.html.

SKILL.md

pith-graph.SKILL.md
name: pith-graph
description: >
  Run the Pith wiki graph generator for the current project.
  Scans wiki/ for .md files, extracts [[wikilinks]], and opens an
  interactive force-directed graph in the browser as wiki-graph.html.

Run the graph generator against the current project's wiki.

Steps

1. Run: `python3 <pith_install_dir>/tools/graph_generator.py`

  • Where `<pith_install_dir>` is the directory where pith is installed (the directory containing this skills/ folder).
  • The script resolves `wiki/` and writes `wiki-graph.html` relative to the current working directory (project root).

2. It will open `wiki-graph.html` automatically in the browser. 3. If `wiki/` does not exist or has no `.md` files, tell the user to run `/pith wiki` first to build the wiki.

When to use

  • User runs `/pith-graph`
  • User asks to "visualize the wiki" or "show the wiki graph"

Notes

  • Output file: `wiki-graph.html` in the project root (where the user ran the command)
  • No dependencies beyond Python 3 stdlib — no install needed
  • Ghost nodes (dashed) = pages referenced by wikilinks but not yet written

One-shot. Does not persist.

Read it on GitHub ↗
Ships withpith

Status: stable — not actively adding features. Bug fixes welcome via issues. Token compression hooks for Claude Code. Install once, works in every session, zero config.

Get the whole plugin, auto-invoked
Stats
97
Stars
0
Views
12
Forks
Maintained
Maintenance
Python
Language
MIT
License
2mo ago
Last commit
3mo ago
Created

Repo: abhisekjha/pith