Skip to content

docs: restructure the README into a short landing page and topic guides - #70

Merged
scott-lowe-vapi merged 1 commit into
mainfrom
docs/readme-restructure
Oct 7, 2026
Merged

scott-lowe-vapi merged 1 commit into
mainfrom
docs/readme-restructure

Conversation

@scott-lowe-vapi

@scott-lowe-vapi scott-lowe-vapi commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Value

V.A.L.U.E. tier: small — docs only. This restructures the README for readers arriving from the Vapi docs. Not micro: more than 200 lines and 8 files.

  • Problem: the README was 1,096 lines written for four audiences at once: newcomers, daily operators, promotion and CI admins, and coding agents. The first-run path was spread across three sections, some content appeared two or three times, and the docs/learnings/ field guide was only mentioned in a file tree.
  • Who it affects: first-time visitors, who decide in seconds whether this is for them, and existing users looking for a specific topic.
  • What changes:
    • A 275-line README, covering:
      • what the repo does, and a diagram;
      • a five-step quick start: get a private copy, install, connect an org, deploy, test;
      • core concepts, including what's committed and what isn't;
      • a one-line command table and guide links;
      • the field guide, and staying up to date;
      • security, contributing and license.
    • Getting a copy: clone-and-repush keeps upstream history, so updates are an ordinary merge. "Use this template" (the repo is a template) needs --allow-unrelated-histories once. A public fork would publish the user's configuration.
    • Long-form content moves verbatim into docs/guides/: commands, workflows, file formats, PR checks, promotion, how it works, configuration, troubleshooting. Only heading levels and relative links change, so this PR reviews as a move; docs: edit the guides for new readers and fix inaccuracies #71 edits the content.
    • References to old README sections (in vapi-checks.yml, AGENTS.md, SECURITY.md, simulations.md and the starter example) now point at the guides.

Evidence of value

  • Nothing lost: of the old README's 795 content lines, 755 appear verbatim in the new README or a guide. The other 40 are the sections rewritten in the new README (intro, quick start, supported resources, API links) or retitled headings, and I checked each one by hand.
  • Links: all links and anchors across 45 markdown files resolve.
  • Tests: npm test passes, 496 tests, including the snippet test, which now reads the file formats guide.

Testing plan

  • The link checker and the examples snippet test cover the moved content.
  • The Mermaid diagram renders on GitHub (checked on this branch's README).
  • Not tested: how the README renders on the Vapi docs site, if it's embedded there rather than linked.

Stacked on #69.

🤖 Generated with Claude Code

Comment thread README.md
Comment thread docs/guides/file-formats.md

@chris-garber-vapi chris-garber-vapi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

scott-lowe-vapi commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

  • Oct 7, 5:47 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Oct 7, 5:55 PM UTC: Graphite rebased this pull request as part of a merge.
  • Oct 7, 5:55 PM UTC: @scott-lowe-vapi merged this pull request with Graphite.

@scott-lowe-vapi
scott-lowe-vapi changed the base branch from docs/public-release-scrub to graphite-base/70 October 7, 2026 17:52
@scott-lowe-vapi
scott-lowe-vapi changed the base branch from graphite-base/70 to main October 7, 2026 17:53
The README was 1,100 lines serving newcomers, daily operators, promotion
and CI admins and coding agents at once, with its first-run path spread
across three sections. It's now a 275-line landing page: what the repo
does, a diagram, a five-step quick start, core concepts (including what is
and isn't committed), a one-line command table, guides, the Vapi field
guide, staying up to date, security, and contributing.

Long-form sections move verbatim into docs/guides/ (commands, workflows,
file formats, PR checks, promotion, how it works, configuration,
troubleshooting); only heading levels and relative links change. Of the
old README's 795 content lines, 755 moved verbatim; the rest are the
sections rewritten in the new README. Editing the moved content is a
separate change, so this one can be reviewed as a move.

New README content:
- getting a private copy: clone and repush (keeps upstream history), or
  Use this template, and why not a public fork;
- staying up to date, including the template's unrelated-history merge;
- the docs/learnings field guide surfaced as a section.

References to old README sections (workflows, AGENTS.md, SECURITY.md,
simulations.md, the starter example) now point at the guides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@scott-lowe-vapi
scott-lowe-vapi force-pushed the docs/readme-restructure branch from 3cd9c83 to 453459c Compare October 7, 2026 17:54
@scott-lowe-vapi
scott-lowe-vapi merged commit 2011b05 into main Oct 7, 2026
3 checks passed
scott-lowe-vapi added a commit that referenced this pull request Oct 7, 2026
## Value

**V.A.L.U.E. tier:** small — docs only. It edits the guides that #70 moved, for readers who don't know the repo's history, and fixes inaccuracies. Not micro: more than 200 lines.

- **Problem:**
  - **Insider wording:** the moved content read like a changelog ("used to spawn duplicates", "the CLI now refuses", "P0-1 regression suite").
  - **Duplicates:** some content still repeated itself.
  - **Inaccuracies:** a few statements were wrong, and two troubleshooting tips could make things worse.
- **What changes:**
  - **Workflows:**
    - one section each for deploying (including scoped deploys), starting fresh, creating new resources, pulling, testing, recovering and cleaning up;
    - the AI-agent callout becomes a note for the user, since `AGENTS.md` already instructs agents.
  - **Commands:** one sentence per command, and the false claim that every command is interactive is fixed. `migrate` moves to "Upgrading from an older version".
  - **Configuration:** documents every setting users set: per-org `.env` values and generated bindings, precedence, the promotion and PR check secrets and variables, config files, and the CI and debug variables.
  - **How it works:** the stale project tree (a third of `src/`, 5 of 68 tests, internal labels) becomes a short "Where things live" table. The guide now says `push` deletes only with `--force`.
  - **Troubleshooting:**
    - it no longer advises deleting a state entry, which made the next deploy treat the file as new;
    - it no longer suggests quietly editing engine code. It points at `audit`'s per-finding suggested fixes, and at opening an issue.

## Evidence of value

Every changed claim was checked against the code:
- `apply` forwards type and path arguments to `pull` and `push`, which share the parser that rejects bare IDs;
- `setup`, `apply`, `pull`, `push`, `cleanup` and `call` are the only interactive commands;
- environment variables beat `.env` files, and `.env.<org>.local` only fills gaps;
- the EU base URL is `https://api.eu.vapi.ai`;
- `push` prints "Deletions: Disabled (pass --force to enable)";
- `audit` reports `state-ghost` and `state-uuid-collision` with a suggested action.

All links resolve and `npm test` passes, 496 tests.

**Found while checking, not changed here:** `src/config.ts` comments `.env.<org>.local` as "local overrides", but the loader reads it after `.env.<org>` and only fills unset variables, so it can't override anything. The guide documents the actual behaviour. Fixing the code or the comment is a separate change.

## Testing plan

- The link checker and `npm test`.
- **Not tested:** the commands and workflows against a real org (this PR changes no commands).

Stacked on #70.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants