โšกSkillsAggSubmit Skill

claude-md-sync

โœ“Clean

Keep CLAUDE.md documentation in sync with codebase evolution. Use when user says "sync claude.md", "update claude.md", "check claude.md", or when project structure, tech stack, or architecture has changed and documentation may be outdated.

โญ 0 stars๐Ÿด 0 forksโ†“ 0 installs

Install Command

npx skills add wzh274728277/claude-md-sync
Author
wzh274728277
Repository
wzh274728277/claude-md-sync
Discovered via
github topic
Weekly installs
0
Quality score
20/100
Last commit
2/5/2026

SKILL.md

---
name: claude-md-sync
description: Keep CLAUDE.md documentation in sync with codebase evolution. Use when user says "sync claude.md", "update claude.md", "check claude.md", or when project structure, tech stack, or architecture has changed and documentation may be outdated.
---

# CLAUDE.md Sync

Keep CLAUDE.md up-to-date as the codebase evolves. Uses git commit history to efficiently detect changes without scanning the entire codebase.

## Workflow

### Step 1: Analyze Changes

Run the analysis script to see what changed since last CLAUDE.md update:

```bash
python3 .claude/skills/claude-md-sync/scripts/analyze_commits.py .
```

For JSON output (useful for programmatic processing):

```bash
python3 .claude/skills/claude-md-sync/scripts/analyze_commits.py . --json
```

### Step 2: Identify Documentation Gaps

Based on the analysis, check if CLAUDE.md needs updates for:

1. **New directories/features** - Added files in new locations
2. **API changes** - New or modified API routes
3. **Tech stack changes** - New dependencies or tools
4. **Architecture changes** - Structural reorganization
5. **Removed functionality** - Deleted features that should be removed from docs

### Step 3: Suggest Updates

Read current CLAUDE.md and propose specific edits:

- Add new sections for significant new features
- Update existing sections with new information
- Remove outdated information about deleted code
- Keep descriptions concise and accurate

### Step 4: Apply Changes

After user approval, use Edit tool to update CLAUDE.md with the proposed changes.

## What the Script Analyzes

The `analyze_commits.py` script:

- Finds last commit that modified CLAUDE.md
- Collects all commits since then
- Categorizes file changes by type:
  - API Routes, Pages, Components, Contexts
  - Utilities, Mastra (AI Layer), Supabase
  - Documentation, Configuration, Database

## Example Output

```
# Git Changes Analysis

**Commits analyzed:** 5
**Date range:** 2026-02-01 รขย†ย’ 2026-02-05

## Recent Commits
- Add user authentication flow
- Implement Mastra agent scaffolding

## รขยžย• Files Added (3)
### Mastra (AI Layer)
- `src/mastra/agents/tutor.ts`
- `src/mastra/tools/youtube.ts`
```

## Guidelines

- Only suggest updates for significant structural changes
- Keep CLAUDE.md concise - it shares context window with conversations
- Prefer updating existing sections over adding new ones
- Remove stale information about deleted functionality

Similar Skills

Optimize oversized CLAUDE.md files using progressive disclosure. Analyzes content tiers, detects encryption constraints, creates sub-documents, and rewrites the main file with a Sub-Documentation Table. Triggers: optimize CLAUDE.md, reduce CLAUDE.md size, CLAUDE.md too long, apply progressive disclosure to CLAUDE.md

documentationrefactoringclaude-mdoptimization
npx skills add wrsmith108/claude-md-optimizer
claude-bridgeโœ“Clean

Use when the user needs to query, analyze, or collaborate with another project's codebase by spawning a second Claude CLI instance. Enables cross-project communication between a frontend and backend, microservices, or any two codebases. Triggers on phrases like "ask backend", "bridge to", "check the other project", "query project X".

โญ 1โ†“ 0enesgur/claude-bridge
npx skills add enesgur/claude-bridge

Stable Feishu doc writing via MCP (mcporter + lark.update-doc/create-doc) with real multiline markdown and post-write fetch validation. Use when user asks to write/update PRD or cloud docs through Feishu MCP while avoiding literal \n formatting corruption.

npx skills add bert995/feishu-mcp-doc-write-stable
project-memoryโœ“Clean

Set up and maintain a structured project memory system in docs/project_notes/ that tracks bugs with solutions, architectural decisions, key project facts, and work history. Use this skill when asked to "set up project memory", "track our decisions", "log a bug fix", "update project memory", or "initialize memory system". Configures both CLAUDE.md and AGENTS.md to maintain memory awareness across different AI coding tools.

npx skills add SpillwaveSolutions/project-memory
claude-md-sync | SkillsAgg