From claude-code-expert
Syncs Claude Code configurations across projects and sub-repos: re-fingerprints tech stack, discovers sub-repos, scaffolds docs/context/, updates README/CLAUDE.md, installs LSPs, verifies setup. Auto-invokes on /cc-sync.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-expert:project-syncclaude-sonnet-4-6This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reusable workflow for keeping Claude Code configuration current across a project
Reusable workflow for keeping Claude Code configuration current across a project
and its sub-repositories. Powers the /cc-sync command.
.claude/ configurationdocs/context/ needs scaffolding or updatesRe-scan the project using detection maps from /cc-setup:
.claude/sync-state.json for delta# 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/:
.claude/ directory structureCreate 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 |
Section-aware merge:
For each detected language, check binary availability and install if missing.
Score the configuration on a 0-100 scale across:
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.
.claude/sync-state.json/cc-sync command: commands/cc-sync.md/cc-setup command: commands/cc-setup.mdnpx claudepluginhub markus41/claude --plugin claude-code-expertBootstraps or updates projects for Claude Code — generates CLAUDE.md with progressive disclosure docs, installs auto-format hooks, sets up test infrastructure, audits existing docs against source code. Supports single projects, monorepos, and multi-repo workspaces.
Bootstraps .claude/ dotclaude config from template if missing, then customizes all files to match project's tech stack, conventions, and patterns. Interactive via user confirmations.
Scans codebase to update CLAUDE.md and AGENTS.md with production-quality docs on stack, structure, models, APIs, services, repositories, auth, and frontend.