[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJV6W9R6CKQGFCPA3EPNSS":3,"skill-same:01M6FJV6W9R6CKQGFCPA3EPNSS":50},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M6FJV6W9R6CKQGFCPA3EPNSS","auto-review-loop",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fauto-review-loop\u002FSKILL.md",[],[18,19,20,21,22],"review","loop","review loop","auto","auto review loop","2026-11-10 10:12:30",false,"# Auto Review Loop: Autonomous Research Improvement\n\nAutonomously iterate: review → implement fixes → re-review, until the external reviewer gives a positive assessment or MAX_ROUNDS is reached.\n\n## Context: $ARGUMENTS\n\n## Constants\n\n- MAX_ROUNDS = 4\n- POSITIVE_THRESHOLD: score >= 6\u002F10, or verdict contains \"accept\", \"sufficient\", \"ready for submission\"\n- REVIEW_DOC: `AUTO_REVIEW.md` in project root (cumulative log)\n- REVIEWER_MODEL = `gpt-5.4` — Model used via Codex MCP. Must be an OpenAI model (e.g., `gpt-5.4`, `o3`, `gpt-4o`)\n- **HUMAN_CHECKPOINT = false** — When `true`, pause after each round's review (Phase B) and present the score + weaknesses to the user. Wait for user input before proceeding to Phase C. The user can: approve the suggested fixes, provide custom modification instructions, skip specific fixes, or stop the loop early. When `false` (default), the loop runs fully autonomously.\n\n> ? Override: `\u002Fauto-review-loop \"topic\" — human checkpoint: true`\n\n## State Persistence (Compact Recovery)\n\nLong-running loops may hit the context window limit, triggering automatic compaction. To survive this, persist state to `REVIEW_STATE.json` after each round:\n\n```json\n{\n  \"round\": 2,\n  \"threadId\": \"019cd392-...\",\n  \"status\": \"in_progress\",\n  \"last_score\": 5.0,\n  \"last_verdict\": \"not ready\",\n  \"pending_experiments\": [\"screen_name_1\"],\n  \"timestamp\": \"2026-03-13T21:00:00\"\n}\n```\n\n**Write this file at the end of every Phase E** (after documenting the round). Overwrite each time — only the latest state matters.\n\n**On completion** (positive assessment or max rounds), set `\"status\": \"completed\"` so future invocations don't accidentally resume a finished loop.\n\n## Workflow\n\n### Initialization\n\n1. **Check for `REVIEW_STATE.json`** in project root:\n   - If it does not exist: **fresh start** (normal case, identical to behavior before this feature existed)\n   - If it exists AND `status` is `\"completed\"`: **fresh start** (previous loop finished normally)\n   - If it exists AND `status` is `\"in_progress\"` AND `timestamp` is older than 24 hours: **fresh start** (stale state from a killed\u002Fabandoned run — delete the file and start over)\n   - If it exists AND `status` is `\"in_progress\"` AND `timestamp` is within 24 hours: **resume**\n     - Read the state file to recover `round`, `threadId`, `last_score`, `pending_experiments`\n     - Read `AUTO_REVIEW.md` to restore full context of prior rounds\n     - If `pending_experiments` is non-empty, check if they have completed (e.g., check screen sessions)\n     - Resume from the next round (round = saved round + 1)\n     - Log: \"Recovered from context compaction. Resuming at Round N.\"\n2. Read project narrative documents, memory files, and any prior review documents\n3. Read recent experiment results (check output directories, logs)\n4. Identify current weaknesses and open TODOs from prior reviews\n5. Initialize round counter = 1 (unless recovered from state file)\n6. Create\u002Fupdate `AUTO_REVIEW.md` with header and timestamp\n\n### Loop (repeat up to MAX_ROUNDS)\n\n#### Phase A: Review\n\nSend comprehensive context to the external reviewer:\n\n```\nmcp__codex__codex:\n  config: {\"model_reasoning_effort\": \"xhigh\"}\n  prompt: |\n    [Round N\u002FMAX_ROUNDS of autonomous review loop]\n\n    [Full research context: claims, methods, results, known weaknesses]\n    [Changes since last round, if any]\n\n    Please act as a senior ML reviewer (NeurIPS\u002FICML level).\n\n    1. Score this work 1-10 for a top venue\n    2. List remaining critical weaknesses (ranked by severity)\n    3. For each weakness, specify the MINIMUM fix (experiment, analysis, or reframing)\n    4. State clearly: is this READY for submission? Yes\u002FNo\u002FAlmost\n\n    Be brutally honest. If the work is ready, say so clearly.\n```\n\nIf this is round 2+, use `mcp__codex__codex-reply` with the saved threadId to maintain conversation context.\n\n#### Phase B: Parse Assessment\n\n**CRITICAL: Save the FULL raw response** from the external reviewer verbatim (store in a variable for Phase E). Do NOT discard or summarize — the raw text is the primary record.\n\nThen extract structured fields:\n- **Score** (numeric 1-10)\n- **Verdict** (\"ready\" \u002F \"almost\" \u002F \"not ready\")\n- **Action items** (ranked list of fixes)\n\n**STOP CONDITION**: If score >= 6 AND verdict contains \"ready\" or \"almost\" → stop loop, document final state.\n\n#### Human Checkpoint (if enabled)\n\n**Skip this step entirely if `HUMAN_CHECKPOINT = false`.**\n\nWhen `HUMAN_CHECKPOINT = true`, present the review results and wait for user input:\n\n```\n? Round N\u002FMAX_ROUNDS review complete.\n\nScore: X\u002F10 — [verdict]\nTop weaknesses:\n1. [weakness 1]\n2. [weakness 2]\n3. [weakness 3]\n\nSuggested fixes:\n1. [fix 1]\n2. [fix 2]\n3. [fix 3]\n\nOptions:\n- Reply \"go\" or \"continue\" → implement all suggested fixes\n- Reply with custom instructions → implement your modifications instead\n- Reply \"skip 2\" → skip fix #2, implement the rest\n- Reply \"stop\" → end the loop, document current state\n```\n\nWait for the user's response. Parse their input:\n- **Approval** (\"go\", \"continue\", \"ok\", \"proceed\"): proceed to Phase C with all suggested fixes\n- **Custom instructions** (any other text): treat as additional\u002Freplacement guidance for Phase C. Merge with reviewer suggestions where appropriate\n- **Skip specific fixes** (\"skip 1,3\"): remove those fixes from the action list\n- **Stop** (\"stop\", \"enough\", \"done\"): terminate the loop, jump to Termination\n\n#### Feishu Notification (if configured)\n\nAfter parsing the score, check if `~\u002F.claude\u002Ffeishu.json` exists and mode is not `\"off\"`:\n- Send a `review_scored` notification: \"Round N: X\u002F10 — [verdict]\" with top 3 weaknesses\n- If **interactive** mode and verdict is \"almost\": send as checkpoint, wait for user reply on whether to continue or stop\n- If config absent or mode off: skip entirely (no-op)\n\n#### Phase C: Implement Fixes (if not stopping)\n\nFor each action item (highest priority first):\n\n1. **Code changes**: Write\u002Fmodify experiment scripts, model code, analysis scripts\n2. **Run experiments**: Deploy to GPU server via SSH + screen\u002Ftmux\n3. **Analysis**: Run evaluation, collect results, update figures\u002Ftables\n4. **Documentation**: Update project notes and review document\n\nPrioritization rules:\n- Skip fixes requiring excessive compute (flag for manual follow-up)\n- Skip fixes requiring external data\u002Fmodels not available\n- Prefer reframing\u002Fanalysis over new experiments when both address the concern\n- Always implement metric additions (cheap, high impact)\n\n#### Phase D: Wait for Results\n\nIf experiments were launched:\n- Monitor remote sessions for completion\n- Collect results from output files and logs\n\n#### Phase E: Document Round\n\nAppend to `AUTO_REVIEW.md`:\n\n```markdown\n## Round N (timestamp)\n\n### Assessment (Summary)\n- Score: X\u002F10\n- Verdict: [ready\u002Falmost\u002Fnot ready]\n- Key criticisms: [bullet list]\n\n### Reviewer Raw Response\n\n\u003Cdetails>\n\u003Csummary>Click to expand full reviewer response\u003C\u002Fsummary>\n\n[Paste the COMPLETE raw response from the external reviewer here — verbatim, unedited.\nThis is the authoritative record. Do NOT truncate or paraphrase.]\n\n\u003C\u002Fdetails>\n\n### Actions Taken\n- [what was implemented\u002Fchanged]\n\n### Results\n- [experiment outcomes, if any]\n\n### Status\n- [continuing to round N+1 \u002F stopping]\n```\n\n**Write `REVIEW_STATE.json`** with current round, threadId, score, verdict, and any pending experiments.\n\nIncrement round counter → back to Phase A.\n\n### Termination\n\nWhen loop ends (positive assessment or max rounds):\n\n1. Update `REVIEW_STATE.json` with `\"status\": \"completed\"`\n2. Write final summary to `AUTO_REVIEW.md`\n3. Update project notes with conclusions\n4. If stopped at max rounds without positive assessment:\n   - List remaining blockers\n   - Estimate effort needed for each\n   - Suggest whether to continue manually or pivot\n5. **Feishu notification** (if configured): Send `pipeline_done` with final score progression table\n\n## Key Rules\n\n- **Large file handling**: If the Write tool fails due to file size, immediately retry using Bash (`cat \u003C\u003C 'EOF' > file`) to write in chunks. Do NOT ask the user for permission — just do it silently.\n\n- ALWAYS use `config: {\"model_reasoning_effort\": \"xhigh\"}` for maximum reasoning depth\n- Save threadId from first call, use `mcp__codex__codex-reply` for subsequent rounds\n- Be honest — include negative results and failed experiments\n- Do NOT hide weaknesses to game a positive score\n- Implement fixes BEFORE re-reviewing (don't just promise to fix)\n- If an experiment takes > 30 minutes, launch it and continue with other fixes while waiting\n- Document EVERYTHING — the review log should be self-contained\n- Update project notes after each round, not just at the end\n\n## Prompt Template for Round 2+\n\n```\nmcp__codex__codex-reply:\n  threadId: [saved from round 1]\n  config: {\"model_reasoning_effort\": \"xhigh\"}\n  prompt: |\n    [Round N update]\n\n    Since your last review, we have:\n    1. [Action 1]: [result]\n    2. [Action 2]: [result]\n    3. [Action 3]: [result]\n\n    Updated results table:\n    [paste metrics]\n\n    Please re-score and re-assess. Are the remaining concerns addressed?\n    Same format: Score, Verdict, Remaining Weaknesses, Minimum Fixes.\n```\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fauto-review-loop",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill auto-review-loop",{"tool":42,"command":43},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill auto-review-loop",{"tool":45,"command":46},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill auto-review-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fwanshuiyin\u002FAuto-claude-code-research-in-sleep\u002Fauto-review-loop\u002FSKILL.md",true,[],[51,60,69,78,84,90],{"skillNo":52,"name":53,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":23},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[57,58,59],"model","model hierarchy","model hierarchy skill",{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":23},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[66,67,68],"MCP","zoom","zoom mcp",{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":23},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[75,76,77,67],"sdk","zoom apps sdk","apps",{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":23},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[80],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":23},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[86],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":23},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[92]]