# Floorplan: a plain-English map of your app's code (haydenschmitty/floorplan) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-18 against commit 1ab7e19 (version 0.9.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/haydenschmitty/floorplan/

## Explain it to a non-programmer
Your AI assistant reads your app's code and draws a map you can click through in your browser. Every part, file and web address of your app gets a plain-English name and a one-line description, with lines showing what uses what. The map also flags common safety mistakes and highlights what your assistant just changed.

## Who it is for
- You built an app, often with help from AI, and want to see how its parts fit together without reading the code
- You join a project you don't know and want the big picture fast
- You want to see how the screens of your app talk to its server, even across separate projects
- You have a plan or spec, no code yet, and want a map of the pieces you would need
- Not for: You use an assistant other than Claude Code or Codex: the author names only those two
- Not for: You want a polished diagram for a talk or a document: the author points to Archify for that

## What it is
- Kind: scripts, command
- License: MIT
- Repository: https://github.com/haydenschmitty/floorplan

## What it does
- Scan: the pack's own scripts list every file, import, route and web request in the code, in seconds and without the assistant reading it
- Name the parts: the assistant reads READMEs and entry points and splits the app into 3 to 9 main parts, each with a plain summary
- Describe everything: the assistant writes a name and a one-line description for every file and route, from worksheets the scripts prepare
- Build the map: one self-contained page with zoom levels, guided flows, a short tour, screens and a Health list
- Mark recent work: what changed in this conversation is tagged on the map with a note tying it to what you asked for
- Show and report: the map opens in your browser; the assistant sums up the app in 3 to 5 lines and names serious Health items
- Update later: a refresh re-reads only what changed and keeps your edits
- No code yet: from a PRD or a description it draws a blueprint, the same map planned from the document
- Never cuts: Secret values: Health records only the file, line and a masked hint, never the key itself

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| floorplan | /floorplan:floorplan in Claude Code, $floorplan in Codex, or plain words ("Make me a floorplan of this app") | no | Draws, updates or plans a clickable map of your app and opens it in your browser |

### floorplan
- Asks for: Your project folder open in the assistant (or a folder holding several projects)
- Asks for: For a plan instead: a PRD, a spec or a description of the app you want to build
- Asks for: Optional: "--refresh" or the path of the code to map
- Gives: floorplan/index.html: the map, one page that works offline
- Gives: floorplan/architecture.json and descriptions/: the names and descriptions, yours to edit
- Gives: A Health list with Show on map and a ready-to-paste fix request for each issue
- Gives: A short report: the URL, the app's shape in 3 to 5 lines, serious Health items
- Gives: For a blueprint: plan.json, your assumptions and open questions
- Say: "Make me a floorplan of this app"

## Know before installing
- It switches on by itself: the skill says to use it whenever you want to see, map or understand your code, even if you don't say "visualize".
- It runs its own scripts on your computer, and in Claude Code they run without asking while the skill is in use (only its eight named scripts).
- It leaves a small local server running in the background to show the map; it stops two hours after the last tab closes.
- Nothing it makes is committed to git: the floorplan/ folder ignores itself.
- After two minutes the map asks once whether you want an email about a planned hosted version for teams; nothing is sent unless you sign up.
- The Health list is a quick automatic check, not a security audit.

## Install (official commands)
- Claude Code: `claude plugin marketplace add haydenschmitty/floorplan` && `claude plugin install floorplan@floorplan` — Run once in any terminal, then start a new session. Needs Node.js 18+. Remove: `claude plugin uninstall floorplan@floorplan, then delete floorplan/ (and the Floorplan section of CLAUDE.local.md) from your projects`.
- Codex: `codex plugin marketplace add haydenschmitty/floorplan` && `codex plugin add floorplan@floorplan` — Or in the Codex app: Plugins, Add a marketplace, enter haydenschmitty/floorplan, then install Floorplan. Start a new chat. Remove: `codex plugin remove floorplan@floorplan; codex plugin marketplace remove floorplan`.
- Uninstall: After removing the plugin, delete the floorplan/ folder and, in Claude Code, the Floorplan section of CLAUDE.local.md from each project.

## What runs on the user's machine
- Code on the machine: yes (every use of the skill (Node.js scripts; no hooks, no MCP servers))
- Network: optional
- Each map or update: Node scripts scan the code, run git read-only, and write only the floorplan/ folder in your project (map, data, worksheets in floorplan/.cache/).
- Opening the map: open.mjs starts floorplan/serve.mjs in the background on 127.0.0.1 only, with a random token, and opens your browser. It stops two hours after the last tab closes.
- A question in the Ask bar: The server runs claude -p with read-only tools, or codex exec in Codex's read-only sandbox, on your own account. That agent sends your question and the files it reads to Anthropic or OpenAI.
- Only if you say yes (Claude Code): build.mjs --claude-md writes a marked section to CLAUDE.local.md and adds that file to .git/info/exclude.
- Waitlist card: Your answer is saved to ~/.floorplan/settings.json in your home folder. Only if you click Notify me, the server posts your email and "just me" or "with my team" to a Google Cloud Run service. Use my Claude email asks claude auth status for the address.
- Export: serve.mjs --export writes one HTML copy of the map without the Ask bar, folder path or git remotes. Nothing is sent.

## Settings
- `FLOORPLAN_NO_PROMPTS`: 1 turns off the waitlist question
- `FLOORPLAN_ENGINE`: claude or codex: which agent answers Ask bar questions
- `FLOORPLAN_MODEL`: Model for Ask bar answers
- `FLOORPLAN_EDITOR`: Editor that Open in editor uses
- `FLOORPLAN_WAITLIST_URL`: Address the waitlist sign-up goes to

## Examples (from the pack's own files)
- A file and a route described for the map: output format defined in skills/floorplan/references/writing-descriptions.md
- A Recent work note: output format defined in skills/floorplan/SKILL.md

## Author's numbers (as reported, not run by AgentGid)
- An Ask bar answer on the author's demo app came back in 31 seconds from the Claude Code CLI. Source: haydenschmitty/floorplan/README.md
- A first map takes a few minutes for a small app and longer for a big one. Source: haydenschmitty/floorplan/README.md

## Steps only the person can do
- Install Node.js 18 or newer if it is missing (https://nodejs.org) Then: The assistant can run the scan and build scripts
- In Codex, approve running the map's server outside the sandbox (or run node floorplan/serve.mjs yourself) (docs/codex.md) Then: The map stays open and its Ask bar can reach Codex
- In Claude Code, say yes or no to the CLAUDE.local.md note for future sessions (skills/floorplan/SKILL.md (step 8)) Then: On yes, the assistant runs build.mjs --claude-md

## Mistakes to avoid
- Not: Start a new map from scratch when one already exists. Instead: Ask to "update the floorplan"; it runs refresh.mjs and re-reads only what changed. Why: The skill says to refresh an existing map instead of starting over
- Not: Hand-edit graph.json or index.html to fix a name. Instead: Edit architecture.json or descriptions/*.json, then rebuild. Why: Those two files are regenerated on every build
- Not: Treat a short Health list as a clean bill of health. Instead: Check what the build marks with ! under "what was checked" and treat Health as a first pass. Why: A check with nothing to look at gives a short list
- Not: In Codex, run open.mjs inside the sandbox and expect the map to stay up. Instead: Allow it to run outside the sandbox, or run node floorplan/serve.mjs yourself from the project folder. Why: The server must keep running after the command ends, and Ask needs the network to reach Codex
- Not: Send an export with Health included to anyone. Instead: Leave Health out unless needed, and share such a copy only with people you trust. Why: It lists the endpoints anyone can use and where secrets sit in the code

## What leaves the machine
- Your email and "just me" or "with my team" → Floorplan Cloud waitlist service on Google Cloud Run (floorplan-waitlist-690500262396.us-central1.run.app), Only when you click Notify me on the map's waitlist card. Opt out: Click Don't ask again, or set FLOORPLAN_NO_PROMPTS=1
- Your Ask bar question and the files the agent chooses to read → Anthropic (claude -p) or OpenAI (codex exec), on your own account, Each question asked on the map through the local server. Opt out: Don't use the Ask bar; the map itself works without it
- The map (paths, names, descriptions, structure), not the source code → Your private claude.ai account, Only if you choose to publish the map in the Claude app. Opt out: Use the local map instead

## Lines in the pack aimed at agents (ask the person first)
- "**In Codex**, run open.mjs outside the sandbox (ask for escalated permissions): the server has to keep running after the command ends, and Ask needs the network to reach Codex." (skills/floorplan/SKILL.md): Ask the person before escalating; offer node floorplan/serve.mjs in their own terminal instead
- "Bash(node ${CLAUDE_SKILL_DIR}/scripts/build.mjs *)" (skills/floorplan/SKILL.md): The skill pre-approves its eight node scripts in Claude Code (allowed-tools), so they run without a prompt; tell the person this before first use
- "Publish that file with the Artifact tool, `capabilities: {"sample": {}}`, and keep the same file path for later publishes so the URL stays stable." (skills/floorplan/SKILL.md): Publish only after the person agrees and knows the map (paths, names, descriptions) goes to their claude.ai account

## May I use it like this?
- commercial-app: yes (MIT: keep the license notice)
- redistribute-files: conditions (MIT for Floorplan; the bundled elkjs is EPL-2.0 and the fonts are SIL Open Font License, each with its own license file)
- client-work: yes (MIT allows use in work for others)

## Which one to pick
- If You want to understand and check an app you own, with a health check and highlights of recent changes: skill:haydenschmitty/floorplan
- If You want a polished diagram for a doc, a talk or a decision, or of something that isn't code: skill:tt-a1i/archify
- If You want navigable architecture diagrams of a codebase as Mermaid, in Claude Code: skill:oh-my-mermaid/oh-my-mermaid

## Works well with
- agent:claude-code: Plugin install; the Ask bar runs claude -p read-only
- agent:openai-codex: Codex plugin install; the Ask bar runs codex exec in a read-only sandbox
- tool:elkjs: The map's layout engine is a bundled copy of elkjs 0.9.3

## Works in and needs
- Works in Claude Code: plugin
- Works in Codex: plugin
- Needs Node.js 18+: All of Floorplan's scripts and the map's server run on Node
- Needs git: Read-only: tracked files, branch, commit and recent changes
- Needs Claude Code CLI (recommended): Lets the Ask bar read your real code when you use Claude Code

## How to tell it works
Open your project in Claude Code or Codex and say "Make me a floorplan of this app". After a few minutes a map opens in your browser with a short tour, and the reply sums up your app in a few lines. If cards have plain names and a Health button sits in the header, it worked.

## Related
- tt-a1i/archify
- Egonex-AI/Understand-Anything

## Safety
Install only from github.com/haydenschmitty/floorplan. Each release ships CHECKSUMS.txt so you can compare your installed copy with tools/checksums.mjs. The bundled 1.6 MB layout engine is elkjs 0.9.3; the author gives its SHA-256.
