Logo de Review Loop

Review Loop

Comunidade
timharris707
review-loop

Have a second model review a branch on this machine before its pull request opens, fix what holds up, and repeat until a round comes back clean or three rounds pass. Use when about to open a pull request or push a fix to one, when the user says review loop or asks for a second opinion before the PR, or when a repo's instructions name the review loop.

Visão geral

Publicado portimharris707
Repositórioskills
Nome da habilidadereview-loop
Estrelas
45
Forks
7
Arquivos incluídos
1
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 1 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por timharris707 no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Review Loop no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/timharris707/skills/tree/main/skills/in-progress/review-loop
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/timharris707/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/in-progress/review-loop .claude/skills/review-loop
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Review Loop em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Review Loop automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Review Loop não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Review loop

A pull request should reach the review bot already clean. The bot then reviews once, and the PR merges on that one pass instead of collecting a fix push per finding. The review loop is that cleaning: a second model reads the branch's diff in a fresh context, the author fixes what holds up, and the loop repeats, at most three rounds.

The reviewer is Codex through codex review, on the Codex subscription the machine already signs in with. It costs one Codex review per round and no API spend. A repo whose instructions name a different reviewer, or a heavier pre-PR review such as adversarial-review, keeps its own; the loop is the light pass for every other PR.

Steps

  1. Ready the branch. Commit the work and run the checks the repo requires before a PR. Fetch the base branch the PR will target. Done when the working tree is clean and git log origin/<base>..HEAD lists exactly the work for this PR.

  2. Run a round. One review of the whole branch against its base. codex review refuses --base together with instructions, so the base goes inside the instructions:

    bash
    # Set run once, at the loop's first round, so a later loop keeps this one's records.
    run="$(git rev-parse --git-dir)/review-loop/$(git branch --show-current | tr / -)-$(date +%Y%m%d-%H%M%S)"
    out="$run/round-<n>.md"
    mkdir -p "$run"
    codex review "Review the changes on this branch against origin/<base> (git diff origin/<base>...HEAD). <goal of the driving item, one sentence>. Report only defects: wrong behavior, missing or broken tests for changed behavior, security problems, and breaks of this repo's written rules. Skip style." > "$out" 2>&1

    A round takes from under a minute to several. Run it with your command tool's timeout set to 15 minutes (macOS has no timeout command). A nonzero exit is a failed round, not a review: read the error at the end of the file, fix the cause, and rerun the round. A 401 Unauthorized means Codex ran without a sign-in; set CODEX_HOME to the profile the machine's Codex agents use. On a zero exit, the findings are the block after the last line that reads codex; everything above it is the session log. Done when the command exited 0 and that block holds findings or says it found none.

  3. Settle every finding. For each one, read the code it points at and decide:

    • Fix it when it is real and inside the driving item's goal, with the smallest change that answers it.
    • Decline it, with a one-line reason, when it is wrong or asks for work beyond the item. Scope creep is a decline even when the idea is good; file real outside work as its own tracked item.

    Append each finding's disposition (fixed, or declined and why) to the end of the round's file, then commit the fixes and rerun the repo's checks. Done when every finding in the round has its disposition in the round file.

  4. Repeat or stop. Stop on whichever comes first:

    • Clean: the round reports no findings.
    • Settled: you declined every finding in the round. Rerunning would return the same ones.
    • Round 3 done: findings you fixed in it stay unreviewed and go into the PR as such, and any still open are named there.

    Otherwise run the next round on the updated branch. Done when the loop has stopped on one of those three conditions.

  5. Record it in the PR. The PR description carries one line the reviewer and the decider can read at a glance:

    markdown
    **Review loop:** 2 rounds (Codex). Fixed 3, declined 1 (out of scope: <reason>). Final round clean.

    A settled stop says "final round settled (all declined)", never clean. On a stop after round 3, name each finding still open. A fix pushed to an open PR runs the loop again on the new commits before the push, and updates this line.

Done when (checkable: verify each line before reporting complete)

  • Every round reviewed the diff against the PR's actual base branch, and its file under the git dir ends in findings or a clean verdict, never an error.
  • Every finding has its disposition and reason in its round file; no finding was skipped.
  • The loop stopped clean, settled, or after round 3, never earlier with fixed findings unreviewed.
  • The repo's required checks pass on the final commit.
  • The PR description carries the review-loop line, and any finding left open is named there.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Review Loop faz?

Have a second model review a branch on this machine before its pull request opens, fix what holds up, and repeat until a round comes back clean or three rounds pass. Use when about to open a pull request or push a fix to one, when the user says review loop or asks for a second opinion before the PR, or when a repo's instructions name the review loop.

Por que usar Review Loop no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Review Loop é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Review Loop no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/timharris707/skills/tree/main/skills/in-progress/review-loop. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Review Loop?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Review Loop?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Review Loop com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Review Loop é gratuita?

Sim. A habilidade é publicada no GitHub por timharris707 sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇