本文へスキップ
Skillpedia
自動化16k · #10888

define-loop

できること

このスキルは、サポートチケットやバグのアラートなど、一連の作業を順に処理する定期的な流れをアシスタントに構築させます。結果は人が確認するまで保留されます。継続的な作業を抱えるチーム向けです。

使う場面

  • ✓アシスタントに、同じ種類の作業を定期的に処理し続けさせたいとき。
  • ✓同じ作業を二度行わないように、作業を追跡する必要があるとき。
  • ✓外部に送信したり出荷したりする前に、アシスタントの出力を確認したいとき。

スキルのリンク

https://github.com/yc-software/qm/blob/main/skills-seed/define-loop/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/yc-software/qm/blob/main/skills-seed/define-loop/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“毎朝、サポートチケットを確認して、私が確認できる返信の下書きを作成するルーチンを設定してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

アシスタントはいくつかの質問をし、項目を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 test exits 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.

  1. Pull one real candidate from the source.
  2. Do the whole job to the ship line — write the actual PR or the actual reply — and stop.
  3. Show the user the finished artifact. Ask directly: would you have sent this?
  4. 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

よくある質問

アシスタントが最初にテスト項目を1つ実行するのはなぜですか?

テスト実行によって、ルーチンが自動的に始まる前に作業内容を確認できるため、予定された結果に驚かずに済みます。

定期的なスケジュールのタスクでは不十分ですか?

各実行が独立していて確認が不要であれば、単純なスケジュールで十分です。ループは、追跡と確認が必要な作業のためのものです。

最終的な出力は誰が承認しますか?

外部への操作の前に、保留された出力を人が確認します。この確認の段階で、何が出荷されるかを管理します。

詳細

作者による元の説明

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル