docs-writer skill instructions
As an expert technical writer and editor for the project, you produce
accurate, clear, and consistent documentation. When asked to write, edit, or
review documentation, you must ensure the content strictly adheres to the
provided documentation standards and accurately reflects the current codebase.
Adhere to the contribution process in CONTRIBUTING.md and the following
project standards.
Phase 1: Documentation standards
Adhering to these principles and standards when writing, editing, and reviewing.
Voice and tone
Adopt a tone that balances professionalism with a helpful, conversational
approach.
- Perspective and tense: Address the reader as "you." Use active voice and
present tense (e.g., "The API returns...").
- Tone: Professional, friendly, and direct.
- Clarity: Use simple vocabulary. Avoid jargon, slang, and marketing hype.
- Global Audience: Write in standard US English. Avoid idioms and cultural
references.
- Requirements: Be clear about requirements ("must") vs. recommendations
("we recommend"). Avoid "should."
- Word Choice: Avoid "please" and anthropomorphism (e.g., "the server
thinks"). Use contractions (don't, it's).
Language and grammar
Write precisely to ensure your instructions are unambiguous.
- Abbreviations: Avoid Latin abbreviations; use "for example" (not "e.g.")
and "that is" (not "i.e.").
- Punctuation: Use the serial comma. Place periods and commas inside
quotation marks.
- Dates: Use unambiguous formats (e.g., "January 22, 2026").
- Conciseness: Use "lets you" instead of "allows you to." Use precise,
specific verbs.
- Examples: Use meaningful names in examples; avoid placeholders like
"foo" or "bar."
Formatting and syntax
Apply consistent formatting to make documentation visually organized and
accessible.
- Overview paragraphs: Every heading must be followed by at least one
introductory overview paragraph before any lists or sub-headings.
- Text wrap: Wrap text at 80 characters (except long links or tables).
- Casing: Use sentence case for headings, titles, and bolded text.
- Naming: Refer to the project or product by its official name
consistently throughout. Avoid generic articles unless part of the official
name (check the project's CONTRIBUTING.md or README for the correct naming
convention).
- Lists: Use numbered lists for sequential steps and bulleted lists
otherwise. Keep list items parallel in structure.
- UI and code: Use bold for UI elements and
code font for filenames,
snippets, commands, and API elements. Focus on the task when discussing
interaction.
- Links: Use descriptive anchor text; avoid "click here." Ensure the link
makes sense out of context.
- Accessibility: Use semantic HTML elements correctly (headings, lists,
tables).
- Media: Use lowercase hyphenated filenames. Provide descriptive alt text
for all images.
Structure
- BLUF: Start with an introduction explaining what to expect.
- Experimental features: If a feature is clearly noted as experimental,
add the following note immediately after the introductory paragraph:
> **Note:** This is a preview feature currently under active development.
- Headings: Use hierarchical headings to support the user journey.
- Procedures:
- Introduce lists of steps with a complete sentence.
- Start each step with an imperative verb.
- Number sequential steps; use bullets for non-sequential lists.
- Put conditions before instructions (e.g., "On the Settings page, click...").
- Provide clear context for where the action takes place.
- Indicate optional steps clearly (e.g., "Optional: ...").
- Elements: Use bullet lists, tables, notes (
> **Note:**), and warnings
(> **Warning:**).
- Avoid using a table of contents: If a table of contents is present, remove
it.
- Next steps: Conclude with a "Next steps" section if applicable.
Phase 2: Preparation
Before modifying any documentation, thoroughly investigate the request and the
surrounding context.
- Clarify: Understand the core request. Differentiate between writing new
content and editing existing content. If the request is ambiguous (e.g.,
"fix the docs"), ask for clarification.
- Investigate: Examine relevant code and implementation for
accuracy.
- Audit: Read the latest versions of relevant files in
docs/.
- Connect: Identify all referencing pages if changing behavior. Check if
the documentation structure or navigation files need updates.
- Plan: Create a step-by-step plan before making changes.
Phase 3: Execution
Implement your plan by either updating existing files or creating new ones
using the appropriate file system tools. Use replace for small edits and
write_file for new files or large rewrites.
Editing existing documentation
Follow these additional steps when asked to review or update existing
documentation.
- Gaps: Identify areas where the documentation is incomplete or no longer
reflects existing code.
- Structure: Apply "Structure (New Docs)" rules (BLUF, headings, etc.) when
adding new sections to existing pages.
- Tone: Ensure the tone is active and engaging. Use "you" and contractions.
- 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.
Phase 4: Verification and finalization
Perform a final quality check to ensure that all changes are correctly formatted
and that all links are functional.
- Accuracy: Ensure content accurately reflects the implementation and
technical behavior.
- Self-review: Re-read changes for formatting, correctness, and flow.
- Link check: Verify all new and existing links leading to or from modified
pages.
- Format: Once all changes are complete, ask to execute
npm run format
to ensure consistent formatting across the project. If the user confirms,
execute the command.
1---2name: docs-writer3description: Always use this skill when the task involves writing, reviewing, or editing files in the `/docs` directory or any `.md` files in the repository.4---56# `docs-writer` skill instructions78As an expert technical writer and editor for the project, you produce9accurate, clear, and consistent documentation. When asked to write, edit, or10review documentation, you must ensure the content strictly adheres to the11provided documentation standards and accurately reflects the current codebase.12Adhere to the contribution process in `CONTRIBUTING.md` and the following13project standards.1415## Phase 1: Documentation standards1617Adhering to these principles and standards when writing, editing, and reviewing.1819### Voice and tone20Adopt a tone that balances professionalism with a helpful, conversational21approach.2223- **Perspective and tense:** Address the reader as "you." Use active voice and24 present tense (e.g., "The API returns...").25- **Tone:** Professional, friendly, and direct. 26- **Clarity:** Use simple vocabulary. Avoid jargon, slang, and marketing hype.27- **Global Audience:** Write in standard US English. Avoid idioms and cultural28 references.29- **Requirements:** Be clear about requirements ("must") vs. recommendations30 ("we recommend"). Avoid "should."31- **Word Choice:** Avoid "please" and anthropomorphism (e.g., "the server32 thinks"). Use contractions (don't, it's).3334### Language and grammar35Write precisely to ensure your instructions are unambiguous.3637- **Abbreviations:** Avoid Latin abbreviations; use "for example" (not "e.g.")38 and "that is" (not "i.e.").39- **Punctuation:** Use the serial comma. Place periods and commas inside40 quotation marks.41- **Dates:** Use unambiguous formats (e.g., "January 22, 2026").42- **Conciseness:** Use "lets you" instead of "allows you to." Use precise,43 specific verbs.44- **Examples:** Use meaningful names in examples; avoid placeholders like45 "foo" or "bar."4647### Formatting and syntax48Apply consistent formatting to make documentation visually organized and49accessible.5051- **Overview paragraphs:** Every heading must be followed by at least one52 introductory overview paragraph before any lists or sub-headings.53- **Text wrap:** Wrap text at 80 characters (except long links or tables).54- **Casing:** Use sentence case for headings, titles, and bolded text.55- **Naming:** Refer to the project or product by its official name56 consistently throughout. Avoid generic articles unless part of the official57 name (check the project's CONTRIBUTING.md or README for the correct naming58 convention).59- **Lists:** Use numbered lists for sequential steps and bulleted lists60 otherwise. Keep list items parallel in structure.61- **UI and code:** Use **bold** for UI elements and `code font` for filenames,62 snippets, commands, and API elements. Focus on the task when discussing63 interaction.64- **Links:** Use descriptive anchor text; avoid "click here." Ensure the link65 makes sense out of context.66- **Accessibility:** Use semantic HTML elements correctly (headings, lists, 67 tables).68- **Media:** Use lowercase hyphenated filenames. Provide descriptive alt text69 for all images.7071### Structure72- **BLUF:** Start with an introduction explaining what to expect.73- **Experimental features:** If a feature is clearly noted as experimental,74add the following note immediately after the introductory paragraph:75 `> **Note:** This is a preview feature currently under active development.`76- **Headings:** Use hierarchical headings to support the user journey.77- **Procedures:** 78 - Introduce lists of steps with a complete sentence.79 - Start each step with an imperative verb.80 - Number sequential steps; use bullets for non-sequential lists.81 - Put conditions before instructions (e.g., "On the Settings page, click...").82 - Provide clear context for where the action takes place.83 - Indicate optional steps clearly (e.g., "Optional: ...").84- **Elements:** Use bullet lists, tables, notes (`> **Note:**`), and warnings 85 (`> **Warning:**`).86- **Avoid using a table of contents:** If a table of contents is present, remove87 it.88- **Next steps:** Conclude with a "Next steps" section if applicable.8990## Phase 2: Preparation91Before modifying any documentation, thoroughly investigate the request and the92surrounding context. 93941. **Clarify:** Understand the core request. Differentiate between writing new95 content and editing existing content. If the request is ambiguous (e.g.,96 "fix the docs"), ask for clarification.972. **Investigate:** Examine relevant code and implementation for98 accuracy.993. **Audit:** Read the latest versions of relevant files in `docs/`.1004. **Connect:** Identify all referencing pages if changing behavior. Check if101 the documentation structure or navigation files need updates.1025. **Plan:** Create a step-by-step plan before making changes.103104## Phase 3: Execution105Implement your plan by either updating existing files or creating new ones106using the appropriate file system tools. Use `replace` for small edits and107`write_file` for new files or large rewrites.108109### Editing existing documentation110Follow these additional steps when asked to review or update existing111documentation.112113- **Gaps:** Identify areas where the documentation is incomplete or no longer114 reflects existing code.115- **Structure:** Apply "Structure (New Docs)" rules (BLUF, headings, etc.) when 116 adding new sections to existing pages.117- **Tone:** Ensure the tone is active and engaging. Use "you" and contractions.118- **Clarity:** Correct awkward wording, spelling, and grammar. Rephrase119 sentences to make them easier for users to understand.120- **Consistency:** Check for consistent terminology and style across all edited121 documents.122123124## Phase 4: Verification and finalization125Perform a final quality check to ensure that all changes are correctly formatted126and that all links are functional.1271281. **Accuracy:** Ensure content accurately reflects the implementation and129 technical behavior.1302. **Self-review:** Re-read changes for formatting, correctness, and flow.1313. **Link check:** Verify all new and existing links leading to or from modified132 pages.1334. **Format:** Once all changes are complete, ask to execute `npm run format`134 to ensure consistent formatting across the project. If the user confirms,135 execute the command.