Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-loops

БесплатноЗапускает вложенные скриптыНе проверен

Complete operational workflow for implementer agents (Codex, Gemini, etc.) making code changes and writing tests. Drives all work through atomic commits…

NickCrewот NickCrew★ 76 звёзд на GitHub

Об этом скилле

Agent Workflow Loops

This skill defines the operational loops that implementer agents follow when making code changes and writing tests. Each loop has explicit entry criteria, exit criteria, and escalation rules. If you are an agent, follow these loops exactly.

You do not review your own work. All reviews are performed by an independent reviewer. Prefer Claude via the bundled scripts. If Claude is unavailable, use a different model before asking your own model family to review. Same-model shell-outs are the last resort. You never grade your own homework.

Bundled references:

  • references/testing-standards.md — Test quality standards (how to write tests)
  • references/audit-workflow.md — Test gap discovery (how to find what's missing)
  • references/perspective-catalog.md — Review perspective selection (used by primary and fallback code review)
  • references/review-prompt.md — Code review prompt template for fallback reviewers
  • references/audit-prompt.md — Test audit prompt template for module-scope (full-contract) audits
  • references/diff-audit-prompt.md — Test audit prompt template for diff-scope (per-commit) audits; used by diff-test-audit.sh when --git is active

Bundled scripts:

  • $SKILL_DIR/scripts/specialist-review.sh — Provider-aware Claude/Gemini/Codex CLI path for code review
  • $SKILL_DIR/scripts/diff-test-audit.sh — Provider-aware Claude/Gemini/Codex CLI path for test audit

Locate Scripts

The bundled scripts live inside the installed skill directory, not the project tree. Before invoking any script, resolve SKILL_DIR so paths work regardless of install scope:

SKILL_DIR="$(ls -d ~/.codex/skills/agent-loops 2>/dev/null || ls -d .codex/skills/agent-loops 2>/dev/null)"

All script invocations below use "$SKILL_DIR/scripts/...". Run the snippet above once at the start of your session and reuse the variable.


Architecture: Who Does What

Role Agent How
Implementer Codex or Gemini Writes code changes and test code
Code Reviewer Claude preferred; non-self scripted fallback next; same-model provider last; fresh-context Codex final fallback specialist-review keeps same-model shell-outs last; fallback reviewer uses bundled prompts and produces a review artifact
Test Auditor Claude preferred; non-self scripted fallback next; same-model provider last; fresh-context Codex final fallback diff-test-audit keeps same-model shell-outs last; fallback auditor uses bundled prompts and produces an audit artifact
Remediator Codex or Gemini Fixes findings from the independent review/audit artifact

Critical rule: Codex and Gemini NEVER self-review unless every independent provider path has already failed. Every review step must be performed by an independent reviewer using this selection order:

  1. Bundled script with automatic Claude-first, self-last provider selection
  2. A fresh-context Codex reviewer that did not implement the change

If neither path is available, stop and escalate to the user.

Why Shell-Based Review (Even for Claude)

The bundled scripts aren't a Codex/Gemini accommodation — they exist to enable cross-model independent review, which every agent benefits from. The provider rotation explicitly keeps the current agent's own model family last, so a Claude agent invoking specialist-review.sh gets its review from Gemini or Codex first, not another Claude instance.

Two kinds of reviewer independence are in play:

  • Cross-model independence (shell scripts): reviewer is a different model family with different training data and alignment. Catches blind spots inherent to the current model. Requires shelling out to a different provider.
  • Fresh-context independence (sub-agents): reviewer is the same model family but with no prior context. Catches local anchoring bias. Cheap to obtain via Task-tool sub-agents in Claude Code.

Agent-loops uses the first mechanism as its baseline because cross-model is a stronger guarantee than fresh-context alone. Claude-native sub-agent flows (like multi-specialist-review) add within-model multi-perspective diversity on top of the shell-based baseline when warranted — they don't replace it.

Reviewer Selection Order

When a review or audit is required, use this exact fallback chain:

  1. Bundled script first. Let the bundled script try Claude, then another model family, and keep the current model family last. The script validates the artifact contract before accepting the generated artifact.
  2. Fresh-context Codex next. Spawn a reviewer agent with fresh context. That agent must:
    • not have authored or edited the implementation under review
    • receive only the task spec, relevant diff/module/tests, and the bundled references
    • act only as reviewer/auditor, not as implementer
    • write its result to a markdown artifact under .cortex/reviews/
  3. Escalate if no independen
Полный SKILL.md на GitHub

Установить agent-loops в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

justfilereferences/audit-prompt.mdreferences/audit-workflow.mdreferences/diff-audit-prompt.mdreferences/perspective-catalog.mdreferences/review-prompt.mdreferences/testing-standards.mdscripts/diff-test-audit.shscripts/review-provider.shscripts/specialist-review.shscripts/synthesize-review-artifacts.pyscripts/validate-review-contract.py

FAQ

Что делает скилл agent-loops?

Complete operational workflow for implementer agents (Codex, Gemini, etc.) making code changes and writing tests. Drives all work through atomic commits — each loop operates on the smallest complete, reviewable change. Defines the Code Change Loop, Test Writing Loop, Lint Gate, and Issue Filing process with circuit breakers, severity levels, and escalation rules. Requires `cortex git commit` for all commits. Includes bundled provider-aware review scripts that keep same-model shell-outs as the last resort, plus a fresh-context Codex fallback for code review and test audit. Use this skill when starting any implementation task.

Как установить скилл agent-loops?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-loops запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить agent-loops с