Bootstrap Review
Run a chat-first review wizard for agent boot files.
This skill audits the current boot files for one agent, reads only the registered supporting context for that agent, and then produces:
- - a structure review
- redundancy findings
- reference-validation findings
- recommendations for shortening or clarifying the files
- optional staged replacement drafts
Keep this skill review-first.
Do not silently rewrite live boot files.
Default to audit + recommendations.
Only produce staged replacement drafts if the user asks.
Do not write in place unless the user explicitly requests it.
What counts as boot files
Treat these as the main boot files:
- - INLINECODE0
- INLINECODE1
- INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
- optional: INLINECODE6
Purpose of the skill
This skill exists to keep boot files:
- - short
- durable
- non-redundant
- internally consistent
- aligned with the current role of the agent
- aligned with the current user context
- aligned with real referenced paths or real registry-backed context
This skill is not a general note summarizer.
This skill is not a giant memory compiler.
This skill should read the registered context once, use it to judge the boot files, and then recommend the leanest stable boot layer that still does the job.
Core principles
- - Boot files should stay small and high-signal.
- Heavy, evolving, or domain-rich notes should live outside the boot files.
- INLINECODE7 should answer who this agent is.
- INLINECODE8 should answer how this agent should feel and behave.
- INLINECODE9 should answer what stable facts and preferences about Greg matter to this agent.
- INLINECODE10 should define what belongs in durable memory for this agent.
- INLINECODE11 should define the agent's job, scope, boundaries, and decision posture.
- INLINECODE12 should define tool posture, not repeat the entire mission.
- Repeated statements should be collapsed to the best single home.
- References should be real and testable.
- Placeholder references like
_Core are not good enough unless they resolve to an actual mounted or registry-backed path pattern that the agent can use reliably.
Registry model
Preferred registry file:
This registry defines which context files should be consulted for each agent during review.
The registry is for this skill only.
It is not meant to be loaded on every normal agent turn.
If the registry file does not exist:
- - say so plainly
- offer to create it
- initialize it as an empty JSON object: INLINECODE15
Preferred registry shape
Use one object keyed by agent id.
Each agent entry may contain:
- - INLINECODE16
- INLINECODE17
- INLINECODE18
- INLINECODE19
- INLINECODE20
- INLINECODE21
Preferred example:
CODEBLOCK0
Supported context entry types
1. path_registry_key
Resolve the key from
~/.openclaw/registries/path_registry.json.
Use the resolved
wsl path for reading.
If the key is missing or incomplete, report it.
Do not guess.
2. workspace_relative
Resolve relative to the agent workspace.
3. absolute_wsl
Read the explicit WSL path.
Use sparingly.
4. mount_relative
Resolve relative to the agent workspace, intended for mounted folders such as:
- - INLINECODE28
- INLINECODE29
What to audit
For each selected agent, audit the boot files for:
Structure fit
- - does each file do the job it should do
- is the file too long or too thin
- does the file contain content that belongs in another boot file
Redundancy
- - repeated role statements across
IDENTITY.md, AGENTS.md, and INLINECODE32 - repeated user preferences across
USER.md, AGENTS.md, and INLINECODE35 - repeated scope/boundary rules across multiple files
Reference integrity
- - references to shared notes that are only conceptual
- references to path-registry keys that are not explained
- relative paths that do not exist
- stale terminology
- renamed agents or folders not reflected consistently
Context alignment
- - does the current boot layer reflect the registered context
- does the current role of the agent match the surrounding user context
- are there durable facts missing that clearly belong
- is too much unstable detail being pushed into the boot layer
Length discipline
- - can the file be shortened without losing function
- should details be moved out to external context notes
- is the language too abstract or too repetitive
Output model
Default output should be compact and decision-ready.
For each file, produce:
- - status: good / revise / major cleanup
- 1–3 concrete findings
- specific recommendations
Then produce a cross-file section:
- - top redundancies to remove
- top missing items to add
- top references to fix
- recommended overall simplification plan
Optional staged rewrites
If the user asks for draft replacements, create them in the agent's staging_dir.
Do not overwrite live files by default.
Preferred staging directory:
Write staged replacements with the same filenames, for example:
- - INLINECODE38
- INLINECODE39
Also write a summary note:
Trigger phrases
Treat requests like these as a request to run this skill:
- - INLINECODE41
- INLINECODE42
- INLINECODE43
- INLINECODE44
- INLINECODE45
- INLINECODE46
- INLINECODE47
- INLINECODE48
- INLINECODE49
- INLINECODE50
- INLINECODE51
Wizard start
When triggered, open this menu:
CODEBLOCK1
If the registry file does not exist yet, say:
CODEBLOCK2
Review behavior
When reviewing one agent:
- 1. read the registry fresh
- resolve the selected agent entry
- read the listed boot files from the workspace
- resolve and read the registered context files
- compare current boot files to current context
- produce a concise audit
- ask whether to:
- keep as-is
- recommend edits only
- create staged replacements
If any required registry-backed context is missing:
- - report it under INLINECODE52
- continue the review using what is available
- do not invent missing context
Draft replacement behavior
When creating draft replacements:
- - preserve the current agent role unless the user explicitly asks to redefine it
- prefer shortening and de-duplication over expansion
- keep file tone aligned to the specific agent
- write only staged copies unless the user explicitly asks for in-place updates
- write a
review-summary.md explaining the main changes
Registry editing guidance
The skill may help the user create or adjust the registry, but keep the interaction simple.
Use:
- - agent selection
- add or remove context entries
- edit INLINECODE54
- edit INLINECODE55
Do not turn this into a giant general registry editor.
Keep it boot-review-specific.
Recommended defaults for this environment
Use these default review goals if none are set:
assistant
- - keep assistant as front door and secretary
- reduce duplication across IDENTITY / AGENTS / TOOLS
- keep raw-capture and graduation language clear
- replace vague shared-note references with real workspace-relative or registry-backed references
daily-coach
- - keep daily coach centered on planning, review, and alignment
- avoid admin-system sprawl
- ensure stable life constraints are present but concise
- replace vague shared-note references with real workspace-relative or registry-backed references
system_engineer
- - keep system engineer technical and architecture-focused
- avoid personal-coaching bleed
- preserve durable technical decisions in the right file
- replace vague shared-note references with real workspace-relative or registry-backed references
Safety rules
- - Do not overwrite live boot files without explicit user instruction.
- Do not treat the registry as proof that a file is good; always inspect the actual file contents.
- Do not recommend longer files unless there is a real gap.
- Prefer moving unstable detail out of boot files rather than expanding them.
- Keep this skill useful for future agents; do not hardcode only today's three agents into the logic.
Good review language
Prefer direct review language like:
- - INLINECODE56
- INLINECODE57
- INLINECODE58
- INLINECODE59
- INLINECODE60
- INLINECODE61
- INLINECODE62
- INLINECODE63
Avoid vague language like:
- - INLINECODE64
- INLINECODE65
- INLINECODE66
Be specific.
Bootstrap Review
为代理启动文件运行一个聊天优先的审查向导。
该技能审计一个代理的当前启动文件,仅读取该代理的已注册支持上下文,然后生成:
- - 结构审查
- 冗余发现
- 引用验证发现
- 缩短或澄清文件的建议
- 可选的分阶段替换草稿
保持此技能以审查为先。
不要静默重写实时启动文件。
默认输出审计+建议。
仅在用户要求时生成分阶段替换草稿。
除非用户明确要求,否则不要原地写入。
哪些算作启动文件
将这些视为主启动文件:
- - IDENTITY.md
- SOUL.md
- USER.md
- MEMORY.md
- AGENTS.md
- TOOLS.md
- 可选:HEARTBEAT.md
技能目的
此技能的存在是为了保持启动文件:
- - 简短
- 持久
- 无冗余
- 内部一致
- 与代理当前角色一致
- 与当前用户上下文一致
- 与实际引用路径或真实注册表支持的上下文一致
此技能不是通用的笔记总结器。
此技能不是大型记忆编译器。
此技能应读取一次已注册上下文,用它来判断启动文件,然后推荐最精简的稳定启动层,同时仍能完成工作。
核心原则
- - 启动文件应保持小巧且高信号。
- 繁重、不断演变或领域丰富的笔记应放在启动文件之外。
- IDENTITY.md 应回答这个代理是谁。
- SOUL.md 应回答这个代理应该如何感受和行为。
- USER.md 应回答关于 Greg 的哪些稳定事实和偏好对此代理重要。
- MEMORY.md 应定义哪些内容属于此代理的持久记忆。
- AGENTS.md 应定义代理的工作、范围、边界和决策姿态。
- TOOLS.md 应定义工具姿态,而不是重复整个任务。
- 重复的陈述应合并到最佳的唯一位置。
- 引用应是真实且可测试的。
- 像 _Core 这样的占位符引用不够好,除非它们解析为代理可以可靠使用的实际挂载或注册表支持的路径模式。
注册表模型
首选注册表文件:
- - ~/.openclaw/registries/bootcontextregistry.json
此注册表定义了审查期间应为每个代理查阅哪些上下文文件。
此注册表仅用于此技能。
它不应在每个正常的代理轮次中加载。
如果注册表文件不存在:
- - 如实说明
- 提供创建它的选项
- 将其初始化为空 JSON 对象:{}
首选注册表结构
使用以代理 ID 为键的对象。
每个代理条目可以包含:
- - workspace
- bootfiles
- sharedcontext
- agentcontext
- reviewgoals
- staging_dir
首选示例:
json
{
assistant: {
workspace: ~/.openclaw/workspaces/assistant,
boot_files: [
IDENTITY.md,
SOUL.md,
USER.md,
MEMORY.md,
AGENTS.md,
TOOLS.md,
HEARTBEAT.md
],
shared_context: [
{
type: pathregistrykey,
key: USER_CONTEXT
}
],
agent_context: [
{
type: workspace_relative,
path: notes/assistant-role-notes.md,
required: false
}
],
review_goals: [
shorten boot files,
remove redundancy,
validate references,
keep assistant as front door and secretary
],
staging_dir: .boot-review
}
}
支持的上下文条目类型
1. pathregistrykey
从 ~/.openclaw/registries/path_registry.json 解析键。
使用解析后的 wsl 路径进行读取。
如果键缺失或不完整,报告它。
不要猜测。
2. workspace_relative
相对于代理工作区解析。
3. absolute_wsl
读取显式的 WSL 路径。
谨慎使用。
4. mount_relative
相对于代理工作区解析,适用于挂载的文件夹,例如:
- - context/greg/profile.md
- context/greg/how-i-work.md
审计内容
对于每个选定的代理,审计启动文件中的以下内容:
结构适配性
- - 每个文件是否完成了它应该做的工作
- 文件是否太长或太薄
- 文件是否包含属于另一个启动文件的内容
冗余
- - 跨 IDENTITY.md、AGENTS.md 和 TOOLS.md 重复的角色陈述
- 跨 USER.md、AGENTS.md 和 SOUL.md 重复的用户偏好
- 跨多个文件重复的范围/边界规则
引用完整性
- - 仅概念性的共享笔记引用
- 未解释的路径注册表键引用
- 不存在的相对路径
- 过时的术语
- 重命名但未一致反映的代理或文件夹
上下文对齐
- - 当前启动层是否反映了已注册上下文
- 代理的当前角色是否与周围用户上下文匹配
- 是否有明显属于的持久事实缺失
- 是否将太多不稳定的细节推入启动层
长度纪律
- - 文件能否在不损失功能的情况下缩短
- 是否应将细节移出到外部上下文笔记
- 语言是否过于抽象或重复
输出模型
默认输出应紧凑且可决策。
对于每个文件,生成:
- - 状态:良好 / 修订 / 重大清理
- 1-3 个具体发现
- 具体建议
然后生成一个跨文件部分:
- - 要移除的主要冗余
- 要添加的主要缺失项
- 要修复的主要引用
- 推荐的总体简化计划
可选的分阶段重写
如果用户要求草稿替换,在代理的 staging_dir 中创建它们。
默认情况下不要覆盖实时文件。
首选暂存目录:
使用相同的文件名写入分阶段替换,例如:
- - .boot-review/AGENTS.md
- .boot-review/USER.md
还要写入一个摘要笔记:
- - .boot-review/review-summary.md
触发短语
将以下请求视为运行此技能的请求:
- - boot file review
- review boot files
- audit boot files
- review AGENTS USER SOUL
- bootstrap file review
- agent file review
- refactor boot files
- check agent files for redundancy
- review assistant boot files
- review daily coach boot files
- review system engineer boot files
向导启动
当触发时,打开此菜单:
text
Bootstrap Review
Registry file: ~/.openclaw/registries/bootcontextregistry.json
- 1. Review assistant
- Review daily-coach
- Review system_engineer
- View registry
- Edit registry guidance
- Create draft replacements
- Quit
Reply with 1, 2, 3, 4, 5, 6, or 7.
如果注册表文件尚不存在,显示:
text
Bootstrap Review
Registry file: ~/.openclaw/registries/bootcontextregistry.json
Status: not created yet
- 1. Create registry
- Quit
Reply with 1 or 2.
审查行为
当审查一个代理时:
- 1. 重新读取注册表
- 解析选定的代理条目
- 从工作区读取列出的启动文件
- 解析并读取已注册的上下文文件
- 比较当前启动文件与当前上下文
- 生成简洁的审计
- 询问是否:
- 保持原样
- 仅推荐编辑
- 创建分阶段替换
如果任何所需的注册表支持的上下文缺失:
- - 在 missing context 下报告
- 使用可用内容继续审查
- 不要编造缺失的上下文
草稿替换行为
当创建草稿替换时:
- - 保留当前代理角色,除非用户明确要求重新定义
- 优先缩短和去重,而不是扩展
- 保持文件语气与特定代理一致
- 仅写入分阶段副本,除非用户明确要求原地更新
- 写入一个 review-summary.md 解释主要更改
注册表编辑指导
该技能可以帮助用户创建或调整注册表,但保持交互简单。
使用:
- - 代理选择
- 添加或删除上下文条目
- 编辑 reviewgoals
- 编辑 stagingdir
不要将其变成大型通用注册表编辑器。
保持其特定于启动审查。
此环境的推荐默认值
如果未设置,使用这些默认审查目标:
assistant
- - 保持 assistant 作为前门和秘书
- 减少 IDENTITY / AGENTS / TOOLS 之间的重复
- 保持原始捕获和毕业语言清晰