docs-update-from-diff

docs-update-from-diff is a skill for Claude Code, Codex from QwenLM/qwen-code. It costs 75 tokens per session (972 once invoked), scanned A, original, Apache-2.0.

A workflow for updating the official documentation in the docs/ folder to match local code changes shown by Git. Git is a tool that records changes to files.

In plain words
What is it for?
It reviews the current difference from the codebase, identifies user-facing documentation changes, and updates the relevant existing pages.
Why use it?
It prevents documentation from describing old commands, settings, examples, or behavior after a feature or refactor changes the code.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit It reviews the current difference from the codebase, identifies user-facing documentation changes, and updates the relevant existing pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/qwenlm/qwen-code/docs-update-from-diff
About the project

Qwen Code is an open-source AI coding agent that runs in a terminal and helps developers work with code through language models. It supports multiple model providers and can also be used through IDEs, desktop software, SDKs, and messaging bots.

QwenLM/qwen-code · 28,586 stars · on GitHub · qwenlm.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add QwenLM/qwen-code --skill docs-update-from-diff
Clone the repo
git clone --depth 1 https://github.com/QwenLM/qwen-code

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-update-from-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/qwenlm/qwen-code/docs-update-from-diff/github.svg)](https://agentmods.dev/skills/qwenlm/qwen-code/docs-update-from-diff)
Your own site
<a href="https://agentmods.dev/skills/qwenlm/qwen-code/docs-update-from-diff"><img src="https://agentmods.dev/badge/skills/qwenlm/qwen-code/docs-update-from-diff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-update-from-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/qwenlm/qwen-code/docs-update-from-diff"><img src="https://agentmods.dev/badge/skills/qwenlm/qwen-code/docs-update-from-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.00972
Opus 5.5 $0.00030 $0.00389
Sonnet 5.5 $0.00015 $0.00194
Haiku 4.5 $0.00007 $0.00097

Measured 1mo ago against content hash 70c14226e4b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-update-from-diff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.qwen/skills/docs-update-from-diff/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Docs Update From Diff

Overview

Inspect local diffs, derive the documentation impact, and update only the repository's docs/ pages. Treat the current code as the source of truth and keep changes scoped, specific, and navigable.

Read references/docs-surface.md before editing if the affected feature does not map cleanly to an existing docs section.

Workflow

1. Build the change set

Start from local Git state, not from assumptions.

  • Inspect git status --short, git diff --stat, and targeted git diff output.
  • Focus on non-doc changes first so the documentation delta is grounded in code.
  • Ignore README.md and other non-docs/ content unless they help confirm intent.

2. Derive the docs impact

For every changed behavior, extract the user-facing or developer-facing facts that documentation must reflect.

  • New command, flag, config key, default, workflow, or limitation
  • Renamed behavior or removed behavior
  • Changed examples, paths, or setup steps
  • New feature that belongs in an existing page but is not mentioned yet

Prefer updating an existing page over creating a new page. Create a new page only when the feature introduces a stable topic that would make an existing page harder to follow.

3. Find the right docs location

Map each change to the smallest correct documentation surface:

  • End-user behavior: docs/users/**
  • Developer internals, SDKs, contributor workflow, tooling: docs/developers/**
  • Shared landing or navigation changes: root docs/** and _meta.ts

If you add a new page, update the nearest _meta.ts in the same docs section so the page is discoverable.

4. Write the update

Edit documentation with the following bar:

  • State the current behavior, not the implementation history
  • Use concrete commands, file paths, setting keys, and defaults from the diff
  • Remove or rewrite stale text instead of stacking caveats on top of it
  • Keep examples aligned with the current CLI and repository layout
  • Preserve the repository's existing docs tone and heading structure

Read the full file on GitHub · 106 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 106 lines · 75 tokens per session scan A 70c14226e4b2

Subscribe to this mod's changes

docs-update-from-diff is a skill published in the GitHub repository QwenLM/qwen-code (28,586 stars, last pushed today), licensed Apache-2.0. It adds 75 tokens to every session and 972 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.