ReAct pattern implementation, reflection and self-correction, planning and task decomposition, iterative refinement patterns
The Agentic Loops skill provides the procedural 'how-to' for implementing autonomous reasoning cycles. It is designed for use by Operational Intelligence agents to navigate complex, non-linear tactical objectives with high reliability.
This skill should be used when completing tasks related to agentic loops.
Follow these procedures to implement the capability:
The foundational pattern for any autonomous agent.
max_iterations fail-safe is triggered.For complex problem solving, integrate the sequential-thinking MCP tool directly into the loop.
# Sequential Thinking Integration Pattern
async def complex_problem_solver(objective: str):
thinking_process = await call_tool("sequential-thinking", {
"thought": f"Decomposing the objective: {objective}",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": True
})
# Use output to drive the next ReAct iteration
Implement a secondary reflection pass to evaluate and correct the agent's own output.
| Objective | Preferred Sequence |
| : | : |
| Code Refactoring | view_file → codebase_search → sequential-thinking → replace_file_content → pytest |
| Structural Audit | list_dir → find_by_name → grep_search → link_checker |
| New Feature Dev | read_url_content (Specs) → implementation_plan (Doc) → task_boundary → write_to_file |
task.md or a state registry between major loop transitions to prevent context fragmentation.FileNotFoundError, API Timeout) with retry-backoff or human-in-the-loop (HITL) triggers.CognitiveCycleEngineer (Primary User)agentic-loop-patterns.jsonStandard Feature Delivery Cycle (SFDC)npx skills add gitwalter/managing-agentic-loops下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer