본문으로 건너뛰기
Skillpedia
리서치18k · #10521

auto-review-loop-llm

하는 일

이 스킬은 별도의 언어 모델로 연구 프로젝트를 반복해서 검토하고, 수정을 적용한 뒤 다시 검토합니다. 주 어시스턴트와 다른 모델에게서 피드백을 받고 싶은 연구자를 위한 스킬입니다.

사용하는 경우

  • ✓연구 초안과 결과를 두 번째 모델에게 비평받고 싶을 때.
  • ✓논문 검토에 쓸 OpenAI 호환 API가 있고 이를 사용하고 싶을 때.
  • ✓리뷰어가 긍정적으로 평가하거나 네 라운드가 지나면 검토 사이클을 멈추고 싶을 때.

스킬 링크

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/auto-review-loop-llm/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/auto-review-loop-llm/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“OpenAI 호환 모델로 제 연구 초안을 검토해 주세요. 리뷰어가 만족할 때까지 수정을 적용해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 선택한 모델에 초안을 보내고, 점수와 판정을 읽은 뒤 수정을 적용하고 다시 검토합니다. 판정이 긍정적이거나 네 라운드가 끝나면 멈춥니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Auto Review Loop (Generic LLM): Autonomous Research Improvement

🔒 Do not wrap this skill in /loop, /schedule, or CronCreate. Like /auto-review-loop, it already loops internally (review → fix → re-review), feeding each round's prior-round summary into the next review prompt (the backend is a stateless per-round API/MCP call, not a shared thread). An external timer re-enters from the top each tick, dropping that accumulated context and firing the verdict on wall-clock time instead of on artifact change — zero new signal, full token cost. Schedule the external wait that precedes it, not the verdict. See shared-references/external-cadence.md.

Autonomously iterate: review → implement fixes → re-review, until the external reviewer gives a positive assessment or MAX_ROUNDS is reached.

Context: $ARGUMENTS

Constants

  • MAX_ROUNDS = 4
  • POSITIVE_THRESHOLD: score >= 6/10 AND verdict ∈ {"ready", "almost"} — both must hold, matching the operative STOP check below. Verdict vocabulary is {"ready", "almost", "not ready"}. (Earlier wording used or and a stale verdict set; the AND form is authoritative.)
  • REVIEW_DOC: review-stage/AUTO_REVIEW.md (cumulative log) (fall back to ./AUTO_REVIEW.md for legacy projects)

LLM Configuration

This skill uses any OpenAI-compatible API for external review via the llm-chat MCP server.

Configuration via MCP Server (Recommended)

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "llm-chat": {
      "command": "/usr/bin/python3",
      "args": ["/Users/yourname/.claude/mcp-servers/llm-chat/server.py"],
      "env": {
        "LLM_API_KEY": "your-api-key",
        "LLM_BASE_URL": "https://api.deepseek.com/v1",
        "LLM_MODEL": "deepseek-chat"
      }
    }
  }
}

Supported Providers

Provider LLM_BASE_URL LLM_MODEL
OpenAI https://api.openai.com/v1 gpt-6.1-sol, gpt-6-astra
DeepSeek https://api.deepseek.com/v1 deepseek-chat, deepseek-reasoner
MiniMax https://api.minimax.io/v1 MiniMax-M3
Kimi (Moonshot) https://api.moonshot.cn/v1 moonshot-v1-8k, moonshot-v1-32k
ZhiPu (GLM) https://open.bigmodel.cn/api/paas/v4 glm-4, glm-4-plus
SiliconFlow https://api.siliconflow.cn/v1 Qwen/Qwen2.5-72B-Instruct
阿里云百炼 https://dashscope.aliyuncs.com/compatible-mode/v1 qwen-max
零一万物 https://api.lingyiwanwu.com/v1 yi-large

The llm-chat server defaults to gpt-6.1-sol. When LLM_FALLBACK_MODEL is unset, the 504-timeout fallback inherits LLM_MODEL (so it is not a fixed, different model). Calls to api.openai.com automatically use max_completion_tokens; third-party OpenAI-compatible endpoints use max_tokens. Set LLM_MAX_TOKENS_FIELD=max_tokens or LLM_MAX_TOKENS_FIELD=max_completion_tokens to override that automatic choice.

API Call Method

Primary: MCP Tool

mcp__llm-chat__chat:
  prompt: |
    [Review prompt content]
  model: "deepseek-chat"
  system: "You are a senior ML reviewer..."

Fallback: curl

For third-party OpenAI-compatible endpoints, use max_tokens:

curl -s "${LLM_BASE_URL}/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${LLM_API_KEY}" \
  -d '{
    "model": "${LLM_MODEL}",
    "messages": [
      {"role": "system", "content": "You are a senior ML reviewer..."},
      {"role": "user", "content": "[review prompt]"}
    ],
    "max_tokens": 4096
  }'

For a direct OpenAI call, use max_completion_tokens instead:

curl -s "https://api.openai.com/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer ${LLM_API_KEY}" \
  -d '{
    "model": "gpt-6.1-sol",
    "messages": [
      {"role": "system", "content": "You are a senior ML reviewer..."},
      {"role": "user", "content": "[review prompt]"}
    ],
    "max_completion_tokens": 4096
  }'

State Persistence (Compact Recovery)

Persist state to review-stage/REVIEW_STATE.json after each round:

{
  "round": 2,
  "status": "in_progress",
  "last_score": 5.0,
  "last_verdict": "not ready",
  "pending_experiments": [],
  "timestamp": "2026-03-15T10:00:00"
}

Write this file at the end of every Phase E (after documenting the round).

On completion, set "status": "completed".

Wo

자주 묻는 질문

설정하려면 무엇이 필요한가요?

스킬이 설명하는 대로 MCP 서버나 환경 변수로 설정한 OpenAI 호환 API가 필요합니다.

검토는 몇 라운드 진행되나요?

최대 네 라운드입니다. 리뷰어가 긍정적인 판정을 주면 그보다 일찍 끝납니다.

일정에 맞춰 실행할 수 있나요?

스킬은 타이머로 감싸지 말라고 권합니다. 이미 내부적으로 반복하기 때문입니다.

상세 정보

작성자의 원본 설명

Autonomous research review loop using any OpenAI-compatible LLM API. Configure via llm-chat MCP server or environment variables. Trigger with "auto review loop llm" or "llm review".

repo: wanshuiyin/Auto-claude-code-research-in-sleep

인기도

GitHub 스타
18k
순위
#10521
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬