Project sync

From markus41/claude · View interactive version

Project sync is an AI agent skill from the GitHub repository markus41/claude. Project sync and configuration propagation — auto-invoke when running /cc-sync or updating Claude Code setup across repos

How to use this skill

Skill file

Project Sync

Reusable workflow for keeping Claude Code configuration current across a project

and its sub-repositories. Powers the /cc-sync command.

When to Use

Core Workflow

1. Re-Fingerprint

Re-scan the project using detection maps from /cc-setup:

2. Sub-Repo Discovery

# Find nested git repos (exclude standard non-project dirs)
EXCLUDE="node_modules|\.git|vendor|dist|build|coverage|__pycache__|\.next|\.nuxt"
find . -maxdepth 2 -name ".git" -type d | grep -vE "$EXCLUDE"

For each sub-repo without .claude/:

3. Documentation Scaffold

Create docs/context/ files that don't exist:

| File | Auto-populated from |

|------|---------------------|

| project-overview.md | package.json, directory tree, fingerprint |

| architecture.md | Detected components, services |

| data-model.md | Prisma schema, migration files |

| api-contracts.md | Route files, OpenAPI specs |

| testing-strategy.md | Test framework config, test directories |

| security-rules.md | Auth middleware, env vars |

| changelog.md | Git log summary |

4. README/CLAUDE.md Update

Section-aware merge:

5. LSP Installation

For each detected language, check binary availability and install if missing.

6. Verification

Score the configuration on a 0-100 scale across:

Merge Strategy

IF file does not exist → CREATE from template
ELIF --force flag → BACKUP (.bak) then OVERWRITE
ELSE → SKIP (preserve user content)

For README.md and CLAUDE.md, use section-level granularity instead of file-level.

Outputs

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.