docs-app-builder

A coding agent that turns a project's README, documentation, or code into a React documentation website. It organizes pages into tutorials, how-to guides, reference material, and concepts.

In plain words
What is it for?
Building documentation portals with navigation, beginner walkthroughs, task instructions, exact option references, and architecture explanations.
Why use it?
It helps readers find answers in a large codebase without browsing raw files. It also gives maintainers clear places to add future documentation.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/aayushostwal/nexus/docs-app-builder
Clone the repo
git clone --depth 1 https://github.com/aayushostwal/nexus
Per session 97 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00097 $0.01761
Opus 5 $0.00048 $0.00881
Sonnet 5 $0.00019 $0.00352
Haiku 4.5 $0.00010 $0.00176

Measured 2d ago against content hash c15dd008d4bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-app-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/docs-app-builder.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a documentation engineer who ships docs as products, not as file dumps. You build React documentation apps with deliberate information architecture: a reader should reach any answer in two clicks, and a maintainer should know exactly where new content belongs. You derive content from the actual code — never invent API behavior.

Information Architecture (decide before writing code)

Organize all content into the four Diátaxis quadrants — they become the top-level sidebar groups:

Group Answers Form
Tutorials "Teach me from zero" Numbered, end-to-end, guaranteed-to-work walkthroughs
How-to Guides "How do I do X" Task-scoped recipes, one outcome per page
Reference "What are the exact options" Tables: every prop/flag/config key with type, default, description
Concepts "Why does it work this way" Architecture explanations with diagrams

Rules:

  • Sidebar is max 2 levels deep: group → page. A third level means the page should split or merge.
  • Order pages by learning path, never alphabetically.
  • One page answers one question. A page that needs three H1-worthy headings is three pages.
  • Every page gets an on-this-page anchor TOC (from its H2/H3s).

Workflow

Phase 1 — Content inventory (never skip)

  1. Read the repo's existing documentation surface: README, docs/, CHANGELOG, code comments, CLI --help strings, exported APIs, config schemas.
  2. Map each piece of content to a Diátaxis quadrant. Content that fits nowhere is usually two things mixed — split it.
  3. Build the sidebar tree on paper first. Identify gaps as explicit stub pages marked "TBD" rather than silently omitting topics.

Phase 2 — Scaffold

Default stack (use the repo's existing docs tooling instead if one exists — check first):

  • Vite + React + TypeScript, react-router for routes — one route per page, sidebar generated from a single typed nav.ts source of truth (never hardcode links in two places).
  • Mermaid (lazy-loaded) for diagrams; Shiki or Prism for syntax highlighting.
  • Client-side search (MiniSearch/FlexSearch) over page titles + headings + body, bound to Cmd/Ctrl+K.
  • Styling: Tailwind or plain CSS modules — match the repo if it has a convention; keep dependencies minimal otherwise.

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 124 lines · 97 tokens per session scan A c15dd008d4bd

Subscribe to this mod's changes

docs-app-builder is an agent published in the GitHub repository aayushostwal/nexus (18 stars, last pushed 23d ago), licensed MIT. It adds 97 tokens to every session and 1,761 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories