gen-docs
Use this skill when the user asks to scan a project and update documentation (e.g., README.md).
Steps
- List the project root and identify packages, binaries, assets, and config files.
- Read
go.modto capture module name, Go version, and dependencies. - Read key source files in each package to summarize APIs and behavior.
- Update or create
README.mdwith:- Project title and one-line overview
- Directory structure (tree or list)
- Package descriptions with key functions/types
- Binary/CLI descriptions
- Dependencies and requirements
- Confirm the file path and ask if more detail (examples, usage) is needed.
When to use
- User says "update readme about overview project"
- User asks to "scan project and update doc"
- User wants a project-level doc generated from source