Project docs
Neotexa writes your project's documentation into its repository: the essential docs any team needs to run the code, and optional sets for selling it, rolling it out or handing it over. What the code can tell is generated from it, with no AI and no credits.
The essential docs
Each has its own switch, off until you turn it on on the project's Docs page, which appears in Studio, once the project is built: docs are never asked or shown on a Draft or a Blueprint, and a new project starts with none. Switched on, a doc is written straight away. They live in neotexa/docs/essentials/:
| Doc | How it's made | What it holds |
|---|---|---|
| Architecture | Code + AI | System context, components, key flows and decisions; then, from the code, the tech stack, services and data model. |
| Development | From code | Prerequisites and versions, quick start, services, every setting with its comment (never a secret's value), scripts, tests, layout. |
| API | From code (with an OpenAPI spec), else AI | Every endpoint: its auth, parameters, body and responses, and the shared schemas. |
| Operations | Code + AI | The runbook: deploying, health and logs, backups, upgrades, troubleshooting; then the services and settings. |
| Security | Code + AI | Sign-in and sessions, roles, data sensitivity and known gaps; then the secrets and which endpoints need a session. |
| Changelog | From code | The prompts built, by version. |
Generated from the code
Every app Neotexa starts describes its API in an OpenAPI spec kept in its repository and checked by its tests, so its API doc is generated from it, and the running app serves interactive API docs (Scalar) at /docs/, where each endpoint can be tried — the reader links to the preview's. Development, the changelog and the reference sections of the other docs are generated the same way, deterministically, and kept up to date after every Lab prompt, for free. Each doc says how it was made: From code, Code + AI or Written by AI. The AI writes only what the code can't say, reading the code itself; what it can't find out it writes as unknown, never made up.
Optional sets
| Set | What it holds |
|---|---|
| Business | The PRD, market, competitors, pricing, a financial plan (assumptions, 3-year P&L and cash flow, break-even, unit economics), go-to-market, pitch, landing page, roadmap and sell-or-scale docs. |
| Legal | The privacy policy, terms, cookie policy, data processing agreement, subprocessors, GDPR record of processing and accessibility statement, plus a DPIA and an AI notice when they apply. Drafted from what the code really does (its outside services, the personal data it keeps, payments, AI) — drafts for a lawyer to review, not legal advice. |
| Internal | The rollout plan, the administrator's guide, a training guide for the team and the support notes. |
| Client | The handover guide, how to check each acceptance criterion, the operations guide and the changelog. |
A set switched on is written straight away, and kept in step when the project ships (Write the docs on ▶ Ship it).
The Docs page
One table is the one place to act: each row is one doc (or one set), and each says where it goes. There is no Write button: selecting where a doc goes writes it there.
- 1Each row: the doc, one line on what it holds, how it was made, and its status — not written, up to date (with the version it was written for), or out of date once the project has moved on, with a small Update link that writes it again for the current version (asked first, with the credits it may need) and sends it to its targets again. While it's written it says Writing… with the time it's taken.
- 2Write to: a selector per target — PDF, always there, and each of the project's destinations (Notion · page, Confluence · space › page). With none set up, a small Add Notion or Confluence link opens the Destinations picker (or Settings → Docs when nothing is connected). The choice is kept for the project, and every later write of the doc follows it.
- 3Selecting a target writes there right away. On a doc up to date, the PDF downloads at once (and ↓ PDF stays on its selector); Notion or Confluence is synced at once, with no AI and no credits, and its selector links to the page (✓ ↗). On a doc not written yet, or out of date, it asks once first — Writing Security uses ~N credits. Write it and send it to Notion? — then writes it and sends it there; cancelled, the selector goes back. A doc switched off is switched on (asked first: that writes it). While it runs, the selector says Writing… or Sending… with the time it's taken. An error, or a page edited there by hand, shows under the selectors.
- 4Unselecting Notion or Confluence asks first — Stop writing Security to Notion? — then archives its page there at once, never deleted (if a write is already running there, it says it's archived on the next update). Unselecting the PDF just stops offering it.
- 5A doc written can be switched off (asked first): it's taken out of the repository. Neotexa also brings the essential docs up to date at Ship it and every few Lab prompts, when the code moved on.
- 6A doc's name opens the reader under the table: the doc as a page, with its contents (a click jumps to a section), when it was last updated, and its PDF. Download all as PDF puts every doc written in one designed PDF — no Notion or Confluence needed.
Writing a doc with AI uses credits; anything generated from the code — Development, the changelog, an API doc from a spec — uses none, and the page says so. On a phone each row stacks: name and status, then its targets.
Notion and Confluence
The Destinations button picks where Notion and Confluence are: Confluence Cloud (a space and a parent page — the space's home page unless you pick one) or Notion (a parent page shared with Neotexa's docs integration). They go through the workspace's docs connections in Settings → Docs — apart from its backlogs', with their own permissions. With none connected, it says so, with the way there; connected, Choose where to write them picks the place. Only someone who may build the project sets it. A place whose account isn't connected for docs any more says to connect it again in Settings → Docs and pick it again — in the picker and on the table.
- 1Each doc written there becomes one page, titled with the project's name and the doc's. Its page is kept, so the next write edits it in place; a doc that hasn't changed isn't written again. Tables, code, headings, callouts and links to the other docs come through (the API reference opens with a table of contents in Confluence).
- 2A doc in several parts — the Business docs (PRD, Market, Competitors, Pricing, GTM…), the Legal docs and the other docs sets — is one page, DeployHub: Business, with a short index linking its parts, and each part is a page under it: never ten loose pages beside the others. Parts written loose by an earlier write are moved under it on the next write; where they can't be moved, a part Neotexa wrote and nobody edited is archived and written again under it, and one edited by hand stays where it is. Only pages Neotexa wrote are ever moved or archived.
- 3It follows by itself whenever the docs are written again — a target selected, Update, Ship it, the docs generated from the code after a Lab prompt — to the targets each doc has selected.
- 4A page someone edited there by hand is never overwritten unasked: it stays as they left it and Neotexa's new text goes to a page under it, (Neotexa update). The table marks it Edited there: theirs is kept, links to Neotexa's update, and Overwrite (asked first) puts Neotexa's text on the page instead. A Confluence page that already has the title in the space (say, the destination picked again under another parent) is treated the same way.
- 5A target unselected for a doc has its page archived there at once; a doc switched off has its page archived on the next write (Confluence's archive, Notion's trash) — never deleted. A page someone deleted there stays deleted until Write it again.
The picker shows when each destination was last written, how many pages, and a link to each. Sending is pure conversion: no AI and no credits. Through the API and MCP: set_doc_targets chooses each doc's targets and write_docs_to writes and delivers them — with targets and rewrite: false it's what a selector does: one request that keeps the targets and sends or archives at once, never writing a doc again.