/pothos:explain [topic]from pothos
Explain a flow, an architecture, a codebase area, a plan or a concept as a local HTML page with diagrams that stays available to later sessions. Use when the user asks to explain, visualize, map, diagram, critique the architecture of, or help them understand something ("explícame", "ayúdame a entender", "cómo funciona", "critica el diseño de", "how does X work", "show me the architecture", "make me a visual of the plan"). Also use it to find an earlier explanation before writing a new one.
Ships in pothos. 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.
Read when SKILL.md points to them; scripts run unread.
Turn an explanation into a local HTML page the user can open any time, from any session, without Claude. Pages are private and persistent: they live under the Pothos home, next to the contracts, never inside the repository.
Every page loads ../nav.js, a sidebar with all pages of the repository, children nested under their parent, and the current page's sections and diagrams. register rebuilds it, so older pages always show the newest list.
Output: a folder with index.html, its diagrams/, a summary.md other agents can read in a few lines, a line in the repository's INDEX.md, and the page open in the browser.
Every command below calls "${CLAUDE_SKILL_DIR}/scripts/artifact.py". Write that full path in each command: shell variables do not survive between tool calls.
python3 "${CLAUDE_SKILL_DIR}/scripts/artifact.py" put <folder> <relpath> and a heredoc, never with the file-editing tools. The folder is outside the project on purpose, where those tools prompt or are denied; put is the intended path, not a workaround. To change a file, read it and put the whole new version./pothos:archify, pinned in vendor.json). If it cannot run, for example because Node is missing, say so and use a table or a list instead of drawing SVG by hand.python3 "${CLAUDE_SKILL_DIR}/scripts/artifact.py" list. If a page already covers the topic, update it instead of starting a new one, and say what changed.references/codebase-questions.md, which adapts the vendored how method. Otherwise read the docs, plans or conversation the explanation needs. Either way, note the files and the commit.python3 "${CLAUDE_SKILL_DIR}/scripts/artifact.py" new --slug <kebab-slug> --title "<Title>" --lang <language code of the conversation> prints the folder path. When the page goes deeper into a topic an earlier page covers, add --parent <that page's folder name> so the sidebar nests it there; link from the parent page to it as well. parent <folder> <parent folder|none> moves a page later.pothos:archify skill. Write its candidate JSON with put into <folder>/diagrams/, run archify's commands from inside the artifact folder so its working files stay there, and set its output to diagrams/<name>.html. Then run python3 "${CLAUDE_SKILL_DIR}/scripts/artifact.py" light <folder>/diagrams/*.html so they open in the light theme. Choose the archify type by the question: architecture for parts, workflow for steps, sequence for back-and-forth, dataflow for where data goes, lifecycle for states.data-pothos-placeholder notice: it is only there so a page opened too early does not look empty. Read the template the folder already has, then put the filled index.html, following references/writing.md: the answer first, then sections, each diagram in a figure with its caption.summary.md with put. First line: the answer in one sentence. Then at most fifteen lines of key facts, names and decisions, and the sources. This is what other agents read, so it must stand alone.python3 "${CLAUDE_SKILL_DIR}/scripts/artifact.py" register <folder> (it also removes archify's receipt files from diagrams/; the diagrams themselves stay), then python3 "${CLAUDE_SKILL_DIR}/scripts/artifact.py" open <folder>/index.html.The session hook tells every session, at start, where this repository's INDEX.md is and to read the relevant summary.md before investigating a covered area. Inside this skill, python3 "${CLAUDE_SKILL_DIR}/scripts/artifact.py" list prints the same index. Open the HTML only when the summary is not enough.
assets/nav-runtime.js (opens in a new tab)assets/page.html (opens in a new tab)references/codebase-questions.md (opens in a new tab)references/writing.md (opens in a new tab)scripts/artifact.py (opens in a new tab)vendor/how/LICENSE (opens in a new tab)vendor/how/references/critic-prompt.md (opens in a new tab)vendor/how/references/critique-rubric.md (opens in a new tab)vendor/how/references/explainer-prompt.md (opens in a new tab)vendor/how/references/explorer-prompt.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub devictoribero/pothos --plugin pothosOther plugins' skills for the same job
29 skills in this plugin
/archifyCreate validated architecture, workflow, sequence, data-flow, lifecycle/state, ERD, class, tree, timeline, and waterfall diagrams as explorable standalone HTML with dark/light themes, motion and image/SVG/WebM export. Accept requirements or Mermaid; inspect repository evidence for code-backed diagrams. Use when visualizing systems, API calls, pipelines, schemas, histories, timings, or everyday steps, parts, relationships and states. Also turn an answer into a one-page explainer, with the conclusion first, structured panels, native diagrams and charts, when the user asks for a page, an explainer or an answer to share (做成一页, 用页面讲), or proactively when the user's rules opt in with an [archify explainer: ...] line. Not for dashboards./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".