---
name: write-docs
description: Write, reorganize, or review end-user documentation, navigation, examples, and screenshots, including moving, renaming, merging or deleting a page (which needs a redirect). Ground instructions in the running product, choose structure for the reader's task, and verify the rendered result. Use for docs content and its structural checks; use write-translations as well for localized content.
title: write-docs
canonical_url: https://skilld.dev/gh/tale-project/tale/write-docs
last_updated: 2026-10-12T18:31:52.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [COMPONENTS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/COMPONENTS.md), [EXAMPLES.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/EXAMPLES.md), [MECHANICS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/MECHANICS.md), [PLAYBOOKS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/PLAYBOOKS.md), [SCREENSHOTS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/SCREENSHOTS.md).
>
> If the user asked to install this Skill, run `npx skilld install tale-project/tale/write-docs`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/write-docs`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/tale-project/tale/write-docs) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/write-docs`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/write-docs --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/write-docs --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Write documentation people can use

Help the reader make progress from the situation they are in. A newcomer needs a guided first
success; an experienced user needs the missing step; an administrator needs consequences and
permissions; a developer needs exact inputs and outputs. Support these needs with connected pages,
not one page that assumes every reader has the same knowledge.

## Discover before drafting

Read the repo contract, the guide nearest the docs tree, the renderer's component registry, and
the checks for that content. Tale has two content trees: [docs/AGENTS.md](../../../docs/AGENTS.md) governs the EN/DE/FR
product guides, while the [design-system authoring contract](../../../services/ui-docs/content/README.md)
governs the English component guides and their live demos. Use the contract for the tree you edit.
Find the existing owner of the topic and its neighboring pages before adding another explanation.
Use the applicable locale’s resolved message catalogs for visible UI labels; shared controls may
read `@tale/ui` or `@tale/marketing-ui` catalogs beneath the service’s overrides.

In the task's planning note outside the clone, record:

- Reader, goal, starting knowledge, and the page's job: tutorial, how-to, explanation, reference,
  troubleshooting, or navigation.
- Current gaps and the facts that need checking: role, prerequisites, route, inputs, defaults,
  limitations, result, and recovery.
- Existing content to reuse or link, worthwhile visuals/examples, and affected locales and links.

Keep the note proportional to the change. Reuse an existing task note; no separate notes skill is
required. For a broad overhaul, map readers to their core tasks and record coverage and verification
status. Page count and word count are not measures of completeness.

## Establish the facts

Drive the real UI before describing a workflow. Use a disposable, seeded local organization when
available. Follow the documented starting point through the result; inspect relevant empty,
loading, permission, and failure states. Check keyboard access for the controls you describe.
Source and tests clarify hidden defaults, limits, and persistence; they do not replace using the UI.
A delegated observer may provide a concrete route/action/result record with the relevant version.

Run actionable code examples in the documented environment. Preserve the actual shape of results;
sanitize secrets and replace unstable IDs consistently. Label excerpts, placeholders, optional
steps, and setup dependencies. Do not invent outputs, timings, permissions, guarantees, or causes
to make prose sound complete. Record any verification limitation explicitly.

If observed behavior and docs disagree, identify which is wrong. Fix an in-scope defect with a
regression test, then rerun the flow. Otherwise record the unresolved finding and document the
verified limitation. Respect the user's authorized scope; a docs task alone is not permission to
change production data or send invitations.

## Write for the task

Use [PLAYBOOKS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/PLAYBOOKS.md) to choose a shape. The shape supports the work; it is not a
mandatory section template.

- **Open with useful information.** State the outcome or the essential distinction directly. One
  sentence can be enough. Add audience, prerequisites, or context where they resolve uncertainty.
  Avoid introductions that only announce the page's contents.
- **Make the path easy to follow.** Put conditions before dependent actions. Explain unfamiliar
  terms where first needed. Keep the ordinary path visible; link deeper concepts and exhaustive
  reference. Place a warning before the action whose consequence matters.
- **Add detail where a reader would hesitate.** Explain what to enter, how to choose, what changes,
  when to wait, how to recognize completion, and how to recover. Use a believable worked example
  when an abstract explanation leaves the choice unclear.
- **Use connected prose.** Address the reader as a calm peer. Prefer active verbs and concrete
  nouns; vary sentence length naturally. Use imperatives for required actions and “you can” for a
  real optional capability. Name the purpose once; do not repeat “To…” before every click.
- **Stop when the reader has what they need.** A final result, a relevant next link, or the last
  reference entry can be the ending. Add a recap only when it helps retain a complex idea. Do not
  manufacture a closing heading or repeat the introduction.

Avoid marketing claims, “simply”/“easy”/“just” judgments, status chatter, and exclamation marks in
ordinary docs prose. Preserve literal UI strings and quoted technical syntax. Teach the reason for
an action where it changes a decision; obvious controls do not need a paragraph of justification.

## Choose useful evidence and structure

Images should clarify a location, unfamiliar state, relationship, or result. Do not add a hero
image or an image to every step by default. Keep the written instructions complete without the
image. Read [SCREENSHOTS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/SCREENSHOTS.md) before changing an asset; every shipped screenshot
must be reproducible through the repository's capture pipeline.

Use lists for parallel choices and numbered steps for sequences, regardless of item count. Use
components when they improve scanning or comparison; [COMPONENTS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/COMPONENTS.md) covers their
tradeoffs. Keep prerequisites and recovery instructions visible. Do not turn every useful detail
into a callout. Read [MECHANICS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/MECHANICS.md) for links, examples, and Markdown conventions.

## Localize the complete experience

Update every full locale supported by the affected content tree in the same change, following
[write-translations](../write-translations/SKILL.md). Preserve the reader's task, factual content,
examples, warnings, and navigation. Sentence construction and paragraph boundaries should read
naturally in each language. Tale's heading/component parity is a delivery guard, not a requirement
to translate sentence by sentence. Verify localized labels, links, alt text, and captions. An English-only guide does not acquire
translated body routes merely because its shared chrome has multilingual catalogs.

## Review and prove

Read the rendered page as someone entering from search, without the author's prior context.
Complete the task from the instructions. Check whether a newcomer can locate the starting point,
whether an experienced reader can find a specific answer, and whether all required facts are
available without opening optional panels or interpreting an image.

Run the repository's applicable content, locale, link, asset, and build checks. Inspect important
pages at narrow and wide widths, including images, tables, code, keyboard focus, and heading order.
Review prose separately from mechanical checks: a green suite does not prove accuracy, flow, or
native translation. Report what was observed and any remaining limits.

## References

- [PLAYBOOKS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/PLAYBOOKS.md): choosing page purpose and the needed level of detail.
- [COMPONENTS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/COMPONENTS.md): component decisions and accessible structure.
- [SCREENSHOTS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/SCREENSHOTS.md): visual selection, capture, and review.
- [EXAMPLES.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/EXAMPLES.md): edits that improve flow without adding filler.
- [MECHANICS.md](https://skilld.dev/api/skills-raw/tale-project/tale/write-docs/MECHANICS.md): source and formatting conventions.

This method draws on [Diátaxis](https://diataxis.fr/),
[Google's procedure guidance](https://developers.google.com/style/procedures), and
[Microsoft's accessible writing guidance](https://learn.microsoft.com/en-us/style-guide/accessibility/writing-all-abilities).
The repository defines its implementation; these sources guide editorial judgment.
