bootstrap
GitHub用于初始化项目中缺失的 AgentOps 入口文档及可选的判决目录。遵循最小化原则,仅创建明确请求的文件,绝不覆盖现有内容,避免过度脚手架化,确保操作安全且幂等。
Trigger Scenarios
Install
npx skills add boshu2/agentops --skill bootstrap -g -y
SKILL.md
Frontmatter
{
"name": "bootstrap",
"description": "Initialize explicitly requested, missing Triggers: \"bootstrap AgentOps\", \"initialize AgentOps docs\"."
}
Bootstrap — minimal project setup
Bootstrap fills only explicitly requested, missing AgentOps entry documents and, when requested, the durable verdict directory. It does not initialize Git, install hooks, create tracker state, start runtimes, or impose a delivery workflow.
Never-overwrite is what makes bootstrap safe to run on any repository: a setup step that can only add is idempotent by construction, while one that can replace must first prove it understands what it is replacing.
Named failure mode — scaffold sprawl: creating files the caller never requested because a "complete" setup feels more helpful than a minimal one.
Anti-pattern: inferring product intent from directory names and READMEs to avoid asking the caller. Corrective: ask for the missing content; a wrong PRODUCT.md written confidently is worse than a question.
Procedure
- Inspect the target directory and report which canonical files already exist.
- Ask the caller for missing product intent or goal content when it cannot be inferred safely.
- Create only missing, explicitly requested files. Never overwrite an existing document.
- Create
.agents/ao/verdicts/sha256/when durable local verdict storage is requested. - Validate filesystem existence and report created, skipped, and failed paths.
- Stop.
Typical documents are PRODUCT.md, GOALS.md, AGENTS.md, and a README section
that explains the RPI traversal. Generated product copy starts from the
operations-layer category and preserves the ownership boundary. Repositories
remain free to use their own Git, CI, tracker, release, and deployment
policies.
Naming. Three surfaces share the word "bootstrap"; they are distinct. This
skill authors missing entry documents. ao init is the CLI command that creates
the local evidence and verdict directories (.agents/ao/**). ao session bootstrap is a read-only session command that reports which local orientation
files are present. This skill invokes neither.
Non-goals
- installing or invoking
ao,br,bd, NTM, Agent Mail, or another runtime; - creating
.git, worktrees, branches, commits, hooks, or CI workflows; - choosing work or claiming that repository setup is complete beyond the paths actually inspected;
- running RPI automatically.
Output
Return target path, requested files, created files, existing files left intact, failed writes, and validation observations. Do not include a next action.
References
Version History
-
7b07a7d
Current 2026-08-19 22:01
对齐操作契约,明确 Bootstrap 仅在请求时创建持久化裁决存储和项目文档,防止意外变更仓库;更新技能合同以消除与运行合同的歧义。
- 3f402e5 2026-07-24 22:08


