Skip to content

chore: add module/prelude guidance to CLAUDE.md#12542

Merged
kim-em merged 1 commit intomasterfrom
chore/claude-module-prelude-guidance
Feb 18, 2026
Merged

chore: add module/prelude guidance to CLAUDE.md#12542
kim-em merged 1 commit intomasterfrom
chore/claude-module-prelude-guidance

Conversation

@kim-em
Copy link
Collaborator

@kim-em kim-em commented Feb 18, 2026

This PR adds guidance to .claude/CLAUDE.md about the module + prelude convention required for files in src/Lean/, src/Std/, and src/lake/Lake/. CI enforces that these files contain prelude, but with prelude nothing is auto-imported, so explicit Init.* imports are needed for standard library features like while, String.startsWith, etc.

🤖 Prepared with Claude Code

This adds guidance about the module system convention for files in
src/Lean/, src/Std/, and src/lake/Lake/ — they need both `module` and
`prelude`, with explicit Init imports for standard library features.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kim-em kim-em added the changelog-no Do not include this PR in the release changelog label Feb 18, 2026
@kim-em kim-em enabled auto-merge February 18, 2026 00:50
@kim-em kim-em added this pull request to the merge queue Feb 18, 2026
Merged via the queue into master with commit f3cbdca Feb 18, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-no Do not include this PR in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant