/greybeard:visualizefrom greybeard
Generates grounded, file-anchored diagrams of code, architecture, processes, or changes. Reads actual files before drawing, marks unverified nodes as ASSUMED, and traces real input through current code paths.
Ships in greybeard. 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.
The optional input is the text supplied with this skill invocation, through a slash command or a plain-language request. If none was supplied, follow the no-input behavior below.
Show me the supplied input visually — or, if that's empty, whatever is currently on the table in this conversation. Skip the preamble, keep the prose short, and pick the smallest view that makes the point.
Draw what's there, not what you'd expect to be there. A diagram launders a guess better than prose ever could: boxes and arrows read as verified even when nobody opened the file. Prose hedges out loud ("it probably calls…"); a flowchart just asserts. That makes an ungrounded visual the most expensive thing you can hand someone — they'll build on it for weeks.
So, before drawing:
path/to/file.ts:42. A node you can't anchor is a node you didn't verify.ASSUMED. Sometimes a branch matters to the shape but you haven't read it (an upstream SDK, a path that's out of scope). Draw it, mark it ASSUMED, and say what would confirm it. Never quietly complete the picture; a diagram that's 90% verified and 10% invented, unmarked, is 100% untrustworthy.Pick the altitude before the form. "Show me this change" is usually a question about the process: what now happens differently, for whom, in what order. It is rarely a question about which files moved. The code diff is how the change was made; the process change is what it means. So when the topic is a change, draw the before and after of the behavior first, in the actor's words (the user, the agent, the system), and hang the file:line anchors on each step. Drop to code structure (file trees, call trees, code diffs) only when the question is about the code itself, such as where something lives, how it's wired, or what a refactor moves, or when asked. If both views earn a place, the process comes first and the code view is the second, smaller one.
Use one, sometimes a few, rarely all. Match the form to the question being asked — and to the surface it lands on.
Check the surface before you pick. A terminal has no diagram renderer: a mermaid fence there prints its own source code, which is strictly worse than the plain-text form it replaced. So in a terminal (Claude Code, a shell, a plain log) every form below must be text that is already the picture — trees, indentation, box-drawing characters. Reach for Mermaid only when the output lands somewhere that actually renders it: a published artifact, a .md file read on GitHub, the desktop or web app. When in doubt, assume it won't render and draw it as text.
Then check what this session can render with. The forms below are the floor, not the ceiling. The harness you're running in may already have a better way to show a picture than anything this skill can hand-roll. Look at the tools and skills it actually gave you this session, including tools listed only by name until you load them, not the ones harnesses usually ship. You're looking for two things. First, anything that renders: a page or artifact publisher (an Artifact tool, a board's show_page), a document tool with diagram blocks, or a whiteboard or design connector. Second, any guidance on drawing well there: a diagramming or charting skill (artifact-diagramming, dataviz), or the rendering notes in a tool's own description. What you find feeds the pick below; it doesn't make it. When the question needs more than text can carry (a dense flow, a state comparison, a chart, a UI), a renderer the harness provides beats a hand-rolled file, because it shows the picture where this harness shows things to the user.
file:line anchors and ASSUMED tags go on the rendered nodes, not only in the chat reply. A polished render looks even more verified than a text tree, so it needs the tags more.If nothing in the session renders, or you can't tell, the forms below are complete on their own.
A process or behavior change, the default for a change. The steps before and after, in the actor's words, each anchored to the code that makes it happen. Use a diff when a few steps move, and two columns when the whole sequence differs:
user submits the form app/form.tsx:88
- page waits until the agent has started
- session page opens
+ session page opens right away app/form.tsx:96
+ agent starts in the background lib/agent.ts:104
+ result streams into the open page hooks/use-session-events.ts:9
Logic or an algorithm — pseudocode:
on(save)
if content is unchanged
return cached result
write new content
return fresh result
Runtime control flow — a call tree:
submitForm app/form.tsx:88
createSession lib/session.ts:12
persistPrompt lib/session.ts:31
launchAgent lib/agent.ts:104
navigateToSession app/form.tsx:96
UI structure — a component tree, with the state and module boundaries that matter:
<SessionPage> apps/example/src/routes/session.tsx
useSessionEvents() hooks/use-session-events.ts:9
<SessionToolbar>
<RunSkillButton> packages/ui/src/run-skill-button.tsx
File responsibility, or a broad refactor — a shallow file tree:
src/
├── commands/ # parses user actions
├── sessions/ # owns session state
└── transport/ # sends API requests
Component interaction, or data flow between processes — a text sequence, drawn with box-drawing characters. This is the terminal-safe form:
form.tsx:88 daemon.ts:210
│ │
│── send expanded prompt ▶│
│ │── spawn agent agent.ts:41
│◀──── stream result ─────│
Same shape as Mermaid, no renderer required. Only if the output lands on a surface that renders diagrams (a published artifact, a .md on GitHub) is the mermaid fence the better call:
sequenceDiagram
participant UI as form.tsx:88
participant D as daemon.ts:210
UI->>D: send expanded prompt
D-->>UI: stream result
What changes in the code, when the question is about the code's structure and the surrounding shape already exists — a diff, shaped like whatever the topic is (component tree, file layout, call stack, control flow):
src/
├── commands/
+│ └── visualize.ts # expands the slash command
├── sessions/
-└── transport.ts
+└── transport/
+ ├── client.ts
+ └── stream.ts
The whole block, when most of it is new, when omitted context would hide ownership or order, or when I need a copyable target shape:
function expandCommand(command: string): string {
return `use the ${command.slice(1)} skill`;
}
One focused HTML file — for a visual UI, a layout, a state comparison, or a concept too dense for Mermaid: a diagram, an infographic, or a short slide deck, whichever fits. Match the product's real colors, type, spacing, and components; use real labels and real data. Show it through the renderer picked above, if there is one. Otherwise, write the file and open it locally:
Bash(open path/to/visualize-{description}.html)
Place each visual next to the short text it supports. Keep only the calls, files, props, states, and boundaries needed to answer the question actually being asked — an exhaustive diagram is a refusal to decide what matters. Prune every node that doesn't earn its place, then say what you left out.
Close with the anchors: the file:line list behind the drawing, and any ASSUMED node with the one check that would settle it. If the picture went to a renderer, the reply still says where it landed (a link, a path, or the panel it's on), along with the short text and the anchors, so a reader who never opens it still gets the answer.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub clawnify/greybeard --plugin greybeard7 skills in this plugin
/check-resolvableAudit the whole skill/tool library so it stays a DRY, MECE resolver — no duplicate skills, no overlaps, no gaps. Use after adding or editing a skill, or when the library feels cluttered./pressure-testPressure-test the current approach against scalability, long-term, and efficiency, then recommend the best option. Use when the user asks to pressure-test a decision or audit the session's approaches./sidenotePark a passing thought as a later-task without derailing the current one — logged, not acted on. Use when the user asks to park a thought, sends SIDENOTE:, or wants to list parked notes./skillifyTurn something you just did into a reusable skill and register it in the resolver. Use when the user says "skillify this", "make that a skill", or after completing a non-trivial procedure worth repeating./verify-responsiveThe default way to check a responsive UI — render the real page at real viewport widths in fixed-width iframes, then drive and assert it from the parent. Use whenever you need to see or verify a layout at a given width: a mobile or tablet breakpoint, or small-screen-only behavior. Reach for it first, ahead of resizing a window./wrapRule on whether this session can end here — finish the loop now, or make the work durable enough that another agent can pick it up. Use when the user asks to wrap up, hand off, or decide whether this session or worktree can be closed.