Agent skill

Dify Command Line with difyctl

by langgenius in langgenius/dify

Base skill for the difyctl CLI: discover a Dify server's operations through help output and run them as commands, always with JSON output.

Custom licenceAuto-check passedAI & LLM Engineering

Install Dify Command Line with difyctl

skills CLI
$ npx skills add langgenius/dify --skill difyctl -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install langgenius/dify difyctl --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/langgenius/dify.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/difyctl .claude/skills/difyctl && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
difyctl
GitHub stars
158k
Token cost
~1.4k tokens
SKILL.md length
789 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
Custom licence

At a glance

Base skill for the difyctl CLI: discover a Dify server's operations through help output and run them as commands, always with JSON output.

  • Works in 4 steps: difyctl help --json: the map. Start here. → difyctl help --json: everything under… → difyctl help --json: search by plain… → …
  • Running a Dify workflow or chat app from the command line
  • SKILL.md covers Finding what the CLI can do, Running an operation, difyctl-only flags and Reading results, plus 4 more sections
  • Needs DIFY_TOKEN

What it does

difyctl talks to a Dify server, and its business commands are not built in. The server publishes a catalog of operations and each one becomes a command found at run time, so IDs such as `run.console_app.chat`, typed as `difyctl run console_app chat`, must be looked up rather than assumed. The agent always passes `--json`, or sets `DIFY_OUTPUT=json`, so help text and errors come back as JSON. Four views under `help` cover the map, one namespace, a search by plain words that returns the top 20 entries plus a total, and a single descriptor with its input schema, examples and pinned values such as `workspace_id`.

Running an operation turns each top-level input field into a flag, with dashes for underscores. Scalars take a value, objects and lists of objects take a JSON literal or `@file.json`, and lists of scalars repeat the flag. The whole body can be sent with `--input` as inline JSON, a file or stdin, and field flags merge over it. `--all` adds operations the server marks internal. When you are not logged in or the server is unreachable, only the local commands appear, with a note on stderr.

When your agent uses it

  • Running a Dify workflow or chat app from the command line
  • Finding which operations a Dify server exposes
  • Scripting Dify operations with JSON input from a file or stdin

Example prompts

  • “Find the difyctl command for uploading a file to my Dify server and show its input schema.”
  • “Run my Dify workflow app with these inputs and return the JSON result.”
  • “List everything under the get namespace in difyctl.”

Requirements

  • The `difyctl` CLI
  • A reachable Dify server and a logged-in session

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. difyctl help --json: the map. Start here.
  2. difyctl help --json: everything under one namespace (difyctl help get). The bare namespace, difyctl get --json, prints the same.
  3. difyctl help --json: search by plain words (difyctl help upload file), top 20 entries plus total. Widen the words when nothing fits.
  4. difyctl help --json: one descriptor, dotted or spaced id. For an operation: input (JSON Schema), bind, kind, examples and pins (values…

What it can do on your machine

Read from SKILL.md and the folder at commit cecdb28. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • DIFY_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dify Command Line with difyctl loads about 1.4k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 789 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 789 words (~1,395 tokens).

“difyctl talks to a Dify server. Business commands are not built in: the server publishes a catalog of operations, and each one is a command you discover at run time.”

— opening of SKILL.md by langgenius, Custom licence
name
difyctl

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/difyctl of langgenius/dify.

Open the folder on GitHubat commit cecdb28

Compare with similar skills

Dify Command Line with difyctl next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dify Command Line with difyctl compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dify Command Line with difyctl this skilllanggenius/dify158k—~1.4kAutomated safety check: PassCustom licence
Agent Buildern8n-io/n8n207k—~2.5kAutomated safety check: PassCustom licence
n8n AI Agent Designczlonkowski/n8n-skills6.4k—~6.8kAutomated safety check: PassMIT
Agent Skills PlatformFrancyJGLisboa/agent-skills-platform2.4k—~12kAutomated safety check: NotesMIT
OpenServ Agent SDKinternet-court/internet-court-skill6.4k2 repos~4.9kAutomated safety check: NotesMIT
Opik External Integrationscomet-ml/opik22k—~1.3kAutomated safety check: PassApache-2.0

Similar skills

  • Agent Builder

    n8n-io/n8n

    Official

    Load immediately after an Agent intent. An agent skill from n8n-io/n8n.

    207k GitHub stars~2.5k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • n8n AI Agent Design

    czlonkowski/n8n-skills

    Guide to designing n8n AI agents: choosing between Agent, chain, classifier and extractor nodes, wiring model, memory, tools and parser, plus RAG and human review.

    6.4k GitHub stars~6.8k tokensUpdated 22 days ago
    AI & LLM EngineeringAuto-check passed
  • Agent Skills Platform

    FrancyJGLisboa/agent-skills-platform

    Create cross-platform agent skills from workflow descriptions.

    2.4k GitHub stars~12k tokensUpdated 23 days ago
    Agent WorkflowsAuto-check: notes
  • OpenServ Agent SDK

    internet-court/internet-court-skill

    Guides building and deploying TypeScript agents on the OpenServ platform, with runnable and runless capabilities, wallet-based sign-up and a local tunnel for development.

    6.4k GitHub starsUsed in 2 repos~4.9k tokens
    AI & LLM EngineeringAuto-check: notes
  • Builds Opik tracing integrations that live outside the Opik repository, either as standalone opik-* packages or as contributions into projects such as LiteLLM or Dify.

    22k GitHub stars~1.3k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Agentsop Framework Selection

    agentsope/SkillAlchemy

    Neutral, framework-agnostic decision tree for project kickoff: "which agent / RAG / LLM framework should I reach for?" Synthesizes the ecosystem sections of 7 landmark-project SOPs (LangGraph…

    459 GitHub stars~5.8k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed

More from langgenius/dify

  • Backend Code Review

    langgenius/dify

    Reviews backend code under api/ for concrete, reproducible defects, routes to rule packs for architecture, schema, repositories and SQLAlchemy, and ranks findings from P0 to P3.

    158k GitHub stars~676 tokensUpdated today
    Auto-check passed
  • Guides changes and reviews of the Cucumber and Playwright end-to-end suite under `e2e/`: feature files, step definitions, support code, tags, locators and assertions.

    158k GitHub stars~682 tokensUpdated today
    Auto-check passed
  • Frontend Code Review

    langgenius/dify

    Reviews frontend changes under `web/` or `packages/dify-ui/` for concrete defects and broken project contracts, using routed rule packs and a severity scale for findings.

    158k GitHub stars~938 tokensUpdated today
    Auto-check passed
  • Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data…

    158k GitHub stars~626 tokensUpdated today
    Auto-check passed
  • Dify Frontend Testing

    langgenius/dify

    Use when writing or changing Vitest or React Testing Library tests under `web/` or `packages/dify-ui/`, or when the user explicitly requests frontend test…

    158k GitHub stars~242 tokensUpdated today
    Auto-check passed

Works with

Questions about Dify Command Line with difyctl

What does Dify Command Line with difyctl do?

Base skill for the difyctl CLI: discover a Dify server's operations through help output and run them as commands, always with JSON output. difyctl talks to a Dify server, and its business commands are not built in.chat`, typed as `difyctl run console_app chat`, must be looked up rather than assumed.

When should I use Dify Command Line with difyctl?

Dify Command Line with difyctl fits situations like: running a Dify workflow or chat app from the command line; finding which operations a Dify server exposes; scripting Dify operations with JSON input from a file or stdin.

How do I install Dify Command Line with difyctl in Claude Code?

Run `npx skills add langgenius/dify --skill difyctl -a claude-code`. Or copy the skill folder (skills/difyctl in langgenius/dify) into .claude/skills/difyctl in your project. Claude Code loads it when a task matches its description.

How do I install Dify Command Line with difyctl in Codex?

Run `npx skills add langgenius/dify --skill difyctl -a codex`. Or copy the skill folder (skills/difyctl in langgenius/dify) into .agents/skills/difyctl in your project. Codex loads it when a task matches its description.

Can I use Dify Command Line with difyctl in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add langgenius/dify --skill difyctl -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/difyctl, .gemini/skills/difyctl, .github/skills/difyctl and .opencode/skills/difyctl in your project.

What does Dify Command Line with difyctl need to run?

Going by SKILL.md and its folder, Dify Command Line with difyctl needs credentials named DIFY_TOKEN. Our summary lists: The `difyctl` CLI; A reachable Dify server and a logged-in session.

Does Dify Command Line with difyctl access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dify Command Line with difyctl safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dify Command Line with difyctl use?

Dify Command Line with difyctl has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Dify Command Line with difyctl use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Dify Command Line with difyctl?

Skills that share tags, products or a category with Dify Command Line with difyctl: Agent Builder (n8n-io/n8n, 207k stars), n8n AI Agent Design (czlonkowski/n8n-skills, 6.4k stars), Agent Skills Platform (FrancyJGLisboa/agent-skills-platform, 2.4k stars) and OpenServ Agent SDK (internet-court/internet-court-skill, 6.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dify Command Line with difyctl?

langgenius (a GitHub organization) maintains it in langgenius/dify, which has 158,055 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 8, 2026.

Source: langgenius/dify on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.