API documentation generator and diagram creator. Turn OpenAPI specs, API endpoints, and code snippets into visual workflows, process diagrams, and step-by-st...
文档
Interactive Doc Mapper
试用Create JSON-driven single-page interactive HTML documentation for app workflows between packages, services, and components. Use when a user asks for clickabl...
它能做什么
Create JSON-driven single-page interactive HTML documentation for app workflows between packages, services, and components. Use when a user asks for clickabl...
技能文档
Interactive Doc Mapper
Goal
Turn an app's package/component workflows into a portable, self-contained HTML page where every package stays visible and clicking an action highlights the handoff path, payloads, and annotations.
Use the JSON file as the source of truth. The generated HTML is a review artifact, not the place to hand-edit flows.
Quick Start
-
Inventory the app.
- Identify packages, components, services, queues, build systems, databases, and external adapters that matter to the requested workflows.
- Group them by natural boundary such as
frontend,backend,data,build, orexternal.
-
Create or update the flow JSON.
- Follow
references/flow-schema.md. - Include every visible node in
nodes. - Include each clickable action in
actions. - Put ordered handoffs in
actions[].stepswithfrom,to,label,payload, andnotes.
- Follow
-
Validate before rendering.
- Run
python3 {baseDir}/scripts/validate_flow_doc.py --input --out. - Fix unknown node references, duplicate IDs, missing action steps, or vague labels before generating the page.
- Run
-
Generate the page.
- Run
python3 {baseDir}/scripts/generate_interactive_doc.py --input --out. - Use
--print-summarywhen you want a short terminal summary for the user.
- Run
-
Verify interactively.
- Open the HTML page in a browser or use Playwright.
- Click at least two action buttons.
- Confirm the active nodes, arrow path, step list, and payload annotations change together.
Flow Authoring Rules
- Keep action IDs stable and human-readable:
invite-new-user,todesktop-build,checkout-payment,daily-sync. - Prefer concrete package/component names from the repo over generic names like
frontendorbackendunless those are actual packages. - Document what crosses each boundary: request body, event name, database row, artifact path, token claim, cache key, or build output.
- Add
riskonly when there is a real review concern such as auth, secrets, irreversible side effects, or flaky build state. - Do not put credentials, raw tokens, cookies, customer data, private URLs, or secret environment values in the JSON or generated HTML.
- If the user did not provide JSON, derive a first draft from repo inspection
and clearly state the assumptions in the JSON
descriptionor action summaries.
Quality Bar
- The output must be one HTML file that works from
file://without a build step or external CDN. - All nodes must stay visible even when a selected action uses only a subset.
- The selected action must highlight both source/target nodes and ordered arrows.
- The right-side annotation panel must explain the handoff sequence without requiring the user to read code.
- Generated pages should be dense and work-focused, not a landing page.
Bundled Scripts
scripts/validate_flow_doc.py- Validate JSON structure, duplicate IDs, action references, and weak labels.
scripts/generate_interactive_doc.py- Validate and render a self-contained interactive HTML workflow map.
References
references/flow-schema.md- JSON fields, examples, and authoring checklist.
相关技能
Use when creating an interactive explainer about a codebase, repository, or source files. Handles onboarding overviews, architecture maps, and deep-dives on...
Verify documentation coverage and generate missing docs interactively
Generate first-draft technical documentation from code analysis
Convert JSON data into clean Markdown tables and reports. Use for pasted JSON, API or log output, or any batch of JSON records.
把代码库转化为可交互的 HTML 节点图,展示模块、调用链、类关系、界面流和控件层级。