Build Managed Agents — Security skill for Claude Code
Claude Code skill for Anthropic Managed Agents — create / run / audit the cloud-hosted agent API end-to-end.
How to install Build Managed Agents
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open YijiaDuan/build-managed-agents and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Build Managed Agents does
Claude Code skill for Anthropic Managed Agents — create / run / audit the cloud-hosted agent API end-to-end. 教 Claude 用 Anthropic 托管代理 API 的 skill,覆盖创建/运行/审计全流程。
Alternatives in Security
- Google Workspace Cloud Identity — Manage Cloud Identity groups and memberships 21.6k ★
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
README
build-managed-agents
一个给 **coding agent** 用的 skill —— 装到 Claude Code / OpenClaw / Cursor 等编程代理上,当用户说"帮我搞一个 managed agent"的时候,这个 skill 会接管,照着 recipe 一步步调 Anthropic 新出的 **Claude Managed Agents API**,覆盖 create / run / audit 全流程:定义 agent + environment、跑 session、流式处理事件、审计 token 用量和事件链。
把自己搭 agent loop / 工具执行 / 沙箱 / SSE 解析 / 审计日志这堆基础设施全卸掉,直接让 coding agent 去调 Anthropic 托管的那套。
安装
# 全局(推荐,所有项目可用)
git clone https://github.com/YijiaDuan/build-managed-agents \
~/.claude/skills/build-managed-agents
# 或只装到当前项目
mkdir -p .claude/skills
git clone https://github.com/YijiaDuan/build-managed-agents \
.claude/skills/build-managed-agents
运行时依赖:
pip install anthropic # 或 npm install @anthropic-ai/sdk
export ANTHROPIC_API_KEY="sk-ant-..."
使用
在 Claude Code 对话框里随便说一句:
- "帮我创建一个 managed agent,做 XXX"
- "给这个 session 做个审计,看 token 消耗和事件流"
- "用 client.beta.sessions.events.stream 写一个 XXX"
- "open-source this as a managed agent"
Claude 会自动匹配到这个 skill 并按 reference/ 下的参考文档执行。完整 recipe 在 [`SKILL.md`](SKILL.md)。
它覆盖什么
Create ──────► Run ──────► Audit
│ │ │
│ │ ├─ 列出所有 session 状态
│ │ ├─ 拉完整事件流(审计链)
│ │ ├─ token 用量 + 成本估算
│ │ └─ 导出 Markdown 报告
│ │
│ ├─ 发 user.message
│ ├─ 流式接收 agent.message / tool_use
│ ├─ 处理 custom_tool_use 闭环
│ ├─ tool_confirmation(always_ask)
│ ├─ interrupt 中断
│ └─ 多 agent / memory stores(研究预览)
│
├─ 创建 Agent(model + system + tools + MCP + skills)
├─ 创建 Environment(云容器 + 预装包 + 网络规则)
└─ 创建 Session(挂 GitHub repo / 文件 / memory)
项目结构
build-managed-agents/
├── SKILL.md # 入口:触发词 + 工作流速查 + 陷阱清单
├── reference/
│ ├── create.md # Agent/Environment/Session 完整参数
│ ├── run.md # 事件收发、多 agent、memory stores
│ ├── events.md # 全部事件类
Related Skills
Pocketpaw
Your AI agent in 30 seconds. Not 30 hours. Self-hosted, open-source personal AI with desktop installer, multi-
LaptopAI Agent
Fully local, privacy-first autonomous AI agent for laptop management — LangGraph reasoning loop, Ollama local
Managed MCP Doctor
Audit Claude Code MCP governance drift, catch when allowedMcpServers no longer covers managedMcpServers (2.1.2
Patchbot
Vulnerability scanning with your own scanners and threat feeds, plus a coding agent that opens the fix PR. CLI
Claude Routines And Agents PM Pack
Companion repo to 'Opus-4.7 + Claude Routines & Managed Agents = PM Magic'. Production-ready prompts, sample o
Operant
Self-hosted agents in Slack and Teams on your infra. Per-user OAuth, per-human audit, RBAC, approvals, 2,500+
Related Agents
SEO Matomo
Matomo Reporting API analyst. Fetches organic traffic, top landing pages, device / country breakdowns, and ref
Beardrive Gtm
Veteran commercial-open-source (COSS) operator who reviews BearDrive's go-to-market — someone who has been bot
Bench Runner
Executes a11y skill benchmarks across hosted and local model families. Runs cloud/Codex/Ollama benchmark scrip