Command Palette

Search for a command to run...

Back to skills
skill № 14858

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…

FreeRuns bundled scripts
siddu1004by 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
Sign up freeI already have an account

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) and descriptions/*.json (a name and description for every file and route).
  • Generated: graph.json and index.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.

  1. 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.
  2. Read references/blueprint.md, then references/schema.md for architecture.json.
  3. 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 as docs/prd.md and use that as source, so the map and later questions can refer back to it.
  4. Write floorplan/architecture.json as 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.
  5. 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.
  6. Show it with open.mjs (step 8).
  7. 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 review note (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

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

  1. 01Bash(node ${CLAUDE_SKILL_DIR}/scripts/build.mjs *)
  2. 02Bash(node ${CLAUDE_SKILL_DIR}/scripts/describe.mjs *)
  3. 03Bash(node ${CLAUDE_SKILL_DIR}/scripts/open.mjs *)
  4. 04Bash(node ${CLAUDE_SKILL_DIR}/scripts/plan.mjs *)
  5. 05Bash(node ${CLAUDE_SKILL_DIR}/scripts/recent.mjs *)
  6. 06Bash(node ${CLAUDE_SKILL_DIR}/scripts/refresh.mjs *)
  7. 07Bash(node ${CLAUDE_SKILL_DIR}/scripts/scan.mjs *)
  8. 08Bash(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

Compare floorplan with