Brainstorming
xpinjection/test-driven-spring-boot
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.
Full execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve, iterating under defense-in-depth stop conditions with generator/critic…
$ npx skills add ZaxbyHub/opencode-swarm --skill loop -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZaxbyHub/opencode-swarm loop --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/loop .claude/skills/loop && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "loop" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/loop into .claude/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/loopType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ZaxbyHub/opencode-swarm --skill loop -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZaxbyHub/opencode-swarm loop --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.opencode/skills/loop .agents/skills/loop && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "loop" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/loop into .agents/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZaxbyHub/opencode-swarm --skill loop -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZaxbyHub/opencode-swarm loop --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.opencode/skills/loop .cursor/skills/loop && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "loop" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/loop into .cursor/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ZaxbyHub/opencode-swarm.git --path .opencode/skills/loop--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ZaxbyHub/opencode-swarm --skill loop -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZaxbyHub/opencode-swarm loop --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.opencode/skills/loop .gemini/skills/loop && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "loop" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/loop into .gemini/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ZaxbyHub/opencode-swarm loopInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ZaxbyHub/opencode-swarm --skill loop -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.opencode/skills/loop .github/skills/loop && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "loop" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/loop into .github/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZaxbyHub/opencode-swarm --skill loop -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ZaxbyHub/opencode-swarm loop --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.opencode/skills/loop .opencode/skills/loop && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "loop" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.opencode/skills/loop into .opencode/skills/loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "loop", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
loopFull execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve, iterating under defense-in-depth stop conditions with generator/critic…
Loop is an agent skill from ZaxbyHub/opencode-swarm. Full execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve, iterating under defense-in-depth stop conditions with generator/critic separation, durable resumable state, and mandatory compounding learning capture. Loaded on demand by the architect when the loop command emits a [MODE: LOOP ...] signal.
Its SKILL.md is about 3.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Brainstorming and Secure coding. The repository describes itself as: Architect-centric agentic swarm plugin for OpenCode. Hub-and-spoke orchestration with SME consultation, code generation, and QA review. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 624cb60. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Loop loads about 3.9k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 1,989 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ZaxbyHub/opencode-swarm at commit 624cb60, republished under its MIT licence (© ZaxbyHub). 1,989 words, ~3,921 tokens.
.claude/skills/loop/SKILL.md (or your agent's skills folder).MODE: LOOP runs an objective end to end as a series of gated phases, then
loops to compound improvements until the objective is met or a stop condition
fires. Each cycle reuses the existing mode skills (brainstorm, plan,
critic-gate, execute, phase-wrap) and ends with a learning-capture step
so the next cycle is cheaper — that is what makes the loop compounding rather
than merely repeating.
This is a real implementation workflow: it delegates to the coder, declares
scope, and mutates source code through the normal EXECUTE path. It is distinct
from full-auto (a critic gate via the critic_oversight agent that
intercepts phase completions and high-risk actions for review — full-auto
never plans, delegates, or executes; the architect retains ALL delegation
duty) and turbo (parallel lanes within a single phase). LOOP is a
user-initiated, gated, sequential, compounding workflow.
The two design rules that everything below serves:
Parse the [MODE: LOOP ...] header to extract:
objective: the goal text after the header (the WHAT to achieve). Empty only
when resume=true.max_cycles: integer 1..5 (default 3) — hard cap on outer improvement cycles.autonomy: auto (default) or checkpoint.auto: proceed across gates without prompting, but still enforce every
hard stop condition and the mandatory review/critic gates.checkpoint: pause at each phase gate and wait for explicit user approval
before continuing.depth: standard (default) or exhaustive (wider exploration in
BRAINSTORM and PLAN: more candidate approaches, deeper localization).resume: true | false. When true, resume the existing run from durable
state instead of starting a new objective.If the header is malformed or required fields are missing, report the error and stop.
git status. If the tree is dirty, surface the
uncommitted changes and ask whether to proceed (checkpoint) or proceed only
if the changes are clearly part of this objective (auto). Do not silently
build on an unknown working state..swarm/loop/<run-id>/
(containment invariant — never write loop state outside .swarm/).resume=false): allocate a run-id (short slug + timestamp),
create .swarm/loop/<run-id>/state.json, and record the baseline:
objective, parsed parameters, start HEAD commit, cycle: 0,
phase: brainstorm, empty improvements and learnings lists.resume=true): locate the most recent .swarm/loop/<run-id>/
with an unfinished state, read it, validate required fields (run_id,
cycle, phase, done must all be present and have the correct types;
if any are missing or malformed, report the corruption clearly and stop
rather than continuing with undefined values), print a short progress
summary (cycle N of max_cycles, current phase, last gate result), and
continue from the recorded phase. If no resumable run exists, say so and
stop..done === true) that exceed 10 in count — keep the 10 most recent by
timestamp, remove the rest. This prevents unbounded state accumulation
under .swarm/loop/..swarm/plan-ledger.jsonl), never from conversation
memory — so a killed/resumed session never loses or re-does work.Write the state file after every gate transition. The on-disk state is the single source of truth for resumability.
One cycle is five phases run in order: BRAINSTORM → PLAN → BUILD → REVIEW →
IMPROVE. Do not skip or collapse phases. Each phase has an entry gate
(precondition) and an exit gate (positive evidence required before the next
phase begins). In checkpoint autonomy, pause at each gate for user approval.
When autonomy=auto, use the balanced-speed defaults instead of asking the user
for execution preferences: reviewer ON, test_engineer ON, sme_enabled ON,
critic_pre_plan ON, sast_enabled ON, drift_check ON, and council_mode,
hallucination_guard, mutation_test, phase_council, final_council OFF. Keep
commit frequency at phase-level only. During PLAN, choose the largest safe
parallel coder count from dependency-ready, file-disjoint task groups, clamped to
the configured limit (currently 6); if scopes overlap or are unknown, use 1.
This does not weaken QA; it removes only the preference prompt.
On cycle 2+, BRAINSTORM is replaced by a lightweight refinement step: feed the prior cycle's captured improvements and residual findings into PLAN directly (skip full discovery dialogue) — the objective is already framed.
file:.swarm/bundled-skills/brainstorm/SKILL.md and run it to
produce .swarm/spec.md and a QA gate profile. With depth=exhaustive,
require at least one non-obvious candidate approach.spec.md exists with explicit, testable success criteria and
scope boundaries. Record the success criteria into loop state — they are the
objective-met test used by the stop conditions. Checkpoint: confirm the spec
with the user.file:.swarm/bundled-skills/pre-phase-briefing/SKILL.md (required before
planning, especially on cycle 2+: it reads the prior retrospective and
verifies codebase reality so the new plan reflects what actually changed).file:.swarm/bundled-skills/swarm-plan/SKILL.md to decompose the work into
tasks and call save_plan. With depth=exhaustive, prefer finer task
granularity and deeper localization.file:.swarm/bundled-skills/critic-gate/SKILL.md to put the plan through
an independent critic.file:.swarm/bundled-skills/execute/SKILL.md and run the plan
phase by phase. The coder implements each task; per-task QA gates (tests,
lint, security, etc.) run as defined by the selected QA profile. The coder
context is the generator — it does not get to declare its own work
correct.This phase is the heart of the generator/verifier separation. It runs on the actual current diff, in contexts independent of the coder.
git diff against the cycle's start commit).NEEDS_REVISION / REJECTED / BLOCKED item,
return to the coder (generator) to fix it with code, tests, or evidence,
then re-run the affected reviewer/critic gate. Any edit after approval
invalidates that approval — re-review..swarm/evidence/ — keep the
review/critic outcomes with that phase's evidence so phase_complete and any
later audit can read them). This satisfies the mandatory implementation
closeout gate.This is what makes the loop compound. Do not declare completion without it.
file:.swarm/bundled-skills/phase-wrap/SKILL.md and write the mandatory
retrospective (the phase_complete gate blocks without a valid retro-N
bundle). Rescan the codebase and update documentation exactly as the
phase-wrap skill directs — that is, scoped to its authorized set
(README.md / CONTRIBUTING.md / docs/ via the docs agent). Do NOT edit the
governance contract files (AGENTS.md / CLAUDE.md); they constrain the loop
and are out of scope for autonomous edits.knowledge_add tool / the memory tools when
enabled) and/or a categorized note under .swarm/loop/<run-id>/learnings/.knowledge_add (which knowledge_recall surfaces in
later phases) rather than a write-only note nobody reads — capturing
learnings nothing retrieves does not compound.phase_complete;
learnings persisted; the cycle's improvements and residual findings recorded
in loop state.After IMPROVE, evaluate the stop conditions in order. Use defense in depth:
several overlapping conditions, not one. Record the chosen stop_reason in
loop state.
cycle >= max_cycles. → STOP. Never exceed
max_cycles.If none fire and budget remains: increment cycle, set the next cycle's input
to the recorded improvement directives + residual findings, and return to
Phase 2 (PLAN) (cycle 2+ skips full BRAINSTORM). In checkpoint autonomy,
confirm "continue for another cycle?" with the user before looping.
When a stop condition fires:
Mark loop state done with the stop_reason and final HEAD commit.
Present a human-readable summary:
/swarm pr-review or the
commit-pr flow — do NOT open a PR unless the user asks).Emit a completion marker on its own line to summarize terminal state for human readers:
<loop-complete reason="objective-met|budget-exhausted|plateau|oscillation|unrecoverable-error|user-stop" cycles="N"/>
.swarm/loop/<run-id>/state.json)A minimal, append-friendly shape — extend as needed but keep these fields:
{
"run_id": "rate-limit-20260618T0712Z",
"objective": "add rate limiting to the public API",
"params": { "max_cycles": 3, "autonomy": "checkpoint", "depth": "standard" },
"start_commit": "<sha>",
"cycle": 1,
"phase": "review",
"success_criteria": ["...", "..."],
"gates": [
{ "cycle": 1, "phase": "plan", "result": "approved", "at": "<iso>" }
],
"improvements": [],
"learnings": [],
"done": false,
"stop_reason": null,
"final_commit": null
}| Behavior | auto (default) | checkpoint |
|---|---|---|
| Pause at phase gates | No | Yes — wait for user approval |
| Confirm before next cycle | No | Yes |
| Mandatory review + critic gates | Enforced | Enforced |
| Hard stop conditions (budget, plateau, oscillation, errors) | Enforced | Enforced |
| Weaken/mock/skip a failing test | Never | Never |
auto reduces prompts; it never reduces verification.
max_cycles or after a plateau because it feels
close. Stop and report..swarm/loop/<run-id>/ so the loop survives interruption.© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .opencode/skills/loop of ZaxbyHub/opencode-swarm.
Open the folder on GitHubat commit 624cb60
Loop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Loop this skillZaxbyHub/opencode-swarm | 490 | — | ~3.9k | Automated safety check: Pass | MIT | |
| Brainstormingxpinjection/test-driven-spring-boot | 112 | 54 repos | ~2.6k | Automated safety check: Pass | MIT | |
| LLM Councilgcpdev/llm-council-skill | 461 | 1 repos | ~1k | Automated safety check: Notes | MIT | |
| Typesafe AIOpenAgentsInc/openagents | 455 | 9 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Yao Meta Skillyaojingang/yao-meta-skill | 2.7k | — | ~768 | Automated safety check: Pass | MIT | |
| Trellis StartROYIANS/foliq-print-template-designer | 135 | 6 repos | ~646 | Automated safety check: Pass | MIT |
xpinjection/test-driven-spring-boot
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.
gcpdev/llm-council-skill
Multi-LLM collaborative brainstorming and planning. An agent skill from gcpdev/llm-council-skill.
OpenAgentsInc/openagents
Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives.
yaojingang/yao-meta-skill
Create, improve, or evaluate an existing skill from workflows, prompts, SOPs, scripts.
ROYIANS/foliq-print-template-designer
Initializes an AI development session by reading workflow guides, developer identity, git status, active tasks, and project guidelines from .trellis/.
jnMetaCode/superpowers-zh
Turns a rough idea into an approved design before any code is written, sorting the request into spike, bounded or architectural and enforcing an approval gate.
ZaxbyHub/opencode-swarm
Runs an evidence-gated, quote-grounded audit of a codebase for security, QA, accessibility, performance and more, and writes a verified report without changing source files.
ZaxbyHub/opencode-swarm
Drives a bug report from validation and root-cause tracing through a critic-reviewed plan, an approved minimal fix and a PR-ready closure, never merging without recorded human approval.
ZaxbyHub/opencode-swarm
Codex adapter for opencode-swarm that governs commits, pushes, draft PRs, PR body updates and CI closeout, deferring to the repo's canonical commit-pr protocol.
ZaxbyHub/opencode-swarm
Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.
ZaxbyHub/opencode-swarm
Ingests existing pull request feedback such as review comments and CI failures, verifies each claim, fixes confirmed issues and reports closure status for every item.
ZaxbyHub/opencode-swarm
Monitor a pull request after creation and act autonomously on pushed PR activity.
Categories
Full execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve, iterating under defense-in-depth stop conditions with generator/critic…. Loop is an agent skill from ZaxbyHub/opencode-swarm. Full execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve, iterating under defense-in-depth stop conditions with generator/critic separation, durable resumable state, and mandatory compounding learning capture.
Loop fits situations like: tasks that involve Brainstorming; tasks that involve Secure coding.
Run `npx skills add ZaxbyHub/opencode-swarm --skill loop -a claude-code`. Or copy the skill folder (.opencode/skills/loop in ZaxbyHub/opencode-swarm) into .claude/skills/loop in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZaxbyHub/opencode-swarm --skill loop -a codex`. Or copy the skill folder (.opencode/skills/loop in ZaxbyHub/opencode-swarm) into .agents/skills/loop in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZaxbyHub/opencode-swarm --skill loop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/loop, .gemini/skills/loop, .github/skills/loop and .opencode/skills/loop in your project.
Going by SKILL.md and its folder, Loop needs the command-line tools its instructions call (git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Loop is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.9k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Loop: Brainstorming (xpinjection/test-driven-spring-boot, 112 stars), LLM Council (gcpdev/llm-council-skill, 461 stars), Typesafe AI (OpenAgentsInc/openagents, 455 stars) and Yao Meta Skill (yaojingang/yao-meta-skill, 2.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 490 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 7, 2026.
Source: ZaxbyHub/opencode-swarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.