Agent Skillsblock/berd › berd-monitor

berd-monitor

GitHub

用于在 Berd 会话外运行长时间命令,解耦生产者与代理,缓冲输出并唤醒原会话。适用于构建、测试、部署等外部等待场景,避免阻塞当前回合。

distro/skills/berd-monitor/SKILL.md block/berd

Trigger Scenarios

需要运行可能超出当前回合时长的命令 执行构建、测试、审查或部署任务 进行轮询、监听或外部等待操作

Install

npx skills add block/berd --skill berd-monitor -g -y
More Options

Non-standard path

npx skills add https://github.com/block/berd/tree/main/distro/skills/berd-monitor -g -y

Use without installing

npx skills use block/berd@berd-monitor

指定 Agent (Claude Code)

npx skills add block/berd --skill berd-monitor -a claude-code -g -y

安装 repo 全部 skill

npx skills add block/berd --all -g -y

预览 repo 内 skill

npx skills add block/berd --list

SKILL.md

Frontmatter
{
    "name": "berd-monitor",
    "metadata": {
        "berdBundled": true
    },
    "description": "Run a long-lived command outside the current Berd turn and wake the owning session with actionable stdout. Use for builds, tests, reviews, deployments, polling, watchers, and other external waits."
}

Berd Monitor

Use berd-monitor when a command may outlive the current turn. It detaches the producer from Berd and the agent harness, buffers output across delivery failures, and sends complete stdout lines to the exact originating session.

Run short, bounded commands normally. Do not hold a turn open with sleep, polling, log tailing, or a foreground timeout.

Start

berd-monitor run \
  --state-key <stable-key> \
  --label '<concise source name>' \
  --instructions '<short event-handling guidance>' \
  -- <producer-command> [args...]

AGENT_SESSION_ID selects the current session. Use --session-id only for another positively identified session; never infer a session from the working directory. The command prints the detached monitor PID. After checking the monitor's watcher.log under the printed state directory when diagnosis is needed, continue other work or end the turn—never wait on the detached PID.

The producer's stdout is the event API:

  • emit concise, newline-terminated milestones and flush promptly;
  • put verbose output and diagnostics in durable logs or stderr;
  • avoid NUL bytes and emit a final summary when practical.

Default --if-running steer adds an event to an active run or starts a new turn. Use --if-running queue only when the active run must not be steered. Pending events retry without being dropped, and a trailing partial line is delivered when the producer exits.

Delivered messages are visibly labeled as coming from berd-monitor. Stop a monitor with:

berd-monitor stop --state-key <stable-key>

Version History

  • 8e7e350 Current 2026-09-02 21:29

Same Skill Collection

.agents/skills/assistive-ux/SKILL.md
.agents/skills/berdctl-new-command/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/experimental-features/SKILL.md
distro/skills/agent-builder/SKILL.md
distro/skills/berd-help/SKILL.md
distro/skills/berd-orchestrator/SKILL.md
distro/skills/skill-builder/SKILL.md
skills/buzz-handoff/SKILL.md

Metadata

Files
0
Version
8e7e350
Hash
bfce94a9
Indexed
2026-09-02 21:29

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 14:56
浙ICP备14020137号-1 $お客様$