本文へ移動
cccskills
無料GitHub で公開

loop-budget

Check token budget and run-log spend before and after a loop run. Enforces early exit when over budget or when there is no actionable work.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Loop Budget Guard

Run at the start and end of every loop iteration.

Start of run

  1. Read loop-budget.md for daily caps and kill-switch flags.
  2. Read recent entries in loop-run-log.md (last 24h).
  3. Sum tokens_estimate for the active pattern today.
  4. If spend ≥ 80% of the pattern's daily cap → report-only mode (no sub-agents, no auto-fix).
  5. If spend ≥ 90% and High Priority items remain in STATE.md, yield to the budget-negotiator skill (if installed). Otherwise, if spend ≥ 100% or loop-pause-all is set → exit immediately with a one-line note in STATE.md.
  6. If watchlist/state has no actionable items → exit in <5k tokens (do not spawn sub-agents).

End of run

Append one JSON object to loop-run-log.md:

{
  "run_id": "<ISO8601>",
  "pattern": "<pattern-id>",
  "duration_s": <number>,
  "items_found": <number>,
  "actions_taken": <number>,
  "escalations": <number>,
  "tokens_estimate": <number>,
  "outcome": "no-op | report-only | fix-proposed | escalated"
}

Rules

  • Never exceed max sub-agent spawns/run from loop-budget.md.
  • High-cadence patterns (CI Sweeper, PR Babysitter) must early-exit when nothing is actionable.
  • On self-throttle, append a line to loop-budget.md under Alerts This Period.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

An advanced skill for L3 autonomous loops. When the token budget nears exhaustion, the agent analyzes its ROI and autonomously drafts a negotiation request for a budget increase rather than silently failing.

日本語の概要は準備中です。原文の説明を表示しています。

cobusgreyling/loop-engineering1.1万2026年10月11日 更新

Scan recent merges/PRs/commits for release note content. Structured output for drafter.

日本語の概要は準備中です。原文の説明を表示しています。

cobusgreyling/loop-engineering1.1万2026年10月11日 更新

Scan recent merges and commits since last release for changelog content.

日本語の概要は準備中です。原文の説明を表示しています。

cobusgreyling/loop-engineering1.1万2026年10月11日 更新

Scan merged PRs and commits since a given reference, extract titles, labels, types, and signals. Produces structured input for release notes drafting.

日本語の概要は準備中です。原文の説明を表示しています。

cobusgreyling/loop-engineering1.1万2026年10月11日 更新

Scan recent merges to main (and noteworthy direct commits) since a given window (last tag or date in state). Extract titles, labels, types, linked issues, and signals for breaking changes or security. Produces structured input for a release notes drafter. Use in changelog-drafter loops.

日本語の概要は準備中です。原文の説明を表示しています。

cobusgreyling/loop-engineering1.1万2026年10月11日 更新

ci-triage

無料

Parse CI failures, identify failing job/step, classify as flake, regression, env, or config. Use in CI sweeper loops before any fix attempt.

日本語の概要は準備中です。原文の説明を表示しています。

cobusgreyling/loop-engineering1.1万2026年10月11日 更新

cobusgreyling のスキルをすべて見る

このスキルの問題を報告する