Project Documentation Generator
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_dd91c74f/project-doc-generator.
About this skill
Problem
Code may compile and run, but handoff can still be difficult when structure, module boundaries, API contracts, database fields, and deployment steps are scattered across source files. Manual documentation often misses edge cases and version history.
How it works
The skill treats the project code as the source of truth. It inspects directory layout, core files, domain models, data access, business logic, design patterns, and architecture, then generates a bilingual documentation suite. It checks Git availability and uses commands such as git rev-list --count HEAD to derive version information. Author metadata follows a fallback order: current user, latest Git author, or empty. Output is typically placed under Doc/cn/ and Doc/en/, covering requirements, overview design, detailed design, database design, API documentation, test plan, and deployment or user manuals.
Limits
It fits codebases that are inspectable and benefit from a complete documentation set. For projects with only verbal requirements, unreadable code, or heavy private context, humans still need to supply business intent. Generated API, schema, and deployment details should be verified against the real environment before release.
Use Cases
- After taking over an unfamiliar repo, fill in bilingual project docs from directory structure, core code, and Git history.
- Before refactoring a module, derive overview design, detailed design, and database relationships from code and data access.
- Before release, generate deployment steps, API examples, exception cases, and a test plan from code and configuration.
- During code review, reconcile business rules and API input/output contracts against generated requirement and API docs.
Best For
- Backend engineer taking over a legacy service: needs to reconstruct module relationships, APIs, and schema from code.
- Server-side developer preparing a release: needs API params, exceptions, and deployment settings turned into manuals.
- Engineering lead reviewing a codebase: wants requirement, design, and API docs to check business rules.
- Independent developer maintaining internal tools: needs a quick handoff-ready documentation set.
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
Publish HTML, static assets, or build output as a public link, with account management, update, deletion, and AI safety review.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.