Community编程与开发github.com

BuilderIO/agent-watchdog

用于在用户要求监视、陪伴、审计、审查、对比或修复另一个 Agent(来自 Codex 会话 ID、Claude Code 会话/转录、聊天/线程链接、PR、分支、日志或粘贴的运行摘要)的工作时使用。持续监控直到另一个 Agent 完成或受阻,重构用户请求,检查 Agent 实际更改和验证的内容,报告差距,并在用户授权修复时进行有限的修复。

agent-watchdog 是什么?

Agent Watchdog 是一个 AI Agent 技能,旨在作为一种“审计者”或“守门员”来监督其他 AI Agent(如 Codex、Claude Code 等)的工作。该技能支持四种模式:仅监视(Watch only)、审计(Audit)、审计并修复(Audit and fix)和对比(Compare)。它能够解析多种工件标识符,包括会话 ID、PR、分支、CI 运行、日志文件等,并通过轮询等待其他 Agent 完成。其核心流程是:首先重构原始用户请求和隐含的验收标准,然后基于文件变更、测试结果、CI 状态、屏幕截图等硬证据来审计实际输出,而非仅依赖被监控 Agent 的声明。审计发现的缺陷被分类为 Gaps(缺失)、Bugs(错误)、Verification miss(验证缺失)、Scope drift(范围偏离)或 No issue(无问题)。如果用户授权,Agent Watchdog 可以基于明确证据进行有限的修复(仅修正 Gaps),避免不必要的重写或分支移动。最终输出一个结构化的状态报告,包含请求内容、观察结果、差距、已做修改和剩余风险。该技能最适用于需要确保 AI Agent 输出质量、对齐用户原始意图及捕捉自动化工作流中不一致的开发者。

兼容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/BuilderIO/skills/tree/main/skills/agent-watchdog

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

在你喜欢的 AI 中提问

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

文档

Agent Watchdog

像带着传呼机的审查者一样监控另一个 Agent 的工作:必要时等待其完成,重构请求,验证证据,并弥合“被要求的内容”与“实际发生的内容”之间的差距。

选择模式

根据用户的措辞推断模式:

  • 仅监视: 监控一个会话、PR、分支、CI 运行或转录,直到其达到终态。不编辑文件。
  • 审计: 读取提示、转录、差异、测试、CI、评论、截图或最终声明,并返回差距报告。不编辑文件。
  • 审计并修复: 先审计,然后对明确的差距进行有限的修复。避免大规模重写、分支移动或推测性更改。
  • 对比: 当提供多个会话或 Agent 时,对比它们针对同一原始请求的工作,并协调重要差异。

如果权限不明确,默认只审计,并说明你会修复什么。

解析目标

  1. 识别用户提供的每一个工件:会话 ID、转录路径、线程 URL、PR、分支、提交、CI 运行、问题、Slack 链接或粘贴的摘要。
  2. 使用宿主平台的原生线程/历史工具、本地转录文件、仓库日志、GitHub 工具或粘贴内容来解析工件。优先使用最直接的来源,而不是摘要。
  3. 如果工件仍在运行且用户要求监视,则以合理的间隔轮询,直到其完成、受阻、过时或明显在等待人类/外部系统。
  4. 如果无法解析工件,询问缺失的标识符或路径。

重构契约

在评判工作之前,构建一个紧凑的契约:

  • 原始用户请求以及后续的任何范围变更。
  • 明确的约束:分支规则、禁止编辑的请求、截止日期、包版本、验证期望、设计要求或安全/隐私限制。
  • 隐含的验收标准:用户可见的行为、测试、CI、文档、部署、截图、审查回复或状态更新。
  • 另一个 Agent 的最终声明以及任何“无法完成”的说明。

将用户的请求视为事实来源,而非其他 Agent 的摘要。

审计证据

审查证据,而不是感觉:

  • 读取更改过的文件以及受影响路径附近相关但未更改的文件。
  • 在不撤销无关工作的情况下检查 git 状态/差异。
  • 在可能的情况下,将 Agent 声称已运行的命令与实际输出进行比较。
  • 检查失败或跳过的测试、CI 日志、浏览器截图、审查评论、部署输出和错误追踪。
  • 对于 PR/审查工作,在工具可用时,从源系统验证未解决的线程和 CI 状态。
  • 对于 UI 工作,优先使用截图或浏览器检查,而不是文字描述。

将每个问题分类为:

  • 差距: 请求的行为缺失或不完整。
  • 错误: 实现可能失败或导致行为退化。
  • 验证缺失: 工作可能是正确的,但证据不足。
  • 范围偏离: Agent 更改了不相关的内容或跳过了某个约束。
  • 无问题: 问题已处理,并有证据。

有限修复

当用户授权修复时:

  1. 仅修复具有明确证据的差距。
  2. 保留无关的本地更改,除非明确要求执行该分支操作,否则不要移动分支。
  3. 使用现有的仓库模式和针对性的测试。
  4. 在每次有意义的修复后,重新运行最小有效验证。
  5. 如果修复需要产品决策、凭据、破坏性操作或大规模重写,则停止并报告该决策,而不是猜测。

报告

以结果开头。保持报告简短易读:

状态
- 已完成、受阻、过时或仍在运行。

请求内容
- 用户要求被监控 Agent 执行的内容。

观察到的情况
- 被监控 Agent 更改、声明和验证的内容。

差距
- 缺失的行为、错误、验证不足或范围偏离。

已修复内容
- 更改的文件和运行的验证。仅审计工作可省略此部分。

剩余风险
- 任何仍未验证或等待 CI/审查/部署/人工输入的内容。

在必要时指定精确的文件名、命令、PR 或线程 ID。

Individual skills in this repo

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

BuilderIO/adding-a-skill

Use in the BuilderIO/skills repo whenever adding, updating, publishing, documenting, validating, or wiring a public skill. Covers the repo-local skill files, root catalog docs, plugin metadata, @agent-native/skills dynamic install path, optional managed AGENTS/CLAUDE instruction blocks in ../agent-native/framework, and generated/synced Plan skill gotchas.

BuilderIO/efficient-fable

Use when running Claude Fable on codebase-heavy or token-heavy work and the user wants Fable to orchestrate research, coding, and testing while cheaper subagents do bounded heavy lifting.

BuilderIO/efficient-frontier

Apply the same orchestration as `/efficient-fable` to any high-cost frontier model: delegate research, coding, and testing to cheaper subagents while keeping planning, synthesis, and final review with the expensive model.

BuilderIO/plan-arbiter

Use when asked to compare, cross-review, merge, judge, choose, or arbitrate competing plans from multiple agents such as Codex and Claude Code; when given two or more proposed plans, session IDs, transcripts, plan documents, PR descriptions, or pasted strategies; or when the user wants one recommended execution plan after agents review each other's proposals.

BuilderIO/plow-ahead

Use when the user explicitly wants autonomous progress without routine clarification stops: "plow ahead", "do not stop", "use your best judgment", "keep going until done", "finish while I am away", "do not ask questions unless truly blocked", or similar. Convert ordinary ambiguity into stated assumptions, proceed through implementation and validation, stop only for true blockers, and end with a clear recap of decisions, changes, verification, and residual risk.

BuilderIO/quick-recap

Use when adding or following the red/yellow/green final status block convention for agent responses, especially by installing managed AGENTS.md or CLAUDE.md instructions.

BuilderIO/read-the-damn-docs

Use when implementing, integrating, upgrading, debugging, or answering anything involving third-party APIs, libraries, frameworks, CLIs, cloud services, model/provider SDKs, fast-moving product behavior, user requests for latest/current/official behavior, unfamiliar repo docs/specs, errors that may indicate API drift, or high-stakes auth, security, billing, data, migration, deployment, compliance, or privacy behavior. Forces Codex to web-search for current official docs and read primary docs before assuming from memory.

BuilderIO/stay-within-limits

Use when long-running or parallel agent work must respect 5-hour and weekly usage limits by checking usage between waves, pausing near the cap, and resuming only when the window is clear.

BuilderIO/visual-plan

Turn ordinary text plans into rich interactive visual plans with diagrams, file maps, annotated code, open questions, and UI/prototype review when useful.

BuilderIO/visual-recap

Turn a PR, branch, commit, or git diff into an interactive visual recap with diagrams, file maps, API/schema summaries, annotated diffs, and focused review notes.

相关技能