documentation-specialist
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDocumentation Specialist Skill (文档专家技能)
Documentation Specialist Skill
能力 (Capabilities)
Capabilities
- 文档检索: 快速查找和总结位于 目录下的设计文档、规范文档和计划文档。
docs/ - 文档生成: 根据代码变更自动更新或创建新的 Markdown 文档。
- 规范检查: 确保文档遵循项目的文档结构和风格指南 (如 和
AGENTS.md中定义的)。docs/standards/documentation.md - 计划管理: 能够读取 和
docs/plan/todo.md以了解当前任务状态,读取docs/plan/roadmap.md以了解已归档任务状态。docs/plan/todo-archive.md - 门户维护: 负责更新根目录下的 ,确保其与项目特性和状态保持同步。
README.md
- Document Retrieval: Quickly locate and summarize design documents, specification documents, and plan documents located in the directory.
docs/ - Document Generation: Automatically update or create new Markdown documents based on code changes.
- Specification Compliance Check: Ensure documents adhere to the project's document structure and style guidelines (as defined in and
AGENTS.md).docs/standards/documentation.md - Plan Management: Ability to read and
docs/plan/todo.mdto understand current task status, anddocs/plan/roadmap.mdto understand archived task status.docs/plan/todo-archive.md - Portal Maintenance: Responsible for updating the root directory's to ensure it is synchronized with project features and status.
README.md
指令 (Instructions)
Instructions
- 目录感知: 始终在 目录下操作(除了根目录的
docs/)。了解子目录结构:README.md(设计),design/(规范),standards/(计划),plan/(指南)。guide/ - 标准对齐: 在编写文档前,必须阅读并遵循 文档规范。
- 交叉引用: 在编写文档时,正确使用相对路径链接到其他文档。
- 保持同步: 当代码发生重大变更时,主动建议更新相关的 API 文档、设计文档以及根目录的 。
README.md - 格式规范: 使用标准的 Markdown 格式。对于图表,使用 Mermaid 语法。
- 读取优先: 在回答有关“如何做”的问题时,优先查阅 下的规范文档。
docs/standards/ - 站点维护: 涉及目录结构变更时,应同步考虑更新 中的导航和侧边栏配置。
docs/.vitepress/config.ts
- Directory Awareness: Always operate within the directory (except for the root directory's
docs/). Familiarize yourself with the subdirectory structure:README.md(design),design/(standards),standards/(plan),plan/(guide).guide/ - Standard Alignment: Before writing documents, you must read and follow the Documentation Standards.
- Cross-Referencing: When writing documents, correctly use relative paths to link to other documents.
- Synchronization: When major code changes occur, proactively suggest updating relevant API documents, design documents, and the root directory's .
README.md - Format Specifications: Use standard Markdown formatting. For diagrams, use Mermaid syntax.
- Priority to Reference: When answering "how-to" questions, prioritize consulting the specification documents under .
docs/standards/ - Site Maintenance: When directory structure changes are involved, consider updating the navigation and sidebar configurations in simultaneously.
docs/.vitepress/config.ts
使用示例 (Usage Example)
Usage Example
输入: "查阅 API 设计规范关于状态码的定义。"
动作: 读取 并提取状态码部分。
docs/standards/api.md输入: "更新 API 文档以包含新的文章发布接口。"
动作: 读取 的代码逻辑,然后在 中添加对应的接口描述。
server/api/posts/index.post.tsdocs/design/api.mdInput: "Check the API design specification for the definition of status codes."
Action: Read and extract the status code section.
docs/standards/api.mdInput: "Update the API documentation to include the new article publishing interface."
Action: Read the code logic of , then add the corresponding interface description in .
server/api/posts/index.post.tsdocs/design/api.md