Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

looploop 工具

Agent Skill

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

总安装

692

周安装

28

GitHub Stars

26

下载量

217
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/randroids-dojo/skills --skill loop

简介

loop 用于查找、检索和筛选与循环工具相关的信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Loop

A self-sustaining development loop with two modes: Researcher and Implementor.

Prerequisites

Full permissions required. The loop runs autonomously and needs unrestricted access.

Claude Code

claude --dangerously-skip-permissions

Codex

The script automatically uses --yolo mode (no sandbox, no prompts).

Startup Flow

When this skill is invoked, ask the user FOUR questions using AskUserQuestion, then one text prompt:

Question 1: Mode (AskUserQuestion)

  • Question: "Which mode would you like to run?"
  • Options:

1. Research - Explore, investigate, and plan. Creates specs for implementation. 2. Implement - Execute on specs. Write code, tests, and documentation.

Question 2: Git Workflow (AskUserQuestion)

  • Question: "What should happen after each task?"
  • Options:

- Push - Commit and push to current branch (default) - Commit only - Commit locally, no push - Open PR - Open PR, wait for CI (no merge) - PR and merge - Open PR, wait for CI, then auto-merge

Question 3: Context Management (AskUserQuestion)

  • Question: "Should each iteration start with fresh context?"
  • Options:

- Fresh context - Clear context between iterations (default, recommended) - Keep context - Maintain conversation history across iterations

Question 4: Directions (AskUserQuestion - optional)

  • Question: "Any specific directions for this run?"
  • Options (mode-aware, user can select "Other" for custom):

- None - No specific directions, work autonomously - For Research mode: - Focus on specs - Review and improve existing implementation specs - Explore dependencies - Research external libraries and frameworks - For Implement mode: - Fix issues first - Prioritize fixing build errors and warnings - Skip tests - Focus on implementation, skip test writing for now

If user selects "Other", they can provide custom directions like:

  • "Focus on authentication patterns"
  • "Search Apple developer docs for NSPanel"
  • "Prioritize the archive feature"
  • "Redo the task list with proper SwiftUI patterns"

The agent interprets directions intelligently (creating dots, modifying tasks, updating docs, changing priorities, etc.).

Question 5: Iterations (Text prompt - NOT AskUserQuestion)

After the AskUserQuestion completes, ask:

"How many iterations? Enter a number, 'inf' for infinite, or 'comp' for until complete:"

Parse the response:

  • Number (e.g., "2", "5", "10") → exact iteration count
  • "inf", "infinite", "-1" → infinite mode (-1)
  • "comp", "complete", "0" → until complete mode (0)

Key distinction:

  • Infinite / N iterations: Completion promise is IGNORED. Loop continues for re-analysis and improvement.
  • Until complete: Only mode where completion promise stops the loop.

After collecting answers:

  1. Initialize loop state by running: ./scripts/setup-loop.sh <mode> --iterations <N> --git-workflow <workflow> [--fresh-context] [--directions "..."]

- Iterations: -1=infinite, 0=until complete, N=exact count - Workflow: commit/push/pr/pr-merge - Directions: optional user guidance for the agent

  1. Build the prompt by combining mode-specific + shared content:

- Read <mode>-loop.md (mode-specific sections) - Read loop-shared.md (common sections) - Concatenate: mode-specific + shared

  1. Begin execution based on context mode:

Fresh context mode (default): You are the orchestrator. Run this loop in the main conversation:

iteration = 0
PROMPT = contents of <mode>-loop.md + "\n\n" + contents of loop-shared.md
DIRECTIONS = user's directions (if provided)

# Exponential backoff for infinite mode
MIN_DELAY = 5        # seconds
current_delay = MIN_DELAY

# If directions were provided, append them to the prompt
if DIRECTIONS:
    PROMPT = PROMPT + "\n\n## User Directions\n\n" + DIRECTIONS

LOOP:
    iteration += 1
    print "=== Iteration {iteration} ==="

    result = Task(prompt=PROMPT, subagent_type="general-purpose")

    # Check termination conditions
    if iterations == 0:  # "until complete" mode
        if result contains "RANDROID_LOOP_COMPLETE":
            print "Loop complete (promise found after {iteration} iterations)"
            EXIT LOOP
    elif iterations > 0:  # exact N iterations mode
        if iteration >= iterations:
            print "Completed {iteration} iterations"
            EXIT LOOP
    # iterations == -1 means infinite, continues below

    # Exponential backoff for infinite mode when no work done
    if iterations == -1:  # infinite mode
        if result contains "RANDROID_LOOP_COMPLETE":
            print "No work this iteration, backing off for {current_delay}s..."
            sleep(current_delay)
            current_delay = current_delay * 2  # No max cap
        else:
            # Meaningful work done, reset backoff
            current_delay = MIN_DELAY

    GOTO LOOP

CRITICAL: After each Task returns, YOU (the orchestrator) must:

  1. Check the result for the completion promise
  2. Check if iteration limit reached
  3. If neither → spawn another Task for the next iteration
  4. Do NOT stop just because one Task finished

Keep context mode: Run the loop directly in the current conversation. The stop hook will intercept exit and continue looping with accumulated context.

Usage

Interactive (Recommended)

/loop

Prompts for mode, iterations, and optional directions.

Aliases: /randroid, /randroid-loop

Direct (Skip Questions)

  • /loop research - Research mode, prompts for iterations
  • /loop implement - Implement mode, prompts for iterations
  • /loop research --loop - Research mode, infinite (ignores completion)
  • /loop research --until-complete - Research mode, stops on completion
  • /loop implement --iterations 5 - Implement mode, exactly 5 iterations
  • /loop implement --open-pr - Open PR workflow
  • /loop implement --pr-and-merge - PR with auto-merge workflow
  • /loop implement --commit-only - Local commits only
  • /loop implement --keep-context - Keep conversation context (no fresh start)
  • /loop implement --iterations 5 --open-pr - Combine options

With Directions

You can provide guidance for the agent. When prompted for directions:

  • Select a preset option (mode-specific), or
  • Select "Other" and type custom directions like:

- "Focus on authentication patterns" - "Prioritize the archive feature, skip tests for now"

Directions can include:

  • Topics to research or questions to answer
  • Priorities for which tasks to work on
  • Specific implementation guidance
  • Requests to redo or improve previous work
  • Scope changes (add/remove/modify tasks)

Codex (External Script)

# From terminal (outside Codex)
./scripts/randroid-loop.sh
# Interactive prompts for mode, iterations, and git workflow
# Note: Wrapper always uses fresh context (each iteration is a new codex exec)

# Direct invocation:
./scripts/randroid-loop.sh research -1           # infinite
./scripts/randroid-loop.sh research 0            # until complete
./scripts/randroid-loop.sh implement 5           # exactly 5 iterations
./scripts/randroid-loop.sh implement 5 pr        # 5 iterations, open PR
./scripts/randroid-loop.sh implement 0 pr-merge  # until complete, PR + merge

Modes

Research Mode

The researcher explores, investigates, and plans. It:

  • Creates research: prefixed dots to track its own exploration
  • Creates implement: prefixed dots as deliverables for the implementor
  • Does NOT write production code
  • Outputs findings, decisions, and clear implementation specs

Implementor Mode

The implementor executes. It:

  • Pulls from ready implement: dots
  • Writes code, tests, and documentation
  • Creates new implement: dots if scope expands
  • Creates research: dots if blocked by unknowns (for next research cycle)

Loop Mechanics

Fresh Context Each Iteration

Each loop iteration starts with fresh conversational context. Only the filesystem persists:

  • Modified files
  • Git history and commits
  • Dots system state
  • Research/implementation artifacts

This prevents context bloat and allows the agent to approach each iteration with clarity.

What Persists

  • All file changes from previous iterations
  • Git commits and history
  • .dots/ task state
  • Any written documentation or specs

What Resets

  • Conversation history
  • In-memory state
  • Token usage (fresh budget each iteration)

Loop Termination

Output <promise>RANDROID_LOOP_COMPLETE</promise> when:

  • No more ready tasks for your mode
  • All work is committed and pushed

The loop also stops when --iterations N limit is reached.

Architecture

loop/
├── SKILL.md              # This file
├── research-loop.md      # Research mode prompt
├── implement-loop.md     # Implementor mode prompt
├── loop-shared.md        # Shared sections (git, dots, termination)
├── LOOPING_DESIGN.md     # Technical design doc
├── hooks/
│   └── stop-hook.sh      # Claude Code stop hook
├── scripts/
│   ├── setup-loop.sh     # Initialize loop state
│   └── randroid-loop.sh  # Codex external wrapper
└── state/
    └── .gitignore        # Excludes local state files

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.05%
按下载量换算78

Claude

29.22%
按下载量换算63

Cursor

19.06%
按下载量换算41

Gemini CLI

9.75%
按下载量换算21

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

未通过

权限和风险

执行命令

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills