/design-os-skills:code2flow-map-codebasefrom design-os-skills
Map a Next.js App Router repo into a Code2Flow user-flow canvas end to end (init → run → read the summary → report), respecting the fixed localhost port and leaving no server running. Use when a PO or teammate asks "show me the flows / screens / how users move through this app", when a PRD needs checking against code, or before writing user stories for an existing product.
Ships in design-os-skills. 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.
Everything runs locally. The tool reads the target repo, drives its own dev server through a real Chrome, and writes only into <repo>/.code2flow/ (generated, gitignored) plus the two config files below.
code2flow prints its usage and exits 0 (installed globally from the tarball, or npm run cli -- inside the tool repo).app/ or src/app/ with page.tsx). Anything else: stop and say so — other adapters are not shipped yet.<repo>/.project-agent.md → localhost_port. That port, bound to 127.0.0.1, is the only one the dev server may use. If something already answers there, report the PID (lsof -nP -iTCP:<port> -sTCP:LISTEN) and stop — never pick another port.code2flow init <repo> — creates code2flow.config.json (serverUrl from the port contract), adds .code2flow/ to .gitignore, appends a Code2Flow section to the repo's AGENTS.md/CLAUDE.md. Idempotent; run it every time.scan asks for it: routeExamples for dynamic routes (full paths such as /products/omniact, never bare slugs), features when the top URL segment is a poor grouping.code2flow run <repo> — starts the dev server (config devCommand, default npm run dev; it is executed with the shell inside the target repo, so treat it like a package script and review it in an unfamiliar repo), then scan → snapshot → stories validate → lint → export, and stops the server. Pass --url http://127.0.0.1:<port> instead when the user already runs the server. Budget: 1–3 minutes for 20 screens; a cold Turbopack compile can add a minute.run: 0 ran, no lint error · 1 ran, lint found a broken link · 2 did not run (no serverUrl, port already answers, dev server failed, malformed code2flow.stories.json) — on 2 there is no run-summary.json; fix the cause, do not retry blindly. Read <repo>/.code2flow/run-summary.json and the scan lines. Every parser gap is a counter, never a crash: needs-sample (dynamic route without URL), capture-failed, login-redirect (app behind a login → code2flow login <repo> --url … once, then run again), route-example-not-matching-route..code2flow/export/<repo>-flows.html, opens offline, safe to send), or code2flow serve <repo> on 127.0.0.1:4317 for a live session; plus the lint summary (broken links = errors, orphans/dead-ends = warnings, low-confidence = review items with file:line).Status: DONE | DONE_WITH_CONCERNS
Screens: <routes> routes + <n> state screens · Edges: high/medium/low · Captured: x/y
Gaps: <counters that need a human: needs-sample list, login-gated, capture-failed>
Lint: <errors> errors (broken links), <warnings> warnings, <info> to review
Export: <path> (<MB>)
next dev running (run stops what it started; if you started a server by hand, stop it).export prints a reminder — pass it on..code2flow/; do commit code2flow.config.json and code2flow.stories.json when the owner agrees.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jangtrinh/design-os-skills-pack --plugin design-os-skills32 skills in this plugin
/blender-agent-coreCore discipline for ANY Blender/bpy work — contract-first, purpose-first (render-only / print / both), knowledge routing, execute-verify-refine loop with the AGENT_OK/AGENT_FAIL sentinel contract, numeric-first verification, Form gate before delivery media, production gate before delivery. Activate for every task that touches Blender, before any domain skill./blender-image-to-3dReconstruct assets in Blender from reference images using only native Blender geometry, local skills, and project workflows; includes fidelity contracts, staged passes, and visual verification./blender-knowledge-workbenchRetrieve and apply this Blender project's knowledge, engineering research and portable reference methods through a checked local catalog and bounded task workflows. Use when refreshing knowledge, compiling workflow/skill references, choosing sources or assembling a Blender task reading pack; scene execution remains owned by blender-agent-core./code2flow-answer-flow-questionsAnswer questions about a scanned app's user flows from Code2Flow's machine-readable outputs — "how does a user get from A to B", "which screens are unreachable or dead ends", "where does the PRD disagree with the code", "what is behind this arrow" — with file:line evidence and confidence, without opening the canvas. Use after `code2flow run`/`scan` has produced `<repo>/.code2flow/graph.json`./code2flow-stories-from-prdTurn a PRD markdown into a Code2Flow Story Manifest (code2flow.stories.json v3, v2 structure plus optional audience captions, presenter notes, cues, Audience Names and locales for the Stage) using the prompt pack produced by `code2flow stories scaffold`, then validate it against the scanned graph and report PRD-vs-code drift. Use when a PO wants user-story lanes or a presentable Stage on the Code2Flow canvas, or when a PRD changed./design-osUse when working with DESIGN:OS CLI — Multi-runtime design operating system and CLI for Claude Code, OpenAI Codex, Gemini CLI, and Google Antigravity.