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
- 1Fork an example repoChoose one of our pre-configured example repositories and fork it to your GitHub account.
- 2Connect & configureSign in, connect your fork via GitHub App, and upload the provided config file.
- 3Generate docsClick '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
Go library for managing configuration from environment variables
- Perfect first try — smallest example
- Focused library with clear purpose
- Great for testing the platform quickly
Chalk
Terminal string styling library for Node.js
- Popular npm package with clear API
- Beginner-friendly documentation
- Good example of library docs
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.
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.
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.

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.
docs/docsync-context.yaml, committed. The file in the repository is the interface — nothing is uploaded.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.


A first draft exists — and it is not yet proven

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.

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_COLORenvironment 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.
Review, apply, regenerate — three separate decisions



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.

Lock and publish

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.yamlcurrent; 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
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.