coding-clyde

Ctx Syncr — AI skill for Claude Code

AI community

Single source of truth (.ai/) for AI coding assistants.

How to install Ctx Syncr

This entry records only its repository, not the path inside it, so there is no exact command to give. Open coding-clyde/ctx-syncr and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Ctx Syncr does

Single source of truth (.ai/) for AI coding assistants. Compiles and syncs CLAUDE.md, .cursor/rules, Copilot & Windsurf while auditing tokens and secrets.

Alternatives in AI

  • Krusch Context MCP — Persistent working memory and invariant steering MCP server for AI coding agents (Claude Code, Cursor, Windsur 82 ★
  • AI Coding Agents — Single source of truth for AI coding agent configuration — skills, commands and rules shared across OpenCode a 48 ★
  • Orquestrador Maestro — AI agent orchestration kit for Windows, Linux/MacOS with Codex skills, hooks, routing rules and profiles for C 41 ★

README

ctx-syncr

**One `.ai/` folder to keep `CLAUDE.md`, `.cursor/rules`, GitHub Copilot and Windsurf in sync — without wasting tokens.**

[![npm version](https://img.shields.io/npm/v/ctx-syncr.svg)](https://www.npmjs.com/package/ctx-syncr) [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![dependencies: 0](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](package.json) [![CI](https://github.com/coding-clyde/ctx-sync/actions/workflows/ci.yml/badge.svg)](https://github.com/coding-clyde/ctx-sync/actions/workflows/ci.yml) [![node >=20](https://img.shields.io/badge/node-%3E%3D20-339933.svg)](package.json)

Write your AI rules once in `.ai/`. ctx-syncr compiles them into the native file each assistant reads, shows what every assistant costs you in tokens, and blocks leaked secrets before they reach a commit, a pull request or a prompt.

npx ctx-syncr init     # scaffold .ai/ with ready-to-edit rules
npx ctx-syncr sync     # audit, then write CLAUDE.md, .cursor/rules, Copilot and Windsurf files
npx ctx-syncr check    # CI gate: fail on drift or leaked secrets

Why ctx-syncr

Every AI editor invented its own context file. Teams copy the same rules into four places, the copies drift, nobody knows which one is current, every always-on line is paid for in tokens on every request, and sooner or later an API key ends up in one of them. ctx-syncr treats editor context like code.

  • One source of truth. Rules live in .ai/**/*.md. Output is deterministic: same source, same bytes.
  • Token-aware. Every run prints the estimated tokens each assistant loads, against a budget (default 4,000). Scope a rule to specific assistants with targets, or to file patterns with globs, so each tool loads only what it needs.
  • Secret-proof. sync audits before it writes. If it finds a credential it writes nothing, so a leaked key is never copied into four files. Findings are redacted: the raw secret is never printed.