Index of every page on this site: llms.txt
All skills
aktsmm avatar

/goal-loop

@9bedf91
by yamapanaktsmm/agent-skills27 stars
5
Run it yourself

Run an explicit end-to-end goal loop with frozen Scope/criteria, worker delegation, external verification, evaluator review, and bounded retries. Use when the user asks for 'goal-loop', 'ゴールまで回す', '必ずやり遂げる', 'loop until done', 'until it actually works', or an orchestrator + evaluator loop. Do not use for ordinary planning, casual advice, reviews, or small single-file fixes.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/goal-loop

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈104 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈11k more on demand in 6 files.

How this Skill uses context

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

This Skill turns off automatic use in Claude Code. Its description stays out of the automatic Skill list by default.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Goal Loop

合意した Scope と success criteria を満たすまで、worker / verifier / evaluator を使ってゴールをやり遂げる手順書。 このスキルを起動した現在の agent が orchestrator になり、criteria、ledger、evidence reconciliation、次の一手の決定を担う。

When to Use

  • ユーザーが goal-loop / ゴールまで回す / 必ずやり遂げる / loop until done / until it actually works と依頼した。
  • 成果物を end-to-end に完成させる必要があり、単発修正ではなく検証・再試行・評価のループが必要。
  • worker 生成と evaluator 判定を分ける価値がある、中規模以上または不可逆・多段の作業。

Do Not Use For

  • 1 ファイル・自明・低リスクの修正。通常 agent が直接実行する。
  • 普通の相談、計画だけ、コードレビューだけ、事実確認だけ。
  • skill / prompt / instruction / agent 自体の設計レビュー。この skill の対象外。

Execution Contract

  • Freeze scope, AC, verifier, out-of-scope, must NOT, autonomy, and persistence before execution.
  • Keep a compact ledger: AC status, evidence, attempts, gaps, and next action.
  • Delegate broad research, mutation, and primary verification when workers are available; workers return evidence only.
  • Before parallel durable dispatch, checkpoint each partition identity, expected evidence, and wait deadline. After cancellation, retry, or a missing parent completion, reconcile durable evidence first and rerun only unresolved partitions.
  • Judge by external signals first. Never PASS from self-evaluation, supporting checks alone, skipped tests, TODOs, or weakened criteria.
  • On failure, update the ledger from the failed signal, change approach, and avoid repeating attempts.
  • Use Small-Bet-First for broad, irreversible, dependency, schema, deployment, or user-facing changes.
  • Stop or replan on stall, oscillation, diminishing returns, budget exhaustion, or genuine external blockers.

Phase 1: Scope + Criteria Freeze

Use criteria-agreement.md.

  • Freeze goal, scope terminus, AC with verify:, primary verifier, out-of-scope, must NOT, autonomy, and persistence.
  • If the finish line is ambiguous, ask one structured question before execution.
  • Do not use build/control-plane success as the primary verifier when the real outcome is deploy / runtime / UI / app behavior.

Phase 2: Plan Minimal Subgoals

Use steering-and-final-gates.md and ledger-templates.md.

  • Pick the lightest effort level that still protects the goal; downgrade trivial work.
  • Split into verifiable subgoals and record status. Parallelize read-only work, or independently partitioned mutations with durable identity, idempotency, expected evidence, and conflict-free ownership.

Phase 3: Delegate Workers

Use loop-control.md.

  • Start broad or risky changes with a pilot; never expand a failed pilot.
  • Give workers only the subgoal, AC, boundaries, must NOT, relevant attempt lessons, and expected evidence.
  • Treat parent tool receipt, UI state, and turn_end as delivery evidence, not completion authority; use terminal child state plus verified durable artifacts.
  • If no subagent tool exists, record degraded mode; only downgraded small work may run in main context.

Phase 4: External Verification

  • Run the frozen verify: steps and capture exit codes, logs, screenshots, readbacks, or capability gaps.
  • If the primary verifier is unavailable, record exact manual verification steps and required evidence; do not complete from weaker checks.

Phase 5: Evaluate

Use evaluation-rubric.md.

  • Reconcile evidence against each AC. Use a separate evaluator for non-small or non-read-only work.
  • PASS only when every must AC passes and confidence is above threshold.

Phase 6: Loop Control

Use loop-control.md.

  • If unmet, update the ledger from the external signal and replan before adding workers.
  • Escalate only after the Blocker Test proves the blocker is external or structural.

Phase 7: Report or Handoff

  • Report AC-by-AC status, primary evidence, supporting checks, capability gaps, criteria changes, and residual risks.
  • For high-risk changes, include final quality gate and independent review evidence.
  • Cleanup scratch state unless it is needed for resumability.

References

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The skill implements a structured autonomous loop for end-to-end task completion. It includes built-in safeguards such as success criteria freezing and separate evaluation roles, but inherently possesses an attack surface for indirect prompt injection by processing external task descriptions and verification data.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: MEDIUM · 1 issue

Signed by skilld at 9bedf91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated last month
argument-hint
達成したいゴール(成果物・終了条件・制約があれば一緒に)
disable-model-invocation
true
user-invocable
true
Other metadata
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/goal-loop