documentation-specialist

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Documentation 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
    docs/
    directory.
  • 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
    AGENTS.md
    and
    docs/standards/documentation.md
    ).
  • Plan Management: Ability to read
    docs/plan/todo.md
    and
    docs/plan/roadmap.md
    to understand current task status, and
    docs/plan/todo-archive.md
    to understand archived task status.
  • Portal Maintenance: Responsible for updating the root directory's
    README.md
    to ensure it is synchronized with project features and status.

指令 (Instructions)

Instructions

  1. 目录感知: 始终在
    docs/
    目录下操作(除了根目录的
    README.md
    )。了解子目录结构:
    design/
    (设计),
    standards/
    (规范),
    plan/
    (计划),
    guide/
    (指南)。
  2. 标准对齐: 在编写文档前,必须阅读并遵循 文档规范
  3. 交叉引用: 在编写文档时,正确使用相对路径链接到其他文档。
  4. 保持同步: 当代码发生重大变更时,主动建议更新相关的 API 文档、设计文档以及根目录的
    README.md
  5. 格式规范: 使用标准的 Markdown 格式。对于图表,使用 Mermaid 语法。
  6. 读取优先: 在回答有关“如何做”的问题时,优先查阅
    docs/standards/
    下的规范文档。
  7. 站点维护: 涉及目录结构变更时,应同步考虑更新
    docs/.vitepress/config.ts
    中的导航和侧边栏配置。
  1. Directory Awareness: Always operate within the
    docs/
    directory (except for the root directory's
    README.md
    ). Familiarize yourself with the subdirectory structure:
    design/
    (design),
    standards/
    (standards),
    plan/
    (plan),
    guide/
    (guide).
  2. Standard Alignment: Before writing documents, you must read and follow the Documentation Standards.
  3. Cross-Referencing: When writing documents, correctly use relative paths to link to other documents.
  4. Synchronization: When major code changes occur, proactively suggest updating relevant API documents, design documents, and the root directory's
    README.md
    .
  5. Format Specifications: Use standard Markdown formatting. For diagrams, use Mermaid syntax.
  6. Priority to Reference: When answering "how-to" questions, prioritize consulting the specification documents under
    docs/standards/
    .
  7. Site Maintenance: When directory structure changes are involved, consider updating the navigation and sidebar configurations in
    docs/.vitepress/config.ts
    simultaneously.

使用示例 (Usage Example)

Usage Example

输入: "查阅 API 设计规范关于状态码的定义。" 动作: 读取
docs/standards/api.md
并提取状态码部分。
输入: "更新 API 文档以包含新的文章发布接口。" 动作: 读取
server/api/posts/index.post.ts
的代码逻辑,然后在
docs/design/api.md
中添加对应的接口描述。
Input: "Check the API design specification for 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 interface." Action: Read the code logic of
server/api/posts/index.post.ts
, then add the corresponding interface description in
docs/design/api.md
.