Chuyển đến nội dung
Skillpedia
Viết lách7.1k · #13525

docs-writer

Skill này làm gì

Skill này biến AI thành người viết kỹ thuật cẩn thận cho tài liệu, README và hướng dẫn. Nó kiểm tra mã trước khi viết để tài liệu chính xác. Phù hợp với lập trình viên và nhóm duy trì các tệp tài liệu.

Khi nào nên dùng

  • ✓Khi bạn cần viết một hướng dẫn, README hoặc trang tài liệu mới.
  • ✓Khi bạn muốn một tệp markdown hiện có được xem xét và cải thiện.
  • ✓Khi tài liệu cần cập nhật sau khi một lệnh hoặc tính năng đã thay đổi.

Liên kết skill

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/docs-writer/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(development)/docs-writer/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Xem lại hướng dẫn cài đặt trong thư mục docs, kiểm tra với mã nguồn và cải thiện cách diễn đạt.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI làm rõ yêu cầu, đọc mã liên quan và tài liệu hiện có, lập kế hoạch, rồi viết hoặc chỉnh sửa các tệp để khớp với hướng dẫn của dự án.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
Câu hỏi thường gặp

Nó có viết chú thích trong mã không?

Không. Chú thích trong mã nội tuyến và tạo tài liệu tham chiếu API không thuộc phạm vi.

Nó có kiểm tra mã trước không?

Có. Nó đọc phần triển khai để tài liệu khớp với những gì phần mềm thực sự làm.

Nó có theo quy tắc của dự án tôi không?

Có. Nó theo hướng dẫn đóng góp của dự án khi có.

Chi tiết

Mô tả gốc của tác giả

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.

repo: tech-leads-club/agent-skills

Độ phổ biến

Sao GitHub
7.1k
Vị trí xếp hạng
#13525
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự