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

loop-worker

Autonomously work a `.pm` workstream to completion — pick the next pending milestone, implement every task end to end, /ship it, then move to the next until none remain. Use when the user asks to "loop", drain, or work through a whole workstream's backlog (e.g. `/loop-worker w1`). Sequential, not interval-based; for a timed poll use /loop.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.5 KB

SKILL.md(原文)

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

Task: Drain a .pm workstream milestone by milestone

/loop-worker <wN> — repeatedly pick the next pending milestone in workstream <wN>, implement it fully, /ship it, and continue to the next, until the workstream has no pending milestones left (or a milestone genuinely blocks). This is a long-running autonomous loop over the .pm board; it composes /pm (board reads/writes), your own implementation work, and /ship.

Parse the target workstream from $ARGUMENTS (e.g. w1). If $ARGUMENTS is empty, STOP and ask which workstream to drain — never guess.

Preconditions (verify once, up front)

  1. git branch --show-current is main. If not, STOP and ask (same rule as /ship).
  2. git status — note pre-existing uncommitted changes. Do not sweep unrelated changes into a milestone's ship; if the tree is dirty with work you didn't do, surface it and ask before starting.
  3. The workstream .pm/<wN>/README.md exists. If not, STOP and report.

The loop

Repeat until the exit condition below:

1. Pick the next pending milestone

Read .pm/<wN>/README.md. In the ## Milestones list, pending milestones are the unchecked ones (- [ ] **mN**). Pick the lowest-numbered pending milestone that still has a live directory (.pm/<wN>/mN/, not under done/). Cross-check by listing .pm/<wN>/m*/ and its done/ folder — the checkbox and the on-disk state must agree; if they disagree, trust the task files and flag the drift.

If there are no pending milestones, go to Exit.

Announce which milestone you picked and give a one-line plan before doing work.

2. Understand the milestone

Read .pm/<wN>/mN/README.md and every task file .pm/<wN>/mN/tNNN.md (skip any already in done/). These define the scope, order, and acceptance. Milestones ship features end to end — include the SDK, docs, and container tasks alongside the CLI ones; do not stop at the code. Respect .pm/DO_NOT_DO.md and the milestone's own acceptance criteria.

3. Implement it

Do the actual engineering, task by task, in the order the milestone implies:

  • Follow all AGENTS.md rules (root AGENTS.md and sdk/typescript/AGENTS.md — keep it simple, no speculative defenses, public CLI surface discipline, public-repository hygiene; prettier on .pm markdown, skill layout, etc.).
  • Run the relevant test suites and make them pass before considering a task done — from sdk/typescript/: pnpm run test, pnpm run types, pnpm run format (see sdk/typescript/TESTING.md), plus a container build when Dockerfile/docker/ change — whichever the change touches. Never mark a task complete on unverified code.
  • You may delegate independent sub-tasks to subagents (Agent tool) to parallelize, but you own correctness.
  • Keep the milestone's .pm status in sync as you finish tasks (task frontmatter, milestone README **Status:** + the — DONE row, workstream checkbox) — these are /pm-governed writes, so follow the conventions in .claude/skills/pm/SKILL.md exactly. When the milestone is fully done, move it per the .pm rule: a done milestone with no open tasks moves whole to .pm/<wN>/done/mN/ (mv the directory, then rmdir the empty original — leave no tombstone), and its workstream checkbox flips to [x].

4. Ship it

Invoke /ship (the ship skill) for this milestone's changes. Because you made the changes this session, /ship runs session-aware: it stages exactly what you touched and writes the commit message from your knowledge. /ship ends at a successful push — it does not watch CI or the deploy. Do not proceed to the next milestone until /ship reports the shipped HEAD.

If /ship surfaces a failure it cannot fix (rebase conflict it can't resolve, rejected push), treat it as a block (see below).

5. Continue

Loop back to step 1 to pick the next pending milestone.

Exit

Stop the loop and give a final summary when any of these holds:

  • Done: no pending milestones remain in <wN>. Report which milestones you shipped this run.
  • Blocked: a milestone needs a decision only the user can make (ambiguous scope, a DO_NOT_DO conflict, an external credential/access you lack, or a ship failure you can't resolve). Stop before shipping half-work — report the exact blocker and what you'd need to proceed. Do not skip a blocked milestone to grab a later one unless the user says so.
  • Budget/interrupt: the user interrupts, or you've been running long enough that a checkpoint is warranted — report progress (shipped, in-flight, remaining) so the run can be resumed cleanly.

Guardrails

  • One milestone per ship. Never batch two milestones into one commit; each milestone lands as its own shipped unit so history and rollback stay clean.
  • Never ship red. A failing test suite is a block, not a footnote — don't route around it.
  • Stay in <wN>. Only pick milestones from the requested workstream. Workers are general-purpose, but this run is scoped to the queue the user named.
  • Report honestly. If you skipped a task, mocked something, or a suite was flaky, say so in the per-milestone summary — don't present partial work as complete.

レビュー

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

同じリポジトリのスキル

概要と使いどころ

Assess an immutable patch artifact's program impact, regression risk, and auto-merge eligibility. Use for generated patch files, provider pull-request diffs, or commit ranges when reviewers need evidence about affected runtime paths, contracts, tests, and recoverability. This skill is read-only and does not generate, edit, apply, push, or merge the patch.

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

bex-co/bex-security512026年10月10日 更新

Use when Codex is already in the attack-path-analysis phase of a security scan or the user explicitly asks to trace a security finding from source to sink and calibrate severity. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

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

bex-co/bex-security512026年10月10日 更新

Use when the user asks for a deep, exhaustive, multi-pass, or variance-reducing repository-wide or scoped-path Codex Security scan. Run repeated complete independent Standard scans with the Codex Security deep-scan tool, which aggregates their validated findings and prepares the canonical artifacts; then complete the same scan once. Do not use for PRs, commits, branch diffs, or working-tree diffs.

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

bex-co/bex-security512026年10月10日 更新

Define, review, or update SECURITY.md guidance for a repository or component. Use when the user wants to clarify what Codex Security should review, what is out of scope, which security properties must hold, or whether existing guidance still matches the code.

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

bex-co/bex-security512026年10月10日 更新

Use when Codex is already in the finding-discovery phase of a security scan or the user explicitly asks to discover candidate security findings in a repository or code change. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

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

bex-co/bex-security512026年10月10日 更新

Use only when the user explicitly asks to fix and verify a validated or plausible security vulnerability. Do not use for ordinary bug fixes, correctness or design review findings, general validation, or full PR, commit, branch, patch, or repository scans.

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

bex-co/bex-security512026年10月10日 更新

bex-co のスキルをすべて見る

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