Skip to content
Skill

Doc gardening

Flags docs that have drifted from the code: stale paths, broken links, removed APIs

Doc gardening is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Doc gardening

Doc Gardening is a report-first review skill for Claude Code that compares the docs/ folder, README.md, CODEBASE_MAP.md and parts of the lessons index against the current codebase. It looks for file paths that no longer exist, cross-document links and anchors that point nowhere, backticked symbols with no matching definition, import examples that reference missing modules, and version numbers that lag well behind the latest release.

The workflow runs in phases: it first inventories references as leads, then classifies each one as OK, stale, moved, or missing, and finally suppresses known intentional areas such as archived or legacy docs before grouping findings by severity. The output is a punch list with line numbers and suggested fixes. By default the skill does not edit any files; changes are made only when the user explicitly asks for a fix. A headless mode can append findings to a tasks file for scheduled runs.

The skill expects a repository with a docs folder and relies on git history to detect moved files. It is one Markdown file with no bundled scripts, and it points to a companion skill for documentation completeness and quality checks.

When your agent uses it

Cross-check docs/ against current code — flag stale file paths, broken cross-references, removed APIs, and outdated examples. Use when docs may have drifted after code changes. For doc completeness and quality use /documentation-audit instead.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the claude-code-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add tansuasici/claude-code-kit
/plugin install claude-code-kit@claude-code-kit

Or copy only this skill to ~/.claude/skills/doc-gardening:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/doc-gardening &&
cp -R "$tmp/.claude/skills/doc-gardening" ~/.claude/skills/doc-gardening &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/doc-gardening inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/doc-gardening to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/doc-gardening &&
cp -R "$tmp/.claude/skills/doc-gardening" ~/.agents/skills/doc-gardening &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/doc-gardening inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/doc-gardening to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/doc-gardening &&
cp -R "$tmp/.claude/skills/doc-gardening" ~/.cursor/skills/doc-gardening &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/doc-gardening inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/tansuasici/claude-code-kit.git --path .claude/skills/doc-gardening

Or copy the folder to ~/.gemini/skills/doc-gardening yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/doc-gardening:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/doc-gardening &&
cp -R "$tmp/.claude/skills/doc-gardening" ~/.copilot/skills/doc-gardening &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/doc-gardening inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git

Then copy claude-code-kit/.claude/skills/doc-gardening into your agent's skills folder as doc-gardening. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Stale path detection
Finds file references in docs that no longer resolve to a file in the repository.
Broken link checks
Flags relative cross-document links and anchors that do not match a target heading.
Missing symbol review
Searches the codebase for backticked function or class names that have no definition.
Stale example imports
Resolves import and require paths inside code blocks to catch removed modules.
Report-only by default
Produces a severity-ranked punch list and leaves edits to the human unless asked.
Scheduled headless runs
Supports recurring runs that append findings to a task file for later review.

Good for

  • Check whether docs still match the code after a refactor
  • Find broken links and dead file references in the docs folder
  • Review README.md for stale references before a release
  • Set up a weekly scan for documentation drift
  • Locate code examples that import modules which were removed

Doc gardening FAQ

When does Doc gardening trigger?

It is meant to be invoked with /doc-gardening when docs may have drifted after code changes, such as after a rename, refactor, feature removal or major release.

Does Doc gardening modify my documentation?

No. By default it is report-only and only changes files when the user explicitly asks to implement, fix, apply or refactor.

What does Doc gardening check?

It checks file paths, cross-document links and anchors, backticked symbols, import paths in code blocks, and version references in prose within docs/, README.md, CODEBASE_MAP.md and the lessons index.

What does Doc gardening skip?

It skips inline code comments, git history, changelogs, release notes, and files under docs/archive/ or docs/legacy/.

How does Doc gardening differ from documentation-audit?

According to the skill, documentation-audit assesses completeness and clarity, while doc-gardening looks for drift between docs and code.

How do I install Doc gardening in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/doc-gardening to use it in all your projects, or to .claude/skills/doc-gardening in one project. Or install the claude-code-kit plugin, which includes it: /plugin marketplace add tansuasici/claude-code-kit, then /plugin install claude-code-kit@claude-code-kit.

Does Doc gardening run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Doc gardening?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Doc gardening?

The closest alternatives to Doc gardening are Docsync, Documentation audit, Docs sync audit, Refresh docs and Docs sync edho ferdian.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from tansuasici/claude-code-kit

  1. Audits UI code against WCAG 2.1 AA for semantics, keyboard use, contrast and ARIA

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Audits a codebase's structure for SOLID violations, coupling and module boundary issues

    • Open source
    • 6 GitHub stars
    • Developer tools
  3. Lists the skills, agents, hooks and modules installed in a kit-enabled project

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Audits code for smells, error-handling gaps and maintainability issues with fixes

    • Open source
    • 6 GitHub stars
    • Developer tools
  5. Guides the agent to write and extend a project's golden-principles.yaml rule file

    • Open source
    • 6 GitHub stars
    • Developer tools
  6. Finds unused functions, dead imports, orphan files and unreachable branches in a codebase

    • Open source
    • 6 GitHub stars
    • Developer tools