# Docsync

> Docsync is an open-source agent skill for developer tools. Audits docs against the code and proposes human-approved fixes for drift. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JasGujral/mokata-oss/tree/main/src/mokata/skills/docsync
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** docsync
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Docsync checks whether a project's documentation still matches what the code actually does. It can audit a single doc or sweep the whole public doc tree, cross-referencing claims such as skill counts, command names, config keys, install paths, version examples and symbol signatures against the code. Findings are graded Blocking, Minor or Info, and the stale section is highlighted for each.

The audit is read-only. When the user asks for reconciliation, the agent previews a unified diff of the proposed doc edits and writes only after explicit approval through a human gate. The skill is designed to change documentation, never source code, and it leans on the code graph and project memory for symbol and config checks when those are available, falling back to reading and grepping the code otherwise.

The skill is driven by a bundled mokata engine invoked from the command line, and it expects a project path plus a Python interpreter to run it. Its full checklist lives in a separate reference file that the agent loads when needed.

## When your agent uses it

> mokata · Keep the docs TRUE to the code — audit a doc (or sweep + drift-detect the docs) against the code, then reconcile the drift behind a human-gated, previewed write.

## What it can access

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

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/docsync)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/docsync)

## Features

- **Doc-to-code audit:** Cross-checks each claim in a doc against the current code without changing anything.
- **Whole doc tree sweep:** Scans every public doc to find drift without needing to know which file went stale.
- **Severity-graded findings:** Labels each discrepancy as Blocking, Minor or Info and points to the affected section.
- **Previewed human-gated fixes:** Shows a unified diff of proposed doc edits and writes only after explicit approval.
- **Symbol and config checks:** Verifies command names, config keys, counts and install paths against the code graph.

## Good for

- Check whether the README still matches the current CLI commands
- Find docs that reference a function whose signature just changed
- Verify install instructions before a release
- Update a stale skill count in the documentation
- Review which doc sections a recent rename has made outdated

## Install

### Claude Code

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

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

Or copy only this skill to `~/.claude/skills/docsync`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/docsync &&
cp -R "$tmp/src/mokata/skills/docsync" ~/.claude/skills/docsync &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/docsync &&
cp -R "$tmp/src/mokata/skills/docsync" ~/.agents/skills/docsync &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/docsync &&
cp -R "$tmp/src/mokata/skills/docsync" ~/.cursor/skills/docsync &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/docsync` 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/JasGujral/mokata-oss.git --path src/mokata/skills/docsync
```

Or copy the folder to `~/.gemini/skills/docsync` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/docsync &&
cp -R "$tmp/src/mokata/skills/docsync" ~/.copilot/skills/docsync &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/docsync` into your agent's skills folder as `docsync`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does docsync change my code to match the docs?

No. It brings documentation in line with the code and never edits code to match a doc.

### Will Docsync write to my docs automatically?

No. The audit is read-only, and any reconcile edit is shown as a diff and written only after explicit approval.

### Should I use Docsync to write new documentation from scratch?

No. The skill is meant for reconciling existing docs with the code, not for authoring new documentation.

### What does Docsync need to run?

It runs the bundled mokata engine with Python from a project path. The code graph and memory are optional and sharpen some checks when present.

### How do I install Docsync in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/docsync to use it in all your projects, or to .claude/skills/docsync in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

### Does Docsync 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 Docsync?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Docsync?

The closest alternatives to Docsync are Docs sync audit, Analyze, Docs governance, Intent drift and Spec scout.

## 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.
- [Analyze](https://ai-powered.com/skills/analyze-ramboz): Analyze is an open-source agent skill for developer tools.
- [Docs governance](https://ai-powered.com/skills/docs-governance): Docs governance is an open-source agent skill for developer tools.
- [Intent drift](https://ai-powered.com/skills/intent-drift): Intent drift is an open-source agent skill for developer tools.
- [Spec scout](https://ai-powered.com/skills/spec-scout): Spec scout is an open-source agent skill for developer tools.
- [Harness sync](https://ai-powered.com/skills/harness-sync-chachamaru127): Harness sync is an open-source agent skill for developer tools.
- [Acquire codebase knowledge](https://ai-powered.com/skills/acquire-codebase-knowledge): Acquire codebase knowledge is an open-source agent skill for developer tools.
- [Maintain verification skill](https://ai-powered.com/skills/maintain-verification-skill): Maintain verification skill is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/docsync
