一键导入
infinite-agentic-loop-claude
Master the Infinite Agentic Loop pattern with Claude Code for parallel AI agent orchestration and iterative content generation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Master the Infinite Agentic Loop pattern with Claude Code for parallel AI agent orchestration and iterative content generation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Train and deploy Qwen-AgentWorld, a native language world model that simulates agentic environments across 7 domains (MCP, Search, Terminal, SWE, Android, Web, OS) for agent training and evaluation.
Build and orchestrate collaborative multi-agent teams using HiClaw's Manager-Workers architecture on Matrix with Kubernetes-native control.
Set up and manage collaborative multi-agent teams using HiClaw, a Kubernetes-native platform with Matrix rooms for human-in-the-loop AI coordination
Build and orchestrate collaborative multi-agent teams using HiClaw's Manager-Workers architecture with Matrix rooms, MCP servers, and Kubernetes-native deployment.
Deploy and orchestrate collaborative multi-agent teams using HiClaw's Manager-Workers architecture on Docker or Kubernetes with Matrix rooms for human oversight
Use Agent Apprenticeship to train AI agents through real-world tasks, reusable experience, and ecosystem learning signals
| name | infinite-agentic-loop-claude |
| description | Master the Infinite Agentic Loop pattern with Claude Code for parallel AI agent orchestration and iterative content generation |
| triggers | ["how do I use the infinite agentic loop pattern","set up parallel AI agents with Claude Code","create infinite agentic loops","use the /project:infinite command","generate multiple iterations with sub-agents","orchestrate parallel Claude agents","implement infinite generation loops","configure Claude Code custom commands"] |
Skill by ara.so — AI Agent Skills collection.
The Infinite Agentic Loop is an experimental pattern that orchestrates multiple AI agents in parallel using Claude Code. It enables continuous, iterative generation of content (UI components, code, designs) where each iteration builds upon previous work while maintaining uniqueness and spec compliance.
Key Features:
git clone https://github.com/disler/infinite-agentic-loop.git
cd infinite-agentic-loop
claude --version
Check project configuration:
The project includes .claude/settings.json and .claude/commands/infinite.md which define permissions and commands.
Start Claude Code:
claude
The infinite agentic loop is triggered via a custom slash command:
/project:infinite <spec_file> <output_dir> <count>
Parameters:
spec_file: Path to specification markdown file (e.g., specs/invent_new_ui_v3.md)output_dir: Directory where iterations will be savedcount: Number of iterations to generate, or "infinite" for continuous mode/project:infinite specs/invent_new_ui_v3.md src 1
Use this when:
/project:infinite specs/invent_new_ui_v3.md src_new 5
Deploys 5 parallel sub-agents simultaneously. Ideal for:
/project:infinite specs/invent_new_ui_v3.md src_new 20
Manages 20 iterations in coordinated batches of 5 agents. Best for:
/project:infinite specs/invent_new_ui_v3.md infinite_src_new/ infinite
Continuous generation in waves until context limits. Use for:
Specifications drive the generation. Create a markdown file in the specs/ directory:
# UI Component Specification
## Objective
Generate unique, creative UI components that demonstrate modern design patterns.
## Requirements
- Must be self-contained HTML file
- Include inline CSS and JavaScript
- Responsive design
- Accessibility compliant (ARIA labels)
- No external dependencies
## Constraints
- Each iteration must be visually distinct
- Maximum file size: 50KB
- Must work in all modern browsers
## Creative Directions
- Explore different color palettes
- Experiment with layout patterns
- Try various interaction models
- Incorporate subtle animations
{
"allow_file_operations": true,
"allow_shell_commands": true,
"max_tokens": 200000,
"commands_directory": ".claude/commands"
}
# Infinite Agentic Loop Command
## Command: /project:infinite
### Implementation Steps:
1. Parse arguments (spec, output_dir, count)
2. Read and analyze specification file
3. Scan output directory for existing iterations
4. Determine next iteration number
5. Deploy sub-agents in parallel
6. Monitor and coordinate generation
7. Validate uniqueness and spec compliance
<!-- Generated iteration: ui_component_001.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Card Component</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.card {
background: white;
border-radius: 20px;
padding: 40px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
max-width: 400px;
transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-10px); }
</style>
</head>
<body>
<div class="card" role="article" aria-label="Interactive component">
<h1>Iteration 001</h1>
<p>Unique gradient-based card design</p>
</div>
</body>
</html>
<!-- specs/api_docs_spec.md -->
# API Documentation Generator
## Objective
Generate comprehensive API documentation pages with interactive examples.
## Technical Requirements
- OpenAPI 3.0 schema parsing
- Syntax-highlighted code samples
- Interactive request builder
- Response visualization
## Output Format
Each iteration should produce:
- `api_docs_[number].html` - Main documentation
- Embedded JavaScript for interactivity
- No external API calls (use mock data)
#!/bin/bash
# batch_generate.sh - Run multiple infinite loops in sequence
SPECS=(
"specs/ui_components.md"
"specs/data_visualizations.md"
"specs/form_patterns.md"
)
for spec in "${SPECS[@]}"; do
basename=$(basename "$spec" .md)
echo "Generating from $spec..."
claude << EOF
/project:infinite $spec output/${basename}/ 10
EOF
done
Start with simple iterations and increase complexity:
# Wave 1: Basic components
/project:infinite specs/simple_ui.md wave1/ 5
# Wave 2: Add interactions (reference wave1 in spec)
/project:infinite specs/interactive_ui.md wave2/ 5
# Wave 3: Complex compositions
/project:infinite specs/complex_ui.md wave3/ 5
Generate variations on a theme:
<!-- specs/button_variations.md -->
## Creative Constraints
Each iteration must:
1. Use a different CSS animation
2. Implement unique hover states
3. Explore different shape paradigms (rounded, sharp, organic)
4. Vary color psychology (calm, energetic, professional)
Use outputs from one loop as inputs to another:
# Generate base components
/project:infinite specs/base_components.md components/ 10
# Generate pages using those components (spec references components/)
/project:infinite specs/full_pages.md pages/ 5
Solution: Ensure you're in the project directory and Claude Code is running:
cd infinite-agentic-loop
claude
# Wait for prompt, then try /project:infinite
Solution: Enhance your specification with stronger creative constraints:
## Uniqueness Requirements
- Each iteration must use a different primary color family
- Layout grid must vary (2-col, 3-col, masonry, etc.)
- Typography scale must be distinct
Solution: This is expected. Review generated iterations and restart with refined specs:
# Analyze what was generated
ls -lh infinite_src_new/
# Refine spec based on learnings
vim specs/invent_new_ui_v3.md
# Start fresh batch
/project:infinite specs/invent_new_ui_v3.md infinite_src_new_v2/ infinite
Solution: Check .claude/settings.json permissions and validate spec file syntax:
# Validate JSON
cat .claude/settings.json | python -m json.tool
# Check spec file exists and is readable
cat specs/your_spec.md
Install the infinite command globally:
mkdir -p ~/.claude/commands
cp .claude/commands/infinite.md ~/.claude/commands/
Now use /infinite from any Claude Code session.
Modify .claude/commands/infinite.md to generate sets of files:
## Enhanced Output Structure
For each iteration N, generate:
- component_N.html (main file)
- component_N.test.html (test file)
- component_N.meta.json (metadata)
Create an MCP (Model Context Protocol) server for reusability:
// mcp-server.js
const { MCPServer } = require('@modelcontextprotocol/sdk');
const server = new MCPServer({
name: 'infinite-agentic-loop',
version: '1.0.0'
});
server.addTool({
name: 'infinite_generate',
description: 'Generate iterations using infinite agentic loop',
parameters: {
spec: { type: 'string', description: 'Specification file path' },
output_dir: { type: 'string', description: 'Output directory' },
count: { type: 'number', description: 'Number of iterations' }
},
execute: async ({ spec, output_dir, count }) => {
// Implementation here
}
});
server.start();