← Back to Git2Docs
Quick Start

From repo to published docs in 5 minutes

Try Git2Docs with pre-configured example repositories. Fork, connect, click generate. No credit card required.

Get started in three steps

  • 1
    Fork an example repo
    Choose one of our pre-configured example repositories and fork it to your GitHub account.
  • 2
    Connect & configure
    Sign in, connect your fork via GitHub App, and upload the provided config file.
  • 3
    Generate docs
    Click 'Generate Documentation' and watch AI create comprehensive docs in minutes.

Choose an example repository

Pick one based on your tech stack or how much time you have. All configs are pre-tuned for great results.

envconfig

kelseyhightower/envconfig
Go

Go library for managing configuration from environment variables

Size
Tiny
Time
2–3 min
Output
8–10 pages
Why this example
  • Perfect first try — smallest example
  • Focused library with clear purpose
  • Great for testing the platform quickly
Fork on GitHubDownload config

Chalk

chalk/chalk
JavaScript

Terminal string styling library for Node.js

Size
Small
Time
3–4 min
Output
12–15 pages
Why this example
  • Popular npm package with clear API
  • Beginner-friendly documentation
  • Good example of library docs
Fork on GitHubDownload config

A real run, start to finish

What follows is not an outline. It is one complete pass over Chalk — the second example above — recorded as it happened, including the numbers. Two systems do the work: Claude Code reads your code and argues with the docs; Git2Docs holds the inputs, writes the pages and keeps score. Every step below belongs to one of them, and the bands between steps are the moments the work crosses over.

13pages
78sections checked
4validation passes
38errors fixed
0left open
Git2Docs

Connect the repository and name the product

Sign in, connect the repo through the GitHub App, then set the product name and one-line description on the Configure hub.

Do this before you generate. Whatever you type as the product name is what the synthesizer calls your product in every page summary — a placeholder left in place is a placeholder in thirteen pages.

Git2Docs

Configure asks for anchored facts — and hands you the prompt

Anchored facts are the exact names, namespaces and compatibility claims no extractor can read out of source. Git2Docs does not guess them. It gives you the line to run instead.

The Anchored facts card on the Configure hub. It reads: docs/docsync-context.yaml: Not set. Author anchored facts before your first generation so it's grounded from the start — the exact names, namespaces and compatibility claims no extractor can read. The git2docs skill writes the file for you; it needs no token and no MCP connection. Step 1: Install the git2docs skill in Claude Code. Step 2: run this in your repo, followed by a copyable line reading: Use the git2docs skill to bootstrap docs/docsync-context.yaml for this repo.
No token, no connection — this one is a clipboard.
Git2Docs → Claude Code
A one-line prompt, copied from the Configure hub.
Claude Code

Install the skill and write the facts

❯ /plugin marketplace add git2docs/git2docs-skill
❯ /plugin install git2docs-skill

❯ Use the git2docs skill to bootstrap docs/docsync-context.yaml for this repo.

The agent writes the file from your checkout alone, proving each fact against a file and a line rather than recalling it. Review it like any other change, commit it, and merge it to your default branch — that is where generation reads from.

Claude Code → Git2Docs
docs/docsync-context.yaml, committed. The file in the repository is the interface — nothing is uploaded.
Git2Docs

Pick a version, pick the path, generate

Choose a release, tag or branch, then choose how you want to get to accurate docs: validate with an AI agent, or edit it yourself. The four-step path is the same every time.

The version picker with Releases, Tags and Branches tabs, main selected, and Generate Docs and Generate with review buttons. Below it, a panel titled Path to accurate docs at step 1 of 4, offering Validate with an AI agent or Edit it myself, then four numbered steps: Generate documentation, Validate with an agent, Review and apply findings, and a fourth below the fold.
Step 1 of 4 — the path is the contract for everything that follows.
The same path at step 2 of 4. Generate documentation is ticked and reads main, 13 pages, Completed, 10 of 10 synthesised, 3 subpages, all healthy, with a Publish button. Validate with an agent is the active step and reads Waiting.
13 pages, generated from the repository and the facts you just committed.
Git2Docs

A first draft exists — and it is not yet proven

A generated documentation page titled Getting Started, subtitled Installation and first command, marked Grounding: high, with a banner reading Review needed: 6 sections with low/medium confidence. The Overview and Prerequisites sections are each marked medium confidence with Validate and Edit buttons, and a sidebar lists the generated pages: Intended Audience, Problem Being Solved, Alternatives, Key Concepts, Getting Started, Command Reference, Common Workflows, Scripting and Automation, Troubleshooting and Development Guide.
Grounded, confidence-scored, and not yet checked against the code. That is the next step, not a footnote.
Git2Docs

Connect your agent, once

Install the skill, mint a token scoped to your organisation, and point the agent at this product's MCP endpoint. A .mcp.json at the repo root keeps it scoped to that checkout, which is what you want once you document more than one product.

The Path to accurate docs panel, marked Step 2 of 4, with Validate with an AI agent selected over Edit it myself. It explains that your own coding agent checks every documented command, endpoint and config value against your actual code, filing findings back and capturing anchored facts, and that it never runs anything — it validates in your environment. Numbered steps follow: install the git2docs skill with /plugin marketplace add git2docs/git2docs-skill; generate an access token, scoped to the organisation and shown once; and connect the MCP server, showing the endpoint https://git2docs.com/api/mcp/wabam/amazing-cli/agent and a choice between Project file .mcp.json, selected, and CLI command. The .mcp.json contents declare an amazing-cli-docs server of type http at that URL with the header Authorization: Bearer ${GIT2DOCS_TOKEN}, followed by the line export GIT2DOCS_TOKEN= and a masked token.
One-time setup. The file is committed, so it names an environment variable rather than carrying the token — which is minted here, organisation-scoped, and shown once.
Git2Docs → Claude Code
An MCP endpoint and a scoped token. This is the only credential in the whole run.
Claude Code

Validate everything

❯ Validate the docs against the code and file findings.

All 13 pages, 78 sections. Every runnable example executed; colour-detection claims tested in a clean environment and in a real terminal. The pass filed 19 findings, 1 anchored fact and 3 table-of-contents proposals, among them:

  • Five pages documented a NO_COLOR environment variable the library does not read.
  • About eight pages described a tagged-template API that lives in a different package entirely — so the agent staged an anchored fact to stop future generations inventing it.
  • Two troubleshooting entries had a precedence rule backwards, verified by running it.

One error it deliberately did not file: a stale compatibility claim repeated on eight pages, traced to a single line of the README. Eight findings would have corrected eight pages once. Fixing the README line corrects every regeneration from then on — so it fixed the source instead.

Claude Code → Git2Docs
Findings, anchored facts and structure proposals — evidence, not edits. Nothing changes until you apply them.
Git2Docs

Review, apply, regenerate — three separate decisions

The Findings page. It reads: what validation flagged for main. Review findings shows what will change, then you apply — it consolidates them into the brief in one pass, so you never have to open the editor. Regenerating is a separate step, so you control when it runs. Below: your agent checked 78 of 78 sections on Nov 15, nothing your code contradicts. A regeneration-scope panel offers only the pages that changed, every page, or every page and reconsider the structure. Beneath that, a table of contents section lists three proposed changes: add an API Reference page, remove Command Reference, and remove Your First Command.
Review consolidates every finding into one patch against the brief. The editor stays shut.
Two individual findings filed by the agent. The first, on the Problem being solved page, explains that the CI environments bullet implies provider detection rescues the no-TTY case, cites source/vendor/supports-color/index.js lines 106 and 130 to 144, notes it was verified with stdout piped giving colour level 0, and suggests saying provider detection applies only when the CI job's stream is a TTY. The second, on the Development guide, explains that supports-color is not a devDependency at all, cites package.json lines 53 to 63 and examples/screenshot.js, and suggests the corrected wording. Each carries an Apply fix button.
Every finding carries its evidence — file, line, and the command that proved it.
A panel headed Applied — not yet regenerated. It reads: 19 findings applied to the brief, 13 pages out of date, the docs do not change until you regenerate, one run covers all of it. A warning notes one anchored fact still to commit and explains that a committed fact can change a page that had no finding on it. Three scope options follow: only the pages that changed, every page, or every page and reconsider the structure, with a Regenerate button.
Applying changes nothing on the page. Regeneration is yours to scope and yours to time.
Git2Docs

Repeat until a pass finds nothing

Each pass runs against freshly generated pages, so each one is a fresh check rather than a re-read. Four passes on this repo: 19 → 9 → 7 → 3.

A bar chart of findings per validation pass: R1 nineteen, R2 nine, R3 seven, R4 three, each bar shorter than the last. Below it: findings found each validation pass — fewer each pass means you're converging, you're done when a pass finds nothing. A legend reads 38 fixed, 0 still open, 38 filed in total.
38 filed, 38 fixed, 0 left open. A falling line is the signal; a flat one means the applies are not landing.
Git2Docs

Lock and publish

The Path to accurate docs panel marked Locked. Generate documentation is ticked and reads main, 13 pages, Done, Completed, 10 of 10 synthesised, 2 subpages, all healthy, and the generation is marked Published with a tick.
Locked against further drift, and live.
What to expect: generation runs 2–7 minutes depending on repo size. A validation pass takes about as long as your agent needs to read the code. The run above — connect to published — was a single afternoon, and the docs that came out of it have 38 corrections in them that nobody had to find by hand.

After your first docs

  • Re-run the loop after each release — the agent checks a version's docs against that version's code
  • Use Tell AI to fine-tune a section in place, without hand-editing the brief
  • Keep docs/docsync-context.yaml current; every anchored fact is re-verified on each generation, and one whose source moved is re-anchored rather than silently dropped
  • Publish your docs, and point a custom domain at them
  • Connect your own repository and run it for real
Get started nowRead full documentation

Frequently asked questions

Do I need to keep the forked repository?

No — once you've tested Git2Docs with the example, you can delete the fork. The generated documentation will remain in your Git2Docs account.

Can I use my own repository instead?

Absolutely. These examples are just to help you understand the workflow. Once you're comfortable, connect any repository you own and generate docs for it.

What if the config file doesn't work?

Our configs are pre-tested, but if you run into issues, our auto-detection can generate a config for you. Just skip the upload step and click 'Generate Config' instead.

How much does it cost to generate documentation?

Documentation generation is included in your plan — see the pricing page for Builder, Team, and Enterprise tiers. You'll always see usage and any projected overage on your billing dashboard before a period closes.

Can I regenerate documentation if I make changes?

Yes — Git2Docs can sync with new releases and regenerate docs incrementally, only updating sections affected by code changes.