- The code changed, but the reason is hard to find later.
- There are many files, yet the real behavior path is still unclear.
- README, source, tests, and agent notes slowly drift apart.
- The next reader has to rediscover the same context again.
A source-backed guide for agent-built code.
Keep up with the code your agents write.
When code moves quickly, context is easy to leave behind. Repo-Docs helps you turn one real run into a few clear pages that live with the source: walkthroughs, concepts, references, and sync notes.
Start with understanding, then follow the paths.
Install the repo-docs skill from this project:
https://github.com/YurunChen/repo-docs-skills
Make both repo-docs and repo-docs-zh available
in my agent skill directory.
- Cursor
- Claude Code
- Codex
- Copilot
- Windsurf
Fast-moving code needs a place for context.
Repo-Docs is not a file-tree tour or a chat archive. It keeps a modest project guide beside the source, so the next person can see why things work instead of piecing it together from old messages.
- A walkthrough follows one real run from entry to output.
- Short concept pages name the ideas worth remembering.
- Reference pages keep commands, fields, schemas, and evidence easy to check.
- A sync note tells future agents when a page needs a small update.
GitHub examples
A few real repositories, with the generated docs visible.
These examples come from public GitHub repositories that are not skill projects. Each panel shows the files Repo-Docs generated, and each file opens the Markdown content written from inspected source.
Evidence loop
Keep the guide close to what the code actually does.
Start with one behavior you can observe, name the concepts that help explain it, and keep the exact source evidence nearby. When the code changes, update the smallest page that needs it.
Generated artifacts
What Repo-Docs generates
The output is intentionally small. Instead of one long README, Repo-Docs creates a few pages with clear jobs, so reading and lookup both stay manageable.
Skill modes
Use the mode that matches where the repo is.
You can use Repo-Docs when a repo is new, when docs drift, or when a plan needs a clearer starting point. In each case, the work starts by checking what is actually true.
What are you trying to do?
Start a useful guide for a repo that already exists.
Refresh the pages affected by code, config, data, or test changes.
Separate planned work, open questions, and confirmed facts before code exists.
Improve the guide when a real question shows what readers still need.
Sync loop
A practical loop for keeping docs current.
Open the page that should help answer the question.
Check the current source, command, artifact, config, or data.
Update the page only when the gap is likely to matter again.
Answer from evidence and leave the repo a little easier to continue.
Open source
Help make Repo-Docs easier to trust and maintain.
Repo-Docs is open source. If it misses something in a real workflow, issues and PRs are welcome. Small fixes, examples, and clearer docs all help.