본문으로 건너뛰기
cccskills
무료GitHub에 공개한국어 소개

loop-design-check

AI 에이전트의 반복 작업을 설계·점검합니다. 기계로 판정할 완료 조건, 변경 금지 경계, 독립 검증과 재시도 상한을 정해 헛돌거나 통제를 벗어나는 일을 방지합니다.

원문원문 설명 보기

Design a goal-oriented agent loop or review one for failure modes: spinning, Goodhart-gaming the verifier, or running a wrong answer to completion. Covers machine-decidable goals, loop types, plan/build/judge skeletons, and runaway prevention; mechanism wiring lives in autonomous-loops. Use when designing, writing, or checking an agent loop. 中文触发:写 loop、设计 loop、做一个 loop、检查 loop 对不对、loop 体检、loop 会不会跑飞、可判定目标、五个崩法、plan build judge。

AI 평가90점/ 100설치 방법 보기

이럴 때 유용합니다

  • 반복 작업의 완료 조건 정의
  • 헛도는 반복과 검증 우회 점검
  • 계획·구현·검증의 역할 분담
  • 재시도 상한과 사람의 승인 조건 설계

한국어 소개

할 수 있는 일

loop-design-check는 AI 에이전트가 작업과 검증을 반복하는 루프를 설계하고, 기존 루프가 헛돌거나 잘못된 완료에 이르지 않는지 점검합니다. 기계로 합격 여부를 판정할 완료 조건과 변경 금지 경계를 함께 정합니다. 목표 달성 후 멈추는 방식과 상태를 유지하는 방식을 선택하고, 계획·구현·검증의 역할, 재시도 상한, 강제 중단, 사람에게 넘길 조건을 정리합니다.

이럴 때 유용합니다

테스트와 수정을 반복하는 작업을 맡기거나, 자동 처리가 검증 기준을 고쳐 통과할까 우려될 때 적합합니다. 모호한 목표, 구현 담당자의 자체 채점, 오래된 문서 의존 등 다섯 가지 실패 유형으로 설계를 점검합니다.

사용 예시

  • “밤사이 실패한 테스트를 수정하는 루프의 완료 조건과 금지 사항을 설계해 주세요.”
  • “이 루프의 검증 방식, 재시도 상한, 사람에게 넘길 조건을 점검해 주세요.”

주의 사항

목표 설정과 통제 이탈 방지가 대상입니다. 루프 연결 구조와 장시간 운영의 복구 장치는 autonomous-loops 등 다른 스킬에서 다룹니다. 도입 판단에는 반복 빈도, 자동 검증, 토큰 예산, 실행 결과를 확인할 도구가 필요합니다. 최종 수락과 중대한 작업의 판단은 사람이 맡으며, 단발성 작업이나 단순 정기 실행에는 적합하지 않습니다.

이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.

객관 평가

AI가 SKILL.md의 내용만을 근거로 4가지 관점에서 판정했습니다. 스타 수나 인기도는 판정에 넣지 않았습니다.

지시의 명확성언제 쓰고 무엇을 하는지 알 수 있는가
A양호반복 작업의 설계·점검을 대상으로 명시하고 단발성 작업과 루프 연결 구조는 제외합니다.
절차의 구체성절차·입출력·예시가 구체적으로 적혀 있는가
A양호도입 조건, 목표 정의, 방식 선택, 역할 분담, 단계적 도입 절차와 판정 예시가 있습니다.
안전성전송·삭제·명령 실행 등을 명시하고 있는가
A양호구현자의 수락 조건 변경을 금지하고 독립 검증, 재시도 상한, 사람의 최종 승인을 정합니다.
도입의 용이성필요한 도구나 API 키가 적고 적혀 있는가
B일부 부족자동 검증과 실행 결과를 확인할 도구가 전제이지만 해당 도구의 도입 절차는 없습니다.

총점은 각 항목을 A=25점, B=15점, C=5점으로 더한 값입니다. 2026년 10월 19일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.

평가가 다르다고 생각되면 재검토를 요청하기

어느 항목이 왜 다르다고 생각하는지 적어 주세요. 로그인은 필요 없습니다. SKILL.md와 대조해 평가를 다시 만들고 이곳에 반영합니다.

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

포함된 파일(1)

  • SKILL.md11.7 KB

SKILL.md(원문)

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

Loop Design + Review

Premise. An LLM is a feed-forward system: prompt in → tokens out, with no built-in "steer toward the goal" across turns. To make it behave like a goal-oriented system, you wrap a feedback loop around it. This skill helps you write that loop correctly and review it so it won't run away.

When to use / not

Use it when:

  • You want to hand a repeating task to an agent that runs over and over (write→test, test→fix, fix→verify…).
  • You already have a loop and worry it spins, cheats, or runs a wrong answer to completion.

Don't use it for:

  • A one-off task → just do it; don't wrap a loop around it.
  • A plain timer / poll → use /loop; no design needed.
  • How to wire the loop architecture (pipelines → DAGs, long-run recovery) → that's the mechanism layer; see autonomous-loops / continuous-agent-loop. This skill only covers "is the goal right, and will it run away" — it does not re-explain mechanism.

Red-line premise: two levels of feedback

LevelWho owns itWhat it does
Execution (low)machine / agentMeasures "how far from the literal goal" and grinds it to zero. The machine is strong here.
Judgment (high)humanDecides "is this goal itself right, should it change, should it stop." The machine can't step outside its own loop to question the goal.

A thermostat can feed back "how far from 26°C," but when you have a fever and want 28°C it can't judge whether 26 is the right target — it just grinds toward 26. "What to set today" is always the human's call. Handing judgment / sign-off / the last switch to the machine = removing the high-level feedback = it sprints, fast and hard, toward a goal no one questioned → wrong output.


Action 1 — Write a loop (5 steps)

Step 0 · Subtract first: should you even build it? (4-condition gate, any miss = veto)

① the task repeats weekly or more ② verification can be automated ③ the token budget can take it ④ the agent has tools that actually run and see the result

Miss any one → don't build a loop; do it by hand or another way.

What stops most people isn't "can I write a loop," it's "does my repo deserve one." A repo that deserves a loop has a reconciliation baseline (golden sample / upstream total) + tests + a lint guard. A repo that doesn't deserve a loop will only have its errors amplified by one.

Step 1 · Define a machine-decidable goal (the hard part — the loop lives or dies here)

The whole loop rides on the comparator's "is it done yet?" The comparator can only work if your exit condition can be judged yes/no by a machine.

  • Bad: Vague ("make it good," "write it sharper") → the comparator can't judge → either it never passes (stuck retrying) or it guesses (passes/blocks at random).
  • Good: Decidable ("all 96 unit tests green AND a change-list is produced," "module-02 fields filled, pytest passes, business logic untouched") → one check settles it; the loop converges cleanly.

Five-point goal framework:

  1. Done-criterion is machine-verifiable.
  2. Boundary conditions defined alongside the done-criterion ("what it must NOT do") — anti-Goodhart; missing boundaries = a license to cheat.
  3. Has a failure fallback — retry cap N + escalate to a human when exceeded.
  4. Goal is layered.
  5. Prefer reconciliation over assertion for the done-criterion — anchor to external fact (golden sample / upstream total / financial tie-out / platform back-office numbers) before your own assertions. "All tests pass" can be gamed (loosen asserts, fake mocks, swallow exceptions); "diff vs the reference < 0.01" can't.

Self-check: read the goal to someone who doesn't know the domain — can they run one command and tell whether it's done? If not, it isn't decidable enough. Go back.

Step 2 · Pick the loop type

Your taskLoop type (cybernetic)How it stops
Has a clear "done" test (write to done / a batch of images processed)servo (/goal-style closed-loop)stops on reaching the goal
No endpoint, must keep maintaining a state (inventory alert / scheduled health check)regulator (/loop-style thermostat)never stops; acts only on change (dead-band suppresses noise)
Periodic sampling, stop on a condition (watch a PR until CI is green)regulator with an exitstops when the exit condition holds
Must "ensure something happens on time"wrap the above in /schedulecron fires it

Rule of thumb: clear "done" test → servo; must keep maintaining, no endpoint → regulator; must "happen on time" → wrap a regulator in schedule.

Step 3 · Pick a skeleton

Maintenance type (tend something that exists) → document-driven dispatch. The loop isn't "run a fixed check on a timer," it's "read a doc on a timer, and dispatch only when the doc changed." The doc is the task queue + state machine + human interface. Three disciplines: ① the problem column is human-write-only, the result column is loop-write-only, state advances one-way and never rolls back; ② the exit code is final (if the script says exit 1, the script wins); ③ state advances only as far as "awaiting verification" — the "done" cell is flipped by a human only. The loop is the worker, not the acceptance officer.

Greenfield type (build from scratch) → plan / build / judge, three roles.

RoleDoesKey
Planbreak the goal into a spec + decidable acceptance conditionsacceptance must be script-judgeable
Buildwrite to the specmust not change the acceptance conditions
Judgerun acceptance independently; pass → stop, fail → return with the failure reason to Buildindependent + deterministic

Three iron rules (all bet on the judge): ① the judge must be independent — not the same agent as Build (grading your own homework always inflates); ② deterministic rules — pytest / reconciliation diff / type check / diff, never "looks right"; ③ Build may not edit the acceptance conditions to pass. Three failed retries → escalate to a human.

Step 4 · Add damping (against oscillation / runaway)

Retry cap, hard stop, human flips the last switch = damping. Negative feedback with no damping oscillates (the Ralph-Wiggum loop: spinning in place, burning tokens).

Step 5 · Land in three stages (don't go fully automatic on day one)

① Run it once by hand (forces you to state exactly "how the judge decides") → ② harden into a skill / Claude Code sub-agents (a main Claude loops, dispatching plan/build/judge) → ③ hang it on cron for full automation.


Action 2 — Review a loop (checklist = five failure modes)

Run the loop past each row. Hitting any one = this loop will misfire; send it back. These five are negative experience (gotchas) — worth more than positive rules.

#Failure mode (how it breaks)Review question (a hit = red)Antibody
1Goal is a correct platitude → spins, burns moneyCan the exit condition be machine-judged yes/no? Or is it "manage it well / make it good"?Replace with a decidable result condition (Action 1·Step 1)
2"Verification" written as "check if it looks ok" → agent confidently says fine and stopsIs the judge the defendant itself? Does verification rest on "looks right" or deterministic rules?Reconcile + exit code rules + independent judge
3(worst) Only gates on "all tests pass" → agent deletes the testsIs there a boundary ("what it must NOT do")? Or only a done-criterion?Done-criterion + boundary together (the Goodhart antibody)
4Counts on the agent asking mid-run → it won't; it runs the wrong answer to the endIs there any "clarify only at runtime" point?Front-load every clarification; settle it once before launch
5Bloated CLAUDE.md + stale memory → the faster it loops, the more it errsAre the docs/memory it depends on fresh? Who maintains them?Layered memory + periodic lint

Plus three red lines (violate any = not allowed to go automatic):

  • Keep judgment with the human. Acceptance / the "done" cell is flipped by a human; the loop is not the acceptance officer.
  • Responsibility doesn't transfer. Anything whose failure you can't afford (merge the wrong PR / publish the wrong thing / misallocate money) → don't hand over the authority automatically.
  • Counter-intuitive warning. The more "self-improving / rewrites-its-own-rules" a loop is, the stricter the human review it needs (to see what it rewrote the rules into) — not looser. The machine is too fast to intercept after the fact, so the human's judgment must sit before the action (a hard gate), not as a post-hoc patch.

Worked example — reviewing a "nightly green-keeper" loop

You want a loop that runs every night and fixes whatever tests are failing.

  • Naive goal: "make all tests pass." → Step-1 self-check fails: this is the bait for failure mode #3.
  • Decidable goal (fixed): "all tests green AND no test file deleted or weakened AND coverage not lowered AND a change-list produced." Boundary now defined alongside the done-criterion.
  • Type: servo with a retry cap of 3 (Step 2 + Step 4).
  • Skeleton: plan/build/judge — the judge is CI run independently, never the fixing agent (Step 3).

Now run the review checklist, and it catches what the naive version would have missed:

  • #3 hit → the naive "all tests pass" lets the agent delete a failing test to "win." Fixed by the boundary "no test file deleted/weakened."
  • #2 hit → if the fixing agent also judged its own fix, it would pass itself. Fixed by "judge = independent CI, deterministic."
  • #4 hit → if a fix is ambiguous, the agent won't stop to ask at 2 a.m.; it'll commit a guess. Fixed by front-loading: ambiguous fixes are left for the human, not guessed.
  • Red line → the loop opens a PR but does not auto-merge; the human flips the last switch (responsibility doesn't transfer).

The naive loop and the reviewed loop differ by four lines of constraint — and that's the difference between "wakes you to a deleted test suite" and "wakes you to a clean PR."


One-line close

The hard part of writing a loop isn't "can I write a loop," it's defining a goal a machine can reconcile — decidable, bounded, reconciliation-based. The controller must be deterministic and external; keep judgment and the standard with the human; the system tends toward entropy, so maintain it. A loop only rewards someone who has already thought it through. Count on it to think for you, and it will happily think wrong, with you, at scale.


Lineage: Wiener's two-level feedback (The Human Use of Human Beings, 1950) for the judgment/execution split and red lines; the plan/build/judge pattern from Anatoli's Loops explained and Addy's Loop Engineering. Mechanism layer (how to wire the loop architecture): see autonomous-loops / continuous-agent-loop. This skill does not re-implement mechanism; it covers goal definition and runaway prevention only.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Design and audit interfaces for Web, iOS, and Android using WCAG 2.2 accessibility guidance. Check screen-reader labels, keyboard navigation, contrast, and control sizes to identify barriers and guide implementation for people using assistive technology.

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

  • Adding descriptive labels to icon-only buttons
  • Reviewing keyboard navigation and modal focus
  • Checking contrast and control sizes
affaan-m/ECC28.3만2026년 10월 16일 업데이트

Investigate unreliable AI agents across 12 layers, including instructions, memory, tool execution, and display. Use code and logs to trace failures, rank findings by severity, and produce an ordered repair plan that prioritizes code changes.

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

  • Investigating failures that appear only inside an agent application
  • Tracing old conversation content leaking into new sessions
  • Checking skipped or falsely claimed tool execution
affaan-m/ECC28.3만2026년 10월 16일 업데이트

agent-eval

무료요약 있음AI 평가 80점

실제 개발 과제로 여러 코딩 에이전트를 비교합니다. 성공률, 확인 가능한 API 비용, 소요 시간과 반복 실행의 안정성을 측정해 도입 결정과 업데이트 후 평가에 활용합니다.

  • 실제 개발 과제로 에이전트를 비교합니다
  • 새 도구나 모델을 도입하기 전에 평가합니다
  • 에이전트 업데이트 후 성능을 확인합니다
affaan-m/ECC28.3만2026년 10월 16일 업데이트

Design and refine an AI agent’s available actions, tool inputs, and result formats. Define recovery steps for errors, manage the information kept in context, and evaluate changes through completion rates, retries, and cost per successful task.

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

  • Define an AI agent’s tool set and input formats
  • Make tool results and next steps easier to interpret
  • Specify safe retries and stopping conditions
affaan-m/ECC28.3만2026년 10월 16일 업데이트

Diagnose AI agent runs that fail repeatedly, loop through tools, or lose track of the task. Capture errors and environment details, test a focused recovery action, and produce a report explaining the evidence and outcome.

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

  • Diagnosing repeated failures in an agent run
  • Investigating loops through the same tool calls
  • Reviewing output degradation as context grows
affaan-m/ECC28.3만2026년 10월 5일 업데이트

agent-introspection-debugging

무료요약 있음AI 평가 100점

AI 에이전트의 반복 실패와 도구 사용을 기록하고 원인을 좁힙니다. 영향이 제한된 복구 작업과 결과 보고를 통해 근거 있는 재시도를 돕습니다.

  • 같은 도구 작업을 반복하는 원인 조사
  • 대화 증가에 따른 출력 품질 저하 조사
  • 파일 경로와 환경 불일치 확인
affaan-m/ECC28.3만2026년 10월 16일 업데이트

affaan-m의 스킬 모두 보기

이 스킬의 문제 신고