difywf

difywf is a skill for Claude Code, Codex from alexjiaguo/dify-mcp. It costs 72 tokens per session (907 once invoked), scanned A, original, Apache-2.0.

A command-line and MCP tool for managing Dify applications, workflows, chatflows, agents, knowledge bases, retrieval-augmented generation pipelines, and access tokens. Dify is a platform for building AI applications and workflows.

In plain words
What is it for?
Use it to create and update Dify workflows, import or export definitions, manage knowledge and retrieval pipelines, handle authentication, and operate Dify agents.
Why use it?
Managing Dify through its interface can be repetitive and difficult to validate consistently. This tool exposes programmatic commands for building, testing, publishing, debugging, and migrating those resources.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create and update Dify workflows, import or export definitions, manage knowledge and retrieval pipelines, handle authentication, and operate Dify agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexjiaguo/dify-mcp/difywf
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alexjiaguo/dify-mcp --skill difywf
Clone the repo
git clone --depth 1 https://github.com/alexjiaguo/dify-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for difywf

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexjiaguo/dify-mcp/difywf/github.svg)](https://agentmods.dev/skills/alexjiaguo/dify-mcp/difywf)
Your own site
<a href="https://agentmods.dev/skills/alexjiaguo/dify-mcp/difywf"><img src="https://agentmods.dev/badge/skills/alexjiaguo/dify-mcp/difywf/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for difywf

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexjiaguo/dify-mcp/difywf"><img src="https://agentmods.dev/badge/skills/alexjiaguo/dify-mcp/difywf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.00907
Opus 5.5 $0.00029 $0.00363
Sonnet 5.5 $0.00014 $0.00181
Haiku 4.5 $0.00007 $0.00091

Measured yesterday against content hash d491be28361d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

difywf scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/difywf/SKILL.md · 37 lines

How it starts

The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.

difywf (dify-mcp)

Programmatic control over Dify (1.16–1.20) via 200 tools across 22 namespaces — identical JSON contract ({ ok, data } or { ok: false, error: { code, message, retryable } }) on both MCP and CLI.

Surfaces

  • MCP attached: Call tools with underscore names (e.g., workflow_sync_draft, pat_list). Start with agent_guide or read resource difywf://guide if you need node schemas or compatibility notes.
  • CLI (no MCP): Run difywf <namespace> <verb> [flags] (e.g., difywf wf draft sync <app-id> --graph graph.json --dry-run). Run difywf agent guide for the full playbook or difywf --help for all commands. For large outputs, pass --output-file <path>.

Auth & Scope Boundary

Check auth.status / difywf auth status first:

  • Console authoring (/console/api): Required for creating apps, editing/syncing drafts, publishing, DSL/ifpkg import/export, and pat.* management. Uses Cookie+CSRF (auth.import_cookies, auth.login_console, or DIFY_CONSOLE_COOKIE).
  • OpenAPI (/openapi/v1, enabled by default in Dify 1.20+): Accepts a Personal Access Token (dpat_..., managed via pat.*) or OAuth device token via DIFY_OPENAPI_TOKEN, DIFY_TOKEN, --openapi-token, or auth.set_tokens. Covers resource calls/discovery (apps, :run, :stop, /events, /files, HITL forms, workspaces), not authoring or DSL import/export.

Golden Path: Spec → Published Workflow

  1. Locate or create app: app.list / app.get / app.create (workflow | advanced-chat | chat | agent-chat | completion).
  2. Fetch node schemas: workflow.node_defaults for each node type you plan to wire.
  3. Build graph: { nodes: [{ id, data: { type, ... } }], edges: [{ source, target, sourceHandle, targetHandle }] } with exactly one start node, template refs {{#nodeId.var#}}, selectors ["nodeId", "var"], and upstream-only references (no cycles).
  4. Validate offline: workflow.validate — fix every error-level issue before touching the server.
  5. Preview & sync: workflow.sync_draft with dry_run=true (--dry-run), review the diff, then sync without dry_run. On stale-hash (VALIDATION_FAILED), refetch workflow.get_draft and retry.
  6. Test-run: workflow.run_draft with inputs and inspect events (workflow.events / runs.node_executions).
  7. Publish: workflow.publish with confirm=true (--yes) once a model provider is configured (provider.list).

Read the full file on GitHub · 37 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 37 lines · 72 tokens per session scan A d491be28361d

Subscribe to this mod's changes

difywf is a skill published in the GitHub repository alexjiaguo/dify-mcp (32 stars, last pushed 2d ago), licensed Apache-2.0. It adds 72 tokens to every session and 907 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-25.

Related

difywf compared with skills from other repositories

difywf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
difywfalexjiaguo/dify-mcpSkill322d agoApache-2.0A72Claude Code, Codex
molecular-ragsynthetic-sciences/openscienceSkill4.4kyesterdayApache-2.0A40Claude Code, Codex
llmwikiatomicstrata/llm-wiki-compilerSkill2.3kyesterdayMITA66Claude Code, Codex
building-agentsericrisco/rsc-harnessSkill669yesterdayMITA85Claude Code, Codex
bailian-climodelstudioai/cliSkill374todayApache-2.0A542Claude Code, Codex
bailian-kbmodelstudioai/cliSkill374todayApache-2.0A236Claude Code, Codex
genai-runtimemendixlabs/mxcliSkill145todayApache-2.0A101Claude Code