Capabilities
- Documentation Retrieval: Quickly find and summarize design documents, specification documents, and plan documents located under the
docs/directory. - Documentation Generation: Automatically update or create new Markdown documents based on code changes.
- Specification Check: Ensure documentation follows the project's documentation structure and style guide (as defined in
AGENTS.mdanddocs/standards/documentation.md). - Plan Management: Able to read
docs/plan/todo.mdanddocs/plan/roadmap.mdto understand the current task status, and readdocs/plan/todo-archive.mdto understand archived task status. - Portal Maintenance: Responsible for updating the
README.mdin the root directory, ensuring it stays in sync with project features and status. - Process Alignment: When release or Review Gate instructions are involved, prioritize aligning with the actual behavior of
scripts/release/pre-release-check.mjsandscripts/review-gate/generate-evidence.mjs, to avoid drift between documentation and script wording.
Instructions
- Worktree Awareness: Large-scale documentation updates must be performed in the
../momei-docsdirectory, ensuring the documentation version is independent of the code development branch. - Directory Awareness: Always operate under the
docs/directory (except for the root directory'sREADME.md). Understand the subdirectory structure:design/(design),standards/(specification),plan/(plan),guide/(guide). - Standard Alignment: Before writing documentation, you must read and follow documentation standards。
- Cross-Reference: When writing documentation, correctly use relative paths to link to other documents.
- Stay in Sync: When significant code changes occur, proactively suggest updating the related API documentation, design documentation, and the root directory's
README.md。 - Release and Audit Sync: If changes affect pre-release validation, evidence templates, or the Review Gate process, prioritize syncing
docs/plan/todo.md, related standard documents, and script behavior descriptions. - Format Standards: Use standard Markdown format. For diagrams, use Mermaid syntax.
- Reading First: When answering questions about "how to do", prioritize consulting the specification documents under
docs/standards/. - Site Maintenance: When directory structure changes are involved, consider updating the navigation and sidebar configuration in
docs/.vitepress/config.tsaccordingly.
Usage Example
Input: "Consult the API design specification regarding the definition of status codes."
Action: Read docs/standards/api.md and extract the status code section.
Input: "Update the API documentation to include the new article publishing endpoint."
Action: Read the code logic of server/api/posts/index.post.ts , then add the corresponding endpoint description in docs/design/api.md .