Token导航 LogoToken导航

Agent Skill · 研究检索

iterate(iterate 搜索)

iterate 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

iterate 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 71,089。

总安装 196周安装 8GitHub Stars 17下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:iterate(iterate 搜索)
来源仓库:https://github.com/0xdarkmatter/claude-mods
仓库路径:skills/iterate
安装命令:
npx skills add https://github.com/0xdarkmatter/claude-mods --skill iterate
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/0xdarkmatter/claude-mods --skill iterate

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

适用于需要围绕一个核心指标进行长期或有限次迭代优化的研究场景,特别适合在 Codex、 Claude、Cursor、Gemini CLI 中执行定向改进任务。核心能力在于将复杂问题约束为单一可量化目标,利用 Git 作为记忆系统,自动执行修改-评估-保留/丢弃的闭环流程。

使用时需提前配置好目标、指标、输入参数和预检步骤,确保每次迭代都在可控范围内进行。安装前请确认是否具备文件读写、命令执行和网络访问权限,并了解其维护状态与潜在风险。

来源仓库内路径:skills/iterate

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/0xdarkmatter/claude-mods --skill iterate;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

iterate 怎么安装?

在终端执行 npx skills add https://github.com/0xdarkmatter/claude-mods --skill iterate。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

iterate 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

iterate 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/0xdarkmatter/claude-mods --skill iterate 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

iterate 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

iterate 用的人多吗?

公开数据是累计安装 196 次,近一周安装 8 次,下载 63 次,GitHub 17 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

iterate 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
iterate

iterate 搜索 · 本页

19617执行命令未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Iterate - Autonomous Improvement Loop

Inspired by Karpathy's autoresearch: constrain scope, clarify success with one mechanical metric, loop autonomously. The agent modifies code, measures the result, keeps improvements, discards regressions, and repeats - indefinitely or for N iterations.

The power is in the constraint. One metric. One scope. One loop. Git as memory.

Preflight

Before the loop starts, do the work that makes the loop effective. Don't skip steps - this discipline is what separates a productive overnight run from a flailing one.

1. Collect Config

Five inputs. If provided inline, extract and proceed. If any are missing, ask once using AskUserQuestion with all missing fields batched together.

FieldRequiredWhat it isExample
GoalYesWhat you're improving, in plain language"Increase test coverage to 90%"
ScopeYesFile globs the agent may modifysrc/**/*.ts
VerifyYesShell command that outputs the metric (a number)`npm test -- --coverage \grep "All files"`
DirectionYesIs higher or lower better?higher / lower
GuardNoCommand that must always pass (prevents regressions)npm run typecheck

Bounded mode: If the user includes Iterations: N, run exactly N iterations then stop with a summary. Otherwise, loop forever until interrupted.

2. Plan

Read all in-scope files. Understand the codebase before touching anything.

  • What's the current state? What's already been tried?
  • What are the likely improvement vectors? Rank them.
  • What are the risks? What could break?
  • Form a rough strategy for the first 5-10 iterations.

3. Permissions

Check that allowed-tools cover what the loop needs. The verify and guard commands must run without permission prompts - a blocked tool at 3am kills the whole run.

  • Dry-run the verify command. If it gets blocked, note which Bash(command:*) pattern is needed.
  • Dry-run the guard command (if set). Same check.
  • If permissions are missing, suggest specific wildcard additions for .claude/settings.local.json and ask the user to approve before starting. Reference /setperms for a full setup.

4. Tasks

Create a TaskList to track progress across iterations. This provides structure the user can check without reading the full results log.

TaskCreate: "Establish baseline" (status: in_progress)
TaskCreate: "Iteration loop - [goal]" (status: pending)
TaskCreate: "Final summary and cleanup" (status: pending)

Update task status as the loop progresses. Mark the iteration task as in_progress when the loop starts, completed when it ends.

5. Tests and Verification

Before the first iteration, make sure verification actually works:

  • Run the verify command on the current state. If it fails or produces no parseable number, fix this first.
  • Run the guard command (if set). If it fails on the current state, the codebase has pre-existing issues - flag to the user.
  • If tests don't exist yet for the scope, consider writing them as iteration 0. Good tests make the loop more effective.

6. Baseline

Record the starting point:

  1. Run verify command, extract the metric - this is iteration 0
  2. Create results.tsv with the header and baseline row
  3. Update the baseline task to completed
  4. Confirm setup to the user, then begin the loop
Goal:      Increase test coverage to 90%
Scope:     src/**/*.ts
Verify:    npm test -- --coverage | grep "All files"
Direction: higher
Guard:     npm run typecheck
Baseline:  72.3%
Mode:      unbounded
Tasks:     3 created
Permissions: verified (all commands pre-approved)

Starting iteration loop.

The Loop

LOOP (forever, or N times):

  1. REVIEW    git log --oneline -10 + read results.tsv tail
              Know what worked, what failed, what's untried.

  2. IDEATE    Pick ONE change. Write a one-sentence description
              BEFORE touching any code. Consult git history -
              don't repeat discarded approaches.

  3. MODIFY    Make ONE atomic change to in-scope files only.
              Small, focused, explainable.

  4. COMMIT    git add <specific files> (never git add -A)
              git commit -m "experiment: <description>"
              Commit BEFORE verification. Enables clean rollback.

  5. VERIFY    Run the verify command. Extract the metric.
              If guard is set and metric improved, run guard too.

  6. DECIDE
              Improved + guard passes (or no guard) -> KEEP
              Improved + guard fails -> REVERT (git revert HEAD --no-edit)
              Same or worse                -> REVERT
              Crashed -> attempt fix (max 3 tries), else REVERT

  7. LOG       Append row to results.tsv

  8. REPEAT    Go to 1. Print a one-line status every 5 iterations.
              NEVER ask "should I continue?" - just keep going.
              If bounded and iteration N reached, print summary and stop.

Rollback

Always use git revert HEAD --no-edit (preserves the experiment in history - the agent can learn from it). If revert conflicts, fall back to git reset --hard HEAD~1.

When Stuck (5+ consecutive discards)

  1. Re-read ALL in-scope files from scratch
  2. Re-read the original goal
  3. Review entire results.tsv for patterns
  4. Try combining two previously successful changes
  5. Try the opposite of what hasn't been working
  6. Try something radical - architectural changes, different algorithms

Rules

  1. One change per iteration. Atomic. If it breaks, you know exactly why.
  2. Mechanical verification only. No "looks good." The number decides.
  3. Git is memory. Commit before verify. Revert on failure. Read git log before ideating. Failed experiments stay visible in history via revert commits.
  4. Simpler wins. Equal metric + less code = keep. Tiny improvement + ugly complexity = discard. Removing code for equal results is a win.
  5. Never stop. Unbounded loops run until interrupted. Never ask permission to continue. The user may be asleep.
  6. Read before write. Understand full context before each modification.
  7. Scope is sacred. Only modify files matching the scope globs. Never touch verify/guard targets, test fixtures, or config outside scope.

Results Log

Tab-separated file: results.tsv

iteration	commit	metric	status	description
0	a1b2c3d	72.3	baseline	initial state
1	b2c3d4e	74.1	keep	add edge case tests for auth module
2	-	73.8	discard	refactor test helpers (broke coverage)
3	c3d4e5f	75.0	keep	add missing null checks in user service
4	-	0.0	crash	switched to vitest (import errors)

Status values: baseline, keep, discard, crash

Progress Output

Every 5 iterations, print a brief status:

Iteration 15: metric 81.2 (baseline 72.3, +8.9) | 6 keeps, 8 discards, 1 crash

When a bounded loop completes:

=== Iterate Complete (25/25) ===
Baseline: 72.3 -> Final: 88.7 (+16.4)
Keeps: 12 | Discards: 11 | Crashes: 2
Best iteration: #18 - add integration tests for payment flow (+3.2)

Adapting to Any Domain

The pattern is universal. Change the five inputs, not the loop.

DomainGoalVerifyDirection
Test coverageCoverage to 90%npm test -- --coveragehigher
Bundle sizeBelow 200KBnpm run build && stat -f%z dist/main.jslower
PerformanceFaster API response`npm run bench \grep p95`lower
ML trainingLower validation lossuv run train.py && grep val_bpb run.loglower
Lint errorsZero warnings`npm run lint 2>&1 \grep -c warning`lower
LighthouseScore above 95`npx lighthouse --output=json \jq.score`higher
Code qualityReduce complexity`npx complexity-report \grep average`lower

Guard: Preventing Regressions

The guard is an optional safety net - a command that must always pass regardless of what the main metric does.

  • Verify answers: "Did the metric improve?"
  • Guard answers: "Did anything else break?"

If the metric improves but the guard fails, the change is reverted. The agent should note WHY the guard failed and adapt future attempts accordingly.

Common guards: npm test, tsc --noEmit, cargo check, pytest, go vet

Usage Examples

Inline config (all fields provided)

/iterate
Goal: Increase test coverage from 72% to 90%
Scope: src/**/*.ts, src/**/*.test.ts
Verify: npm test -- --coverage | grep "All files" | awk '{print $10}'
Direction: higher
Guard: tsc --noEmit
Iterations: 30

Minimal (triggers interactive setup)

/iterate
Goal: Make the API faster

Agent scans codebase for tooling, suggests scope/verify/direction, asks once, then goes.

Unbounded overnight run

/iterate
Goal: Reduce bundle size below 150KB
Scope: src/**/*.ts, webpack.config.js
Verify: npm run build 2>&1 | grep "main.js" | awk '{print $2}'
Direction: lower

Agent runs indefinitely. User interrupts in the morning. Results are in results.tsv and git history.

平台分布

Codex

37.39%
按下载量换算24

Claude

28.09%
按下载量换算18

Cursor

21.37%
按下载量换算13

Gemini CLI

9.98%
按下载量换算6

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/0xdarkmatter/claude-mods --skill iterate 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills