← 返回
未分类

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 文件,支持 @include 指令以及最多 40,000 字符的逆向加载。
shaoxiang616 shaoxiang616 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 426
下载
💾 1
安装
1
版本
#context#discovery#latest

概述

CLAUDE.md 自动发现技能

自动发现并加载项目根目录的 CLAUDE.md 文件,参考 Claude Code 实现。

功能

  1. 自动查找 ./CLAUDE.md 和 ./ CLAUDE.md
  2. 支持 @include 指令
  3. 最大 40000 字符限制
  4. 逆序加载(后面的文件优先级更高)

触发条件

  • 当用户发送消息时自动执行
  • 无需用户手动调用

实现

  • 使用 fs.readFileWithinRoot 读取文件
  • 遍历当前工作目录向上查找
  • 解析 @include 指令
  • 注入到系统上下文

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-03 08:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

CLAUDE.md Auto Discovery

shaoxiang616
自动发现并加载项目根目录中的 CLAUDE.md 文件,支持 @include 指令和反向顺序加载,最多 40,000 个字符。
★ 0 📥 375

Context Memoize

shaoxiang616
缓存和管理频繁使用的上下文片段,通过保存、列出和清除缓存数据来避免冗余处理。
★ 0 📥 366

Context Memoize Cache

shaoxiang616
将用户指定的上下文片段缓存到文件中,以避免重复处理并在多个会话中复用。
★ 0 📥 351