跳到正文
cccskills
免费在 GitHub 公开中文介绍

claude-to-deerflow

通过HTTP API向运行中的DeerFlow发送调研和分析请求,获取回答、继续对话并上传资料。还可查看模型、技能、智能体列表及服务运行状态。

原文查看原文说明

Interact with DeerFlow AI agent platform via its HTTP API. Use this skill when the user wants to send messages or questions to DeerFlow for research/analysis, start a DeerFlow conversation thread, check DeerFlow status or health, list available models/skills/agents in DeerFlow, manage DeerFlow memory, upload files to DeerFlow threads, or delegate complex research tasks to DeerFlow. Also use when the user mentions deerflow, deer flow, or wants to run a deep research task that DeerFlow can handle.

AI 评分80分/ 100查看安装方法

适用场景

  • 将调研和分析交给DeerFlow
  • 向对话中上传资料
  • 继续之前的对话
  • 检查运行状态和可用模型

中文介绍

功能

向DeerFlow发送调研或分析请求,并获取回答。通过HTTP API这一供外部操作服务的接口,可以开始或继续对话、获取历史记录,以及查看模型、技能和智能体列表。也支持检查运行状态、启用或停用技能,以及查看已保存的记忆。

适用场景

适合将复杂调研交给DeerFlow,或提交资料后针对内容提问。将PDF、PPTX、XLSX或DOCX文件上传到对话后,文件会自动转换为Markdown。复用对话编号,即可接着之前的交流继续提问。

使用示例

  • “请DeerFlow调研这个主题。”
  • “上传这份PDF,并就其中的内容提问。”
  • “检查DeerFlow的运行状态和可用模型。”

注意事项

连接的DeerFlow实例必须处于运行状态。连接地址可以通过环境变量配置,默认值为http://localhost:2026。不同处理模式会控制是否制定计划,以及是否使用辅助智能体。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好明确列出调研请求、继续对话、状态检查和资料上传等用途。
步骤具体性步骤、输入输出和示例是否具体
A良好提供各操作的curl示例、对话编号复用方法和响应流解析步骤。
安全性发送数据、删除文件、执行命令等是否有说明
B部分不足资料发送、记忆访问和技能设置更改均未规定执行前的确认步骤。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足提供连接环境变量和默认值,但未提供DeerFlow安装步骤。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月21日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(3)

  • SKILL.md6.7 KB
  • scripts/chat.sh8.0 KB
  • scripts/status.sh3.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

DeerFlow Skill

Communicate with a running DeerFlow instance via its HTTP API. DeerFlow is an AI agent platform built on LangGraph that orchestrates sub-agents for research, code execution, web browsing, and more.

Architecture

DeerFlow exposes two API surfaces behind an Nginx reverse proxy:

ServiceDirect PortVia ProxyPurpose
Gateway API8001$DEERFLOW_GATEWAY_URLREST endpoints and embedded agent runtime
LangGraph-compatible API8001$DEERFLOW_LANGGRAPH_URLAgent threads, runs, streaming

Environment Variables

All URLs are configurable via environment variables. Read these env vars before making any request.

VariableDefaultDescription
DEERFLOW_URLhttp://localhost:2026Unified proxy base URL
DEERFLOW_GATEWAY_URL${DEERFLOW_URL}Gateway API base (models, skills, memory, uploads)
DEERFLOW_LANGGRAPH_URL${DEERFLOW_URL}/api/langgraphLangGraph API base (threads, runs)

When making curl calls, always resolve the URL like this:

# Resolve base URLs from env (do this FIRST before any API call)
DEERFLOW_URL="${DEERFLOW_URL:-http://localhost:2026}"
DEERFLOW_GATEWAY_URL="${DEERFLOW_GATEWAY_URL:-$DEERFLOW_URL}"
DEERFLOW_LANGGRAPH_URL="${DEERFLOW_LANGGRAPH_URL:-$DEERFLOW_URL/api/langgraph}"

Available Operations

1. Health Check

Verify DeerFlow is running:

curl -s "$DEERFLOW_GATEWAY_URL/health"

2. Send a Message (Streaming)

This is the primary operation. It creates a thread and streams the agent's response.

Step 1: Create a thread

curl -s -X POST "$DEERFLOW_LANGGRAPH_URL/threads" \
  -H "Content-Type: application/json" \
  -d '{}'

Response: {"thread_id": "<uuid>", ...}

Step 2: Stream a run

curl -s -N -X POST "$DEERFLOW_LANGGRAPH_URL/threads/<thread_id>/runs/stream" \
  -H "Content-Type: application/json" \
  -d '{
    "assistant_id": "lead_agent",
    "input": {
      "messages": [
        {
          "type": "human",
          "content": [{"type": "text", "text": "YOUR MESSAGE HERE"}]
        }
      ]
    },
    "stream_mode": ["values", "messages-tuple"],
    "stream_subgraphs": true,
    "config": {
      "recursion_limit": 1000
    },
    "context": {
      "thinking_enabled": true,
      "is_plan_mode": true,
      "subagent_enabled": true,
      "thread_id": "<thread_id>"
    }
  }'

The response is an SSE stream. Each event has the format:

event: <event_type>
data: <json_data>

Key event types:

  • metadata — run metadata including run_id
  • values — full state snapshot with messages array
  • messages-tuple — incremental message updates (AI text chunks, tool calls, tool results)
  • end — stream is complete

Context modes (set via context):

  • Flash mode: thinking_enabled: false, is_plan_mode: false, subagent_enabled: false
  • Standard mode: thinking_enabled: true, is_plan_mode: false, subagent_enabled: false
  • Pro mode: thinking_enabled: true, is_plan_mode: true, subagent_enabled: false
  • Ultra mode: thinking_enabled: true, is_plan_mode: true, subagent_enabled: true

3. Continue a Conversation

To send follow-up messages, reuse the same thread_id from step 2 and POST another run with the new message.

4. List Models

curl -s "$DEERFLOW_GATEWAY_URL/api/models"

Returns: {"models": [{"name": "...", "provider": "...", ...}, ...]}

5. List Skills

curl -s "$DEERFLOW_GATEWAY_URL/api/skills"

Returns: {"skills": [{"name": "...", "enabled": true, ...}, ...]}

6. Enable/Disable a Skill

curl -s -X PUT "$DEERFLOW_GATEWAY_URL/api/skills/<skill_name>" \
  -H "Content-Type: application/json" \
  -d '{"enabled": true}'

7. List Agents

curl -s "$DEERFLOW_GATEWAY_URL/api/agents"

Returns: {"agents": [{"name": "...", ...}, ...]}

8. Get Memory

curl -s "$DEERFLOW_GATEWAY_URL/api/memory"

Returns user context, facts, and conversation history summaries.

9. Upload Files to a Thread

curl -s -X POST "$DEERFLOW_GATEWAY_URL/api/threads/<thread_id>/uploads" \
  -F "files=@/path/to/file.pdf"

Supports PDF, PPTX, XLSX, DOCX — automatically converts to Markdown.

10. List Uploaded Files

curl -s "$DEERFLOW_GATEWAY_URL/api/threads/<thread_id>/uploads/list"

11. Get Thread History

curl -s "$DEERFLOW_LANGGRAPH_URL/threads/<thread_id>/history"

12. List Threads

curl -s -X POST "$DEERFLOW_LANGGRAPH_URL/threads/search" \
  -H "Content-Type: application/json" \
  -d '{"limit": 20, "sort_by": "updated_at", "sort_order": "desc"}'

Usage Script

For sending messages and collecting the full response, use the helper script:

bash /path/to/skills/claude-to-deerflow/scripts/chat.sh "Your question here"

See scripts/chat.sh for the implementation. The script:

  1. Checks health
  2. Creates a thread
  3. Streams the run and collects the final AI response
  4. Prints the result

Parsing SSE Output

The stream returns SSE events. To extract the final AI response from a values event:

  • Look for the last event: values block
  • Parse its data JSON
  • The messages array contains all messages; the last one with type: "ai" is the response
  • The content field of that message is the AI's text reply

Error Handling

  • If health check fails, DeerFlow is not running. Inform the user they need to start it.
  • If the stream returns an error event, extract and display the error message.
  • Common issues: port not open, services still starting up, config errors.

Tips

  • For quick questions, use flash mode (fastest, no planning).
  • For research tasks, use pro or ultra mode (enables planning and sub-agents).
  • You can upload files first, then reference them in your message.
  • Thread IDs persist — you can return to a conversation later.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

academic-paper-review

免费有简介AI 评分 80分

阅读学术论文,评估主要论点、证据、研究方法、创新性及其与相关研究的关系,具体指出优点与不足,并整理成包含改进建议的评审。

  • 了解论文成果与局限
  • 起草同行评审意见
  • 检查实验设计与可复现性
bytedance/deer-flow8.4万2026年10月21日 更新

blocking-io-guard

免费有简介AI 评分 90分

检测可能阻塞Python异步处理的输入输出调用,并推动修复和补充测试。验证问题重现时测试确实失败、恢复修复后通过,以监测问题再次出现。

  • 检查异步Python代码变更
  • 排查整个代码库的输入输出阻塞风险
  • 补充清理与错误分支的测试
bytedance/deer-flow8.4万2026年10月21日 更新

bootstrap

免费有简介AI 评分 90分

通过对话梳理工作、偏好及希望交由AI判断的范围,创建或更新规定AI伙伴行为的SOUL.md,并明确说话方式和表达异议的规则。

  • 首次设定AI的性格与角色
  • 调整语气及表达异议的方式
  • 梳理AI可自主判断的范围
bytedance/deer-flow8.4万2026年10月21日 更新

chart-visualization

免费有简介AI 评分 80分

根据数据特点,从26种图表和示意图中选择合适的形式并生成图片,可展示时间变化、比较、分布和关联,并返回图片链接及生成时使用的完整配置。

  • 展示随时间变化的趋势
  • 比较类别与构成比例
  • 展示分布与相关性
bytedance/deer-flow8.4万2026年10月21日 更新

code-documentation

免费有简介AI 评分 100分

阅读实际源代码,按项目规模编写或完善包含安装步骤与用法示例的README、API文档、架构图、开发者指南及变更日志。

  • 编写含安装步骤与用法示例的README
  • 记录公开函数、参数与返回值
  • 为新开发者编写架构与贡献指南
bytedance/deer-flow8.4万2026年10月21日 更新

consulting-analysis

免费有简介AI 评分 100分

为市场、竞争对手、消费者或财务调研设计章节、所需数据和图表计划,再将已收集的信息整理为包含对比、来源及战略启示的报告,并明确标注缺失数据。

  • 设计调研章节和数据收集需求
  • 将市场与竞争调研整理成报告
  • 梳理消费者洞察与品牌战略
bytedance/deer-flow8.4万2026年10月21日 更新

查看 bytedance 的全部技能

报告此技能的问题