# Doc gardening

> Doc gardening is an open-source agent skill for developer tools. Flags docs that have drifted from the code: stale paths, broken links, removed APIs. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tansuasici/claude-code-kit/tree/main/.claude/skills/doc-gardening
- **Repository:** https://github.com/tansuasici/claude-code-kit
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** doc-gardening
- **Collection:** https://github.com/tansuasici/claude-code-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/doc-gardening)
- [License: MIT](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/doc-gardening)

## Features

- **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

## Install

### Claude Code

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):

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Docsync](https://ai-powered.com/skills/docsync): Docsync is an open-source agent skill for developer tools.
- [Documentation audit](https://ai-powered.com/skills/documentation-audit): Documentation audit is an open-source agent skill for developer tools.
- [Docs sync audit](https://ai-powered.com/skills/docs-sync-audit): Docs sync audit is an open-source agent skill for developer tools.
- [Refresh docs](https://ai-powered.com/skills/refresh-docs-ajyadav013): Refresh docs is an open-source agent skill for developer tools.
- [Docs sync edho ferdian](https://ai-powered.com/skills/docs-sync-edho-ferdian): Docs sync edho ferdian is an open-source agent skill for developer tools.
- [Claude md refactor](https://ai-powered.com/skills/claude-md-refactor): Claude md refactor is an open-source agent skill for developer tools.
- [Validate skills](https://ai-powered.com/skills/validate-skills): Validate skills is an open-source agent skill for developer tools.
- [Documentation and adrs](https://ai-powered.com/skills/documentation-and-adrs): Documentation and adrs is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/doc-gardening
