From exploration-tree
自主探索树引擎。适用于需要系统性穷举、验证、排除的复杂问题求解。 支持手动和自主两种模式:手动模式逐步记录;自主模式通过 ScheduleWakeup 持续运行"广度枚举 → 选择 → 深入 → 回溯"循环,直到找到目标或耗尽预算。 触发词:"探索树"、"exploration tree"、"自主探索"、"long run explore"。
How this skill is triggered — by the user, by Claude, or both
Slash command
/exploration-tree:exploration-treeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
树状探索引擎,支持手动记录和自主循环两种模式。
树状探索引擎,支持手动记录和自主循环两种模式。
/exploration-tree — 初始化探索,确认目标后记录路径/exploration-tree status — 查看当前树状态/exploration-tree reflect — 手动触发反思,生成新方向/exploration-tree start — 启动自主探索循环/exploration-tree pause — 暂停循环/exploration-tree resume — 恢复循环/exploration-tree iterate — 内部命令,执行单轮迭代(由 ScheduleWakeup 触发)/exploration-tree strategy <name> — 切换节点选择策略/exploration-tree start --domain <name> --goal "<目标>" [--budget N] [--strategy <name>] [--depth N] [--timeout Nm] [--source-path /path]
| 参数 | 必须 | 默认 | 说明 |
|---|---|---|---|
| --domain | 是 | - | domain adapter 名称(对应 domains/.md) |
| --goal | 是 | - | 探索目标(含成功标准) |
| --budget | 否 | 50 | 最大迭代次数 |
| --strategy | 否 | cost-ordered | 节点选择策略 |
| --depth | 否 | 5 | 最大探索深度 |
| --timeout | 否 | 120m | 时间预算 |
| --source-path | 否 | cwd | 目标代码/数据的路径 |
| --no-stop-on-success | 否 | false | 找到第一个成功后继续探索 |
# 内核漏洞搜索
/exploration-tree start --domain kernel-audit --goal "Find splice page-cache write primitive reachable from user namespace" --budget 200 --source-path ~/linux
# 代码库审计
/exploration-tree start --domain codebase-review --goal "Find all SQL injection vectors" --budget 50 --source-path .
# 通用复杂问题(无 domain adapter 时使用内置通用逻辑)
/exploration-tree start --goal "为什么应用启动需要 8 秒" --budget 30
在手动模式的基础上,由引擎自动执行选择和迭代:
详见 engine/loop.md。
<project_root>/exploration/
├── <task-name>.md # 探索树日志(人类可读)
├── <task-name>.state.json # 机器可读状态
└── <task-name>.lock # 并发锁
Domain adapter 定义了特定领域的探索方法。详见 domains/README.md。
内置 adapters:
kernel-audit — Linux 内核漏洞模式搜索codebase-review — 通用大代码库审计无 --domain 参数时,引擎使用内置通用逻辑(直接向 LLM 请求 enumerate/probe/reflect)。
engine/loop.md — 自主循环协议(ScheduleWakeup 调度)engine/budget.md — 停止条件规范engine/strategies.md — 节点排序策略domains/README.md — domain adapter 接口规范references/format.md — 完整格式规范references/example.md — 示例Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub luw2007/skills --plugin exploration-tree