context-sync

context-sync is a skill for Claude Code, Codex from shimo4228/claude-harness. It costs 52 tokens per session (5,090 once invoked), scanned A, original, MIT.

A documentation audit and repair process for project context files such as CLAUDE.md, CODEMAPS, architecture decisions, and README files.

In plain words
What is it for?
Use it after refactors, when documentation has become cluttered, or when you need to organize project knowledge into clear roles.
Why use it?
It finds duplicated, misplaced, missing, or outdated project information that can mislead developers and coding agents.

Skill for Claude CodeCodex

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/shimo4228/claude-harness/context-sync
Any agent
npx skills add shimo4228/claude-harness --skill context-sync
Clone the repo
git clone --depth 1 https://github.com/shimo4228/claude-harness

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/shimo4228/claude-harness/context-sync.svg)](https://agentmods.dev/skills/shimo4228/claude-harness/context-sync)
Your own site
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/context-sync"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/context-sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00052 $0.05090
Opus 5 $0.00026 $0.02545
Sonnet 5 $0.00010 $0.01018
Haiku 4.5 $0.00005 $0.00509

Measured 4d ago against content hash e0b5412a3e81, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-sync scanned grade A with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/__init__.py, scripts/context_checks.py, scripts/context_evidence.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl` loop here.
skills/context-sync/SKILL.md · 350 lines

How it starts

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

Context Sync

Detect and fix documentation role overlaps, stale content, and missing context files across your project. Ensures every piece of project knowledge lives in exactly one place with a clear purpose.

Why This Matters

In LLM-driven development, organizing concepts is implementation. Markdown carries the same weight as executable code — a stale number in CLAUDE.md or a misplaced design rationale silently degrades every AI-assisted session that reads it. Context consistency is not housekeeping; it is a prerequisite for core concepts to reach the system without noise.

When to Use

  • After a major refactoring or architecture change
  • When CLAUDE.md / .cursorrules has grown large and feels cluttered
  • When you suspect docs are out of date with the code
  • When starting a new project and want proper doc structure from the beginning
  • When design decisions are buried in context files instead of formal records
  • Periodically (monthly or per milestone) as documentation hygiene

Core Concept: Four Documentation Roles

Every project document should serve exactly one of these four roles. Overlap causes drift and contradiction.

Role Purpose What belongs here Examples
Context How to work in this project Conventions, build/test commands, policies CLAUDE.md, .cursorrules, AGENTS.md
Architecture What the code looks like now (file-level) AND what concepts it defines (concept-level) Module structure / data flow / dependencies (file-level prose); domain entities / relationships (concept-level triples) docs/CODEMAPS/, docs/architecture/, graph.jsonld
Decisions Why the code is this way Trade-offs, rejected alternatives, rationale docs/adr/
External What this project is Purpose, quickstart, API overview README.md

Architecture role には 2 surface が共存しうる: prose(CODEMAPS — 「どのファイルに X が住むか」)と JSON-LD triples(graph.jsonld — 「X とは何か / X と Y はどう関係するか」)。両者は重複せず相補的。役割境界の詳細は jsonld-knowledge-graph skill が正本を持つ。

Read the full file on GitHub · 350 lines

Files

What ships with it

8 files 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. 4d ago First seen · 350 lines · 52 tokens per session scan A e0b5412a3e81

Subscribe to this mod's changes

context-sync is a skill published in the GitHub repository shimo4228/claude-harness (2 stars, last pushed 6d ago), licensed MIT. It adds 52 tokens to every session and 5,090 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

zod

Zod v4 best practices, patterns, and API guidance for schema validation, parsing, error handling, and type inference in TypeScript applications. Covers safeParse, object composition, refinements, transforms, codecs, branded types, v3→v4 migration, and testing schemas with Jest or Vitest. Baseline: zod ^4.3.0. Triggers…

anivar/zod-skill · 138 tokens

jest

Jest best practices, patterns, and API guidance for JavaScript/TypeScript testing. Covers mock design, async testing, matchers, timer mocks, snapshots, module mocking, configuration, and CI optimization. Baseline: jest ^30.0.0. Triggers on: jest imports, describe, it, test, expect, jest.fn, jest.mock, jest.spyOn…

anivar/jest-skill · 97 tokens

agent-adoption-triage

Five-question triage for routing AI work to the right architecture — script, algorithmic search, LLM workflow, or autonomous agentic loop — before any agent is built. Use when someone says "let's build an agent for X", when deciding whether a use case actually needs an autonomous agent, when reviewing an agent…

shimo4228/agent-adoption-triage · 143 tokens

zod-testing

Testing patterns for Zod schemas using Jest and Vitest. Covers schema correctness testing, mock data generation, error assertion patterns, integration testing with API handlers and forms, snapshot testing with z.toJSONSchema(), and property-based testing. Baseline: zod ^4.0.0. Triggers on: test files for Zod schemas…

anivar/zod-testing · 105 tokens

redux-saga

Redux-Saga best practices, patterns, and API guidance for building, testing, and debugging generator-based side-effect middleware in Redux applications. Covers effect creators, fork model, channels, testing with redux-saga-test-plan, concurrency, cancellation, and modern Redux Toolkit integration. Baseline: redux-saga…

anivar/redux-saga-skill · 109 tokens

redux-saga-testing

Write tests for Redux Sagas using redux-saga-test-plan, runSaga, and manual generator testing. Covers expectSaga (integration), testSaga (unit), providers, partial matchers, reducer integration, error simulation, and cancellation testing. Works with Jest and Vitest. Triggers on: test files for sagas…

anivar/redux-saga-testing · 104 tokens