Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add choiyounggi/loop-orchestrator/plugin install loop-orchestratorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/choiyounggi/loop-orchestrator/loop-implement)<a href="https://agentmods.dev/skills/choiyounggi/loop-orchestrator/loop-implement"><img src="https://agentmods.dev/badge/skills/choiyounggi/loop-orchestrator/loop-implement/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/choiyounggi/loop-orchestrator/loop-implement"><img src="https://agentmods.dev/badge/skills/choiyounggi/loop-orchestrator/loop-implement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.02021 |
| Opus 5.5 | $0.00035 | $0.00808 |
| Sonnet 5.5 | $0.00018 | $0.00404 |
| Haiku 4.5 | $0.00009 | $0.00202 |
Grade A, and why
loop-implement scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
loop-implement — verification loop for a single task
Take one task and drive it to "done" through a closed loop whose steps are grounded in established methodology (sources at the bottom). This is the worker half of loop-orchestrator: an orchestrator session hands you one task; you complete it here. It also works standalone for a single task.
When to use
- Use: logic changes, new features, bug fixes, behavior-changing refactors.
- Skip: typos, config values, simple rename/import cleanup, one-line edits.
Tool profile (pluggable)
A few steps can use environment-specific tools through named capability roles:
knowledge (domain facts / policy / code values), tacit (past incidents, edge
cases, danger zones), plan (a planning skill), verify (the project's test /
build / QA command), explore (code/symbol search), and design (visual/UI spec
for a UI task, e.g. a Figma link). Resolve them once at the start:
sh ${CLAUDE_PLUGIN_ROOT}/scripts/resolve-tools.sh --summary
For each role: if a tool is configured, use it where the loop references that role
below; if it resolves to default, use the generic built-in behavior (your own
analysis / the step-2 planning). Configuration is optional and layered (per-user
then per-repo) — with nothing set, the loop runs fully generic and depends on no
external tool. Schema, precedence, and examples: references/tool-profile.md.
A role is a tool injected into one step — never a loop. Do NOT map a role (esp.
verify) to a tool that runs its own implement/verify/retry loop or another
orchestrator; that nests loops and muddies the retry/DoD/auditor ownership. There
is no implement role — step 4 below is the single owner of the implement cycle.
The loop
0. Define done — write the acceptance criteria + done checklist FIRST,
so the loop has an explicit pass/fail target. [DoD/XP]
1. Analyze — understand the change; list the test scenarios it needs.
Consult `knowledge` + `tacit` if configured; use `explore`
to locate code/symbols. For a UI-facing task, read the
visual spec — the brief's `<design_spec>` if present, else
consult `design` (e.g. a Figma link) — and implement to it. [TDD step 1 / PDCA Plan]
2. Plan / design — for larger tasks only; fold into step 1 if small.
Use the `plan` role if configured, else plan inline. [PDCA Plan]
3. Write tests (Red) — write the failing test(s) BEFORE the code. The test is
the spec and the verification oracle. If test-first is
impractical (e.g. exploratory UI), fix the acceptance
criteria / verification command before implementing. [TDD test-first]
4. Implement (Green) — minimal code to make the tests pass. [TDD Green / PDCA Do]
5. Run tests (Check) — run new + existing tests; preserve failure output. Use the
`verify` role's command if configured (run only). [PDCA Check / self-testing code]
6. Self-review + refactor — clean up; check bugs, edge cases, resource leaks,
input validation, unused code. Re-check against the
`tacit` role's danger zones if configured. [TDD Refactor / self-review / Self-Refine]
6.5 Independent audit — REQUIRED: call the test-quality-auditor subagent with the
task brief, the diff, and the test paths. Do NOT grade
your own tests. (self-grading guard)
7. Judge against done — pass only if the done checklist is met AND the auditor
returns VERDICT: PASS. [DoD / evaluator]
- PASS -> done.
- FAIL -> 7b.
7b. Reflect + retry — state in words why it failed (what the auditor/tests
showed), then retry from step 3 with that reflection.
Bounded: at most 3 attempts. On the 3rd failure, STOP
and escalate with the last failure reason. [Reflexion / bounded retry]
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 143 lines · 88 tokens per session scan A 11cc17c37a86
loop-implement is a skill published in the GitHub repository choiyounggi/loop-orchestrator (2 stars, last pushed 3mo ago), licensed MIT. It adds 88 tokens to every session and 2,021 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
building
Use when writing production code test-first: the RED-GREEN-REFACTOR cycle, false-RED detection, vertical slicing, scope escalation, test process discipline, and code generation patterns.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code.
loop-executor
Evaluate-Loop Step 3: EXECUTE. Use this agent to implement tasks from a verified plan. Works through plan.md tasks sequentially, writes code, updates plan.md after every task, and commits at checkpoints. Uses TDD where applicable. Triggered by: 'execute plan', 'implement track', 'build feature', '/conductor implement'…
parallel-gate-legs-killed-for-memory-count-cannot-see-ram
Two sessions run local test legs on the same machine and one session's leg is killed for memory mid-run, while the concurrency guard everybody uses — a count of running test processes — reads well inside its limit the whole time. Use when: (1) a background test run ends with a harness notice like "stopped because the…
subagent-pre-existing-misattribution
Catch subagent reviewers misattributing test failures across the pre-existing / PR-introduced boundary — in BOTH directions. Use when: (1) a multi-task subagent-driven plan reports "N pre-existing failures, unrelated" across consecutive tasks and the count never changes, (2) an architectural / final reviewer at the…
worktree-historical-test-replay-missing-dirs
Fix pytest exit 4 ("file or directory not found") when running a test command in a git worktree checked out at an OLD commit. Use when: (1) you're doing historical replay (incident replay, mutation testing, git bisect with tests) and the suite errors out in 1-2 seconds with no test execution, (2) the test command…