ai-rules-sync: Skill for Claude Code

.claude/skills/sync-readme/SKILL.md

sync-readme is a skill for Claude Code from lbb00/ai-rules-sync. It costs 20 tokens per session (540 once invoked), scanned A, original, Unlicense.

Instructions for keeping an English README and a Chinese README matched in content and structure. They cover comparing files, translating prose, preserving code and links, and checking language links.

In plain words
What is it for?
Use them to compare both README files, decide which is newer, translate changed sections, and preserve formatting and technical terms.
Why use it?
They reduce missing or inconsistent documentation when one language version changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is lbb00/ai-rules-sync's own configuration. It tells Claude Code how to work on ai-rules-sync itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-rules-sync configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lbb00/ai-rules-sync. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lbb00/ai-rules-sync/main/.claude/skills/sync-readme/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lbb00/ai-rules-sync

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 sync-readme

README.md
[![agentmods](https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/sync-readme/github.svg)](https://agentmods.dev/skills/lbb00/ai-rules-sync/sync-readme)
Your own site
<a href="https://agentmods.dev/skills/lbb00/ai-rules-sync/sync-readme"><img src="https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/sync-readme/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 sync-readme

Your own site · 80×15
<a href="https://agentmods.dev/skills/lbb00/ai-rules-sync/sync-readme"><img src="https://agentmods.dev/badge/skills/lbb00/ai-rules-sync/sync-readme.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 540 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.
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.00020 $0.00540
Opus 5.5 $0.00008 $0.00216
Sonnet 5.5 $0.00004 $0.00108
Haiku 4.5 $0.00002 $0.00054

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

Security

Grade A, and why

sync-readme 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.

.claude/skills/sync-readme/SKILL.md · 79 lines

How it starts

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

Sync README

Purpose

Keep the English (README.md) and Chinese (README_ZH.md) documentation in sync. When one is updated, this skill helps translate and synchronize changes to the other.

Instructions

  1. Compare Both Files

    • Read README.md and README_ZH.md
    • Identify sections that differ
    • Note new sections in either file
  2. Determine Sync Direction

    • If English was updated more recently: translate EN → ZH
    • If Chinese was updated more recently: translate ZH → EN
    • If unclear, ask user which is the source of truth
  3. Translate Content

    • Preserve all code blocks unchanged
    • Translate prose sections accurately
    • Keep technical terms consistent:
      • "rules" → "规则"
      • "commands" → "命令"
      • "skills" → "技能"
      • "agents" → "代理"
      • "instructions" → "指令"
      • "adapter" → "适配器"
      • "symbolic link" → "软链接"
  4. Preserve Structure

    • Keep same heading hierarchy
    • Maintain table formats
    • Preserve all links and badges
    • Keep code examples identical
  5. Update Language Links

    • Ensure language toggle links are present
    • English: [English](./README.md) | [中文](./README_ZH.md)
    • Chinese: [English](./README.md) | [中文](./README_ZH.md)
  6. Verify Completeness

    • All sections present in both files
    • All features documented in both
    • Examples work in both versions

Translation Guidelines

Section Headers

English Chinese
Install 安装
Commands 命令
Architecture 架构
Tab Completion Tab 补全
Legacy compatibility Legacy 兼容说明
Supported Sync Types 支持的同步类型

Common Phrases

English Chinese
Default mapping 默认映射
Source directory 源目录
Target directory 目标目录
Run this command 运行此命令
This command will 该命令会

Output

After running this skill:

  • Both README files contain identical information
  • All features documented in both languages
  • Formatting consistent across both files

Read the full file on GitHub · 79 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. 1mo ago First seen · 79 lines · 20 tokens per session scan A d31bb94cf8b1

Subscribe to this mod's changes

sync-readme is a skill published in the GitHub repository lbb00/ai-rules-sync (40 stars, last pushed 2mo ago), licensed Unlicense. It adds 20 tokens to every session and 540 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

authoring-skills-and-rules

Author Skills (SKILL.md) and rules/instructions across Claude Code, Cursor, OpenCode, Codex, and GitHub Copilot. Covers frontmatter, file layout, activation, mirroring, and craft: progressive disclosure, Apply-when descriptions, leading words, playbook steps copied into todos, skip reasons, the deletion test, and…

afaraha8403/balakit · 163 tokens

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

bopomofo-rescue

A text-recovery tool for Taiwanese Bopomofo, also called Zhuyin, keyboard mistakes. It converts letter-and-number sequences typed with the wrong input mode back into likely Chinese text.

mxyhi/ok-skills · 332 tokens

translate-skill

A project skill for translating mattpocock/skills content into Simplified Chinese. It preserves commands, names, file paths, code, links, and other behavior-critical details.

vinvcn/addyosmani-agent-skills-zh · 91 tokens

awesome-translate-ru-en

Translates Russian text of any genre into natural English, keeping structure, formatting, links, identifiers and the author's voice; can mirror a folder. Use when asked to translate Russian into English.

khasky/awesome-agent-skills · 45 tokens

i18n

Audit internationalization coverage and find hardcoded strings. Use when asked to "check i18n", "find hardcoded strings", or verify translation coverage. Don't use for backend code, projects without an i18n library, accessibility (/a11y-audit), or bundle size (/perf-audit).

helderberto/agent-skills · 65 tokens