New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Command that refreshes CLAUDE.md from recent code changes so project notes stay current.

version
1.0.0
GitHub stars
689

What it does

  • Adds the /update-claudemd command, which rewrites CLAUDE.md based on recent changes to the codebase
  • Keeps your project's CLAUDE.md aligned with recent code changes without manual editing

Automatically update CLAUDE.md file based on recent code changes

Add marketplace

/plugin marketplace add ananddtyagi/cc-marketplace

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install update-claudemd@cc-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Update Claude.md File

Current Claude.md State

@CLAUDE.md

Git Analysis

Current Repository Status

!git status --porcelain

Recent Changes (Last 10 commits)

!git log --oneline -10

Detailed Recent Changes

!git log --since="1 week ago" --pretty=format:"%h - %an, %ar : %s" --stat

Recent Diff Analysis

!git diff HEAD~5 --name-only | head -20

Detailed Diff of Key Changes

!git diff HEAD~5 -- "*.js" "*.ts" "*.jsx" "*.tsx" "*.py" "*.md" "*.json" | head -200

New Files Added

!git diff --name-status HEAD~10 | grep "^A" | head -15

Deleted Files

!git diff --name-status HEAD~10 | grep "^D" | head -10

Modified Core Files

!git diff --name-status HEAD~10 | grep "^M" | grep -E "(package\.json|README|config|main|index|app)" | head -10

Project Structure Changes

!find . -name "*.md" -not -path "./node_modules/*" -not -path "./.git/*" | head -10

Configuration Changes

!git diff HEAD~10 -- package.json tsconfig.json webpack.config.js next.config.js .env* docker* | head -100

API/Route Changes

!git diff HEAD~10 -- "**/routes/**" "**/api/**" "**/controllers/**" | head -150

Database/Model Changes

!git diff HEAD~10 -- "**/models/**" "**/schemas/**" "**/migrations/**" | head -100

Your Task

Based on the current CLAUDE.md content and all the git analysis above, create an updated CLAUDE.md file that:

1. Preserves Important Existing Content

  • Keep the core project description and architecture
  • Maintain important setup instructions
  • Preserve key architectural decisions and patterns
  • Keep essential development workflow information

2. Integrates Recent Changes

Analyze the git diff and logs to identify:

  • New Features: What new functionality was added?
  • API Changes: New endpoints, modified routes, updated parameters
  • Configuration Updates: Changes to build tools, dependencies, environment variables
  • File Structure Changes: New directories, moved files, deleted components
  • Database Changes: New models, schema updates, migrations
  • Bug Fixes: Important fixes that affect how the system works
  • Refactoring: Significant code reorganization or architectural changes

3. Updates Key Sections

Intelligently update these CLAUDE.md sections:

Project Overview

  • Update description if scope changed
  • Note new technologies or frameworks added
  • Update version information

Architecture

  • Document new architectural patterns
  • Note significant structural changes
  • Update component relationships

Setup Instructions

  • Add new environment variables
  • Update installation steps if dependencies changed
  • Note new configuration requirements

API Documentation

  • Add new endpoints discovered in routes
  • Update existing endpoint documentation
  • Note authentication or parameter changes

Development Workflow

  • Update based on new scripts in package.json
  • Note new development tools or processes
  • Update testing procedures if changed

Recent Changes Section

Add a "Recent Updates" section with:

  • Summary of major changes from git analysis
  • New features and their impact
  • Important bug fixes
  • Breaking changes developers should know about

File Structure

  • Update directory explanations for new folders
  • Note relocated or reorganized files
  • Document new important files

4. Smart Content Management

  • Don't duplicate: Avoid repeating information already well-documented
  • Prioritize relevance: Focus on changes that affect how developers work with the code
  • Keep it concise: Summarize rather than listing every small change
  • Maintain structure: Follow existing CLAUDE.md organization
  • Add timestamps: Note when major updates were made

5. Output Format

Provide the complete updated CLAUDE.md content, organized as:

# Project Name

## Overview
[Updated project description]

## Architecture
[Updated architecture information]

## Setup & Installation
[Updated setup instructions]

## Development Workflow
[Updated development processes]

## API Documentation
[Updated API information]

## File Structure
[Updated directory explanations]

## Recent Updates (Updated: YYYY-MM-DD)
[Summary of recent changes]

## Important Notes
[Key information for developers]

From the ananddtyagi/cc-marketplace README

Claude Code Marketplace

Community-driven marketplace for Claude Code commands and plugins.

🚀 Quick Start

Add this marketplace to Claude Code:

/plugin marketplace add ananddtyagi/cc-marketplace

Then browse and install individual plugins (commands or agents):

/plugin

Install a specific command:

/plugin install lyra@cc-marketplace

Install a specific agent:

/plugin install accessibility-expert@cc-marketplace

🌟 Featured Commands

  • Documentation Generator - Create comprehensive documentation for code, APIs, and projects. (by Anonymous)
  • Lyra - Lyra - a master-level AI prompt optimization specialist. (by @ananddtyagi)
  • Analyze Codebase - Generate comprehensive analysis and documentation of entire codebase (by @ananddtyagi)
  • Update Claude.md - Automatically update CLAUDE.md file based on recent code changes (by @ananddtyagi)
  • Ultrathink - Use /ultrathink <TASK_DESCRIPTION> to launch a Coordinator Agent that directs four specialist sub-agents—Architect, Research, Coder, and Tester—to analyze, design, implement, and validate your coding task. The process breaks the task into clear steps, gathers insights, and synthesizes a cohesive solution with actionable outputs. Relevant files can be referenced ad-hoc using @ filename syntax. (by Jeronim Morina)
  • Code Review - Perform a comprehensive code review of recent changes (by @ananddtyagi)
  • Refractor - Refactor code following best practices and design patterns (by @ananddtyagi)
  • Code Review Assistant - Get comprehensive code reviews with suggestions for improvements, best practices, and potential issues. (by Anonymous)
  • Bug Detective - Systematically debug issues with step-by-step troubleshooting approaches. (by Anonymous)
  • Audit - Perform security audit on codebase (by @ananddtyagi)

View all plugins →

🤖 Featured Agents

  • Accessibility Expert - Specialized agent for accessibility reviews and improvements
  • AI Engineer - Expert in AI/ML implementation and optimization
  • Frontend Developer - React, Vue, Angular expert for UI development
  • DevOps Automator - CI/CD and infrastructure automation specialist
  • Code Reviewer - Thorough code review and best practices enforcement

View all agents →

💡 Browse & Submit

Visit claudecodecommands.directory to:

  • 🔍 Browse all commands and agents with descriptions and examples
  • 📤 Submit your own commands and agents
  • ⭐ Favorite plugins
  • 🏷️ Filter by category and tags

🎯 How It Works

Each plugin in this marketplace is independently installable:

  • Commands: Add custom slash commands to your Claude Code workflow (e.g., /lyra, /audit, /ultrathink)
  • Agents: Add specialized AI agents with specific expertise (e.g., accessibility-expert, frontend-developer, devops-automator)

Install only what you need - no bloat, full granular control!

🔄 Auto-Sync

This marketplace is automatically synced from the live database whenever commands are published or updated.

📝 License

Individual commands may have their own licenses. See each command file for details.

🤝 Contributing

Submit commands at claudecodecommands.directory/submit Submit agents at claudecodecommands.directory/submit-agent


Built with ❤️ by the Claude Code community

Details

Marketplace
ananddtyagi/cc-marketplace
Source
plugins/update-claudemd
Author
Anand Tyagi
Category
Code Review
Keywords
code-review
Listed since
Apr 7, 2026

More from ananddtyagi/cc-marketplace

All 119

Similar to update-claudemd

More Technical Documentation