autonomous-agent-patterns – skill Agent & Tự động hóa cho agent AI
Các mẫu thiết kế để xây dựng agent lập trình tự động, lấy cảm hứng từ [Cline](https://github.com/cline/cline) và [OpenAI Codex](https://github.com/openai/codex).
Cài skill autonomous-agent-patterns bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/autonomous-agent-patterns-d33c8.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /autonomous-agent-patterns – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/autonomous-agent-patterns-d33c8.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $autonomous-agent-patterns – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/autonomous-agent-patterns-d33c8.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /autonomous-agent-patterns – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/autonomous-agent-patterns-d33c8.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /autonomous-agent-patterns – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
🕹️ 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.
Skill liên quan
- autonomous-agents – Autonomous agent là các hệ thống AI có thể tự phân rã mục tiêu, lập kế hoạch hành động…
- aws-mcp-setup – Cấu hình máy chủ AWS MCP để tìm kiếm tài liệu và truy cập API. Dùng khi thiết lập AWS…
- fastmcp – Xây dựng, kiểm thử và triển khai máy chủ MCP bằng Python.
- coding-agent-rollout – Dùng khi triển khai Claude Code cho một nhóm hoặc tổ chức, hoặc kiểm tra một đợt triển…
- coding-agent-rollout – Dùng khi triển khai Claude Code cho một nhóm hoặc tổ chức, hoặc kiểm tra một đợt triển…
- ax-extract-workflow – Tái dựng workflow đằng sau một artifact của coding agent trước đó bằng các session…
- azure-ai-agents-persistent-dotnet – SDK Azure AI Agents Persistent cho .NET. SDK cấp thấp để tạo và quản lý AI agent với…
- compliance-os – Compliance OS — meta-orchestrator giúp đội tuân thủ CẤU HÌNH framework nào áp dụng, TÍNH…