Token导航 LogoToken导航

Agent Skill · 研究检索

looping-tasks(循环任务)

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

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

总安装 367周安装 15GitHub Stars 4下载 118核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/riccardogrin/skills --skill looping-tasks

这个 Skill 是做什么的

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

looping-tasks 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于研究检索类任务,如信息搜集、资料筛选和线索整理,尤其适合需要自动化处理重复性搜索的场景。

通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和实际维护状态后再使用。使用前应检查是否会触发联网、命令执行或文件读写操作,避免在不安全环境中运行。建议结合原始 README 和仓库内容进一步核验具体用法和功能边界。

来源仓库内路径:skills/looping-tasks

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

looping-tasks 怎么安装?

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

looping-tasks 支持哪些 AI 工具?

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

looping-tasks 需要什么权限?

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

looping-tasks 是免费的吗?

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

looping-tasks 用的人多吗?

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

looping-tasks 安全吗?

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

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
looping-tasks

循环任务 · 本页

3674执行命令未明确有提醒

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

SKILL.md 原文

Looping Tasks

Install the infrastructure to run Claude Code in an autonomous implementation loop. Each iteration starts a fresh session, picks the next task from the active plan, implements it, tests it, commits, and exits. Fresh context per iteration is the key design principle — avoids context window degradation.

Every N worker iterations (default 5) and once at the very end, the loop runs an audit iteration instead of a worker iteration. The auditor spawns parallel subagents to review recently completed work against the plan and codebase, triages the findings, and injects follow-ups into the plan as new [] tasks. It never fixes code itself — the next worker iteration picks the audit tasks up normally.

The user creates the plan (via the planning skill or manually). The loop only implements — but the agent can update the plan when it discovers new work, bugs, or needed refactoring.

Bundled Templates

These templates ship with the skill. Copy them into the target repo under loop/ and gitignore that directory. The templates are designed to be project-agnostic — most projects need zero changes, some need a tweak to the audit prompt's checklist.

TemplatePurpose
scripts/loop.shThe loop driver. Implements mode selection (worker/audit/resume), retry-on-error, final-audit gating, and changelog generation.
scripts/prompt.txtThe worker prompt — one iteration picks a task, implements, tests, commits, updates the plan, stops.
scripts/loop-worktrees.shOptional. Thin wrapper that runs the same loop inside a git worktree on its own branch. Delegates all iteration logic to loop.sh — zero duplication. See the "Worktree Mode" section below.
scripts/worktreeinclude.exampleOptional template for .worktreeinclude — globs of gitignored files to copy into new worktrees (.env etc.).
scripts/worktreesetup.exampleOptional template for .worktreesetup — shell script that runs once in a new worktree to install deps.

The audit prompt and changelog prompt are inline heredocs inside loop.sh — they rarely need tuning.

Workflow Checklist

- [ ] Phase 1: Detect project and locate plan
- [ ] Phase 2: Install templates into loop/
- [ ] Phase 3: Verify the plan is loop-ready
- [ ] Phase 4: Customize for the project
- [ ] Phase 5: Show the user how to run it

Phase 1: Detect Project and Locate Plan

  1. Detect package manager from lock files or config (package.json, pyproject.toml, Cargo.toml, go.mod).
  2. Detect test command (jest, vitest, pytest, cargo test, or scripts.test in package.json).
  3. Search for an existing implementation plan — IMPLEMENTATION_PLAN.md at the repo root first, then common locations (docs/, docs/plans/), then search recursively.
  4. If missing, stop and tell the user to create one first (suggest the planning skill).

Phase 2: Install Templates Into loop/

  1. Create loop/ at the repo root.
  2. Copy <skill-dir>/scripts/loop.sh → loop/loop.sh.
  3. Copy <skill-dir>/scripts/prompt.txt → loop/prompt.txt.
  4. Ensure loop/ is gitignored — append loop/ to .gitignore if it isn't already. The loop directory holds runtime artifacts (handoff.md, .final_audit_done) and a personal-to-the-user prompt, so it should not be checked in.
  5. On macOS/Linux, chmod +x loop/loop.sh.

All scripts/ paths are relative to the skill directory — resolve to absolute paths before copying.

Phase 3: Verify the Plan Is Loop-Ready

  1. The plan should be a flat [] checkbox list with a short preamble covering project structure and conventions. The worker prompt reads the preamble every iteration.
  2. Confirm the plan has at least one unchecked [] task.
  3. If the plan is prose-heavy or uses phased sections without checkboxes, offer to convert it to the flat checkbox format before starting the loop.

Phase 4: Customize for the Project

Most customization is optional — defaults are sensible.

Audit cadence. The loop audits every AUDIT_EVERY worker iterations (default 5) and once at the end. Override per-run with an env var: AUDIT_EVERY=3 bash loop/loop.sh 15. Smaller plans (< 15 tasks) may warrant lowering it so audits still fire before the final pass.

Audit checklist. The auditor prompt inside loop.sh lists five categories to check: gaps vs plan, pattern match, security, comments, and tests. The security line is intentionally generic ("violations of rules stated in CLAUDE.md"). If the target repo's CLAUDE.md has specific rules worth naming explicitly (authz scoping, rate-limit tiers, webhook signature verification, etc.), edit that line to name them — a concrete auditor finds more.

Restricted tools. By default the script uses --dangerously-skip-permissions. If the user wants restricted tool access, replace it with --allowedTools and a whitelist tailored to the detected stack (e.g., "Read,Glob,Grep,Edit,Write,Bash(git *),Bash(pnpm *),Bash(npx *),Task"). Apply the same change to every claude invocation in the script.

Model choice. The worker and auditor both use --model opus. The changelog pass uses --model sonnet. These are unversioned aliases — they track the current opus/sonnet and don't need manual updating as new versions release. Only change them if the user specifically wants a different capability tier.

Windows/PowerShell users. ./loop.sh won't execute directly in PowerShell — it triggers a "choose program" dialog. Running bash loop/loop.sh may also fail because PowerShell resolves bash to C:/Windows/System32/bash.exe (WSL launcher), not Git Bash. Instruct the user to either:

  • Use the full Git Bash path: & "C:/Program Files/Git/usr/bin/bash.exe" loop/loop.sh 1
  • Or open a Git Bash terminal and run bash loop/loop.sh 1 from there

The bundled script already includes export PATH="/usr/bin:/mingw64/bin:$PATH" which ensures Git Bash utilities (grep, cat, find, etc.) are available even when Git Bash is invoked from PowerShell without its normal startup. Do NOT generate a .ps1 equivalent — PowerShell treats - as a unary operator and special characters (em dashes, etc.) break string parsing, making the prompt content unreliable.

Phase 5: Show the User How to Run It

  1. Get a subagent to read back loop/loop.sh and confirm it is correct after any edits.
  2. Do NOT attempt to run loop/loop.sh from within Claude Code — nested Claude sessions are forbidden and will error. The script must be run from a separate terminal.
  3. Usage:

- macOS/Linux: bash loop/loop.sh 10 (or ./loop/loop.sh 10 if chmod'd) - Windows (Git Bash terminal): bash loop/loop.sh 10 - Windows (PowerShell): & "C:/Program Files/Git/usr/bin/bash.exe" loop/loop.sh 10 - Use 1 instead of 10 for a single test iteration - Resume after interrupt: bash loop/loop.sh 10 <session-id> (the session ID is printed when you Ctrl+C mid-iteration) - Tune audit cadence: AUDIT_EVERY=3 bash loop/loop.sh 10 - Custom plan file: PLAN_FILE=docs/plans/my_plan.md bash loop/loop.sh 10

  1. Recommend: run with 1 first, review the result, then scale up.

How the Audit Pass Works

Understanding the audit behavior helps diagnose surprises.

  • The loop tracks SINCE_AUDIT, a counter of worker iterations since the last audit.
  • When SINCE_AUDIT >= AUDIT_EVERY, the next iteration runs the auditor instead of the worker. The counter resets after an audit.
  • When the worker prepends ALL_TASKS_COMPLETE to the plan, the loop runs one final audit pass before generating the changelog.
  • If the final audit finds issues worth fixing, it appends them as tasks and removes ALL_TASKS_COMPLETE. Subsequent worker iterations pick the audit tasks up and eventually the worker restores the sentinel.
  • The final-audit pass runs exactly once. After it runs with ALL_TASKS_COMPLETE still present, the script creates loop/.final_audit_done and goes straight to the changelog on the next loop pass — this prevents an infinite audit → fix → audit cycle.
  • The flag file is cleared at script start so reruns of the whole loop get a fresh final audit.

Worktree Mode (Optional)

scripts/loop-worktrees.sh runs the same loop inside a dedicated git worktree + branch, so it never touches the user's main working tree. It is a thin wrapper — pre-flight only. All iteration behavior (worker/audit/resume, retry, changelog) is inherited from the inner loop.sh that runs inside the worktree. One command, full output visibility in the terminal.

When to use it:

  • Running multiple plans in parallel (separate terminals, separate worktrees).
  • Experimenting with risky or large changes that you want isolated on a branch before merging.
  • The user wants to keep working in main while the loop runs somewhere else.

When NOT to use it:

  • The project has shared external state (databases, queues, caches, third-party services) that parallel worktrees would race on — worktrees isolate *code*, not infrastructure.
  • The plan is small (< 10 tasks) — the setup overhead isn't worth it.
  • There's only one plan running — plain loop.sh is simpler.

Installation. In addition to loop.sh + prompt.txt:

  1. Copy scripts/loop-worktrees.sh → loop/loop-worktrees.sh in the target repo.
  2. Optionally copy scripts/worktreeinclude.example → .worktreeinclude at the repo root (for .env / gitignored files the worktree needs).
  3. Optionally copy scripts/worktreesetup.example → .worktreesetup at the repo root and customize for the stack (deps install, etc.).
  4. Both .worktreeinclude and .worktreesetup should be gitignored — they're personal to the user's setup.

Usage.

bash loop/loop-worktrees.sh <PLAN_FILE> [max_iterations]

The wrapper creates loop/worktrees/<name>/ on branch worktree/<name> (name derived from the plan filename), copies deps + envs, syncs the loop templates, and invokes loop.sh inside. The plan path is a positional argument to the wrapper (not an env var) — the wrapper forwards it to the inner loop as the PLAN_FILE env var automatically. Other env vars (AUDIT_EVERY, RESUME_ID) pass through to the inner loop unchanged. The inner loop's stdout streams to this terminal live — you see every iteration exactly as you would with loop.sh directly.

On exit (normal or Ctrl+C), the wrapper prints merge + cleanup instructions. It never merges back to main automatically — the user reviews the branch and merges when ready.

Footguns:

  • Shared external state is not isolated. Two worktrees running in parallel share the same database, Redis, queues, external APIs, etc. For code areas that touch shared infrastructure (schema migrations, queue consumers), stick to one worktree at a time.
  • Base branch is origin/HEAD, not local HEAD. The worktree is created from the remote's default branch (matching Anthropic's worktree design). If the user has unpushed WIP on the current branch, the worktree will not see it — the wrapper warns when it detects this and pauses 5 seconds.
  • The plan must be reachable. If the plan is committed locally but not pushed, or is untracked, the wrapper copies it into the worktree so the first worker iteration can commit it on the worktree branch. Still worth pushing first if you want an authoritative copy on origin.
  • isolation: worktree subagent failure mode. Anthropic has known cases where subagents with isolation: worktree silently fall back to running in the main repo. The bundled worker prompt does not spawn parallel code-editing subagents for this reason. The auditor spawns parallel subagents but only for read-only review.

Related Skills

Consider activating /being-careful before starting an autonomous loop to block accidental destructive commands (rm -rf, force-push, DROP TABLE, etc.). If the loop should only touch files in a specific area, use /freezing-edits <dir> to prevent edits elsewhere. After the loop completes, run /reviewing-code for a final adversarial review before pushing.

Anti-Patterns

AvoidDo Instead
Running without a planCreate the implementation plan first — the loop reads it every iteration
Tasks too large for one iterationSplit into smaller, independently testable tasks
Never reviewing loop outputCheck the first few iterations, then spot-check periodically. The audit pass catches a lot, but is not a substitute for human review on anything user-facing
Restricting tools by defaultLet the agent use code execution; restrict only when specifically needed
Automating the planning stepPlanning requires user decisions — keep it manual, let the loop implement
Setting AUDIT_EVERY very high to "save tokens"Audit drift compounds. The point of periodic audits is catching issues while context is small. Default 5 is already a reasonable upper bound
Pinning the model to a specific version (e.g., opus-4-6)Use the unversioned alias (opus, sonnet) so the loop tracks current releases automatically
Editing loop/loop.sh in the skill repo for a project-specific tweakKeep the skill's scripts/loop.sh generic. Tweak the copy in the target repo's loop/ directory

平台分布

Codex

35.15%
按下载量换算41

Claude

29.69%
按下载量换算35

Cursor

19.47%
按下载量换算23

Gemini CLI

8.24%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

继续浏览同类 Skills