CLAUDE.md Auto Discovery
Automatically discovers and loads CLAUDE.md files from the project root, supporting @include directives and reverse loading up to 40,000 characters.
CLAUDE.md 自动发现技能
自动发现并加载项目根目录的 CLAUDE.md 文件,参考 Claude Code 实现。
功能
- 自动查找 ./CLAUDE.md 和 ./ CLAUDE.md
- 支持 @include 指令
- 最大 40000 字符限制
- 逆序加载(后面的文件优先级更高)
触发条件
- 当用户发送消息时自动执行
- 无需用户手动调用
实现
- 使用 fs.readFileWithinRoot 读取文件
- 遍历当前工作目录向上查找
- 解析 @include 指令
- 注入到系统上下文
Related skills
- Downloads
- 918All time
- Security audit
- Review
- Last updated
- 6mo ago
- Current version
- v0.1.0
- License
- MIT-0
