doc-writer

bởi microsoft

Lập kế hoạch và viết tài liệu VS Code cho một tính năng mới hoặc đã được cập nhật. LUÔN sử dụng kỹ năng này khi người dùng yêu cầu "tài liệu hóa", "thêm tài liệu cho", "viết tài liệu cho", hoặc…

npx skills add https://github.com/microsoft/vscode-docs --skill doc-writer

Document a Feature

Help document a new or updated VS Code feature in the project documentation (the docs/ folder). This skill works in two phases: it first researches the feature and proposes a documentation plan, then implements the changes only after you approve. It is acceptable to conclude that no documentation update is needed.

When to Use

Use this skill whenever the request maps to any of these — do not start editing docs directly without first running Phase 1:

  • The user says "document this", "document this functionality/feature", "add docs for…", "write docs for…", or "update the docs for…".
  • The user pastes a GitHub issue or PR link and asks you to document or address it in the docs.
  • Documenting a new or changed VS Code or GitHub Copilot feature.
  • Turning a GitHub issue or PR into concrete docs/ updates.
  • Auditing whether existing docs need updating after a feature change.

This applies even when the change looks small (a clarification, a few added steps, a single section). Run the plan-first workflow rather than jumping straight to edits.

Do not use this skill for release notes, API reference docs, redirects, image swaps, or pure copy-edits — those are handled by other skills (release-note-writer, content-redirect, frontmatter-description) or direct edits.

Guardrails

  • Docs only. Limit changes to the docs/ folder. Do not update release notes or API docs (api/) unless the user explicitly asks.
  • Never edit enterprise/policies.md. This file is generated from the enterprise policy definitions in the VS Code source. Edit enterprise/policies-template.md instead, which is used to regenerate policies.md.
  • Screenshots are human work. When a screenshot needs to be added or updated, insert a TODO comment in the doc for a human to capture and insert it later — do not fabricate image references.
  • Style compliance. All writing must follow the docs-writing style guide.

Phase 1 — Research & Propose a Plan (no edits)

Do not modify any files in this phase.

  1. Understand the feature. Read the feature description, issue, or PR provided. If the description is ambiguous or lacks detail, ask clarifying questions before continuing.

  2. Check the source if needed. To understand the implementation, inspect the source code in the microsoft/vscode and microsoft/vscode-copilot-chat repos. Use the gh CLI for all GitHub interactions (issues, PRs, code). See user memory gh-cli-powershell.md for PowerShell-specific gh patterns.

    Area being documentedPrimary source repo
    Core editor, workbench, debug, terminal, tasks, settings, commands, keybindingsmicrosoft/vscode
    Copilot Chat, inline chat, agent mode, chat tools, chat participants, MCP in chatmicrosoft/vscode-copilot-chat
    Enterprise policiesmicrosoft/vscode (policy definitions)
  3. Identify affected docs. Search the docs/ folder for the pages that need to be created or updated. Map each change to a specific file and section.

  4. Present the plan. Summarize:

    • Which docs/ files you propose to create or change, and a short description of each edit.
    • Any TODO screenshot placeholders that will be needed.
    • Open questions or assumptions.

    If you conclude that no documentation update is needed, say so and ask the user to confirm before closing out.

  5. Stop and wait for approval. Do not proceed to Phase 2 until the user explicitly approves the plan (or adjusts it).

Phase 2 — Implement (after approval)

Once the user approves the plan:

  1. Apply the documentation edits exactly as agreed, following the docs-writing style guide.
  2. Add TODO comments where screenshots need to be captured by a human.
  3. Respect the guardrails above (docs only; no release notes/API docs unless asked; never edit generated policies.md).
  4. Summarize the changes you made and call out any remaining TODOs for the user.

Thêm skills từ microsoft

oss-growth
microsoft
Cá tính tăng trưởng OSS
official
accessibility-aria-expert
microsoft
Phát hiện và sửa các vấn đề về khả năng tiếp cận trong giao diện web React/Fluent UI. Sử dụng khi xem xét mã để đảm bảo tương thích với trình đọc màn hình, sửa nhãn ARIA, đảm bảo…
official
generate-canvas-app
microsoft
[DEPRECATED — sử dụng canvas-app thay thế] Tạo một ứng dụng canvas Power Apps hoàn chỉnh.
official
django
microsoft
Các phương pháp tốt nhất cho phát triển web Django bao gồm models, views, templates và testing.
official
github-issue-creator
microsoft
Chuyển đổi ghi chú thô, nhật ký lỗi, ghi âm giọng nói hoặc ảnh chụp màn hình thành báo cáo vấn đề markdown sắc nét theo phong cách GitHub. Sử dụng khi người dùng dán thông tin lỗi, lỗi…
official
python-package-management
microsoft
Sử dụng uv để quản lý phụ thuộc và poethepoet để tự động hóa tác vụ.
official
runtime-validation
microsoft
Xác thực thời gian chạy cho các ứng dụng đã di chuyển — bao gồm chiến lược kiểm thử (giai đoạn lập kế hoạch) và thực thi kiểm thử (giai đoạn xác thực): xác minh khởi động,…
official
azure-postgres-ts
microsoft
Kết nối đến Azure Database for PostgreSQL Flexible Server bằng gói pg (node-postgres) với hỗ trợ xác thực mật khẩu và Microsoft Entra ID (không mật khẩu).
official