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.
npx skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/autonomous-agent-patterns/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/autonomous-agent-patterns/
1Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a codex2Manually: put the files in place
.agents/skills/autonomous-agent-patterns/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a cursor2Manually: put the files in place
.cursor/skills/autonomous-agent-patterns/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install sickn33/agentic-awesome-skills autonomous-agent-patterns2Manually: put the files in place
.github/skills/autonomous-agent-patterns/SKILL.md1Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a gemini-cli2Platform CLI
gemini skills install https://github.com/sickn33/agentic-awesome-skills --path skills/autonomous-agent-patternsManually: put the files in place
.devin/skills/autonomous-agent-patterns/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add sickn33/agentic-awesome-skills --skill autonomous-agent-patterns -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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