# Refresh docs

> Refresh docs is an open-source agent skill for developer tools. Finds outdated reference docs and rewrites them from current source and data files. It is available on Claude Code.

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

## About

This skill scans a project for reference and specification docs that have fallen behind the code. It can check the whole repository, only files changed in recent commits, or a single named doc. When the project includes its own doc-freshness checker, the agent runs that first and treats its output as authoritative.

Beyond timestamp comparisons, the skill has the agent compare the surface a doc describes, such as endpoints, functions, CLI options and config keys, against what the code currently exposes. Each divergence is classed as missing from docs, missing from code, signature mismatch or description mismatch, with severity attached so the most misleading errors are fixed first. The agent then groups findings into docs to refresh and docs to create, asks which to update, and edits only the affected sections while keeping existing structure.

The skill expects a git repository, since it uses git diff and git diff --stat to identify and verify changes. It also asks the agent to use AskUserQuestion for confirmation and to skip docs with only trivial source changes.

## When your agent uses it

> Scan for stale reference docs and update them by reading current source code and data files.

## What it can access

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

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/refresh-docs)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/refresh-docs)

## Features

- **Stale doc detection:** Finds docs whose source files changed more recently than the docs themselves.
- **Surface divergence analysis:** Compares documented endpoints, functions and options against the current code.
- **Severity-ranked findings:** Classifies each mismatch so misleading or breaking errors are addressed first.
- **Targeted section updates:** Edits only affected sections while preserving each doc's existing structure.
- **Commit-range scoping:** Limits the scan to source files changed in the last N commits.
- **User-confirmed refresh:** Presents counts and asks which docs to update before writing changes.

## Good for

- Update the API reference after endpoints changed
- Find which architecture docs are out of date with the source
- Refresh a single spec file against current code
- Check docs touched by the last few commits
- Create docs for undocumented components

## Install

### Claude Code

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

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/refresh-docs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/refresh-docs &&
cp -R "$tmp/skills/refresh-docs" ~/.claude/skills/refresh-docs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/refresh-docs` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/refresh-docs &&
cp -R "$tmp/skills/refresh-docs" ~/.agents/skills/refresh-docs &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/refresh-docs` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/refresh-docs &&
cp -R "$tmp/skills/refresh-docs" ~/.cursor/skills/refresh-docs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/refresh-docs` 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/ajyadav013/claude-kit.git --path skills/refresh-docs
```

Or copy the folder to `~/.gemini/skills/refresh-docs` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/refresh-docs &&
cp -R "$tmp/skills/refresh-docs" ~/.copilot/skills/refresh-docs &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/refresh-docs` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

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

## FAQ

### Does Refresh docs need any scripts or extra tools?

It ships no scripts. It relies on git commands and, if the project has one, its own doc-freshness checker.

### Will Refresh docs rewrite every doc in the project?

No. It groups findings, asks which docs to refresh, and skips docs with only minor source changes.

### How is Refresh docs invoked?

It accepts no arguments, a --since N option for recent commits, or a path to a specific doc file.

### How do I install Refresh docs in Claude Code?

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

### Does Refresh docs 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 Refresh docs?

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 Refresh docs?

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

## Where this comes from

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

## Alternatives

- [Docs sync audit](https://ai-powered.com/skills/docs-sync-audit): Docs sync audit 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.
- [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.
- [Doc gardening](https://ai-powered.com/skills/doc-gardening): Doc gardening 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.
- [Sync docs](https://ai-powered.com/skills/sync-docs): Sync docs is an open-source agent skill for developer tools.
- [Docs branch off feature branch smuggles code](https://ai-powered.com/skills/docs-branch-off-feature-branch-smuggles-code): Docs branch off feature branch smuggles code is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/refresh-docs-ajyadav013
