RepoGrammar: Skill for Claude Code

.agents/skills/documentation-sync/SKILL.md

documentation-sync is a skill for Claude Code, Codex from SioYooo/RepoGrammar. It costs 31 tokens per session (629 once invoked), scanned A, original, MIT.

A set of instructions for keeping code, specifications, architecture notes, agent guides, and project memories synchronized. It applies to documentation and policy files as well as source-code changes.

In plain words
What is it for?
Use it when changing source code, documentation, architecture, agent rules, README files, memories, or CI policy. It defines which documents to update and which repository checks to run.
Why use it?
It reduces the risk that instructions or documentation describe behavior different from the implementation. It also requires checking links, mirrored guides, and repository rules after relevant edits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is SioYooo/RepoGrammar's own configuration. It tells Claude Code and Codex how to work on RepoGrammar 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 RepoGrammar configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SioYooo/RepoGrammar. 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/SioYooo/RepoGrammar/main/.agents/skills/documentation-sync/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SioYooo/RepoGrammar

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sioyooo/repogrammar/documentation-sync"><img src="https://agentmods.dev/badge/skills/sioyooo/repogrammar/documentation-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 629 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.00031 $0.00629
Opus 5.5 $0.00012 $0.00252
Sonnet 5.5 $0.00006 $0.00126
Haiku 4.5 $0.00003 $0.00063

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

Security

Grade A, and why

documentation-sync 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 2mo 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.

.agents/skills/documentation-sync/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.

Purpose

Keep implementation, canonical documentation, skills, memories, and mirrored agent guides synchronized.

Trigger conditions

Use when touching src/, docs/, .agents/skills/, .agents/memories/, AGENTS.md, CLAUDE.md, README, CHANGELOG, or CI policy.

Required reading

  • docs/README.md
  • docs/development/documentation-policy.md
  • docs/architecture/module-map.md
  • .agents/memories/README.md

Preconditions

  • Identify the canonical source for the changed topic.
  • Check whether the change makes a memory stale.

Step-by-step procedure

  1. Update the canonical document first.
  2. Update dependent references only where needed.
  3. Keep requirements duplicated in multiple places byte- or meaning-consistent.
  4. If either root guide changes, run guide sync immediately.
  5. Validate relative links by inspection for every changed Markdown file.
  6. Run repository guard.

Required verification

cargo run --quiet --bin repo-guard -- check
cmp -s AGENTS.md CLAUDE.md

Documentation updates

Follow this minimum matrix:

Code range Required document
src/rust/core/model/ docs/specifications/domain-model.md
src/rust/core/mining/ docs/specifications/indexing-pipeline.md
src/rust/core/policy/ domain model, product spec, or related ADR
src/rust/ports/ dependency rules and related specification
src/rust/adapters/parsing/ indexing pipeline and dependency rules
src/rust/adapters/languages/ indexing pipeline and roadmap
src/rust/adapters/semantic_workers/ semantic worker specification and ADR-0004
src/rust/adapters/frameworks/ indexing pipeline and roadmap
src/rust/adapters/persistence/ storage specification and related ADR
src/rust/application/ architecture overview, module map, and relevant specification
src/rust/interfaces/cli/ README and CLI specification
src/rust/interfaces/mcp/ docs/specifications/mcp-api.md
src/rust/bin/repo_guard.rs docs/development/repository-guard.md
src/workers/ semantic worker specification
src/protocol/ semantic worker specification

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. 2mo ago First seen · 79 lines · 31 tokens per session scan A a10ace1e528a

Subscribe to this mod's changes

documentation-sync is a skill published in the GitHub repository SioYooo/RepoGrammar (0 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 629 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-31.

Related

Other skills, from other repositories

architecture-audit

Systematic architecture audit and refactoring methodology for Rust + TypeScript codebases. Use when performing refactoring, cleanup, unification, code review, dead code removal, module reorganization, or tech debt elimination. Ensures no naming confusion, semantic overloading, hidden defaults, duplicate logic, or…

org2AI/ORG2 · 70 tokens

webgl-liquid-metal

A real-time liquid-metal shader — a domain-warped noise field shaded as molten chrome, with a sweeping specular highlight over an iridescent thin-film (cosine-palette) sheen. No textures. Rendered as a single self-contained index.html. Use when the brief asks for "liquid metal", "molten chrome", "iridescent"…

nexu-io/open-design · 121 tokens

webgl-neon-grid

A real-time synthwave scene — a perspective floor grid scrolling toward a banded retro sun under a neon starfield, all from one fragment shader. No textures. Rendered as a single self-contained index.html. Use when the brief asks for "synthwave", "outrun", "retro 80s", "neon grid", "perspective grid", "vaporwave", or…

nexu-io/open-design · 115 tokens

webgl-particle-galaxy

A real-time particle galaxy — tens of thousands of additive-blended GPU points spiraling around a bright core, their orbits solved entirely in the vertex shader (from glVertexID), so the whole cloud draws in one call. Rendered as a single self-contained index.html. Use when the brief asks for a "particle field"…

nexu-io/open-design · 126 tokens

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

webgl-horizontal-parallax

A horizontal-scroll WebGL gallery (Three.js): frames glide sideways with lerp smoothing and each image parallaxes its texture (UV shift) by its position in the viewport.

nexu-io/open-design · 41 tokens