Agent skill

deepagents-hitl

在 Deep Agents 中实现人工审批工作流,使用 interruptOn 参数对敏感工具操作进行人工干预。

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill deepagents-hitl --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 5 KB
Bundled scripts: none
Path: skills/agent/deepagents-hitl/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# deepagents-hitl (JavaScript/TypeScript) ## 概述 HITL 中间件为工具调用添加人工监督。执行暂停以等待人工决策:**批准**、**编辑**或**拒绝**。 需要 checkpointer 在中断期间保存状态。 ## 基本设置 ```typescript import { createDeepAgent } from "deepagents"; import { MemorySaver } from "@langchain/langgraph"; const agent = await createDeepAgent({ interruptOn: { write_file: true, // 允许所有决策 execute_sql: { allowedDecisions: ["approve", "reject"] }, // 不允许编辑 read_file: false, // 无中断 }, checkpointer: new MemorySaver() // 必需 }); ``` ## 决策表 | 工具类型 | 配置 | 决策 | 使用场景 | |-----------|--------|-----------|----------| | 破坏性 | `true` | 批准/编辑/拒绝 | write_file、delete | | 关键 | `{allowedDecisions: [...]}` | 仅批准/拒绝 | deploy、SQL | | 安全 | `false` | 无 | read_file | ## 代码示例 ### 示例 1:基本审批 ```typescript import { createDeepAgent } from "deepagents"; import { MemorySaver } from "@langchain/langgraph"; import { Command } from "@langchain/langgraph"; const agent = await createDeepAgent({ interruptOn: { write_file: true }, checkpointer: new MemorySaver() }); const config = { configurable: { thread_id: "session-1" } }; // 步骤 1:调用(触发中断) let result = await agent.invoke({ messages: [{ role: "user", content: "将配置写入 /prod.yaml" }] }, config); // 步骤 2:检查中断 const state = await agen

What's inside
Steps it walks through
  1. 概述
  2. 基本设置
  3. 决策表
  4. 代码示例
  5. 示例 1:基本审批
  6. 示例 2:执行前编辑
  7. 示例 3:拒绝并提供反馈
  8. 示例 4:自定义中间件
  9. 边界
  10. Agent 可以配置的内容
  11. Agent 不能配置的内容
  12. 注意事项
  13. 1. Checkpointer 是必需的
  14. 2. 需要 Thread ID
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the deepagents-hitl skill do?

在 Deep Agents 中实现人工审批工作流,使用 interruptOn 参数对敏感工具操作进行人工干预。

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill deepagents-hitl --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going