Skip to content

docs-impact skill

Checks, before a branch is delivered, whether its code changes affect the public documentation: README, user guide, API reference pages or a GitHub Pages site. You get a report of the sections the branch makes wrong, incomplete or unreachable, what each one needs, the new public elements no page documents, and a verdict.

A branch changes the code while the documentation keeps describing it as it was, and nobody notices until a reader follows a removed flag. This skill scans the whole doc set for what the diff touches, adds the impacts no shared term reveals, and leaves the fix to a separate step, so the report stays a check, not a rewrite.

Claude Code picks the skill before the final pull request of a branch, or when you ask:

which documentation does this branch affect?
what docs does the range v1.4..HEAD make stale?

It never edits documentation. At the end it offers the documentation-writer agent to make the changes, or the documentation-reviewer agent to review the affected pages.

  • Configuration: none needed; by default it checks README*, docs/**, doc/** and top-level *.md in the repository. Keys in the project’s ## Documentation section of CLAUDE.md or AGENTS.md adjust it:

    ## Documentation
    - Published as a whole: `README.md`, `docs/**`
    - Docs source: https://github.com/example/payments-docs.git@main
    - Docs impact map: `src/refunds/**` => `docs/api/refunds.md`
    - Docs pages: off

    Published as a whole sets the doc set, and technical-writing reads it too: a glob set for that skill also narrows this one’s doc set; Docs source points to documentation kept outside the repository, a local path or a git URL with an optional @<ref>; each Docs impact map line ties a code glob to the pages that document it; Docs pages: off skips GitHub Pages detection and the navigation check.

  • Report: a Markdown file in the session’s scratch folder, or the path you give, with the impacted sections and an assessment.

Python 3 (standard library only) and git 2.28 or later.

  • It scans documentation formats only (Markdown/MDX, reStructuredText, AsciiDoc, HTML) and excludes changelogs; an OpenAPI file in the doc set is skipped.
  • The navigation check needs an explicit navigation (an MkDocs nav: or a hand-written Docusaurus sidebar); no site is built and no link is followed.
  • An empty result covers shared terms and mappings, not behaviour described only in prose: the skill reads the diff for those.
  • With an external docs source it cannot see edits already made in the branch, and skips the navigation check.