본문으로 건너뛰기
cccskills
무료GitHub에 공개

loop-architect

Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them. Use when the user wants to design, build, or set up an agent loop, iterative agent workflow, self-review loop, LLM-as-judge loop, multi-model council, reviewer/judge gate, or goal-driven looping process. Guides goal refinement, typed verification criteria, reviewer/judge selection, privacy boundaries, termination guards, and observability, then emits a RUN_IN_SESSION.md handoff prompt plus portable loop.yaml, loop.resolved.json, LOOP.md, and run-loop.py.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(19)

  • SKILL.md8.4 KB
  • examples/ai-workflow-mapping/inputs/process-notes.md436 B
  • examples/ai-workflow-mapping/LOOP.md2.4 KB
  • examples/ai-workflow-mapping/loop.resolved.json4.7 KB
  • examples/ai-workflow-mapping/loop.yaml2.7 KB
  • examples/ai-workflow-mapping/README.md553 B
  • examples/ai-workflow-mapping/RUN_IN_SESSION.md4.4 KB
  • examples/ai-workflow-mapping/run-loop.py546 B
  • examples/ai-workflow-mapping/scripts/check-loop-doc.py779 B
  • LICENSE1.1 KB
  • references/control-rubric.md2.3 KB
  • references/council-rubric.md1.4 KB
  • references/goal-rubric.md1.5 KB
  • references/model-detection.md2.6 KB
  • references/verification-rubric.md1.8 KB
  • schemas/loop.resolved.v1.schema.json727 B
  • schemas/loop.v1.schema.json5.4 KB
  • scripts/looper.py33.2 KB
  • templates/run-loop.py31.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Loop Architect

A loop design coach for Kiro CLI. Interviews you, critiques your design against built-in best-practice rubrics, wires in cross-model reviewers or judges, shows the loop as an ASCII flow preview, and writes portable artifacts you can run immediately with /goal or later with the Python runner.

Based on Looper by Kevin Simback, MIT License. Adapted for Kiro CLI by ft.ia.br.

Why This Exists

Kiro CLI ships /goal (autonomous loop with self-verification) and subagents (parallel pipelines with review loops). These execute a loop. Loop Architect helps you design one worth executing — with a coached goal, typed verification, a cross-model gate, and explicit termination guards.

/goalSubagent pipelineLoop Architect
Layerexecutionexecutiondesign (pre-flight)
Coaches your goalnonoyes
Typed verificationnonoyes (programmatic / judge / human)
Reviewer modelsame modelconfigurabledifferent model, by default
Portable artifactnonoloop.yaml + resolved spec
Runs the loopyesyesyes, via handoff

Workflow

  1. Resolve the target path from the user. Default: ./loop-architect-output. If the target contains an existing loop.yaml, treat as edit/resume.

  2. Load the relevant rubric only when entering that stage:

    • Goal stage: references/goal-rubric.md
    • Verification stage: references/verification-rubric.md
    • Council stage: references/council-rubric.md
    • Control stage: references/control-rubric.md
    • Model detection: references/model-detection.md
  3. Interview in seven stages: goal, verification, host model, council, gates/control, confirmation flow preview, emit/run option. In the control stage, cover execution boundary, isolation, no-progress signals, state, and run logging.

  4. Critique each stage before accepting it. Prefer concrete alternatives over vague warnings. Push weak goals toward outcome, scope, context, and done state. Push weak verification toward programmatic checks first, then judge rubrics, then human signoff.

  5. Keep reviewer and judge roles distinct. A reviewer writes notes. A judge returns a structured verdict. revise_until_clean must name a judge member or human as verdict_source.

  6. Require multiple termination guards: max_iterations, a revision cap on each gate, a no-progress stop, and either a budget cap or an explicit human stop point.

  7. Before any cross-vendor council member is selected, state what context will leave the user's machine, which CLI receives it, which redaction globs apply, and that both execution paths require first-send consent.

  8. Show an ASCII flow preview and ask for confirmation before final emission.

  9. Emit these files into the target:

    • loop.yaml
    • loop.resolved.json
    • LOOP.md
    • RUN_IN_SESSION.md
    • run-loop.py
    • loop-workspace/
    • README.md
  10. After writing loop.yaml, compile it:

    python3 ~/.kiro/skills/loop-architect/scripts/looper.py compile \
      <target>/loop.yaml \
      --out <target>/loop.resolved.json \
      --render <target>/LOOP.md \
      --session-prompt <target>/RUN_IN_SESSION.md
    
  11. Ask whether the user wants to run the loop now. If yes:

    • Easy path: Follow RUN_IN_SESSION.md directly, or suggest a /goal one-liner derived from the definition_of_done.
    • Subagent path: If the council uses a model with review_loop capability, offer to execute via a subagent pipeline with native review loops.
    • External path: Explain that run-loop.py is available for running later or outside the session.

Execution Paths

Path 1: /goal (simplest)

When the loop is straightforward and the host is the current Kiro session:

/goal --max 12 <definition_of_done from loop.yaml>

This uses Kiro's native self-verification loop. No cross-model review, but fast and zero-config.

Path 2: Subagent review pipeline (recommended)

When a cross-model reviewer is needed and the host has subagent capability:

Implement the loop following RUN_IN_SESSION.md. Use a subagent as reviewer
with trigger "NEEDS_CHANGES" and max 3 iterations per gate.

This leverages Kiro's native loop_to mechanism for the plan and delivery gates.

Path 3: External Python runner (advanced)

python3 ./loop-architect-output/run-loop.py

For scheduled runs, CI integration, or when you need strict budget enforcement.

File Rules

  • Write argv arrays, never shell command strings, for all model invocations.
  • Do not write API keys, tokens, or credentials into any emitted file.
  • Default redaction globs: .env, .env.*, secrets/**, **/*.key.
  • Keep loop.yaml human-readable and commented.
  • Keep RUN_IN_SESSION.md as the default/easy execution handoff.
  • Copy templates/run-loop.py exactly unless the user asks to edit it.

Helper Scripts

Detect model CLIs:

python3 ~/.kiro/skills/loop-architect/scripts/looper.py detect-models --write

Register a custom CLI:

python3 ~/.kiro/skills/loop-architect/scripts/looper.py register-model <id> \
  --invoke kiro-cli chat --trust-all-tools -p --authed

Compile and render:

python3 ~/.kiro/skills/loop-architect/scripts/looper.py compile <target>/loop.yaml \
  --out <target>/loop.resolved.json \
  --render <target>/LOOP.md \
  --session-prompt <target>/RUN_IN_SESSION.md

Confirmation Flow Preview

+--------------------------------+
| 1. Goal + context              |
|    read sources                |
+--------------------------------+
              |
              v
+--------------------------------+
| 2. Draft plan.md               |
|    state -> state.json         |
+--------------------------------+
              |
              v
+--------------------------------+
| 3. Plan gate                   |
|    verdict: reviewer-1         |
+--------------------------------+
  | needs work -> revise <= 3 -> step 2
  | pass
              v
+--------------------------------+
| 4. Write delivery-N.md         |
|    log -> run-log.md           |
+--------------------------------+
              |
              v
+--------------------------------+
| 5. Delivery gate               |
|    verdict: reviewer-1         |
+--------------------------------+
  | needs work -> revise <= 3 -> step 4
  | pass
              v
+--------------------------------+
| 6. Final output                |
|    all gates clean             |
+--------------------------------+

Stops: pass gates | max 12 iterations | no progress x2 | budget 30m, $5.0

Emit Checklist

  • The goal has a clear outcome, scope boundary, context sources, and done state.
  • Verification criteria are typed as programmatic, judge, or human.
  • At least one criterion is not purely vibe-based.
  • Each revise_until_clean gate has a valid verdict_source.
  • Every external invocation is an argv array with a timeout.
  • Cross-vendor egress is scoped, redacted, and consent-gated.
  • loop_control has iteration, revision, no-progress, and budget caps.
  • Execution boundary and isolation are explicit.
  • Observability names a run-log.md and state.json path.
  • Compiled artifacts (loop.resolved.json, LOOP.md, RUN_IN_SESSION.md) pass validation before handoff.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Audit, score, and compare repositories containing portable Agent Plugins against the official Agent Plugins specification. Use when asked to review a plugin repo, check plugin.json or mcp.json conformance, assess bundled skills and MCP servers, produce an evidence-cited 0–100 plugin scorecard, identify release blockers, or compare two agent plugins side by side.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement A2A Agent Card

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement ACP Discovery Document

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement Agent Skills Discovery Index

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement AI Bot Rules in robots.txt

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

Sub-skill de agent-ready-cloudflare: Implement API Catalog

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

fabricioctelles/skills1142026년 10월 19일 업데이트

fabricioctelles의 스킬 모두 보기

이 스킬의 문제 신고