npx claudepluginhub fingerskier/introspectorBuild a mindmap and guided tour of a repo or document set. Scans code or prose, then produces a Mermaid mindmap of concepts/modules and a guided reading tour.
Build a mindmap and guided tour of a repo.
introspector scans a codebase (or a set of documents) and produces two things:
It ships as a Claude Code plugin (skill, slash command, agent, and a SessionStart hook) backed by a small, dependency-free TypeScript scanner you can also run on its own.
The artifacts are written to ./.introspector/ in the current repo (overwritten on re-run):
| File | What it is |
|---|---|
mindmap.md | Markdown report: embedded Mermaid mindmap + guided tour + tables |
mindmap.mmd | The raw Mermaid mindmap diagram |
inventory.json | Structured inventory (with --json) — modules, tests, doc outlines |
Scan deterministically, then enrich semantically.
.gitignore), classifies
every file (code / test / docs / config / asset), groups files into modules,
links test files to the sources they likely exercise, and extracts document
heading outlines. It emits a deterministic baseline mindmap and inventory.json.The scanner alone is useful and runs without an LLM; the Claude layer makes the map meaningful.
This repo is itself a plugin marketplace. Add it and install:
/plugin marketplace add fingerskier/introspector
/plugin install introspector@introspector
Then, in any project:
/introspect [--mode code|docs|mixed]introspector subagent for a hands-off pass.When a project already has a .introspector/mindmap.md, the bundled SessionStart
hook surfaces it automatically so Claude starts oriented.
Requires Node.js ≥ 22.18 (the scanner runs TypeScript directly via type stripping — no build step needed).
The CLI always scans the current working directory and writes into ./.introspector/.
# scan the current repo
node src/cli.ts
# also emit inventory.json
node src/cli.ts --json
# force a mode, or just print the report to stdout
node src/cli.ts --mode docs
node src/cli.ts --stdout
Options: -m, --mode code|docs|mixed|auto, --json, --stdout, -h, --help.
import { scan, toMermaid, toMarkdown } from 'introspector';
const inventory = scan('path/to/project');
console.log(toMermaid(inventory)); // Mermaid mindmap string
console.log(toMarkdown(inventory)); // full Markdown report
.claude-plugin/ Plugin + marketplace manifests
skills/introspect/ The introspect skill (scan → enrich → write workflow)
commands/ /introspect slash command
agents/ introspector subagent
hooks/ SessionStart hook that surfaces an existing mindmap
src/ TypeScript scanner (walk, classify, scan, mindmap, report, cli)
tests/ node:test suite for the scanner
npm install # dev deps: typescript + @types/node
npm test # run the scanner test suite (node:test)
npm run check # type-check (tsc --noEmit)
npm run build # optional: compile src/ -> dist/
Apache-2.0 — see LICENSE.
7-day visitors to each marketplace page
Knowledge graph and codebase architecture intelligence for AI coding assistants
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Context7 plugins for coding agents.