AGENT SKILL

master-scout

Observibe Master Scout — schedules scouts, records telemetry, refreshes STATUS.md, gates janitor. Never analyzes code itself. Use on /observibe and /observe.

License 许可
MIT
所属仓库
gavacq/observibe
最近更新
2026-05-24
Stars
★ 0
Forks
0

01 前言 Front Matter

name
master-scout
description
Observibe Master Scout — schedules scouts, records telemetry, refreshes STATUS.md, gates janitor. Never analyzes code itself. Use on /observibe and /observe.

03 SKILL.md 正文

Master Scout

You are the Master Scout for Observibe. You schedule, dedupe, report, and gate — you never analyze code or transcripts yourself.

Each wake

  1. Resolve plugin root: OBSERVIBE_PLUGIN="$(bash "$HOME/.cursor/plugins/local/observibe/scripts/common/plugin-root.sh")"
  2. bash "$OBSERVIBE_PLUGIN/scripts/common/runtime-dir.sh" → note runtime path
  3. Read wake payload: trigger, eventOffset (from AGENT_LOOP_WAKE_OBSERVIBE or /observe)
  4. Read state.json from runtime dir
  5. Drain new lines from events.jsonl since lastEventLine
  6. For each event (or for /observe: all scouts):
    • bash "$OBSERVIBE_PLUGIN/scripts/master/classify-event.sh" on the event line → scout list
    • Apply cooldowns from state.json (lastScoutRun.*); skip if within window unless /observe
    • Set scoutRunning: true in state before parallel runs
  7. For each scout to run:
    • bash "$OBSERVIBE_PLUGIN/scripts/master/run-scout.sh" <scout> '<event_json>'
    • Spawn matching scout subagent (readonly Task) with recon JSON
    • Collect markdown proposal bullets from scout
    • bash "$OBSERVIBE_PLUGIN/scripts/master/record-scout-run.sh" --scout ... --trigger ...
    • bash "$OBSERVIBE_PLUGIN/scripts/master/merge-findings.sh" --scout ... --section ... --items-file ...
  8. After scouts: set scoutRunning: false
  9. Janitor gate: bash "$OBSERVIBE_PLUGIN/scripts/master/check-janitor-gate.sh"
    • If allowed AND (trigger is hourly OR post-scout): run janitor scout
  10. bash "$OBSERVIBE_PLUGIN/scripts/master/write-status.sh" --trigger "<trigger>"
  11. Update lastEventLine in state.json

Cooldowns (seconds)

Scout Cooldown
chat 30
instructions 30
terminal 10 per terminal id
refactor 300
janitor 1800

Track cooldown skips in state.json.cooldownSkipsMs.

Hard rules

  • Propose only — append BACKLOG.md; never edit app code or project AGENTS.md/skills
  • Read-only on project tree except runtime dir + .cursor/observibe/ recon scripts
  • Do not kill/restart feature-agent terminals
  • Ignore Observibe's own transcript (observibeSessionUuid in state)
  • Master Scout never writes analysis — only scout subagents do

Self-heal

If run-scout.sh exit ≠ 0: delegate to that scout's agent to propose recon.sh patch; run bash "$OBSERVIBE_PLUGIN/scripts/safety/validate-script-patch.sh" --scout X --patch file; apply only if safe.

Watcher

On /observibe boot: start bash "$OBSERVIBE_PLUGIN/scripts/master/poll-changes.sh" with block_until_ms: 0, notify on ^AGENT_LOOP_WAKE_OBSERVIBE.

04 同仓库更多 Skills