Community编程与开发github.com

事实查找

快速查找关于Bottlerocket的具体事实,并附带引用来源。

事实查找 是什么?

事实查找(Fact Find)是一项专注于快速定位Bottlerocket操作系统具体事实(如配置值、分区方案、systemd单元、文件路径及版本号)并附带明确引用来源的技能。它适用于有确定性答案的“是什么”或“在哪里”类问题,而非需要详细解释的架构问题(后者应使用deep-research技能)。工作流程包括:使用'crumbly search'进行精准搜索、通过grep或cat读取最相关的文档文件。如果文档不足以找到答案,还可以直接在源代码仓库中搜索(需注意范围限定以避免超时)。最终答案需以简洁的2-4句话呈现,正文中使用上标引用(如<sup>[1]</sup>),并在末尾附上“Sources”部分列出每个来源的路径和贡献。最后通过“研究质量指示器”(✅、⚠️、🔍)评估信息来源质量。该技能主要支持基于文档的快速查询,但也能在必要时深入代码库。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cbgbt/bottlerocket-forest/tree/main/skills/fact-find

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

事实查找 是做什么的?

针对关于Bottlerocket的具体事实性问题,提供快速、聚焦的答案,并附带准确的引用来源。

目的

快速查找并引用有关Bottlerocket的具体事实:

  • 配置值与默认值
  • 分区方案与磁盘布局
  • Systemd单元与目标
  • 文件路径与位置
  • 版本号与依赖关系

何时使用

  • 需要某个具体事实,而非解释
  • 问题有确定性的答案
  • 查找“是什么”或“在哪里”的信息

对于更广泛的架构或设计问题,请使用 deep-research。

流程

1. 搜索

根据问题创建精准的查询词:

crumbly search "问题中的关键术语"

检查排名前3-5的结果,寻找相关文件。

2. 阅读

阅读最相关的文件以找到答案:

# 针对性阅读的模式搜索
grep -n "相关术语" 路径/到/文件.md

# 必要时阅读完整文件
cat 路径/到/文件.md

3. 如果文档不足

Crumbly 索引的是文档,而非源代码。如果在文档中找不到答案,可以直接在代码库中搜索:

# 重要提示:始终将搜索范围限定在特定目录!
# 森林仓库超过80GB——不限范围的搜索会导致挂起。
rg "搜索词" --type rust bottlerocket/sources/
find bottlerocket/sources -name "*相关名称*"

这表明存在文档缺口——请在研究质量指示器中注明。

4. 带引用回答

提供直接、简洁的答案,附带上标引用和“Sources”部分:

Bottlerocket 使用双分区方案,包含 A 和 B 两组 <sup>[1]</sup>。默认的 API 套接字路径是 `/run/api.sock` <sup>[2]</sup>。

## Sources

<sup>[1]</sup> [`sources/updater/signpost/README.md`](../sources/updater/signpost/README.md)
- 分区组结构

<sup>[2]</sup> [`sources/api/README.md`](../sources/api/README.md)
- API 套接字配置

引用准则:

  • 在事实陈述中内联使用 <sup>[1]</sup>、<sup>[2]</sup> 等上标
  • 路径相对于目标仓库
  • 文件路径使用 Markdown 链接
  • 跨仓库引用使用 GitHub URL:https://github.com/bottlerocket-os/REPO/blob/develop/FILE.md
  • 每个来源用简要的要点说明其提供了什么内容

验证

一条好的事实查找回答应具备:

  • ✓ 直接回答具体问题
  • ✓ 简洁(通常2-4句话)
  • ✓ 内联上标引用
  • ✓ 带有编号引用的 Sources 部分
  • ✓ 不包含不必要的上下文或解释

研究质量指示器

在回答末尾添加:

  • ✅ 从文档中找到答案 —— 在 README 文件、设计文档或叙述性文档中找到。
  • ⚠️ 从源代码中找到答案 —— 由于文档不足,不得不阅读实现文件。
  • 🔍 部分文档 —— 需要同时查阅文档和源代码才能完整回答问题。

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

ad-hoc-implementation-plan

Transform a rough plan into implement-commit ready artifacts. Allows rigorous review while implementing.

build-kit-locally

Build a kit and publish it to a locally hosted registry for development testing

build-variant-from-local-kits

Build a variant using locally published kits for development validation

deep-research

Create educational documents that build understanding progressively with citations

edit-spec-file

Edit Bottlerocket RPM spec files following project style conventions

idea-honing

Clarify feature ideas through iterative Q&A, recording insights to guide concept development

implement-commit

Implement commits from an implementation plan using a TDD pipeline

local-registry

Start and manage a local OCI registry for Bottlerocket kit development

prepare-core-kit-release

Prepare bottlerocket-core-kit for release by bumping version and updating changelog

propose-feature-concept

Create a new feature concept document to pitch the idea and explain the problem/solution

propose-feature-design

Create or update feature technical design document with architecture and implementation guidance

propose-feature-requirements

Create or update feature requirements specification using EARS notation with examples and appendices

propose-feature-test-plan

Create a test plan mapping EARS requirements and Critical Constraints to specific tests

propose-implementation-plan

Create an implementation plan with atomic commits that build toward a complete feature

review-code

Deep code review generating PR comments via principled question-driven analysis

review-scope

Verify code changes match intended scope and requirements without exceeding boundaries

review-style

Verify code follows project style guides without providing improvement suggestions

test-local-twoliter

Build and test local changes to twoliter before releasing

update-twoliter

Update all Bottlerocket repositories to a new Twoliter version

相关技能