Communitygithub.com

持续代理循环

用于具有质量门、评估和恢复控制的持续自主代理循环的模式。在需要代理循环自我检查、基于评估条件门控、并从失败中恢复时使用。

持续代理循环 是什么?

该技能定义了v1.8及以上版本的规范“持续代理循环”模式,取代了旧的“自主循环”技能。它提供了一个决策流程图,帮助选择最合适的循环类型:需要严格CI/PR控制时选`continuous-pr`,需要RFC分解时选`rfc-dag`,需要探索性并行生成时选`infinite`,默认则选`sequential`。技能推荐了一个组合的生产技术栈,包括RFC分解(`ralphinho-rfc-pipeline`)、质量门控(`plankton-code-quality`和`/quality-gate`)、评估循环(`eval-harness`)以及会话持久化(`nanoclaw-repl`),以构建稳健的自主代理系统。此外,技能还识别了关键失效模式,例如无进展的循环搅动、相同根因的重复重试、合并队列卡顿以及成本漂移,并提供了标准恢复流程:冻结循环、运行审计、将范围缩小到失败单元、然后带着明确的验收标准重新执行。该技能适用于Claude Code、Codex、Cursor和Vibe Copilot等平台,主要面向构建生产级、自我反思式自主代理系统的开发者。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/continuous-agent-loop

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

持续代理循环 是做什么的?

这是 v1.8+ 版本的规范循环技能名称。它取代了 autonomous-loops,同时保持一个版本的兼容性。

循环选择流程

开始
  |
  +-- 需要严格的 CI/PR 控制? -- 是 --> continuous-pr
  |
  +-- 需要 RFC 分解? -- 是 --> rfc-dag
  |
  +-- 需要探索性并行生成? -- 是 --> infinite
  |
  +-- 默认 --> sequential

组合模式

推荐的生产技术栈:

  1. RFC 分解 (ralphinho-rfc-pipeline)
  2. 质量门 (plankton-code-quality + /quality-gate)
  3. 评估循环 (eval-harness)
  4. 会话持久化 (nanoclaw-repl)

失效模式

  • 循环搅动但无可见进展
  • 因相同根因而重复重试
  • 合并队列卡顿
  • 无限制升级导致的成本漂移

恢复

  • 冻结循环
  • 运行 /harness-audit
  • 将范围缩小到失败单元
  • 带着明确的验收标准重新执行

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

相关技能