跳到正文
Skillpedia
部署与云(DevOps)8.5k · #12431

bootstrap-diagnostics

它能做什么

这项技能讲解如何处理 Firstmate 启动时输出的警告信息,例如工具缺失或版本过旧。适合运行 Firstmate、并希望设置过程在改动任何内容之前先征求同意的人。

适用场景

  • ✓当启动检查提示某个工具缺失并给出安装命令时。
  • ✓当启动检查提示某个工具版本过旧、需要升级时。
  • ✓当启动检查报告在开始工作之前需要登录 GitHub 时。

技能链接

https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/bootstrap-diagnostics/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/bootstrap-diagnostics/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“启动检查提示某个工具缺失。请解释它需要什么,并在安装任何东西之前先问我。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会列出每个缺失或过旧的工具,说明其用途和安装命令。在安装或升级任何内容之前,它会等待你的批准,并且在所需工具和登录就绪之前不会开始工作。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

bootstrap-diagnostics

Handle each printed line as below, before dispatching work that depends on it. The line formats themselves are owned by bin/fm-bootstrap.sh's header; this playbook owns the response to actionable lines. The session-start rules in session-start-recovery still bind: detect, then consent, then install or upgrade - never change a tool the captain has not approved in this session - and no work is dispatched until the tools it needs are present and GitHub auth is good. When any diagnostic needs captain attention, report the plain consequence and requested action using AGENTS.md section 9's captain-facing translation contract; do not name the diagnostic label unless the captain needs to paste it into a command or issue.

  • MISSING: <tool> (install: <command>) - the tool is absent; list the missing tools to the captain with a one-line purpose each plus the printed install commands, wait for consent (one approval may cover the list), then run bin/fm-bootstrap.sh install <approved tools...>. An installed tool below its floor, or one missing a required capability, reports OUTDATED: instead.
  • OUTDATED: <tool> (installed: <version|unparseable>; requires <floor|capability>; upgrade: <command>) - the tool is present but below what this home needs, so it is an upgrade request, not an install. Report the installed version and the printed upgrade: command and wait for the same consent rule before running it; a printed command that is the tool's own installer means that tool ships no self-updater yet, so the upgrade reuses its install command. bin/fm-bootstrap.sh owns the floor policy, and never argue the floor down to whatever the home happens to have installed. For no-mistakes, the floor is 1.46.0 because this repo's PR gate requires structured pipeline attestation that older builds do not write. For treehouse, the requirement is treehouse get --lease support. For tasks-axi, the requirement also covers the separate feature probe (bin/fm-tasks-axi-lib.sh owns the definition); config/backlog-backend=manual only suppresses the verbose BOOTSTRAP_INFO: tasks-axi available fact, not this report. For quota-axi, bootstrap requires it because firstmate reads its current output directly before resolving every crew-dispatch profile array; without it, report the requirement and do not choose around an unexamined candidate.
  • PRESENTATION_UNAVAILABLE: lavish-axi ... - explain that visual presentation is unavailable and continue nonvisual work with plain-text decisions and reports; do not hold unrelated dispatch for installation consent. Do not use Lavish until it satisfies the floor owned by bin/fm-bootstrap.sh; when visual work needs it, request consent for the printed install or upgrade command, then rerun bootstrap to confirm compatibility before using it. Scout briefs check the same floor when scaffolded and ask for a text report instead of a Lavish loop, so scaffold a visual scout only after that rerun confirms compatibility.
  • MISSING_MANUAL: <tool> (instructions: <url>) - tell the captain why the tool is required and give them the printed instructions URL, but do not pass the tool to bin/fm-bootstrap.sh install; wait for the captain to complete the manual installation, then rerun session start to confirm the dependency is present.
  • BACKEND_INVALID: <name> (known: <names>) - the resolved runtime backend has no verified dependency or lifecycle contract, so do not dispatch work until the invalid FM_BACKEND or config/backend value is corrected to one of the listed backends.
  • NEEDS_GH_AUTH - ask the captain to run ! gh auth login (interactive; you cannot run it for them). This probe now arrives from the deferred network stage, so it is also how an unreachable network shows up: gh cannot validate its token offline and reports the same failure. Confirm reachability before asking the captain to re-authenticate a credential that may be fine.
  • NETWORK_CHECKS: <what did not complete>; rerun <command> - the deferred network stage itself could not finish, so the checks it names are simply unknown, not failed. Rerun the printed command; it is idempotent and re-derives every finding. A hit the ...s bound line means one of those checks is slow or unreachable - most often a remote secondmate host - and the stage stopped rather than letting it wedge; a recorded fleet lock holder changed line means lock line 1 no lo
常见问题

它会不经询问就安装东西吗?

不会。它会列出所需内容,并在安装或升级之前等待你的批准。

如果缺少 GitHub 登录怎么办?

智能体会报告需要登录,在完成登录之前不会开始任何工作。

我需要知道工具的名称吗?

不需要。智能体会用通俗的语言解释每个工具及其用途。

详情

作者的原始描述

Load when the session-start digest's bootstrap or network-checks section, or a standalone bin/fm-bootstrap.sh or bin/fm-startup-network.sh run, prints an actionable diagnostic line - MISSING, MISSING_MANUAL, OUTDATED, PRESENTATION_UNAVAILABLE, BACKEND_INVALID, NEEDS_GH_AUTH, TANGLE, STARTUP_MEMORY_BUDGET, CREW_DISPATCH invalid, FLEET_SYNC, NETWORK_CHECKS, HOME_SUMMARY, BACKLOG_RECONCILE, SECONDMATE_SYNC, SECONDMATE_LIVENESS, SECONDMATE_HANDOFF, NUDGE_SECONDMATES, or FMX - or reports that an interrupted backlog cleanup may have left an endpoint or local copy. A silent bootstrap section, or any

repo: kunchenguid/firstmate

热度

GitHub 星标
8.5k
排名
#12431
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能