Skip to content

How to author product docs

Create, revise, retrofit, audit, or verify product documentation — pack READMEs, journeys, tutorials, how-to guides, reference pages, or explanations.

Use this when: you need to create, revise, retrofit, audit, or verify product documentation — pack READMEs, journeys, tutorials, how-to guides, reference pages, or explanations. Prerequisites: product-documentation pack installed. Result: a documentation artifact matched to the reader’s job, inspected against canonical source behavior, with a stated mode and artifact decision.

The author-product-docs skill operates in five modes. You do not need to name the mode — it infers from your request.

Request typeModeWhat happens
“Write”, “create”, “add docs for”CreateSmallest useful new artifact
“Revise”, “improve”, “update”, “rewrite”ReviseImproves one artifact while preserving its role
“Retrofit”, “connect”, “unify”, “restructure”RetrofitRestructures a connected documentation experience
“Audit”, “check”, “review for”AuditProduces findings without editing
“Verify”, “confirm docs match”, “check against”VerifyConfirms documentation matches current shipped behavior

Ask your agent:

Write a how-to guide explaining how to [your most common user task].

The skill reads the relevant pack sources, proposes a documentation contract, and drafts a task-first guide. You confirm before any files change.

Other entry points:

Revise the pack README for [pack name] to lead with what the user can accomplish.

Audit the onboarding guides for inventory-first writing.

Verify this reference page still matches what the skill actually does.

Before drafting, author-product-docs reads:

  • pack.toml — what the pack declares it does, its scope, dependencies
  • Skill and command sources — actual behavior, not the README’s description
  • Existing guides, README, and journey for the pack

It does not invent capabilities. If a claim in the existing documentation does not appear in the canonical sources, it flags it as unverified rather than preserving it.

One artifact is the default. The skill does not create empty category directories or produce one page of every Diátaxis kind without need.

ArtifactLives at
Pack READMEpacks/<pack>/README.md
Journeypacks/<pack>/JOURNEY.md
Tutorialguides/<pack>/tutorials/<slug>.md
How-toguides/<pack>/how-to/<slug>.md
Referenceguides/<pack>/reference/<slug>.md
Explanationguides/<pack>/explanation/<slug>.md

For adopter repositories, the skill inspects the host layout rather than imposing these paths.

The skill distinguishes two documentation audiences:

  • External catalogue or product usersguides/<pack>/
  • Internal maintainers or contributorsdocs/guides/

It does not route internal guidance into the public guide tree, and it does not route product documentation into the maintainer tree.

  • Whether the proposed page kind is right for the reader you have in mind.
  • Whether the artifact set is the minimum useful set.
  • Whether the draft accurately reflects the product as users will experience it.
  • Whether a generated or rendered artifact needs source changes before the documentation can be accurate.