mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
优化update-memory.md: 简化参数为related/full模式,强化层级规则,添加CLAUDE.md核心构建准则
🚀 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
52
CLAUDE.md
52
CLAUDE.md
@@ -87,4 +87,54 @@ This document defines project-specific coding standards and development principl
|
||||
|
||||
For all Gemini CLI usage, command syntax, and integration guidelines:
|
||||
@~/.claude/workflows/gemini-cli-guidelines.md
|
||||
@~/.claude/workflows/gemini-intelligent-context.md
|
||||
@~/.claude/workflows/gemini-intelligent-context.md
|
||||
|
||||
## CLAUDE.md Documentation System
|
||||
|
||||
### Core Construction Principles
|
||||
|
||||
**FUNDAMENTAL RULE**: Strict hierarchical content boundaries to eliminate duplication
|
||||
|
||||
#### **Layer Definitions**
|
||||
|
||||
1. **Root Level (`./CLAUDE.md`)** - Project North Star
|
||||
- **Purpose**: High-level project overview and architectural decisions
|
||||
- **Content**: Technology stack, development workflow, architecture principles
|
||||
- **NEVER Include**: Implementation details, module patterns, domain specifics
|
||||
|
||||
2. **Domain Level (`./src/CLAUDE.md`)** - Domain Architecture
|
||||
- **Purpose**: Domain organization and inter-module relationships
|
||||
- **Content**: Module organization, domain patterns, integration points
|
||||
- **NEVER Include**: Project overview, implementation specifics, function details
|
||||
|
||||
3. **Module Level (`./src/api/CLAUDE.md`)** - Implementation Patterns
|
||||
- **Purpose**: Module-specific architecture and patterns
|
||||
- **Content**: Internal design, API contracts, module dependencies
|
||||
- **NEVER Include**: Project overview, domain patterns, detailed implementations
|
||||
|
||||
4. **Sub-Module Level (`./src/api/auth/CLAUDE.md`)** - Implementation Details
|
||||
- **Purpose**: Specific implementation and configuration
|
||||
- **Content**: Usage examples, configuration, performance notes
|
||||
- **NEVER Include**: Architecture decisions, higher-level patterns
|
||||
|
||||
#### **Content Uniqueness Rules**
|
||||
|
||||
- **Each layer owns its abstraction level** - no content sharing between layers
|
||||
- **Reference, don't duplicate** - point to other layers, never copy content
|
||||
- **Maintain perspective** - each layer sees the system at its appropriate scale
|
||||
- **Avoid implementation creep** - higher layers stay architectural
|
||||
|
||||
#### **Update Strategy**
|
||||
|
||||
- **Related Mode**: Update only affected modules + parent hierarchy propagation
|
||||
- **Full Mode**: Complete hierarchy refresh with strict layer boundaries
|
||||
- **Context Intelligence**: Automatic detection of what needs updating
|
||||
|
||||
|
||||
#### **Quality Assurance**
|
||||
|
||||
- **Layer Validation**: Each CLAUDE.md must stay within its layer's purpose
|
||||
- **Duplication Detection**: Cross-reference content to prevent overlap
|
||||
- **Hierarchy Consistency**: Parent layers reflect child changes appropriately
|
||||
- **Content Relevance**: Regular cleanup of outdated or irrelevant content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user