sync

Syncs CLAUDE.md files with actual repository state, updating docs for code, dependency, and configuration changes.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/jugrajsingh/skillgarden --skill sync-jugrajsingh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync
Source: https://github.com/jugrajsingh/skillgarden/tree/main/plugins/claudemd/skills/sync
Command: npx skills add https://github.com/jugrajsingh/skillgarden --skill sync-jugrajsingh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that your CLAUDE.md documentation accurately reflects the current state of your codebase, preventing outdated information and drift.

Core Features & Use Cases

  • Drift Detection: Compares documented facts (dependencies, commands, file paths) against the actual codebase.
  • Automated Updates: Applies detected changes to CLAUDE.md files (root, module, and rules).
  • Use Case: After updating a dependency in package.json or refactoring a directory structure, run this Skill to automatically update the relevant CLAUDE.md files, maintaining documentation integrity.

Quick Start

Run the sync skill to update all CLAUDE.md files to reflect the current codebase.

Frequently Asked Questions about sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep CLAUDE.md documentation in sync with codebase changes?

To keep CLAUDE.md documentation in sync, the skill detects and applies changes in dependencies, directory structures, commands, and file references by auditing root, module, and rule files against package managers, git, and filesystem states.

Why does my CLAUDE.md file have outdated dependencies after refactoring?

Your CLAUDE.md file experiences documentation drift when updates to package manifests or directory structures are not reflected in the documentation. The sync skill automatically detects this drift and applies the correct updates.

What's the best way to automate CLAUDE.md updates after modifying package.json?

The best way to automate CLAUDE.md updates is running the sync skill, which parses package manifests and applies detected dependency changes directly to your root, module, and rules documentation files.

Does the sync skill work with module-level CLAUDE.md files or only root files?

The sync skill works with both root and module-level CLAUDE.md files, auditing rule files against actual codebase states using file system traversal, version control, and package manifest parsing.

When should I run a CLAUDE.md drift detection check?

You should run drift detection after updating dependencies in package.json or refactoring a directory structure, ensuring your documented commands, file paths, and dependencies accurately reflect the current codebase.

Do I need specific tools to synchronize CLAUDE.md with my codebase?

Yes, synchronizing CLAUDE.md requires tools for file system traversal, version control via git, and package manifest parsing to successfully audit and update documentation against the current codebase state.