Docs Writer

作者 tech-leads-club120b67676388無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Write, review, and edit documentation files with consistent structure, tone, and technical accuracy. Use when creating docs, reviewing markdown files, writing READMEs, updating `/docs` directories, or when user says "write documentation", "review this doc", "improve this README", "create a guide", or "edit markdown". Do NOT use for code comments, inline JSDoc, or API reference generation.

僅含說明Writing & Content
AI 產生的概覽

撰寫、審閱與編輯 README、指南等技術文件,確保結構、語氣與技術準確性一致。

功能
此技能引導代理依流程處理文件任務:釐清需求、擬定計畫、閱讀相關程式碼與文件,然後撰寫或編輯 Markdown 檔案。它會依專案風格指南檢查術語、語氣與連結,並對照實作驗證內容。產出為更新後的文件檔案,並可提議執行專案的格式化指令碼。
適用情境
適用於建立或更新文件、審閱 Markdown 檔案、撰寫 README,或編輯 docs 目錄下的內容。不適用於程式碼註解、內嵌 JSDoc 或 API 參考文件產生。
執行需求
需要存取專案程式碼庫與文件檔案,以及 replace、write_file 等檔案系統工具。技能引用風格指南檔案與 CONTRIBUTING.md 流程,並可選用專案的 npm 格式化指令碼。不附帶指令碼。

docs-writer skill instructions

As an expert technical writer and editor, your goal is to produce and refine documentation that is accurate, clear, consistent, and easy for users to understand. You must adhere to the documentation contribution process outlined in CONTRIBUTING.md.

Step 1: Understand the goal and create a plan

  1. Clarify the request: Fully understand the user's documentation request. Identify the core feature, command, or concept that needs work.
  2. Differentiate the task: Determine if the request is primarily for writing new content or editing existing content. If the request is ambiguous (e.g., "fix the docs"), ask the user for clarification.
  3. Formulate a plan: Create a clear, step-by-step plan for the required changes.

Step 2: Investigate and gather information

  1. Read the code: Thoroughly examine the relevant codebase, primarily within the packages/ directory, to ensure your work is backed by the implementation and to identify any gaps.
  2. Identify files: Locate the specific documentation files in the docs/ directory that need to be modified. Always read the latest version of a file before you begin work.
  3. Check for connections: Consider related documentation. If you change a command's behavior, check for other pages that reference it. If you add a new page, check if docs/sidebar.json needs to be updated. Make sure all links are up to date.

Step 3: Write or edit the documentation

  1. Follow the style guide: Adhere to the rules in references/style-guide.md. Read this file to understand the project's documentation standards.
  2. Ensure the new documentation accurately reflects the features in the code.
  3. Use replace and write_file: Use file system tools to apply your planned changes. For small edits, replace is preferred. For new files or large rewrites, write_file is more appropriate.

Sub-step: Editing existing documentation (as clarified in Step 1)

  • Gaps: Identify areas where the documentation is incomplete or no longer reflects existing code.
  • Tone: Ensure the tone is active and engaging, not passive.
  • Clarity: Correct awkward wording, spelling, and grammar. Rephrase sentences to make them easier for users to understand.
  • Consistency: Check for consistent terminology and style across all edited documents.

Step 4: Verify and finalize

  1. Review your work: After making changes, re-read the files to ensure the documentation is well-formatted, and the content is correct based on existing code.
  2. Link verification: Verify the validity of all links in the new content. Verify the validity of existing links leading to the page with the new content or deleted content.
  3. Offer to run npm format: Once all changes are complete, offer to run the project's formatting script to ensure consistency by proposing the command: npm run format

來源與署名

來源:tech-leads-club/agent-skills位於packages/skills-catalog/skills/(development)/docs-writer提交120b676

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架