cookys/autopilot/l4-sg-base

Claude Code and agent skill by cookys/autopilot

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Terse CEO front-door — Level 4: dispatch ONE background, worktree-isolated sub-orchestrator "foreman" that runs dev-flow unattended and returns a verdict; CEO context stays clean and the authoritative qc verdict is held at depth 0. Use when: "/l4 <goal>", "L4 <goal>", you want a long autonomous run offloaded off the main thread. Presets involvement=just-results, scope=Hold, project red lines plus -x additions (override --mode / --expand / --solo). Not for: inline execution (→ /l3), hetero impl engine (→ /l5).

Install

npx vskill@latest install cookys/autopilot/l4-sg-base

SKILL.md

The same SKILL.md was published earlier as cookys/autopilot/l4-sg-base.

/l4 — CEO autonomy, dispatched foreman

Ladder: the foreman inherits the unknown-escalation ladder (scripts/probe-unknown.js at every round end, budgets from review-loop-config.md, work unit = this whole run). The probe never recommends U4 — a spent budget is none; the run's own stop (stall fuse §8 / DOA boundary) attaches ladder_receipts: to its [ESCALATION] — see ceo-agent/references/depth0-control-loop.md §6.

Terse front-door into autopilot:ceo-agent at Level 4: dispatch ONE background, worktree-isolated sub-orchestrator "foreman" that runs dev-flow unattended; the CEO holds the depth-0 control loop and the authoritative qc verdict.

Hard rules:

  • Startup presets identical to /l3; engine all-Claude (hetero implementer → /l5).
  • Before any TaskCreate, branch, worktree, runner, or model effect, run

node <plugin>/scripts/session-mode.js set --level l4 --repo-root <repo>. --solo uses set --level l3 --entry-level l4 --fallback solo; a recorded precondition degradation uses --fallback precondition_failed. The command admits canonical Mission policy/graph/source coverage before writing the marker. Topology may change; its admission digest may not.

  • qc@depth-0 is THE gate: reviewer families/panel come from

scripts/resolve-review-loop.sh (qc_panel / required_review_families / min_panel_size); resolver unavailable → fall back to 3 reviewers. A homogeneous (all-Claude) panel must not drop below the resolver's `min_panel_size` (default 3) — panel size is emitted separately from families because lens diversity ≠ family decorrelation (same-family lenses can share blind spots). Reviewers read the branch diff, synthesized + fix-before-integrate — NEVER a CEO self-read, and distinct from the foreman's first-pass qc.

  • Merge-back and worktree GC are owned by depth 0; budget cap is fail-closed

(TaskStop + escalate). Record the run-summary ledger in the final CEO Report.

  • --solo → the /l3 inline engine (also the automatic degradation when the

foreman returns precondition_failed).

  • Only admitted graph nodes become implementation tasks. Plan phase headings, modules, tests,

review seats, and retries stay inside the owning deliverable.

  • 工頭等 leaf 只能用 run_in_background/子 Agent 的 task-notification 喚醒並結束回合;禁止前景 sleep 輪詢與把 leaf raw output 灌回 context(背景 run_in_background until-loop 等外部條件是允許的,一次通知;只收 schema 判準表)、禁止用 Monitor 等 leaf;工頭 Bash 上限 40 次。task-notification 是 best-effort,實測會整批漏送(2026-09-02 PEACE 回報:63 次有 29 次從未送達、1 次遲到 38 分鐘,一個 sonnet 工頭就這樣呆等一個早已跑完的 clippy),因此「等通知」不得是唯一喚醒路徑:每次交辦背景 leaf 都必須同回合 (a) 把 leaf 的 output path 寫進 context,(b) 另起一個背景死人開關(run_in_background 的 sleep <deadline>; echo WAKE,仍是背景、不違反禁輪詢);沒有配對死人開關就結束回合=紅。depth-0 交辦長階段給工頭後,同樣要自起該階段的死人計時器。
  • 工頭一刀一命(v2.35.15,cuda 2026-09-04 quota digest:四個常駐 Sonnet 工頭活 13–33 小時、各 1,900–7,400 次 Bash、佔 79% 支出):一個工頭只擁有一個已 admit 的 deliverable;該 deliverable 整合完、foreman-guard 的 Bash 上限(預設 40)到、或自己數到工具呼叫接近上限時,寫 handoff(autopilot:handoff)並結束回合,由 depth-0 為下一個 deliverable 另派工頭。禁止常駐等下一個指派。hooks/foreman-guard.js(default-on)在 PreToolUse 即時執行 ironlaw #6:l4–l6 session 內的子代理,第 41 次 Bash、前景輪詢(true/sleep/while … sleep|grep/pgrep/ps -p/讀 /tasks/*.output)、Monitor 一律 deny;depth-0 不受影響。派工人在 worker/reviewer prompt 第 2 行(緊接第 1 行 Engine: 之後)寫 Role: worker 或 Role: reviewer,該子代理 cap 升至 120(工頭預設仍 40)。任何 cap 前最後幾次呼叫只准 close-out allowlist(cd/git/kill/rm/mkdir -p/ls/test/寫檔),以便回合結束前能 commit。
  • 接手 read-list 上限:新工頭只讀「這一刀」的 brief(≤ 300 行)與該線的 ledger 分檔;禁止「先整份讀」的連鎖清單(整份 ledger、整套 kernel 原始碼、歷史 rulings)——一次接手開場 30 萬 token 就是這樣來的。工頭派工必帶 model:(工頭預設 sonnet、hands 走 implementer_ladder: auto,見 front-door § Default dispatch topology),不得繼承 depth-0 的 [1m]/Fable(dispatch-model-guard default-on 會擋沒帶 model 的派工)。

Capability profile (shadow): /l4 fixes foreman topology only. When the host supplies a current verified envelope/grant/profile payload, forward it unchanged; never infer guidance density from the level or model name. A late mismatch requires a fresh-session handoff. The canonical profile-session.js lane proves only no-effect context isolation. An adaptive child also needs an independently witnessed effectful adapter for the exact grant; otherwise retain this level's existing guided dispatch path and report the adaptive row as unverified.

MUST-READ: `../ceo-agent/references/level-front-door.md` (§ The foreman — dispatch mechanics and worktree-base rules) and `../ceo-agent/references/depth0-control-loop.md` (§ Depth-0 control loop, § Run-summary ledger — outcome→action table). They live there, not here.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
12
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cookys/autopilot/l4-sg-base/badge)](https://verified-skill.com/skills/cookys/autopilot/l4-sg-base)

Something wrong with this skill or its page? Tell us.