CommunityProgramación y desarrollogithub.com

claude-to-deerflow

Interactúa con la plataforma de agentes AI DeerFlow a través de su API HTTP. Usa esta habilidad para enviar mensajes o preguntas a DeerFlow para investigación/análisis, iniciar un hilo de conversación, verificar el estado o la salud de DeerFlow, listar modelos/habilidades/agentes disponibles, gestionar la memoria de DeerFlow, cargar archivos a hilos, o delegar tareas complejas de investigación a DeerFlow.

¿Qué es claude-to-deerflow?

Esta habilidad permite que Claude se comunique directamente con una instancia en ejecución de DeerFlow, una plataforma de agentes AI construida sobre LangGraph que orquesta subagentes para tareas como investigación, ejecución de código y navegación web. A través de la API HTTP, puedes enviar mensajes en modo streaming, gestionar hilos de conversación, listar modelos y habilidades disponibles, activar o desactivar habilidades, y cargar archivos. Es útil para delegar investigaciones profundas o análisis complejos que DeerFlow puede manejar con modos como flash, estándar, pro y ultra, que controlan el nivel de planificación y uso de subagentes. La habilidad incluye un script auxiliar para facilitar el envío de mensajes y la recolección de respuestas, y proporciona orientación sobre cómo analizar el flujo SSE para extraer la respuesta final de la AI.

Compatible con✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bytedance/deer-flow/tree/main/skills/public/claude-to-deerflow

Installed? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Habilidad DeerFlow

Comunícate con una instancia de DeerFlow en ejecución a través de su API HTTP. DeerFlow es una plataforma de agentes AI construida sobre LangGraph que orquesta subagentes para investigación, ejecución de código, navegación web y más.

Arquitectura

DeerFlow expone dos superficies de API detrás de un proxy inverso Nginx:

ServicioPuerto DirectoVía ProxyPropósito
API Gateway8001$DEERFLOW_GATEWAY_URLEndpoints REST y runtime de agente integrado
API compatible con LangGraph8001$DEERFLOW_LANGGRAPH_URLHilos de agente, ejecuciones, streaming

Variables de Entorno

Todas las URLs son configurables mediante variables de entorno. Lee estas variables de entorno antes de realizar cualquier solicitud.

VariableValor por DefectoDescripción
DEERFLOW_URLhttp://localhost:2026URL base del proxy unificado
DEERFLOW_GATEWAY_URL${DEERFLOW_URL}URL base de la API Gateway (modelos, habilidades, memoria, cargas)
DEERFLOW_LANGGRAPH_URL${DEERFLOW_URL}/api/langgraphURL base de la API de LangGraph (hilos, ejecuciones)

Al hacer llamadas con curl, siempre resuelve las URLs de esta manera:

# Resolver URLs base desde las variables de entorno (haz esto PRIMERO antes de cualquier llamada a la API)
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}"

Operaciones Disponibles

1. Verificación de Salud

Verifica que DeerFlow esté en ejecución:

curl -s "$DEERFLOW_GATEWAY_URL/health"

2. Enviar un Mensaje (Streaming)

Esta es la operación principal. Crea un hilo y transmite la respuesta del agente.

Paso 1: Crear un hilo

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

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

Paso 2: Transmitir una ejecución

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": "TU MENSAJE AQUÍ"}]
        }
      ]
    },
    "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>"
    }
  }'

La respuesta es un flujo SSE. Cada evento tiene el formato:

event: <tipo_de_evento>
data: <datos_json>

Tipos de evento clave:

  • metadata — metadatos de la ejecución, incluido run_id
  • values — instantánea completa del estado con el array messages
  • messages-tuple — actualizaciones incrementales de mensajes (fragmentos de texto de AI, llamadas a herramientas, resultados de herramientas)
  • end — el flujo ha terminado

Modos de contexto (se configuran mediante context):

  • Modo Flash: thinking_enabled: false, is_plan_mode: false, subagent_enabled: false
  • Modo Estándar: thinking_enabled: true, is_plan_mode: false, subagent_enabled: false
  • Modo Pro: thinking_enabled: true, is_plan_mode: true, subagent_enabled: false
  • Modo Ultra: thinking_enabled: true, is_plan_mode: true, subagent_enabled: true

3. Continuar una Conversación

Para enviar mensajes de seguimiento, reutiliza el mismo thread_id del paso 2 y envía otra ejecución POST con el nuevo mensaje.

4. Listar Modelos

curl -s "$DEERFLOW_GATEWAY_URL/api/models"

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

5. Listar Habilidades

curl -s "$DEERFLOW_GATEWAY_URL/api/skills"

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

6. Habilitar/Deshabilitar una Habilidad

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

7. Listar Agentes

curl -s "$DEERFLOW_GATEWAY_URL/api/agents"

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

8. Obtener Memoria

curl -s "$DEERFLOW_GATEWAY_URL/api/memory"

Devuelve resúmenes de contexto de usuario, hechos e historial de conversaciones.

9. Cargar Archivos a un Hilo

curl -s -X POST "$DEERFLOW_GATEWAY_URL/api/threads/<thread_id>/uploads" \
  -F "files=@/ruta/al/archivo.pdf"

Soporta PDF, PPTX, XLSX, DOCX — se convierte automáticamente a Markdown.

10. Listar Archivos Cargados

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

11. Obtener Historial de un Hilo

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

12. Listar Hilos

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

Script de Uso

Para enviar mensajes y recopilar la respuesta completa, usa el script auxiliar:

bash /ruta/a/habilidades/claude-to-deerflow/scripts/chat.sh "Tu pregunta aquí"

Consulta scripts/chat.sh para la implementación. El script:

  1. Verifica la salud
  2. Crea un hilo
  3. Transmite la ejecución y recopila la respuesta final de AI
  4. Imprime el resultado

Análisis de Salida SSE

El flujo devuelve eventos SSE. Para extraer la respuesta final de AI de un evento values:

  • Busca el último bloque event: values
  • Analiza su data JSON
  • El array messages contiene todos los mensajes; el último con type: "ai" es la respuesta
  • El campo content de ese mensaje es la respuesta de texto de la AI

Manejo de Errores

  • Si la verificación de salud falla, DeerFlow no está en ejecución. Informa al usuario que necesita iniciarlo.
  • Si el flujo devuelve un evento de error, extrae y muestra el mensaje de error.
  • Problemas comunes: puerto no abierto, servicios aún iniciándose, errores de configuración.

Consejos

  • Para preguntas rápidas, usa el modo flash (más rápido, sin planificación).
  • Para tareas de investigación, usa el modo pro o ultra (habilita la planificación y subagentes).
  • Puedes cargar archivos primero y luego referenciarlos en tu mensaje.
  • Los IDs de hilo persisten — puedes volver a una conversación más tarde.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bootstrap

Generate a personalized SOUL.md through a warm, adaptive onboarding conversation. Trigger when the user wants to create, set up, or initialize their AI partner's identity — e.g., "create my SOUL.md", "bootstrap my agent", "set up my AI partner", "define who you are", "let's do onboarding", "personalize this AI", "make you mine", or when a SOUL.md is missing. Also trigger for updates: "update my SOUL.md", "change my AI's personality", "tweak the soul".

bytedance/academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints, or scientific publications. Supports comprehensive structured reviews covering methodology assessment, contribution evaluation, literature positioning, and constructive feedback generation. Trigger on queries involving paper URLs, uploaded PDFs, arXiv links, or requests like "review this paper", "analyze this research", "summarize this study", or "write a peer review".

bytedance/chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

bytedance/claude-to-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.

bytedance/consulting-analysis

Use this skill when the user requests to generate, create, or write professional research reports including but not limited to market analysis, consumer insights, brand analysis, financial analysis, industry research, competitive intelligence, investment due diligence, or any consulting-grade analytical report. This skill operates in two phases — (1) generating a structured analysis framework with chapter skeleton, data query requirements, and analysis logic, and (2) after data collection by other skills, producing the final consulting-grade report with structured narratives, embedded charts, and strategic insights.

bytedance/data-analysis

Use this skill when the user uploads Excel (.xlsx/.xls) or CSV files and wants to perform data analysis, generate statistics, create summaries, pivot tables, SQL queries, or any form of structured data exploration. Supports multi-sheet Excel workbooks, aggregation, filtering, joins, and exporting results to CSV/JSON/Markdown.

bytedance/deep-research

Use this skill instead of WebSearch for ANY question requiring web research. Trigger on queries like "what is X", "explain X", "compare X and Y", "research X", or before content generation tasks. Provides systematic multi-angle research methodology instead of single superficial searches. Use this proactively when the user's question needs online information.

bytedance/find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

bytedance/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

bytedance/github-deep-research

Conduct multi-round deep research on any GitHub Repo. Use when users request comprehensive analysis, timeline reconstruction, competitive analysis, or in-depth investigation of GitHub. Produces structured markdown reports with executive summaries, chronological timelines, metrics analysis, and Mermaid diagrams. Triggers on Github repository URL or open source projects.

bytedance/image-generation

Use this skill when the user requests to generate, create, imagine, or visualize images including characters, scenes, products, or any visual content. Supports structured prompts and reference images for guided generation.

bytedance/podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/ppt-generation

Use this skill when the user requests to generate, create, or make presentations (PPT/PPTX). Creates visually rich slides by generating images for each slide and composing them into a PowerPoint file.

bytedance/skill-creator

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

bytedance/surprise-me

Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".

bytedance/vercel-deploy

Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.

bytedance/video-generation

Use this skill when the user requests to generate, create, or imagine videos. Supports structured prompts and reference image for guided generation.

bytedance/web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

chart-visualization

This skill should be used when the user wants to visualize data. It intelligently selects the most suitable chart type from 26 available options, extracts parameters based on detailed specifications, and generates a chart image using a JavaScript script.

Skills relacionados