define-loop
하는 일
이 스킬은 어시스턴트가 지원 티켓이나 버그 알림 같은 작업 목록을 차례로 처리하는 반복 루틴을 만들게 합니다. 결과는 사람이 확인할 때까지 대기합니다. 계속되는 업무가 있는 팀을 위한 스킬입니다.
사용하는 경우
- ✓어시스턴트가 같은 종류의 작업을 정기적인 일정으로 계속 처리하기를 원할 때.
- ✓작업을 추적해서 같은 일을 두 번 하지 않도록 해야 할 때.
- ✓보내거나 배포하기 전에 어시스턴트의 결과를 검토하고 싶을 때.
스킬 링크
https://github.com/yc-software/qm/blob/main/skills-seed/define-loop/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 지원 티켓을 매일 아침 확인하고, 제가 검토할 수 있는 답장 초안을 작성하는 루틴을 설정해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
어시스턴트는 몇 가지 질문을 한 뒤, 항목 하나를 테스트로 실행하고 플레이북을 저장합니다. 루프는 일정에 따라 실행되며, 완료된 항목의 기록을 남깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
define-loop — author a Loop
A Loop is a cron with a memory and a gate: a trigger, a playbook, a ledger of work items that survives across fires, ship-ready outputs held for a person, and a governor watching its health. Reach for one when the ask is "keep doing this kind of work", not "do this".
Intake, work, and judge turns use the loop's existing owner/scope authorization, credentials, command policy, and security posture. They run without surface tools or addressed delivery. Intake reads candidates; work prepares outputs; the judge inspects the work and executes the declared checks. Final external actions belong in the approved ship stage. The review gate controls loop output shipping; it is not a read-only sandbox for arbitrary shell commands or API calls in earlier stages.
A cron is enough when each fire is independent and nothing needs reviewing. Prefer the cron; a loop earns its complexity only when work items persist, must not be worked twice, and produce artifacts someone should see before they go out.
The one rule: never arm a loop you have not watched work. Stage 2 is not optional.
Stage 1 — Interview
Get these, in the user's own words. Ask about them one or two at a time, not as a form.
| What | Why it matters |
|---|---|
| Source of work | How to enumerate candidates each fire, and the stable id per item (Sentry issue id, Front conversation id). That id is the dedupe key — get it right or work repeats. |
| Trigger | A cadence (calendar cron in their timezone) or an event. Ask when output is actually useful, not just how often. |
| Success condition | What "done" means for ONE item. |
| Ship actions | Which externally-visible actions the loop may take (open_pr, send_email, front_reply). Anything not declared is a quarantine when it happens. |
| Caps | Optional. Propose defaults; record a decline without argument. |
| Escalation | Who the governor pings, and where. |
Writing the success condition
Free text, and it's the most load-bearing sentence in the loop. A good one has:
- one measurable end state — a test result, a linked PR, an empty queue
- a stated check — how the agent proves it ("
npm testexits 0", "the PR shows CI green") - the constraints that matter — what must not change on the way ("touches only the implicated module")
- a bound — "or park with a diagnosis after 5 turns", so a hopeless item stops burning money
The Sentry issue has a linked PR whose tests pass and CI is green, the fix touches only the implicated module, or park with a diagnosis after 5 turns.
Add successChecks for anything a command can settle (npm test, npm run lint). The
judge runs each check and reports its command and result. A missing or failed reported
check prevents completion even when the judge claims success. Check results are
model-reported, not an independent deterministic execution attestation.
Stage 2 — Shadow run (never skip)
Work one real item end to end, in this conversation, with the user watching. No loop record exists yet.
- Pull one real candidate from the source.
- Do the whole job to the ship line — write the actual PR or the actual reply — and stop.
- Show the user the finished artifact. Ask directly: would you have sent this?
- Fix what they flag. Repeat on a second item if the first needed real correction.
Then write the playbook from what you just did — the steps that actually worked, the dead ends worth skipping, the exact success condition you'd have wanted. A playbook written before the shadow run is a guess; one written after is a procedure.
Stage 3 — Emit
Create the loop with t
자주 묻는 질문
어시스턴트가 테스트 항목을 먼저 실행하는 이유는 무엇인가요?
테스트 실행으로 루틴이 스스로 시작되기 전에 작업을 미리 볼 수 있어, 예정된 결과에 놀라지 않게 됩니다.
정기 예약 작업으로 충분하지 않나요?
각 실행이 독립적이고 검토할 필요가 없다면 단순한 일정으로 충분합니다. 루프는 추적하고 확인해야 하는 작업을 위한 것입니다.
최종 결과는 누가 승인하나요?
외부 작업이 실행되기 전에 사람이 보류된 결과를 검토합니다. 이 검토 단계가 무엇이 배포되는지를 통제합니다.
상세 정보
작성자의 원본 설명
Define a Loop — a durable scaffold that works a queue of recurring tasks autonomously (Sentry issues, Front tickets, small perf PRs) with its outputs held for human review. Use when someone wants an agent to keep doing a kind of work on a schedule, rather than one-off. Walks the interview, runs one real item live before arming anything, then writes the playbook and creates the loop.
repo: yc-software/qm
인기도
- GitHub 스타
- 16k
- 순위
- #10888
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
deploy-qm
16kQM 패키지를 Fly.io, AWS, Render에 배포한 뒤, 전체 배포 체크리스트에 따라 관리자, 연결 도구, 선택적으로 Slack을 설정합니다.
onboarding
16k새 사용자가 계정을 연결하고, 일하는 방식을 공유하고, 목소리를 고르고, 첫 도움 항목을 설정하도록 짧은 대화로 안내합니다.
admin
16k검증된 조직 관리자가 채팅에서 조직 전체 설정과 다른 범위를 확인하거나 바꿀 수 있게 하며, 각 변경은 적용 전에 확인받습니다.
browse
16k셸에서 실제 스텔스 브라우저를 구동해 로그인이나 양식 작성 같은 웹사이트 작업을 수행하며, 로그인 상태는 사람마다 따로 유지됩니다. 읽기가 아닌 작업용입니다.