
documenting-legacy-codebases
Documenting an existing codebase whose documentation is missing, stale
by riekeltFree
Description
documenting-legacy-codebases is an agent skill from the riekelt/technical-writer collection, listed on skills.sh. It guides an AI agent in documenting an existing codebase whose documentation is missing, stale or untrusted, such as an inherited system, a legacy application, or a repository whose authors have left. Its premise is that the code at HEAD is the one reliable witness, and everything else, including names, comments, old documents, diagrams and the memory of remaining people, is testimony. The core principle is to describe how the system works and what to watch out for, verified against the code, with the code remaining the authority on implementation. The deliverable is a documentation tree that the next engineer trusts, and that a refactor can leave untouched unless the behavior changes. The skill says to survey the system's surfaces before writing any prose, rather than starting with the first interesting file. It excludes documenting a change being made, which the core technical-writing skill covers, and it excludes arguing a rewrite, which belongs to design documents. It also says that noticing a defect does not fix it, since the code fix sits outside this plugin. It requires the technical-writing skill as background. The listing shows it as free, and its audits all show Pass results.…
Highlights
- Code at HEAD as the reliable witness
- Surveys surfaces before writing prose
- Docs verified against the code
- Notes oddities without fixing them
Ratings & Reviews
No ratings yet
Be the first to rate documenting-legacy-codebases.
People also visit

code-documentation
The user requests to generate, create, or improve documentation for code, APIs

acquire-codebase-knowledge
The user explicitly asks to map, document, or onboard into an existing codebase

update-oo-component-documentation
Update existing object-oriented component documentation following industry best
documenting-legacy-codebases FAQ
What does the documenting-legacy-codebases skill do?
It guides an AI agent in documenting an under-documented system, with every claim checked against the code.
How do I install it?
Run: npx skills add https://github.com/riekelt/technical-writer --skill documenting-legacy-codebases
What counts as evidence?
The code at HEAD. Names, comments, old docs and diagrams are treated as testimony to check.
Does it fix bugs it finds?
No. The skill says noting an oddity is not a fix, and code fixes sit outside the plugin.
When should it not be used?
For documenting a change you are making, or for arguing a rewrite, which belongs in design docs.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best documenting-legacy-codebases alternatives?
Popular alternatives to documenting-legacy-codebases include code-documentation, acquire-codebase-knowledge and doc-audit. See all documenting-legacy-codebases alternatives

















