LEAP
LEAP builds skills through two pipelines: Branch A distills a skill from raw data, while Branch B combines multiple skills into one. It is called by the main…
SOP for building LLM applications on Dify — visual workflow + chatflow + agent + RAG knowledge base + plugin marketplace + observability, self-hostable. Use when shipping LLM apps fast with a "no-code to pro-code" gradient, especially when non-engineers need to co-author the
$ npx -y skills add agentsope/SkillAlchemy --skill agentsop-dify --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agentsop-difyContext preview
The summary Claude sees to decide when to auto-load this skill.
SOP for building LLM applications on Dify — visual workflow + chatflow + agent + RAG knowledge base + plugin marketplace + observability, self-hostable. Use when shipping LLM apps fast with a "no-code to pro-code" gradient, especially when non-engineers need to co-author the
name: agentsop-dify version: 1.0.0 description: SOP for building LLM applications on Dify — visual workflow + chatflow + agent + RAG knowledge base + plugin marketplace + observability, self-hostable. Use when shipping LLM apps fast with a "no-code to pro-code" gradient, especially when non-engineers need to co-author the flow. domain: llm-application-platform framework: Dify framework_version: ">=1.0, current 1.14.x (May 2026)" trigger_keywords: - "Dify workflow" - "Dify chatflow" - "Dify agent" - "Dify knowledge base" - "visual LLM workflow" - "self-host LLM platform" - "low-code AI app" - "Dify plugin" - "Dify DSL" - "LLMOps platform" when_to_use: - "shipping an internal LLM app (Q&A bot, doc-grounded copilot, content pipeline) in days not weeks" - "team has a mix of PMs / ops / engineers and needs a shared visual artifact (chatflow / workflow canvas)" - "need RAG + tools + monitoring + auth + web UI + API in one box (vs. assembling from libraries)" - "enterprise asks for self-hostable, on-prem, air-gapped LLM platform with multi-tenant workspaces" - "prototype-to-production gradient: start visual, drop into Code/Python nodes when needed" when_not_to_use: - "high-throughput production (>10 QPS per pod) — Dify hits a known per-node DB-query bottleneck [memo.d.foundation/breakdown/dify]" - "sub-second latency / real-time streaming pipelines — workflow engine overhead dominates" - "human-in-the-loop with pause-and-wait-for-user semantics — not supported as of v1.14 [github.com/langgenius/dify/issues/21455]" - "model training / fine-tuning workflows — Dify is inference + orchestration only" - "your team is 100% engineers already shipping LangChain/LangGraph in code — Dify's visual layer is overhead, not leverage" - "deeply custom retrieval (graph RAG, late interaction, hand-tuned chunking) — RAGFlow or a raw stack wins [sider.ai/blog/ai-tools/dify-vs-ragflow]"
> 框架定位: "An open-source platform for building agentic workflows" — visual workflow + RAG + agent + monitoring + deploy in one box, self-hostable. [docs.dify.ai/en/introduction], [github.com/langgenius/dify]
> "Dify is the only tool that gives you data ingestion, RAG, an API, and a polished, shareable web UI in one click." [learnwithparam.com/blog/batteries-included-rag-platforms-dify-ragflow-onyx]
---
> Dify 的核心价值是 **"把 LLM 应用工程的脚手架打平"**——auth、API、UI、向量库、模型 provider、日志、版本——而不是替代 LLM 编排框架本身的表达力。
判断公式:
---
[Studio] ← Visual canvas (workflow / chatflow / agent / chatbot / text-gen) ↓ 编排 [Apps] ← 5 种 app 类型,全部跑在统一 Graph Engine 上 ↓ 依赖 [Knowledge] ← RAG pipeline (ingest → chunk → embed → index → retrieve → rerank) ↓ + 调用 [Tools/Plugins] ← Marketplace: Models / Tools / Agent Strategies / Extensions / Bundles ↓ 观察 [Monitoring] ← 内建 logs + 外接 LangSmith / Langfuse / Arize Phoenix / Opik
参考: [docs.dify.ai/en/introduction], [dify.ai/blog/dify-plugin-system-design-and-implementation]
| App Type | 触发模型 | 记忆 | 编排方式 | 典型场景 | |---|---|---|---|---| | **Chatbot** (legacy) | 多轮对话 | 内置 | 单 prompt + tools | 简单客服、FAQ bot | | **Agent** (legacy) | 多轮对话 | 内置 | ReAct / FC 自主决策 | 自治工具使用、多步推理 | | **Text Generator** (legacy) | 单次调用 | 无 | 单 prompt | 文案生成、翻译 | | **Workflow** | 单次调用 / 批处理 | **无** | 可视化 DAG | API 后端、批量任务、ETL | | **Chatflow** | 每轮对话触发整图 | **有** (conversation vars) | 可视化 DAG + 对话状态 | 复杂对话流、guided dialogue |
**核心决策树**:
有对话上下文需求? ├─ 是 ─→ Chatflow (复杂逻辑) 或 Chatbot/Agent (简单) └─ 否 ─→ Workflow (复杂逻辑) 或 Text Generator (单 prompt) 需要 LLM 自主选择工具 / 多步推理? ├─ 是 ─→ Agent app 或 Workflow + Agent Node (推荐, 1.9+) └─ 否 ─→ Workflow / Chatflow + 显式节点编排
参考: [docs.dify.ai/en/use-dify/getting-started/key-concepts], [hellodify.com/en/docs/workflow/workflow-chatflow-difference], [zediot.com/blog/dify-difference-between-agent-and-workflow]
> "Workflow behaves more like a script… each Workflow run is a completely fresh start. Chatflow… is a robot that can interact with users in a loop." [hellodify.com/en/docs/workflow/workflow-chatflow-difference]
| 类别 | 节点 | 用途 | |---|---|---| | **基础** | Start, End, Answer | 入口 / 出口 | | **LLM** | LLM, Question Classifier, Parameter Extractor | 调模型 | | **RAG** | Knowledge Retrieval | 查知识库 | | **逻辑** | IF/ELSE, Iteration, Loop, Variable Assigner, Variable Aggregator | 控制流 | | **代码** | Code (Python/Node.js), Template (Jinja2) | 自定义逻辑 | | **外部** | HTTP Request, Tool, Agent Node | 调外部 / 子 agent | | **数据** | List Ope
Turn people, methods, and experience into installable, reusable agent skills. SkillAlchemy is an open-world agent skill creation system that turns underspecified skill briefs and open-world sources into installable, reusable agent skills.
LEAP builds skills through two pipelines: Branch A distills a skill from raw data, while Branch B combines multiple skills into one. It is called by the main…
Lens — Add a cognitive lens to any problem. It accepts a task description and produces an enhanced description that surfaces hidden dimensions, prerequisites,…
Cross-framework enhancement overlay for choosing a multi-agent topology BEFORE writing any agent. A binary-question rubric — is single-agent + tools enough? do…
SOP for terminal-based, git-native AI pair programming with Aider (git work-tree + tree-sitter repo-map + edit-format + human-in-loop REPL). Use when editing…
Screens biomedical / life-science papers for signs of data fabrication, image manipulation, and statistical anomalies, using the detection techniques distilled…
Universal discipline for any LM-driven loop — agent retries, plan-act-observe, multi-agent handoffs, optimiser passes, test-fix cycles. Encodes the one rule…