Skip to main content
skill

autonomous-agent-patterns · davila7 — Claude Code skill for agent design

This skill outlines how autonomous coding agents can plan work, call tools, and involve a person in decisions. Use it when shaping an agent’s architecture or tool APIs.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill ai-research/autonomous-agent-patterns
Open on GitHub

What autonomous-agent-patterns does

The examples walk through an agent cycle: the model considers a task, chooses an action, runs a tool, then receives its result. Python snippets show tool calls being added to conversation history, alongside a model-selection pattern for planning, analysis, and code generation.

The material also covers JSON Schema for tools, file operations, terminal commands, browser actions, and asking the user a question. One sample loop sets max_iterations=50; when it reaches that limit, it returns a message instead of continuing the task.

What it helps with

  • map out an autonomous agent’s action cycle
  • define a JSON Schema for a file-reading tool
  • route planning and code generation to different models
  • give an agent file and terminal operations
  • add a user approval step to an agent workflow

Example prompts for the agent

  • Design an autonomous agent loop that plans actions, calls tools, and incorporates their results.
  • Show a JSON Schema for a file-reading tool that requires a path.
  • Suggest a permission flow that asks the user before an agent takes an action.

How to install autonomous-agent-patterns

1claude-code-templates

npx claude-code-templates@latest --skill ai-research/autonomous-agent-patterns

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill autonomous-agent-patterns -a claude-code

3Manually: put the files in place

~/.claude/skills/autonomous-agent-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/autonomous-agent-patterns/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about autonomous-agent-patterns

How do I install autonomous-agent-patterns in Claude Code?

Run npx claude-code-templates@latest --skill ai-research/autonomous-agent-patterns.

What does autonomous-agent-patterns do?

It provides design patterns for autonomous coding agents, including their action cycle, tool calls, and ways to involve a user.

Which agent tools does the skill cover?

Its examples include file operations, shell commands, browser actions, and asking the user for input.

Similar skills

All skills for Agent setup: memory, context, orchestration →

autonomous-agent-patterns by other authors comes first.

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor