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

iterate

Autonomous multi-cycle problem solver for complex tasks that require diagnosis → fix → test → verify loops. Use when the user says things like "make this work", "test this end-to-end", "fix and verify", "iterate until working", "do cycles", "keep going until it passes", or when a task clearly requires multiple rounds of analysis and testing (e.g., debugging a pipeline, seeding data, verifying integrations, making an API flow work). Also activates when the user wants autonomous QA, test runs, or system-level verification. Splits heavy work across subagents to preserve context and speed up iteration.

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

DevOtts/build-itスター 16(GitHub 16 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md10.0 KB

SKILL.md(原文)

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

/iterate — Autonomous Iteration Mode

You are entering autonomous iteration mode. You solve complex, multi-step problems by cycling through structured phases — without stopping to ask permission between cycles unless blocked by something truly ambiguous.

Core principle: Diagnose before fixing. Test after fixing. Repeat until the acceptance criteria are met or you've exhausted reasonable approaches. Use subagents aggressively to preserve your own context and parallelize independent work.


Before Starting

Capture the acceptance criteria. Ask the user ONE question if not already clear:

"What does 'working' look like? What's the specific outcome we're targeting?"

If the user gave enough context (a screenshot, an error, a description of expected behavior), skip this and infer the criteria yourself. State your inferred criteria explicitly before starting.


The Iteration Loop

Each cycle follows this structure. Run as many cycles as needed.

PHASE 1 — DIAGNOSE

Goal: Understand the root cause before touching anything.

  • Read logs, DB state, API responses, error messages
  • Identify the specific failing component (not just "it doesn't work")
  • Form a hypothesis: "I believe the failure is X because Y"
  • Verify the hypothesis with one targeted check before acting

Subagent use: Spawn an Explore subagent for broad codebase research (reading multiple files, tracing data flows). Keep your own context for reasoning and decisions.

Adversarial verify (before the fix is trusted): a root-cause claim earns the fix only after it has been challenged. If the bug admits multiple plausible causes, or you hold a single hypothesis backed by thin evidence, spawn a skeptic subagent explicitly prompted to REFUTE the hypothesis — argue rival causes, hunt disconfirming evidence. Hypothesis survives a real challenge → proceed. Skeptic surfaces a rival → run one targeted check before any fix. Never apply a fix on an unrefuted-but-unchallenged hypothesis.

Output of this phase:

DIAGNOSIS: <one sentence root cause>
HYPOTHESIS: <what I believe is happening>
EVIDENCE: <what confirmed it>
CHALLENGED: <how the hypothesis was adversarially tested, and the outcome>
FIX PLAN: <what I'll change>

PHASE 2 — FIX

Goal: Apply the minimal correct fix for the diagnosed root cause.

  • Change only what the diagnosis identified
  • Do not refactor, add features, or clean up unrelated code
  • If the fix requires multiple files, do them all before testing
  • Prefer reversible changes; call out any destructive or shared-state changes

Subagent use: For fixes that span many files (>5 files, or across packages), spawn a general-purpose subagent with explicit instructions — file paths, what to change, what NOT to touch.

PHASE 3 — TEST

Goal: Verify the fix works. Evidence-based, not assumption-based.

Depending on the task type, pick the right verification method:

Task typeVerification method
API / endpointcurl the route, check response
DB stateQuery with psql or Supabase client
Background jobPoll the workflow/status table
UI behaviorCheck the GET endpoint that feeds the UI
Compilationtsc --noEmit or build command
Unit logicRun the specific test file

Always collect concrete evidence — a response body, a row count, a status value. "It should work" is not evidence.

Evidence ledger: append every test result to .taskstate/evidence.md the moment it happens (timestamp · command · quoted output · verdict), not just at report time. The conductor's claim gate and verifier read that ledger; a result that isn't in it doesn't exist.

Subagent use: For parallel test runs (e.g., testing 5 endpoints at once), spawn one general-purpose subagent per group of related tests.

PHASE 4 — EVALUATE

After each test:

RESULT: PASS | FAIL | PARTIAL
EVIDENCE: <what you observed>
REMAINING ISSUES: <what still needs fixing>
NEXT ACTION: <next cycle's focus OR "Done">

If PASS: mark the cycle complete, continue to remaining items. If FAIL: start a new cycle with the new diagnosis. If PARTIAL: note what works, start next cycle for remaining failures.


Subagent Strategy

Use subagents to protect your context window and parallelize independent work:

Safe parallel (v3): the moment two or more subagents will write to the repo, isolate them — each mutating subagent runs in its own git worktree/agent/<lane> branch, and you (the coordinator) merge lanes back sequentially, running the integration check (merged build + lockfile + tests) after each; never accept a wave on "output exists," and no subagent runs git merge/checkout/reset in a shared tree. Read-only research subagents may share the tree. Full protocol: ../references/parallel-safety.md.

When to spawn a subagent

SituationSubagent typeWhat to hand off
Need to read >5 files to understand a systemExplore"Trace the data flow for X, return a 1-page summary"
Need to research how a library/API worksExplore"Find how Y is used in this codebase, return examples"
Need to apply a well-understood fix to many filesgeneral-purposeExact file paths + diffs + what NOT to change
Need to run parallel test casesgeneral-purposeEach test scenario with specific commands to run
Need to plan a complex approachPlan"Design the fix strategy for X, considering A and B"

Model tiering (cost-aware)

Where the host lets you set a subagent's model, route by task shape per the canonical table in ../references/model-tiers.md §2–3 (relative to this skill's base directory) — never copy it here:

  • Explore reads, file sweeps, parallel test runs → cheap tier.
  • Well-specified multi-file fixes against exact instructions → mid tier.
  • Skeptic/adversarial-verify and Plan subagents → the session model, never downgraded.
  • Default = inherit the session model when unsure; escalate on struggle — a lower-tier subagent that fails the delegation gate after one corrected re-dispatch, or thrashes, gets its slice re-run one tier up. When running under /build-it, log every tier choice and escalation to .taskstate/run-memory.md; standalone, note them in the RESULT summary.

What to keep for yourself

  • Final decisions on approach tradeoffs
  • Root cause reasoning
  • Writing the DIAGNOSIS/RESULT summaries
  • Calling out risks and blockers to the user

Delegation gate — idle ≠ delivered

After any subagent completes or goes idle, and BEFORE building on its result: verify its output actually exists — files changed on disk (check git status / the target paths), non-empty, matching the assignment. A subagent's "done" claim is not delivery. Output absent or wrong → re-dispatch with a corrected prompt or take the work over inline; never let the loop continue on a false "done". Relay conclusions, not dumps: when a subagent returns, carry forward its conclusion and load-bearing evidence, not its transcript.

Prompt quality for subagents

Always include in subagent prompts:

  1. What you've already tried / ruled out
  2. The specific question or task (not "figure it out")
  3. What format you need back
  4. What files/paths are relevant

Context Management

  • After 3+ cycles, summarize completed work in a COMPLETED block so you can refer back without re-reading
  • When handing off to a subagent, give them all needed context — they have no memory of this conversation
  • If approaching context limits, save state to a temp file and continue

Stopping Conditions

Stop iterating and report to the user when:

  • All acceptance criteria met — show evidence for each criterion
  • Blocked by ambiguity — something requires a decision only the user can make
  • Exhausted approaches — you've tried 3+ distinct root causes and none resolved it; present what you know
  • Destructive action required — never take irreversible action (drop tables, force push, delete branches) without explicit confirmation

Final Report Format

This report is a feeder. Running under /build-it, its findings flow into the conductor's unified report (statuses derived from the evidence.md ledger) — it never stands as a second verdict beside it. Standalone runs use the format directly.

## Results

**Status:** ✓ Complete / ⚠ Partial / ✗ Blocked

### What was achieved
- [list of each item that now works, with evidence]

### What was fixed
- [list of files changed and why]

### Issues found along the way
- [any bugs, missing migrations, schema gaps discovered]

### No silent caps
- [everything skipped, sampled, bounded, or truncated this run, and why — or "nothing was capped"]

### Remaining items (if any)
- [what still needs attention and why it wasn't resolved]

One-liner reminders (internalize these)

  • Diagnose before fixing — never change code based on a guess
  • Evidence, not assumption — always run the check after the fix
  • Minimal fix — change only what the diagnosis identified
  • Subagents for breadth, keep yourself for depth — spawn for file reads and parallel tests, reason yourself for root causes
  • State the criteria upfront — know what "done" looks like before starting cycle 1

Authored by DevOtts.

レビュー

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

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

build-it

無料

Single-command autonomous delivery orchestrator. Invoke it with a goal and a numbered Definition of Done (DoD) and it runs the whole job to completion — typically unattended, overnight — by conducting the bundled /launch, /iterate, /full-qa and /chrome-cdp-control skills. v2 encodes the Fable 5 behavioral contract as checkable gates (not postures) with disk-backed run state, an evidence ledger that makes VERIFIED a lookup, and a model-adaptive posture for Sonnet 5 and Opus 4.8. Use this whenever the user says "/build-it", "build it", "build-it", "/fable-it", "fable it", "fable-it" (the pre-v3.1.0 name — still routes here), "ship this", "run to DoD", "work autonomously until done", "I'm going to bed, finish this", "green light, take decisions", or pastes a goal + numbered acceptance criteria and expects an autonomous overnight run with a report waiting in the morning. Also use when the request describes an agile, cycle-based build (epics → tests → code → test → fix → loop) split across Claude teams or subagents. Prefer this over invoking /launch or /iterate directly when the request is a full goal-to-DoD delivery rather than a single phase.

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

DevOtts/build-it162026年10月19日 更新

build-it

無料

Autonomous goal-to-DoD delivery orchestrator — the build stage of the *-it lifecycle ("plan-it plans it, build-it builds it"); formerly named fable-it. Hand it a goal and a numbered Definition of Done and it runs the whole job to completion, typically unattended, enforcing checkable gates (turn-end, claim, state-change, phase-boundary, delegation, and safe-parallel: interlock, worktree, integration), disk-backed run state, an evidence ledger that makes VERIFIED a lookup, a fresh-eyes verification pass, and an honest per-criterion report. Model-adaptive for Sonnet 5 and Opus 4.8; host-agnostic (Claude Code, Cursor, Codex, Copilot and any SKILL.md-compatible agent).

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

DevOtts/build-it162026年10月19日 更新

Drive the user's real, logged-in Chrome browser via Chrome DevTools Protocol using Playwright (endpoint from CDP_URL, defaulting to localhost). Trigger this skill when the user explicitly asks to "use my Chrome", "use my browser", "log into", "post on" (X, Reddit, LinkedIn, etc.), or any task that requires an authenticated session, persistent cookies, or bot-detection evasion that headless scraping cannot provide. Also trigger when the user references their CDP setup, their `~/.chrome-automation` profile, or asks Claude to manually walk through actions on a real site one step at a time. Do NOT use this skill for simple unauthenticated content fetches (use `web_fetch`), bulk headless scraping (use a standalone Playwright script), or anything where a fresh Chromium instance would suffice. Do NOT use for tasks that can be solved by an API call to the same service.

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

DevOtts/build-it162026年10月19日 更新

full-qa

無料

Generic autonomous QA suite for any project — reads a test plan (markdown file or inline spec), runs all tests using Chrome CDP + iterate cycles, fixes bugs found, and produces a final QA report. Works with any web stack. Trigger with /full-qa [path-to-test-plan.md]. Use before releases, after significant changes, or whenever you want a full system health check.

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

DevOtts/build-it162026年10月19日 更新

launch

無料

Mission control for autonomous projects — analyzes tasks, recommends approaches (sub-agents/teams), sets up environment (features, evals, hooks, init.sh), suggests and configures tooling (MCPs), and launches the work.

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

DevOtts/build-it162026年10月19日 更新

DevOtts のスキルをすべて見る

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