Chat With Agent logo

Chat With Agent

CommunityPopular
mateaix
chat_with_agent

当需要咨询其他 Agent、寻求帮助,或用户明确要求某个 Agent 参与时使用。支持单次委托和多任务并行委托。

Overview

Publishermateaix
Repositorymateclaw
Skill namechat_with_agent
Stars
1.1K
Forks
337
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mateaix on GitHub. Read the source before you install it.

Installation

Install the Chat With Agent AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/chat_with_agent
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mateaix/mateclaw.git /tmp/mateclaw
mkdir -p .claude/skills
cp -r /tmp/mateclaw/mateclaw-server/src/main/resources/skills/chat_with_agent .claude/skills/chat_with_agent
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Chat With Agent in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Chat With Agent on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Chat With Agent is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

与 Agent 对话

何时使用

当你需要向另一个 Agent 询问问题、寻求帮助、请求方案、请求复核,或用户明确要求某个 Agent 参与时使用。

应该使用

  • 需要另一个 Agent 的专长、判断或第二意见
  • 需要向某个 Agent 请求方案、复核或建议
  • 用户明确要求某个 Agent 参与或协助
  • 多个独立子任务需要并行分配给不同 Agent

不应使用

  • 你自己可以直接完成,且用户没有明确要求调用其他 Agent
  • 只是普通问答,不需要专门 Agent
  • 刚收到某个 Agent 的消息,不要立刻回调同一个 Agent(防止死循环)

工作流程

第一步:查询可用 Agent

listAvailableAgents()

返回所有已启用 Agent 的名称、类型和描述,根据描述选择最合适的 Agent。

第二步A:单次委托(串行)

delegateToAgent(
  agentName="data-analyst",
  task="[来自 Agent my-agent 的请求] 请帮我分析以下销售数据,给出环比趋势摘要:..."
)
  • agentName:目标 Agent 的名称(从 listAvailableAgents() 返回值中取)
  • task:发送给目标 Agent 的完整任务描述
  • 建议在 task 开头加 [来自 Agent <自身名称> 的请求] 便于对方识别来源

第二步B:并行委托(多个独立任务同时进行)

最多同时委托 3 个 Agent:

delegateParallel(
  tasksJson="[
    {\"agentName\": \"research-agent\", \"task\": \"[来自 Agent coordinator 的请求] 搜索 AI 行业最新融资动态\"},
    {\"agentName\": \"data-analyst\", \"task\": \"[来自 Agent coordinator 的请求] 分析上季度销售数据趋势\"}
  ]"
)

tasksJson 是 JSON 数组字符串,每个元素包含 agentName 和 task。

决策规则

  1. 用户明确要求调用某 Agent → 先 listAvailableAgents() 确认名称,不要猜
  2. 能自己完成 → 不调用
  3. 多个互相独立的子任务 → 用 delegateParallel,不要串行逐个调用
  4. 不超过 3 个并行 → 超过时按优先级分批
  5. 收到 Agent B 回复后 → 不要立刻回调 Agent B

与 make_plan 的区别

技能用途
chat_with_agent向 Agent 咨询、委托、获取结果
make_plan专门向更强 Agent 索要执行计划(由自己执行)

注意事项

  • delegateToAgent 是同步阻塞调用,等待目标 Agent 完成后返回结果
  • delegateParallel 并发执行,等所有任务完成后一次性返回所有结果
  • MateClaw 当前不支持跨调用的会话 session 续接,每次 delegateToAgent 是独立对话
  • 如需上下文连贯,在 task 参数中附带上一次的关键结论

Frequently asked questions

What does the Chat With Agent AI skill do?

当需要咨询其他 Agent、寻求帮助,或用户明确要求某个 Agent 参与时使用。支持单次委托和多任务并行委托。

Why use Chat With Agent on TypingMind?

Because you install it once and use it with any model. Chat With Agent is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Chat With Agent in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/chat_with_agent. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Chat With Agent?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Chat With Agent?

As many as you like. As long as a model supports skills, you can use Chat With Agent with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Chat With Agent AI skill free?

Yes. It is published on GitHub by mateaix under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇