Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

autonomous-loop自主循环

Agent Skill

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

总安装

744

周安装

31

GitHub Stars

1

下载量

248
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill autonomous-loop

简介

autonomous-loop 用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中筛选信息的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围和维护状态,注意可能触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Autonomous Loop

Overview

The autonomous loop implements Ralph's iterative development methodology. Each iteration loads identical context (PROMPT + AGENTS files), executes one focused task, reports structured status, and persists state to disk for the next iteration. The loop continues until the dual-condition exit gate is satisfied. The core innovation is that deterministic conditions allow Claude to autonomously plan, build, and iterate toward quality without human intervention in the loop.

Announce at start: "I'm starting the autonomous loop. Loading context and beginning PLANNING mode."

Trigger Conditions

  • /ralph or /loop command invoked
  • Project has specs and is ready for iterative autonomous development
  • Multi-task implementation that benefits from autonomous iteration
  • User requests autonomous execution without per-task approval

Architecture

+--------------------------------------------------+
|                 AUTONOMOUS LOOP                    |
|                                                    |
|  +----------+    +----------+    +-----------+    |
|  | PLANNING |---→| BUILDING |---→|  STATUS   |    |
|  |   MODE   |    |   MODE   |    |  CHECK    |    |
|  +----------+    +----------+    +-----+-----+    |
|       ^                               |           |
|       |            +-----------+      |           |
|       +------------|  EXIT GATE|←-----+           |
|                    |  (dual)   |                   |
|                    +-----+-----+                   |
|                          |                         |
|                    PASS: EXIT                      |
|                    FAIL: LOOP                      |
+--------------------------------------------------+

Phase 1: PLANNING MODE (Gap Analysis)

Goal: Analyze specs against implementation to identify and prioritize remaining work.

Steps

  1. Knowledge Gathering — Deploy up to 250 parallel subagents via the Agent tool (with subagent_type="Explore" and model="sonnet") to study specs, existing implementation plans, and utility libraries
  2. Code Analysis — Deploy up to 500 parallel subagents via the Agent tool (with subagent_type="Explore") to study src/* against specs/*, identifying gaps between specification and implementation
  3. Synthesis — Deploy a synthesis subagent via the Agent tool (with model="opus") to synthesize findings and prioritize incomplete work
  4. Plan Refresh — Update IMPLEMENTATION_PLAN.md as organized, prioritized bullet list

Planning Mode Constraints

ConstraintRationale
Verify ALL assumptions through code searchNever assume something is absent
Treat src/lib as authoritative standard libraryConsolidate, do not duplicate
Output is a prioritized task listNot code, not designs — tasks only
Identify missing specsSpecs gaps are blockers, not things to guess about

Planning Mode Output

IMPLEMENTATION_PLAN.md updated:
- [x] Completed tasks (checked off)
- [ ] Remaining task 1 (highest priority)
- [ ] Remaining task 2
- [ ] Remaining task 3
...
Missing specs identified: [list or "none"]

STOP — Do NOT proceed to Phase 2 until:

  • All specs have been read and analyzed
  • Code has been compared against specs
  • IMPLEMENTATION_PLAN.md is updated with prioritized tasks
  • Missing specs are identified (if any)

Phase 2: BUILDING MODE (Implementation)

Goal: Select and complete exactly ONE task per iteration.

"ONE Task Per Loop" Principle

Each iteration selects and completes exactly one task from IMPLEMENTATION_PLAN.md. This reduces context switching, enables clear progress measurement, and makes debugging easier.

Steps

  1. Study — Read specs and current IMPLEMENTATION_PLAN.md
  2. Select — Choose the most important remaining task
  3. Search — Find existing code patterns (do NOT assume implementations are missing)
  4. Implement — Write complete, production-quality code (no placeholders, no stubs)
  5. Test — Run tests immediately after implementation
  6. Update — Refresh IMPLEMENTATION_PLAN.md with findings and progress
  7. Commit — Descriptive conventional commit message with rationale

Task Selection Decision Table

ConditionWhich Task to Select
Blocker exists for other tasksSelect the blocker task
Test failures existSelect task that fixes the failure
All tasks independentSelect highest priority task
Multiple tasks at same prioritySelect the one with clearest spec
Spec is missing for top taskRun PLANNING mode to identify gap

Subagent Rules During Building

ResourceBudgetRationale
Read/search subagentsUp to 500 parallel SonnetFast context gathering
Build subagentOnly 1 Sonnet at a timeSerialize builds to detect failures
Main context40-60% utilizationThe "smart zone" — enough room to think

Building Mode Constraints

ConstraintRationale
No placeholders or stubsEvery line of code is production-quality
Search before implementingCode may already exist elsewhere
Run tests immediatelyBackpressure catches errors early
Update plan after every taskKeep plan current with reality
Commit after every taskSmall atomic commits, easy to revert

STOP — Do NOT proceed to Phase 3 until:

  • Task is fully implemented (no stubs)
  • Tests have been run
  • IMPLEMENTATION_PLAN.md is updated
  • Changes are committed

Phase 3: STATUS CHECK

Goal: Produce a RALPH_STATUS block and evaluate exit conditions.

After each BUILD iteration, invoke the ralph-status skill to produce a structured status block.

Exit Evaluation

CheckConditionResult
Tasks remaining?IMPLEMENTATION_PLAN.md has unchecked itemsContinue loop
Tests passing?Full test suite passesRequired for exit
Errors in iteration?Clean execution, no unresolved exceptionsRequired for exit
Meaningful work remains?No TODOs, no incomplete featuresRequired for exit

Loop Decision

StatusTasks RemainingTestsAction
IN_PROGRESSYesAnyLoop back to Phase 1 or 2
IN_PROGRESSNoFAILINGLoop — fix failures first
BLOCKEDAnyAnyReport blocker, wait for input
COMPLETENoPASSINGEvaluate exit gate

Exit Conditions — Dual-Condition Gate

ConditionThresholdVerification
Completion indicators>= 2 recent occurrences of "done" languageHeuristic detection in output
Explicit EXIT_SIGNALEXIT_SIGNAL: true in status blockIntentional declaration

EXIT_SIGNAL May Only Be true When ALL Of:

  • IMPLEMENTATION_PLAN.md has no remaining tasks
  • All tests pass
  • No errors in latest iteration
  • No meaningful work remains

This prevents false positives where completion language appears while productive work continues.

Exit Decision Table

Completion LanguageEXIT_SIGNALAction
< 2 occurrencesfalseContinue loop
>= 2 occurrencesfalseContinue — may be casual language
< 2 occurrencestrueContinue — signal without evidence
>= 2 occurrencestrueEXIT the loop

Context Efficiency

ResourceBudgetStrategy
Main context40-60% of windowKeep focused; delegate heavy lifting
Read subagentsUp to 500 parallelSearching, file reading, pattern matching
Build subagents1 at a timeImplementation, test execution
Token formatMarkdown over JSON~30% more efficient

Steering Mechanisms

Upstream Steering (Shaping Inputs)

MechanismPurpose
First ~5,000 tokens for detailed specsFront-load specification context
Identical files each iterationDeterministic context loading
Existing code patterns as guidesGenerate consistent code

Downstream Steering (Validation Gates)

GateWhat It Catches
TestsInvalid implementations
BuildsCompilation errors
LintersStyle inconsistencies
TypecheckersContract violations
LLM-as-judgeSubjective quality issues

State Persistence

The only persistent state between iterations is the file system:

FilePurposeManaged By
IMPLEMENTATION_PLAN.mdTask list and progressPlanning and Building modes
specs/*.mdSpecification filesspec-writing skill
AGENTS.mdOperational notes and learningsBuilding mode
Source code + testsThe actual implementationBuilding mode

IMPLEMENTATION_PLAN.md is disposable — it can be regenerated from specs at any time by running a planning iteration.


Anti-Patterns / Common Mistakes

Anti-PatternWhy It FailsCorrect Approach
Multiple tasks per iterationContext switching, unclear progressONE task per loop
Assuming code is missingMay exist elsewhere, leads to duplicationAlways search first
Skipping tests after implementationBugs accumulate, no backpressureRun tests IMMEDIATELY
Modifying plan only during planningPlan drifts from realityUpdate during BOTH planning and building
Keeping stale plansTasks based on outdated assumptionsRegenerate liberally — planning is cheap
Manual context managementMain context overflowsTrust subagent delegation
Exiting without dual-conditionPremature exit, work incompleteBoth conditions must be true
Not committing after each taskLarge changesets, hard to revertCommit every iteration
Placeholder or stub codeIncomplete implementations accumulateProduction-quality code only
Skipping STATUS CHECKNo exit evaluation, loop runs foreverEvery iteration ends with status

Anti-Rationalization Guards

If you catch yourself thinking:

  • "I can do two quick tasks in this iteration..." — No. ONE task per loop.
  • "The plan is probably fine, skip planning mode..." — Verify. Plans drift.
  • "Tests can wait until the next iteration..." — Run tests NOW. Backpressure is essential.
  • "Everything is done, I can exit..." — Check the dual-condition gate. Both must be true.

Subagent Dispatch Opportunities

Task PatternDispatch ToWhen
Independent file reads across codebaseAgent tool with subagent_type="Explore"When loop iteration needs context from multiple areas
Test execution during build phaseBash tool with run_in_background=trueWhen tests can validate work without blocking progress
Code review between iterationsAgent tool dispatching code-reviewer agentAfter completing a build iteration, before next planning

Follow the dispatching-parallel-agents skill protocol when dispatching.


Integration Points

SkillRelationshipWhen
ralph-statusPer-iteration — produces status blocksPhase 3: STATUS CHECK
circuit-breakerSafety net — monitors loop healthHalts on stagnation
spec-writingUpstream — creates specs consumed by planningBefore loop starts
acceptance-testingValidation — validates behavioral outcomesDuring building mode
resilient-executionPer-task — retry on failureWhen task implementation fails
task-managementTracking — tracks individual tasksWithin iterations
llm-as-judgeQuality — evaluates subjective criteriaDownstream steering
verification-before-completionFinal gate — verifies completion claimBefore EXIT_SIGNAL: true

Concrete Examples

Example: Planning Mode Output

IMPLEMENTATION_PLAN.md:
- [x] Set up project structure
- [x] Implement core data types
- [ ] Implement user authentication (P0 — blocks 3 other tasks)
- [ ] Add API rate limiting (P1)
- [ ] Implement webhook handlers (P1)
- [ ] Add monitoring and logging (P2)

Missing specs: Rate limiting spec needs error response format defined.

Example: Building Mode Iteration

Task selected: Implement user authentication
Searched: Found existing password hashing in src/lib/crypto.ts
Implemented: src/auth/service.ts, src/auth/middleware.ts
Tests: 8 passing, 0 failing
Committed: feat(auth): implement JWT-based user authentication

Updated IMPLEMENTATION_PLAN.md:
- [x] Implement user authentication

Example: Status Block

---RALPH_STATUS---
STATUS: IN_PROGRESS
TASKS_COMPLETED_THIS_LOOP: 1
FILES_MODIFIED: 4
TESTS_STATUS: PASSING
WORK_TYPE: IMPLEMENTATION
EXIT_SIGNAL: false
RECOMMENDATION: Next: implement API rate limiting (P1)
---END_RALPH_STATUS---

Skill Type

RIGID — Follow this process exactly. The determinism of the loop depends on consistent execution. ONE task per loop. Status block every iteration. Dual-condition exit gate. No exceptions.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.75%
按下载量换算91

Claude

30.21%
按下载量换算75

Cursor

18.33%
按下载量换算45

Gemini CLI

10.04%
按下载量换算25

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills