Skip to content

Commit 7431841

Browse files
lufftwclaude
andcommitted
docs(claude): Update CLAUDE.md with core packages architecture
- Fix header URL to claude.ai/code - Add tools/ directory to structure - Add Core Packages section with dependency diagram - Document dependency rule: tools/ → src/ only Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e6953dd commit 7431841

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

CLAUDE.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CLAUDE.md
22

3-
This file provides guidance to Claude Code (claude.ai/claude-code) when working with this repository.
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
44

55
## Project Overview
66

@@ -65,11 +65,26 @@ python -m pytest .dev/tests -v
6565
- `tests/` - Test cases (.in/.out files)
6666
- `generators/` - Random test generators (optional)
6767
- `runner/` - Test execution engine
68-
- `src/` - Core packages (codegen, leetcode_datasource, practice_workspace)
68+
- `src/` - Core packages (see below)
69+
- `tools/` - Standalone tools (mindmaps, patterndocs, review-code)
6970
- `ontology/` - Algorithm ontology (TOML files)
7071
- `meta/` - Problem and pattern metadata
7172
- `docs/` - MkDocs documentation
7273

74+
### Core Packages (`src/`)
75+
76+
```
77+
leetcode_datasource ←── codegen ──→ practice_workspace
78+
```
79+
80+
| Package | Purpose |
81+
|---------|---------|
82+
| `leetcode_datasource` | LeetCode API + SQLite cache, problem metadata |
83+
| `codegen` | Solution/practice skeleton generation, test extraction |
84+
| `practice_workspace` | Practice file history and restore |
85+
86+
Dependency rule: `tools/ → src/` only, never reverse.
87+
7388
### Solution File Format
7489

7590
Solutions follow a standardized polymorphic pattern:

0 commit comments

Comments
 (0)