Skip to content
claude-md-creator logo

CLAUDE.md Creator

claude-md-creator

Use when creating CLAUDE.md files, updating existing CLAUDE.md, validating CLAUDE.md structure, or auto-fixing CLAUDE.md issues. Load for setting up project instructions, global guidelines, local overrides, or modular rules. Handles global (~/.claude/CLAUDE.md), project (.claude/CLAUDE.md), local...

SKILL.md

Full skill instructions

CLAUDE.md Creator

Create, validate, and maintain CLAUDE.md files with intelligent project detection.

Workflow Decision Tree

                    User Request
                        │
            ┌───────────┴───────────┐
            │   What's needed?      │
            └───────────┬───────────┘
         ┌──────────────┼──────────────┐
         │              │              │
    Create new    Update existing   Validate/​Fix
         │              │              │
    ┌────┴────┐    ┌────┴────┐    ┌───┴────┐
    │         │    │         │    │        │
  Which      Detect   Merge    Auto-fix   Auto-fix
  type?      context  changes  issues    issues
    │         │        │        │         │
  Detect    Project   Ask      Run       Run
  context    type     user     fix       fix
    │         │      changes   script    script
    └────┬────┘       │        │         │
         │           │        │         │
    Generate    Generate     Validate   Validate
    content     content      output     output
         │           │        │         │
         └───────────┴────────┴─────────┘
                       │
                  Write to
                  file

Quick Start

TaskCommand
Create project CLAUDE.mdscripts/​generate-claude-md.py --type project
Update existing filescripts/​update-claude-md.py <path>
Validate filescripts/​validate-claude-md.py <path>
Auto-fix issuesscripts/​auto-fix-claude-md.py <path>
Detect contextscripts/​detect-claude-type.py

Step 1: Determine CLAUDE.md Type

Script: scripts/​detect-claude-type.py

Detection Logic:

ContextPathSize TargetWhen to Use
Global~/​.claude/​CLAUDE.md50-150 linesPersonal preferences across all projects
Project.claude/​CLAUDE.md100-300 linesTeam instructions for this project
LocalCLAUDE.local.md<50 linesPersonal overrides for this project
Rules.claude/​rules/​*.md20-100 eachModular topics by subject

Step 2: Detect Project Type

Script: scripts/​detect-project.py

Scans for project markers to generate smart defaults:

MarkerLanguageFrameworkTemplate Used
package.json + "next"TypeScriptNext.jsnodejs.md
package.json + "react" + "vite"TypeScriptVite Reactnodejs.md
requirements.txt + "fastapi"PythonFastAPIpython.md
requirements.txt + "django"PythonDjangopython.md
Cargo.tomlRust-rust.md
go.modGo-go.md
None detected--general.md

Step 3: Generate CLAUDE.md

Script: scripts/​generate-claude-md.py

Template Selection:

Base template (assets/​*.template.md)
    +
Language template (assets/​framework-templates/​*.md)
    +
Project-specific data (detected)
    =
Final CLAUDE.md

Step 4: Validate Structure

Script: scripts/​validate-claude-md.py

Checks Performed:

CategoryCheckError Level
FrontmatterValid YAML fence❌ Error
FrontmatterRequired fields❌ Error
StructureSection headers⚠️ Warning
Best practicesLine count⚠️ Warning
Best practicesTable format⚠️ Warning
ContentCommand validity⚠️ Warning
ContentPath references⚠️ Warning

Step 5: Auto-Fix Issues

Script: scripts/​auto-fix-claude-md.py

Auto-Fixes:

IssueFixBackup
Missing frontmatterAdd YAML fence✅ Yes
Empty sectionsRemove or placeholder✅ Yes
Malformed tablesConvert to proper Markdown✅ Yes
Extra blank linesCollapse to 1 lineNo
Inconsistent headingsNormalize to H2/​H3✅ Yes
Missing commandsAdd from project detection✅ Yes

Run modes:

# Dry run
./​auto-fix-claude-md.py --dry-run <path>

# Auto-fix all
./​auto-fix-claude-md.py <path>

# Fix specific category
./​auto-fix-claude-md.py --category structure <path>

Step 6: Update Existing

Script: scripts/​update-claude-md.py

Merge Strategy:

  1. Read existing CLAUDE.md
  2. Detect project changes
  3. Ask user what to update
  4. Preserve custom sections
  5. Write updated file

Best Practices

PrincipleTarget
Tables > ProseUse tables for commands, configs
Specific commandsExtract real commands from package.json
Line targetsGlobal: 50-150, Project: 100-300, Local: <50, Rules: 20-100
Progressive disclosureQuick start → detailed → references

Resources

scripts/

ScriptPurposeWhen to Use
detect-claude-type.pyDetermine CLAUDE.md typeAuto-detection
detect-project.pyScan project markersBefore generation
generate-claude-md.pyCreate from templatesNew file creation
validate-claude-md.pyCheck structureAfter edits
auto-fix-claude-md.pyFix issuesValidation fails
update-claude-md.pyUpdate existingProject changes

references/

FileLoad When
best-practices.mdWriting content
validation-rules.mdUnderstanding errors
project-detection.mdExtending detection
examples/Real-world patterns

assets/

FilePurpose
global.template.mdPersonal preferences
project.template.mdTeam instructions
local.template.mdPersonal overrides
rule.template.mdModular topics
framework-templates/​*.mdLanguage/​framework additions

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View