goalflow
БесплатноЗапускает вложенные скриптыНе проверенRoute goalflow (wanmol/goal-flow) work — a LangGraph framework that combines workflow graphs with agent loops — into exactly one mode: fit check, transpiling…
от akillness★ 63 звезды на GitHubОб этом скилле
goalflow — Graph-Orchestrated Agent Loop
goalflow gives you two ways to build LLM applications on LangGraph and lets
you combine them: visual-first (design in Dify, transpile the exported DSL
into a LangGraph Python file you own) and code-first (ReAct/Deep agent
loops via the vendored agent_kit). A graph node can host an agent loop,
and an agent can call sub-workflows as tools.
Two things shape almost every answer about this project:
- It is extracted from an internal production system. The generalizable core is real; the defaults are opinionated (Qwen/DashScope, Alibaba OSS).
- Its own docs open with a CAUTION: live credentials remain in git history. That is a blocker before any public push, not a footnote.
When to use this skill
- Converting a Dify flow into version-controlled LangGraph code without staying on Dify's runtime
- Choosing or authoring workflow nodes, edges, branch routing, or iteration/loop subgraphs
- Building an agent loop with
agent_kit— graph builder, middleware chain, harness/model router, executable skills - Wiring the serving layer: data adapters, SSE streaming, HITL interrupts, Redis/MySQL, and workflow registration
- Authoring
SKILL.mdcapabilities that get LLM-matched and injected into prompts - Auditing the repo before publishing it or deploying it anywhere real
When not to use this skill
- Plain LangGraph graph/state/checkpointer API questions →
langgraph-fundamentals,langgraph-persistence - Generic LangChain chains, retrievers, or RAG design →
langchain-fundamentals,langchain-rag - Generic HITL patterns not tied to this engine →
langgraph-human-in-the-loop deepagentsused directly, outsideagent_kit's wrapper →deep-agents-core- Authoring skills for this repo's agent catalog rather than goalflow's
runtime →
skill-standardization,write-a-skill - LLM tracing/eval platform selection →
langsmith,opik
Instructions
Step 1: Capture the intake packet
Four facts decide the mode:
- Starting artifact — a Dify DSL export, an empty repo, an existing
BaseWorkflowsubclass, or a running deployment - Target shape — a workflow graph, an agent loop, or a graph node that hosts a loop
- Client protocol — Dify-native (default), OpenAI-compatible, or custom
- Environment reality — is Redis and MySQL actually available? MySQL backs the checkpointer, and the checkpointer is what makes stop/resume and HITL work at all
Step 2: Pick exactly one mode
| Mode | Use when | Produces |
|---|---|---|
orient |
It is unclear goalflow is the right tool | A fit verdict, or an honest route-out to plain LangGraph |
transpile |
A Dify DSL export exists | A generated BaseWorkflow subclass, registered and runnable |
build |
Authoring or fixing the graph itself | Node choices, edge/branch routing, error strategy |
agent |
The job is an open-ended tool-use loop | An Agent/AgentBaseNode with builder, middleware, harness |
serve |
Wiring the runtime to clients | Adapter, endpoints, streaming, HITL, storage, registration |
harden |
Before publishing or deploying | A blocker list from the pre-publish gate |
Run harden before any push to a public or shared remote, regardless of which
mode the user asked for.
Step 3: Check the environment read-only
bash .agent-skills/goalflow/scripts/goalflow.sh doctor
bash .agent-skills/goalflow/scripts/goalflow.sh doctor /path/to/goal-flow
doctor reports Python version, the core packages (langgraph, fastapi,
redis, pymysql, sqlalchemy, langchain-openai), whether goalflow and
agent_kit import, and which .env keys are set — by name only, never by
value. It installs nothing and starts no server.
Step 4: Transpile before hand-writing a graph
The transformer is a two-stage pipeline: parse the DSL into an internal graph model, then emit Python via a double-dispatch visitor.
python -m goalflow.tool.dify_transformer.wf_transformer_tool \
--dsl path/to/my_flow.yml \
--out my_flow_workflow.py \
--class MyFlowWorkflow
Two facts that prevent the common mistakes:
- The parse is read-only. Host-portability rewrites happen on an in-memory copy; your export file is never modified.
- The substitution table is
DifyDslParser.DEFAULT_HOST_SUBSTITUTIONS. It encodes the original authors' internal hostnames. Pass your ownhost_substitutions=, or{}to disable it — do not inherit theirs.
Generation is only half the job. A generated class does nothing until it is registered (Step 6). Details in references/dify-transpile.md.
Step 5: Author nodes against the real BaseNode contract
You implement exactly one method, call(self, state), and its return type
encodes both state update and routing:
| Return | Meaning |
|---|---|
dict |
merge into state, continue to next_node_ids |
Command(update=, goto=) |
Установить goalflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepВложенные файлы
FAQ
Что делает скилл goalflow?
Route goalflow (wanmol/goal-flow) work — a LangGraph framework that combines workflow graphs with agent loops — into exactly one mode: fit check, transpiling a Dify DSL export into runnable LangGraph Python, authoring workflow nodes and edges, building an `agent_kit` loop with middleware and a harness, wiring the serving layer (data adapters, SSE streaming, HITL, Redis/MySQL, API-key registration), or running the pre-publish security gate. Use when the user wants Dify's visual design without Dify's runtime, a graph node that hosts an agent loop, an OpenAI-compatible wire protocol over their own workflows, or prompt-injected `SKILL.md` capabilities. Triggers on: goalflow, goal-flow, dify to langgraph, dify transpiler, dify DSL export, BaseWorkflow, agent_kit, AgentBaseNode, DataAdapter, chunk processor, HITL interrupt, dify2langgraph. Route plain graph-API questions to `langgraph-fundamentals`.
Как установить скилл goalflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл goalflow запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic