split-memory

Modularize CLAUDE.md into topic-specific instruction files with root-index and precedence rules.

640|145|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill split-memory
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: split-memory
Source: https://github.com/codewithmukesh/dotnet-claude-kit/tree/main/skills/split-memory
Command: npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill split-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Monolithic CLAUDE.md files grow hard to navigate, cause rule conflicts across teams and modules, and slow down Claude's ability to apply project-specific instructions consistently.

Core Features & Use Cases

  • Index-first layout: Use the root CLAUDE.md as a concise table of contents that points to detailed files so Claude can discover instructions predictably.
  • Split patterns: Provides clear patterns for splitting by concern, by module, or by team and when to use each pattern.
  • Precedence and conflict rules: Establishes deterministic precedence (root > concern > module > team) and anti-patterns to prevent contradictory instructions.
  • Use Cases: Ideal for repositories where CLAUDE.md exceeds ~300 lines, multi-team projects with different conventions, or modular monoliths needing localized rules.

Quick Start

Ask Claude to split the repository's CLAUDE.md into a concise root index and a .claude/instructions/ folder organized by concern when the file exceeds 300 lines or team-specific conventions conflict.

Frequently Asked Questions about split-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split a large CLAUDE.md file into modular instruction files?▼

To split a large CLAUDE.md file, use a root-as-index layout pointing to a `.claude/instructions/` folder organized by a single splitting axis like concern, module, or team to ensure conflict-free rules and predictable discovery.

When do I need to modularize my CLAUDE.md instructions?▼

Modularize CLAUDE.md instructions when the file exceeds approximately 300 lines, or in multi-team repositories and modular monoliths where scoped, topic-specific instruction files are needed to prevent rule conflicts and reduce maintenance overhead.

What is the precedence order for conflicting rules in modular CLAUDE.md files?▼

The precedence order for modular CLAUDE.md files is deterministic: root instructions take priority over concern, which overrides module, and module overrides team, ensuring clear conflict resolution across scoped instruction files.

What is the best way to organize CLAUDE.md for a multi-team repository?▼

The best way to organize CLAUDE.md for multi-team repositories is using the root file as a concise table of contents and splitting detailed rules into a `.claude/instructions/` folder by team, module, or concern to avoid contradictory conventions.

Can I split CLAUDE.md by multiple axes like team and module at the same time?▼

No, you should enforce a single splitting axis when modularizing CLAUDE.md. Splitting by multiple axes simultaneously creates overlapping instructions and anti-patterns that cause contradictory rules across teams and modules.