zcf-update-docs

zcf-update-docs is a skill for Claude Code from UfoMiao/zcf. It costs 43 tokens per session (3,964 once invoked), scanned A, original, MIT.

A documentation synchronisation tool for checking whether project documentation matches recent code changes. It covers English, Simplified Chinese, and Japanese documentation, plus CLAUDE.md.

In plain words
What is it for?
Use it after changes since the last Git tag to find inconsistencies, update documentation, or run a check-only review without editing files.
Why use it?
It reduces the risk of instructions, feature descriptions, or command examples becoming outdated after code changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

About the project

ZCF is a command-line setup tool for configuring Claude Code and Codex with agents, instructions, skills, hooks, commands, and settings. It is for developers who want to install and personalize these coding-agent workflows through an interactive setup.

UfoMiao/zcf · 6,085 stars · on GitHub · zcf.ufomiao.com

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.

agentmods
npx agentmods add skills/ufomiao/zcf/zcf-update-docs
Any agent
npx skills add UfoMiao/zcf --skill zcf-update-docs
Clone the repo
git clone --depth 1 https://github.com/UfoMiao/zcf

Made for: Claude Code.

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 zcf-update-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/ufomiao/zcf/zcf-update-docs.svg)](https://agentmods.dev/skills/ufomiao/zcf/zcf-update-docs)
Your own site
<a href="https://agentmods.dev/skills/ufomiao/zcf/zcf-update-docs"><img src="https://agentmods.dev/badge/skills/ufomiao/zcf/zcf-update-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,964 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00043 $0.03964
Opus 5 $0.00022 $0.01982
Sonnet 5 $0.00009 $0.00793
Haiku 4.5 $0.00004 $0.00396

Measured 6d ago against content hash c6620157d38a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

zcf-update-docs 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 6d 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.

.claude/skills/zcf-update-docs/SKILL.md · 453 lines

How it starts

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

ZCF Update Docs - Documentation Synchronization

Automatically check code changes since last tag and update documentation in docs/ directory (multilingual: en, zh-CN, ja-JP) and CLAUDE.md to ensure consistency with actual code implementation.

Usage

/zcf-update-docs [--check-only]

Parameters

  • --check-only: Only check for inconsistencies without making updates (dry run)

Context

  • Analyze all code changes since the last Git tag
  • Check if documentation needs updates in docs/ directory structure
  • Ensure CLI commands, features, and workflows documentation match actual code
  • Maintain multilingual documentation consistency across en, zh-CN, ja-JP
  • Update CLAUDE.md for development-related changes

Your Role

You are a professional documentation maintainer responsible for:

  1. Analyzing code changes and their impact on documentation
  2. Identifying documentation sections that need updates
  3. Ensuring documentation accuracy and consistency
  4. Maintaining multilingual synchronization

Execution Flow

Parse arguments: $ARGUMENTS

1. Parameter Parsing

CHECK_ONLY=false  # Default to update mode

case "$ARGUMENTS" in
  --check-only)
    CHECK_ONLY=true
    echo "📋 Running in check-only mode (no files will be modified)"
    ;;
  "")
    CHECK_ONLY=false
    echo "✏️ Running in update mode"
    ;;
  *)
    echo "Unknown parameter: $ARGUMENTS"
    echo "Usage: /zcf-update-docs [--check-only]"
    exit 1
    ;;
esac

2. Get Changes Since Last Tag

Analyze all changes since the last release:

# Get last release tag
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")

if [ -z "$LAST_TAG" ]; then
  echo "⚠️ No previous version tag found, analyzing all files"
  FILES_CHANGED=$(git ls-files)
else
  echo "📊 Last version: $LAST_TAG"
  echo "Analyzing changes since $LAST_TAG..."
  FILES_CHANGED=$(git diff --name-only $LAST_TAG..HEAD)
fi

# Categorize changed files
echo -e "\n📁 Analyzing changed files..."

Read the full file on GitHub · 453 lines

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. 6d ago First seen · 453 lines · 43 tokens per session scan A c6620157d38a

Subscribe to this mod's changes

zcf-update-docs is a skill published in the GitHub repository UfoMiao/zcf (6,085 stars, last pushed 6d ago), licensed MIT. It adds 43 tokens to every session and 3,964 once invoked, about $0.0002 per session on Opus 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.