跳到主要内容

chat_with_agent 精选

当你需要咨询其他 agent、寻求帮助,或用户明确要求某个 agent 参与时,使用本 skill。

自动化 Codex CLIMCP 客户端 Apache-2.0 3.6 万
在 GitHub 打开

安装方式

cp -r src/qwenpaw/agents/skills/chat_with_agent-zh ~/.claude/skills/chat-with-agent-zh

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git

依赖与权限

  • 无需 API Key
  • 无需联网
  • 无外部命令依赖
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。

SKILL.md 正文

来源 agentscope-ai/QwenPaw@02b6a6d · 许可 Apache-2.0 · 内容未修改

与 Agent 对话

什么时候用

当你需要向另一个 agent 询问问题、寻求帮助、请求方案、请求复核、请求决策支持,或者进行任何形式的交流时,使用本 skill。

如果用户明确要求与某个 agent 对话,也应使用本 skill。

应该使用

  • 需要另一个 agent 的专长、判断或第二意见
  • 需要向某个 agent 请求方案、复核或建议
  • 用户明确要求某个 agent 参与、协助或回答
  • 需要继续某个已有的 agent 会话,并保留上下文

不应使用

  • 你自己可以直接完成,且用户没有明确要求调用其他 agent
  • 只是普通问答,不需要专门 agent
  • 目标 agent 不明确,应该先追问或先查可用 agents
  • 刚收到某个 agent 的消息,又立刻回调同一个 agent,可能造成循环

决策规则

  1. 如果用户明确要求某个 agent,优先按要求执行,但仍要先查 agent,不要猜 ID
  2. 如果你自己能完成,就不要调用其他 agent
  3. 需要保留上下文续聊时,必须传 session_id
  4. 默认优先使用 list_agents() 和 chat_with_agent(...) 进行前台对话,不要绕到别的方式
  5. 如果任务需要后台执行,使用 submit_to_agent(...) 提交,再用 check_agent_task(...) 查询状态

使用流程

请严格按照以下流程顺序使用本 skill:

1) 确保你的工具列表中包含 list_agents() 和 chat_with_agent(...) 两个内建工具

  • 这两个工具是与其他 agent 对话的基础,不要删除或禁用它们
  • 如果你没有这两个工具,请告诉用户你需要它们来与其他 agent 对话,并请求用户添加

2) 使用 list_agents() 工具查看当前可用的 Agent,并从中选择一个 agent 提取其 id

  • 请根据用户的需求和对应 Agent 的描述来选择最合适的 Agent
  • 如果找不到合适的 Agent 且你不是 Default Agent,就使用 Default Agent
  • 否则告诉用户没有合适的 Agent 可用,并建议他们创建一个新的 Agent 或调整现有 Agent 的描述以便更好地匹配需求

3) 调用 chat_with_agent(...) 发起前台求助,其中需要传递的关键参数包括

  • to_agent: 对话目标 Agent 的 ID,注意是 ID 不是名字
  • text: 你要对目标 Agent 说的内容
  • session_id: (可选)如果你需要与同一个 Agent 进行多轮对话,从第二轮开始传递相同的 session_id 来保持上下文连续
  • timeout: (可选)预估任务需要的前台等待时间,避免过早超时

4) 如果任务适合后台执行,请使用新的后台工具路径

  • submit_to_agent(...):提交后台任务,需要 to_agent、text,以及可选的 session_id / task_timeout
  • 省略 task_timeout 时,默认执行预算为 3600 秒(1 小时)
  • 预计超过 1 小时的任务,请显式传入正数秒
  • 也接受数字字符串,例如 "7200"
  • check_agent_task(...):通过 task_id 查询任务状态,完成时返回最终结果
  • 超时后任务会以失败结束,错误类似 Task timed out after Ns(API 载荷中带 code=timeout)

最小调用示例

新对话

list_agents()

chat_with_agent(
  to_agent="<target_agent_id>",
  text="[Agent <your_agent_id> requesting] 我需要你帮我判断这个问题的处理方向。",
)

续接已有对话

chat_with_agent(
  to_agent="<target_agent_id>",
  text="[Agent <your_agent_id> requesting] 请基于刚才的结论继续展开第 2 点。",
  session_id="<previous_session_id>",
)

后台提交与查询

submit_to_agent(
  to_agent="<target_agent_id>",
  text="[Agent <your_agent_id> requesting] 请在后台完成这个较长任务。",
  task_timeout=7200,
)

check_agent_task(
  task_id="<task_id>",
)

注意事项

  • 添加对话标识符:建议对话内容以如下内容开头
[Agent <your_agent_id> requesting]

这样可以让对方 Agent 更清楚地知道是谁在跟它说话,有助于提高沟通效率和准确性。

  • 合理复用会话:如果你需要与同一个 Agent 进行多轮对话,务必传递相同的 session_id 来保持上下文连续。否则每次调用都会被视为新的对话,可能导致对方 Agent 无法正确理解你的需求。session_id 可以从第一轮对话的返回结果中获取,例如
  [SESSION: xxx]

其中 xxx 就是 session_id 的值,该值一般由系统生成,长度一般较长,具有唯一性。你需要把这个 session_id 存下来,在后续与同一个 Agent 的对话中继续使用它。

质量与来源

所属仓库
agentscope-ai/QwenPaw
仓库星标
3.6 万
最近更新
今天
采集时间
今天
commit
02b6a6d088e3
内容指纹
sha256:021f1f24b240958
文件路径
src/qwenpaw/agents/skills/chat_with_agent-zh/SKILL.md

同仓库其它 Skill

查看全部 48 个
edu-math-tutorial
数学题分步讲解视频的领域知识。适用场景:(1) 用户给出一道数学题并要求做讲解/ 解题视频;(2) 用户说"讲解这道题"、"生成解题视频"、"make a math tutorial"; (3) 需要中文数学教学视频,涉及方程、公式或几何图形。本 skill 只提供领域 知识(题目拆解、讲解节奏、旁白文案规范、版式与 KaTeX 排版风格);画面、 配音与成片一律用 Creator 原生 Element 与工具从源头构建。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
professional-media-prompts
为 Creator 编译制作级视觉资产图、电影分镜图和参考生视频 Prompt。适用于 角色身份板/设定图、关键帧或多宫格分镜、短片动作节拍、R2V/I2V/T2V 提示词, 尤其适合要求角色一致性、镜头语言、参考图职责、Seedance 时间段或声音设计的 任务。不用于纯素材剪辑、只查询模型参数,或只评价已经生成的成片。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
visual-asset-design
为角色/场景/道具设计视觉资产、编写或修复 VisualVariant 与阵容图的生成 Prompt 时使用。涵盖参考图布局(艺术身份板/序列关键帧/环境研究板/道具研究 板)、构图与镜头语言、图片审核误判规避、实体 continuity 与以主图为参考 的跨 Variant 衍生设计。不用于视频 Prompt 编译(见 professional-media-prompts)、 纯素材剪辑或只评价已生成产物。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
alicloud_cli
阿里云 CLI 中文文档镜像检索与命令辅助:先走章节索引,再下钻正文页面,给出命令前必须有本地文档证据。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
terraform-cli-setup
Terraform CLI 安装与初始化技能。当用户本地未安装 Terraform 时自动完成安装,确保 terraform 命令可用并能执行 init/validate。不负责 Provider 凭证配置,凭证在实际使用时由 terraform-skill 引导。
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
terraform-skill
Use when working with Terraform or OpenTofu - creating modules, writing tests (native test framework, Terratest), setting up CI/CD pipelines, reviewing configurations, choosing between testing approaches, debugging state issues, implementing security scanning (trivy, checkov), or making infrastructure-as-code architecture decisions
精选 agentscope-ai/QwenPaw 3.6 万 原文
Codex CLIMCP 客户端
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
presentation-structure
Knowledge about the presentation slide format, weight system, navigation, and section structure
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
presentation-styling
Knowledge about CSS classes, component patterns, and syntax highlighting in the presentation
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
vibe-to-agentic-framework
The conceptual framework behind the presentation — what "Vibe Coding to Agentic Engineering" means, why the journey is structured the way it is, and how every slide fits the narrative arc
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
time-skill
Display the current time in Pakistan Standard Time (PKT, UTC+5). Use when the user asks for the current time, Pakistan time, or PKT.
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI
weather-fetcher
Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API
精选 shanraisshan/claude-code-best-practice 6.7 万 原文
Claude CodeCodex CLIGemini CLI