doc-writer
A structured, research-first workflow for writing VS Code feature documentation.
Install
mkdir -p .claude/skills/doc-writer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10413" && unzip -o skill.zip -d .claude/skills/doc-writer && rm skill.zipInstalls to .claude/skills/doc-writer
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Plan and write VS Code documentation for a new or updated feature. ALWAYS use this skill when the user asks to "document", "add docs for", "write docs for", or "update the docs for" a feature, or provides a GitHub issue/PR link to document — even if the change seems small. Proposes a documentation plan and asks clarifying questions first — it does not edit any files until you approve the plan.Key capabilities
- →Research feature documentation requirements
- →Propose documentation plans
- →Implement documentation updates
- →Add TODO placeholders for screenshots
How it works
It follows a two-phase process: researching and proposing a plan, followed by implementation only after user approval.
Inputs & outputs
When to use doc-writer
- →Documenting new VS Code features
- →Updating existing documentation
- →Turning GitHub issues into docs
About this skill
Document a Feature
Help document a new or updated VS Code feature in the project documentation (the docs/ folder) and keep its required navigation metadata current. 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 and sitemap only. Limit content changes to the
docs/folder. When you add an article or change an article URL, updatebuild/sitemap.xmlin the same change. Do not update release notes or API docs (api/) unless the user explicitly asks. - Public functionality only. Do not add or retain documentation for internal builds, dogfood-only functionality, hidden settings or commands, source-only implementation, or manually settable internal feature flags.
- Never edit
enterprise/policies.md. This file is generated from the enterprise policy definitions in the VS Code source. Editenterprise/policies-template.mdinstead, which is used to regeneratepolicies.md. - Screenshots are human work. When a screenshot needs to be added or updated, insert a
TODOcomment 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.
-
Understand the feature. Read the feature description, issue, or PR provided. If the description is ambiguous or lacks detail, ask clarifying questions before continuing.
-
Establish the content framing. Identify the primary persona, reader intent, and article purpose by following the content-framing guidance. Infer them from the existing content, documentation journey, source material, and writer's request. If any part of the framing remains ambiguous and different interpretations would change the content, ask the writer to confirm before planning edits.
-
Check the source if needed. To understand the implementation, inspect the source code in the
microsoft/vscoderepo. Use theghCLI for all GitHub interactions (issues, PRs, code). See user memorygh-cli-powershell.mdfor PowerShell-specificghpatterns.Area being documented Primary source repo Core editor, workbench, debug, terminal, tasks, settings, commands, keybindings microsoft/vscodeCopilot Chat, inline chat, agent mode, chat tools, chat participants, MCP in chat microsoft/vscode-copilot-chatEnterprise policies microsoft/vscode(policy definitions) -
Verify public availability. Check every feature, setting, and command against the public product channel intended for the article. Public Preview, Experimental, and Insiders functionality qualifies when labeled clearly. Source-code existence or manual configurability is not enough. Inspect registration metadata, product quality gates, feature flags, and the relevant public release. Treat metadata such as
included: falseas internal unless product evidence shows otherwise. If functionality is not public, do not document it. During an audit or review, propose removing existing coverage. -
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. Includedocs/toc.jsonandbuild/sitemap.xmlin the plan when you add an article or change an article URL. -
Present the plan. Summarize:
- The primary persona, reader intent, and article purpose.
- Which
docs/files and required navigation metadata you propose to create or change, and a short description of each edit. - Any
TODOscreenshot 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.
-
Stop and wait for approval. Do not proceed to Phase 2 until the user explicitly approves the plan (or adjusts it).
Phase 2 — Confirm the Branch & Implement (after approval)
Once the user approves the plan:
-
Confirm the branch before editing. Use the user-question tool to ask whether to create a new branch from
mainbefore implementing the documentation updates. Offer these choices:Yes, create a new branch from main (Recommended)No, continue on the current branch
Do not modify documentation files until the user answers. If the user chooses a new branch, ask for a branch name unless they already supplied one, then create the branch from
mainbefore editing. If uncommitted changes prevent safe branch creation, stop and explain the conflict instead of stashing or reverting changes. If the user chooses the current branch, continue without changing branches. -
Apply the documentation edits exactly as agreed, following the docs-writing style guide and the approved content framing.
-
Add
TODOcomments where screenshots need to be captured by a human. -
Respect the guardrails above (docs content and required sitemap updates only; no release notes/API docs unless asked; never edit generated
policies.md). -
Verify that the introduction, main content, examples, and next steps serve the approved primary persona and reader intent.
-
Summarize the changes you made and call out any remaining
TODOs for the user.
Orchestrate your documentation updates
- Act as a reviewer and coordinator
- Delegate work to GPT-5.6 Sol subagents, in parallel when feasible.
- The subagents should not themselves run validation on their work, that's your job! You own the plan; delegate work in parallel when reasonable.
- Monitor the progress of subagents and integrate their contributions into the final documentation.
When not to use it
- →Editing release notes
- →Editing API reference docs
- →Editing enterprise/policies.md
Limitations
- →Cannot generate screenshots
- →Restricted to docs/ folder
How it compares
This enforces a plan-first workflow to ensure quality and style compliance, rather than direct, unverified editing.
Compared to similar skills
doc-writer side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| doc-writer (this skill) | 0 | 3mo | No flags | Beginner |
| docs-write | 22 | 7mo | No flags | Beginner |
| content-research-writer | 15 | 11mo | No flags | Beginner |
| doc-coauthoring | 16 | 10mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by microsoft
View all by microsoft →You might also like
docs-write
metabase
Write documentation following Metabase's conversational, clear, and user-focused style. Use when creating or editing documentation files (markdown, MDX, etc.).
content-research-writer
ComposioHQ
Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section. Transforms your writing process from solo effort to collaborative partnership.
doc-coauthoring
anthropics
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
research-grants
davila7
Write competitive research proposals for NSF, NIH, DOE, and DARPA. Agency-specific formatting, review criteria, budget preparation, broader impacts, significance statements, innovation narratives, and compliance with submission requirements.
teams-channel-post-writer
daymade
Creates educational Teams channel posts for internal knowledge sharing about Claude Code features, tools, and best practices. Applies when writing posts, announcements, or documentation to teach colleagues effective Claude Code usage, announce new features, share productivity tips, or document lessons learned. Provides templates, writing guidelines, and structured approaches emphasizing concrete examples, underlying principles, and connections to best practices like context engineering. Activates for content involving Teams posts, channel announcements, feature documentation, or tip sharing.
write-docs
tldraw
Writing SDK documentation for tldraw. Use when creating new documentation articles, updating existing docs, or when documentation writing guidance is needed. Applies to docs in apps/docs/content/.