Tooluck logoTooluck
SKILL.md

autonomous-agent-patterns

Agent skill fromdavila7/claude-code-templates

Design patterns for building autonomous coding agents. Covers tool integration, permission systems, browser automation, and human-in-the-loop workflows. Use when building AI agents, designing tool APIs, implementing permission systems, or creating autonomous coding assistants.

How to install autonomous-agent-patterns

install autonomous-agent-patterns
# install the claude-code-templates pack with the skills CLI
npx skills add davila7/claude-code-templates

# or add only this skill to Claude Code: copy the folder

cli-tool/components/skills/ai-research/autonomous-agent-patterns/

# into

~/.claude/skills/autonomous-agent-patterns/ (all projects)

.claude/skills/autonomous-agent-patterns/ (one project)

cli-tool/components/skills/ai-research/autonomous-agent-patterns/SKILL.md

MITFull file
1# πŸ•ΉοΈ Autonomous Agent Patterns
2
3> Design patterns for building autonomous coding agents, inspired by [Cline](https://github.com/cline/cline) and [OpenAI Codex](https://github.com/openai/codex).
4
5## When to Use This Skill
6
7Use this skill when:
8
9- Building autonomous AI agents
10- Designing tool/function calling APIs
11- Implementing permission and approval systems
12- Creating browser automation for agents
13- Designing human-in-the-loop workflows
14
15---
16
17## 1. Core Agent Architecture
18
19### 1.1 Agent Loop
20
21```
22β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
23β”‚ AGENT LOOP β”‚
24β”‚ β”‚
25β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
26β”‚ β”‚ Think │───▢│ Decide │───▢│ Act β”‚ β”‚
27β”‚ β”‚ (Reason) β”‚ β”‚ (Plan) β”‚ β”‚ (Execute)β”‚ β”‚
28β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
29β”‚ β–² β”‚ β”‚
30β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚
31β”‚ └─────────│ Observe β”‚β—€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
32β”‚ β”‚ (Result) β”‚ β”‚
33β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
34β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
35```
36
37```python
38class AgentLoop:
39 def __init__(self, llm, tools, max_iterations=50):
40 self.llm = llm
41 self.tools = {t.name: t for t in tools}
42…

Excerpt shown under the repository's MIT license.

More skills in claude-code-templates

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates