floorplan
Draw a floorplan of an app's codebase (one repo or several side by side), an interactive node-graph map where every subsystem, module, file and HTTP route has…
by siddu1004★ 43 GitHub stars
Install floorplan in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Floorplan
You produce floorplan/ at the codebase root: a floorplan of the app that someone new can read like a system diagram. Every card shows a human name and a one-line description, with the real path in small type underneath.
- You write:
architecture.json(subsystems, modules, flows) anddescriptions/*.json(a name and description for every file and route). - Generated:
graph.jsonandindex.html.
The scripts do the mechanical work: finding repos, parsing imports and routes, matching HTTP calls to endpoints, layout and rendering. Your job is the part only a reader of the code can do: deciding what things are and saying so plainly.
Existing map: !node ${CLAUDE_SKILL_DIR}/scripts/status.mjs || true
Arguments: $ARGUMENTS
In Codex (or any agent that left the two lines above unfilled): ${CLAUDE_SKILL_DIR} in every command here means this skill's folder, the one holding this SKILL.md, so use its path. Run node <that folder>/scripts/status.mjs from the codebase root yourself to see whether a map exists, and take the path and --refresh from the user's request. The scripts notice they're running under Codex, so the map's Ask bar and "Fix with" prompts use Codex.
Nothing built yet? Draw a blueprint
If the user wants to plan something they haven't built ("here's my PRD", "I want to build an app that…", a long description of a system), make a blueprint: the same map, planned from their document instead of scanned from code. Use this path when there's no code for the system yet, even if the folder holds other things. If the code exists, make a normal map.
- Read the input. A PRD file, a pasted message, or a document they point you at. Ask 2–3 questions only if something fundamental is open (who uses it, web or mobile, does anyone sign in, does money change hands); otherwise decide and record it as an assumption.
- Read references/blueprint.md, then references/schema.md for architecture.json.
- Write
floorplan/plan.json: every planned file and endpoint, what each screen calls, which outside services and data each part uses, who may use each endpoint, your assumptions and the open questions. If the PRD is only in the chat, save it asdocs/prd.mdand use that assource, so the map and later questions can refer back to it. - Write
floorplan/architecture.jsonas for a code map (parts, external nodes for the services and data plan.json names, 1–3 flows for the PRD's main user stories, a tour), with globs covering the planned paths. Plain language for everyone, as in step 4 below. - Run
node ${CLAUDE_SKILL_DIR}/scripts/plan.mjs <root>, then build.mjs (step 5 below). Fix what they report until both are clean. Skip describe.mjs and recent.mjs: names and descriptions come from plan.json. A blueprint adds no notes to CLAUDE.local.md, since there's no code to look up yet. - Show it with open.mjs (step 8).
- Report (instead of step 8's report): the URL; the shape of the system in 3–5 lines; the stack you chose; your main assumptions; and the design review's questions and warnings. Tell them each part has Build this with Claude (or Codex) for a ready request to build just that part; that they can switch the map's Ask bar to Change and ask for additions or changes ("also plan out refunds"), and the map redraws with what changed highlighted (the design review's Resolve on the map fills in such a request, so open questions just need their answer); that plan.json and architecture.json are theirs to edit or to ask you to change; and that the map stays out of git.
To change a blueprint, edit plan.json and architecture.json and run refresh.mjs, which redraws it from plan.json. Once the code exists and the user wants a map of it, run refresh.mjs <root> --from-code, then carry on as for a refresh. plan.json stays where it is.
A map already exists? Refresh it instead
If the status above shows an existing map, don't start over. Run:
node ${CLAUDE_SKILL_DIR}/scripts/refresh.mjs <root>
It re-scans, compares content fingerprints against the last build, and does the bookkeeping without spending tokens:
- carries descriptions over to moved or renamed files and endpoints;
- drops entries for deleted files;
- flags entries whose exports or routes changed with a
reviewnote (edits inside function bodies don't count); - rebuilds;
- prints what changed and a short NEXT list.
Do only what NEXT asks:
- add globs for new directories that landed in "unassigned";
- run describe.mjs (step 6), which now only produces worksheets for the new and flagged items;
- check module summaries and flows if the change was large.
A typical refresh after a few hours of work is a handful of worksheet entries. Then mark recent work (step 7), and show it and report (step 8). Always show it, even when nothing changed: the user asked to see their floorplan.
Workflow (first run)
The codebase root is
Allowed tools
Tools this skill is permitted to call.
- 01
Bash(node ${CLAUDE_SKILL_DIR}/scripts/build.mjs *) - 02
Bash(node ${CLAUDE_SKILL_DIR}/scripts/describe.mjs *) - 03
Bash(node ${CLAUDE_SKILL_DIR}/scripts/open.mjs *) - 04
Bash(node ${CLAUDE_SKILL_DIR}/scripts/plan.mjs *) - 05
Bash(node ${CLAUDE_SKILL_DIR}/scripts/recent.mjs *) - 06
Bash(node ${CLAUDE_SKILL_DIR}/scripts/refresh.mjs *) - 07
Bash(node ${CLAUDE_SKILL_DIR}/scripts/scan.mjs *) - 08
Bash(node ${CLAUDE_SKILL_DIR}/scripts/status.mjs *)
Bundled files
- agents/openai.yaml
- assets/favicon.png
- assets/graph-query.js
- assets/logo.png
- assets/query-cli.mjs
- assets/serve.mjs
- assets/ui/05-theme.js
- assets/ui/06-blueprint.js
- assets/ui/10-glossary.js
- assets/ui/20-health.js
- assets/ui/25-recent.js
- assets/ui/30-screens.js
- assets/ui/40-tour.js
- assets/ui/50-cloud.js
- assets/ui/60-export.js
- assets/viewer.html
- references/blueprint.md
- references/choosing-boundaries.md
- references/schema.md
- references/writing-descriptions.md
- scripts/build.mjs
- scripts/describe.mjs
- scripts/lib/agent.mjs
- scripts/lib/blueprint.mjs
- scripts/lib/claudemd.mjs
- scripts/lib/common.mjs
- scripts/lib/extract.mjs
- scripts/lib/health.mjs
- scripts/lib/names.mjs
- scripts/lib/resolve.mjs
- scripts/lib/routes.mjs
- scripts/lib/screens.mjs
- scripts/open.mjs
- scripts/plan.mjs
- scripts/recent.mjs
- scripts/refresh.mjs
- scripts/scan.mjs
- scripts/status.mjs
FAQ
What does the floorplan skill do?
Draw a floorplan of an app's codebase (one repo or several side by side), an interactive node-graph map where every subsystem, module, file and HTTP route has a human-readable name and a one-line description, connected by the imports and HTTP calls between them, at several zoom levels. It is saved as a self-contained floorplan/index.html in the codebase. Use whenever the user wants to visualize, map, diagram, document or get an architectural overview of a codebase, repo or monorepo, understand how their app works or is connected under the hood, onboard onto unfamiliar code, see how the frontend talks to the backend, or update an existing floorplan, even if they don't say "visualize". Also use it before any code exists: when the user shares a PRD, a spec or a description of something they want to build and asks what pieces it needs or how they'd fit together, it draws a blueprint, the same map planned from the document.
How do I install the floorplan skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the floorplan skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…