Skip to main content
skill CX Codex

autonomous-agent-patterns — Claude Code skill: what it does

Design patterns for building an autonomous coding agent: tool calling, user approvals, browser automation, rollback checkpoints. Useful while you are designing the agent.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a claude-code
Open on GitHub

What autonomous-agent-patterns does

This skill collects design patterns for an agent that codes on its own: how tool calls are shaped, how permissions and approvals work, browser automation, and checkpoints where a human steps in. The patterns come from Cline and Codex. It asks you to read references/detailed-guide.md first, since the full procedure sits there and its safety requirements are meant to be followed.

What you get is not a finished agent. The samples are conceptual fragments, with imports, types and adapters left for you to write. response.to_history_message is a contract to implement for your own provider, not an SDK method. The Server(config) sketch does not perform a real MCP handshake with a transport and session, and generated server code stays inert until someone reviews it.

Worth checking before you build on it: approving a session by tool name hands out too much, because npm, python, node and git execute arbitrary code and a read tool can leak secrets. Bind approval to the action, the target and the limits instead, and keep filesystem, network and process boundaries outside the model's control. File edits need a conflict check against the original content and atomic replacement. Checkpoints need a real workspace snapshot, since git status will not restore uncommitted work. Browser text pulled through TreeWalker is neither an accessibility tree nor evidence that the element is visible.

What it helps with

  • design a typed tool-calling schema for a coding agent
  • bind approval to the action and target rather than the tool name
  • add rollback checkpoints that survive uncommitted edits
  • verify browser actions against the live UI instead of guessed targets
  • keep filesystem and network limits outside the model's reach

Example prompts for the agent

  • Design the approval flow for my coding agent and tell me which tool calls must be gated
  • Walk me through the browser automation pattern and what to verify after each action
  • Review my file-edit and checkpoint design for conflict and rollback gaps

How to install autonomous-agent-patterns

1Skills CLI (Vercel)

npx skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a claude-code

2Manually: 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 skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a claude-code. The skill file lands at ~/.claude/skills/autonomous-agent-patterns/SKILL.md.

What does autonomous-agent-patterns do?

It gathers design patterns for an autonomous coding agent: tool calling, permission systems, browser automation and human-in-the-loop steps. It also records the constraints these schemes break on.

Is this working agent code?

No. The examples are conceptual fragments without imports, types or adapters, and you have to finish them for your provider and environment. The author also insists generated server code gets reviewed.

Source text

SKILL.md · MIT
---
name: autonomous-agent-patterns
description: "Design patterns for building autonomous coding agents, inspired by [Cline](https://github.com/cline/cline) and [OpenAI Codex](https://github.com/openai/codex)."
risk: critical
source: community
date_added: "2026-02-27"
---

# 🕹️ Autonomous Agent Patterns

> Design patterns for building autonomous coding agents, inspired by [Cline](https://github.com/cline/cline) and [OpenAI Codex](https://github.com/openai/codex).

## Detailed Guide

Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

## When to Use This Skill

Use this skill when:

- Building autonomous AI agents
- Designing tool/function calling APIs
- Implementing permission and approval systems
- Creating browser automation for agents
- Designing human-in-the-loop workflows

---

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

## Authorization and implementation limits

These classes are conceptual fragments with missing imports/types/adapters/helpers, not working Cline/Codex/MCP implementations. response.to_history_message is an adapter contract to implement for the actual provider, not a standard SDK method. MCP clients need an actual transport/session and lifecycle; the Server(config) sketch is not a valid client handshake. Generated server code stays inert until reviewed.

Tool-name session approval authorizes too broadly: bind authorization to the concrete action, target, data and limits, reusing existing user authorization within scope. Read tools can expose secrets, and npm/python/node/git can execute arbitrary code; allowlisting their names or setting cwd/HOME does not sandbox them. Enforce filesystem/network/process boundaries outside model control, reject escaping/symlink paths, validate schemas and budget all tool/LLM calls and outputs. Approval UI and substring command checks alone provide no security boundary.

File edits need original-content conflict checks and atomic safe replacement; checkpoints require validated session IDs, private atomic files and a real workspace snapshot/restore strategy. Git status/ref alone cannot restore uncommitted content. Bound file sizes/context, exclude credentials and mark external content as untrusted data. Browser TreeWalker text is not an accessibility tree or guaranteed visible text; networkidle and approximate coordinates do not establish action correctness. Use current observed UI targets and verify results. No agent, tool, browser or generated server ran during review.

© sickn33 · MIT · sickn33/agentic-awesome-skills

Similar skills

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

From the same set101

The whole set →
twilio-communications Helps build Twilio communication features: SMS, voice calls, WhatsApp messaging, and two-factor verification. Useful when wiring IVR systems or securing account logins. CX Codex +1 994installs skill-creator Skill to create, review and package custom skills with Python scaffolding, frontmatter validation and ZIP helpers. Use it to extend your IDE or automate repetitive tasks. CX Codex +1 977installs agent-evaluation A skill for comparing agent, prompt or tool changes against versioned cases with explicit verifiers. Useful for reproducing a failure or running a regression pass. CX Codex +1 971installs bash-pro Teaches the agent to write defensive Bash scripts for CI/CD and ops, complete with Bats tests and ShellCheck linting. CX Codex +1 966installs outlook-calendar-automation A skill that lets your agent work with Outlook Calendar through Rube MCP: schedule meetings, find open slots, edit and cancel events. CX Codex +1 962installs computer-use-agents Guides the architecture of AI agents that control screens, cursors, and keystrokes using Anthropic Computer Use or OpenAI Operator. Useful for sandboxed desktop and GUI automation. CX Codex +1 962installs voice-ai-development This skill guides work on voice applications and real-time voice agents. Use it when a task involves speech recognition, speech synthesis, or streamed audio. CX Codex +1 959installs agent-tool-builder A skill for writing tool schemas an agent can actually use: JSON Schema, descriptions, validation, error paths. Useful when it keeps calling the wrong function. CX Codex +1 961installs

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