Logo di Difyctl

Difyctl

OrganizzazionePopolare
langgenius
difyctl

Base skill for the difyctl CLI: find any command or Dify operation through help and run it as a command. Use when the task involves difyctl or a Dify server from the command line.

Panoramica

Pubblicato dalanggenius
Repositorydify
Nome della skilldifyctl
Stelle
157.6K
Fork
24.9K
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da langgenius su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Difyctl in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/langgenius/dify/tree/main/skills/difyctl
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/langgenius/dify.git /tmp/dify
mkdir -p .claude/skills
cp -r /tmp/dify/skills/difyctl .claude/skills/difyctl
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Difyctl in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Difyctl non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Difyctl non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

difyctl

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.

Always pass --json. Help and errors are text on a terminal and JSON in a pipe; --json (or DIFY_OUTPUT=json) forces JSON. Results and streams are always JSON.

Finding what the CLI can do

An operation id is dotted, run.console_app.chat, and is typed as words: difyctl run console_app chat. Ids come from the server and can change, so look them up instead of assuming them.

Four views under help, covering local commands and server operations as one tree:

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

--all adds operations the server marks internal. --full on the bare help prints every descriptor; rarely needed.

Not logged in, or the server unreachable, gives the local commands plus one line on stderr.

Running an operation

difyctl run console_app workflow --app-id <id> --inputs '{"a":1}'. Each top-level field of input is a flag, dashes for underscores. Scalars take a value; objects, maps and lists of objects take a JSON literal or @file.json; lists of scalars repeat the flag. Fields named input, stream, only, output, verbose, json or help have no flag; pass them through --input.

--input '{"a":1}', --input @file.json or --input @- (stdin) sends the whole body; field flags merge over it. A dotted id is a command with the dots as spaces: run.console_app.workflow is difyctl run console_app workflow.

Run an app with the op for its mode: run console_app workflow, run console_app chat, run console_app advanced_chat, run console_app completion. First difyctl describe console_app --app-id <id> --json and read input_schema; that is the shape of inputs. Local files go under files, keyed by the app's file variable name ({"files":{"doc":"./r.pdf"}} or a list of paths); files for the run itself under attachments; URLs straight into inputs.

difyctl-only flags

--stream prints each event of a streaming op as one JSON line instead of folding them. --only <event> filters streamed events (repeatable). --output <path> saves a file-kind response; the default is the current directory under the server's filename, or <op-id>.<ext>. --verbose adds the raw server response to errors. A flag the operation's kind does not support exits 2.

Reading results

Streaming ops fold to {status, text, outputs?, total_tokens?, message_id?, conversation_id?, error?, hints}. text.answer is the reply; text.by_source appears only while status is incomplete. status is ended, failed (exit 1), suspended (a form is waiting; follow hints) or incomplete (the stream broke early). Any response may carry hints: [{summary, op, input, form?}], the server's next steps: next page, confirm step, reply op, form submit. Fill any null in input and pass it back with difyctl <op, dots as spaces> --input '<input>'.

Errors and exit codes

Errors are one envelope on stderr: {"error":{"code","message","hint"?,"details"?,"schema"?}}. Exit 2 is bad input (schema included), 4 not logged in or forbidden, 6 catalog unavailable or unknown op (run difyctl refresh cache or upgrade difyctl), 7 rate limited.

Login and environment

difyctl login --server https://... (device flow; --no-browser prints the URL and code; --no-keyring keeps the token in a file; --insecure skips TLS verification). One login at a time. difyctl use workspace <id> pins a workspace; difyctl get workspace shows them. Scripts skip login with DIFY_SERVER and DIFY_TOKEN; DIFY_WORKSPACE_ID overrides the pin; DIFY_CONFIG_DIR and DIFY_CACHE_DIR move the files.

login blocks until the browser approval arrives. Run difyctl login --server <url> --no-browser as a background job, relay the open <url> and code <code> lines from its stderr to the user, and do not cancel the job. Its exit code reports the result. In a sandbox, add --no-keyring and set DIFY_CONFIG_DIR to persistent storage on every call, so the login survives the next session. If background jobs do not survive between calls, run login --no-wait instead, relay the verification_uri and user_code it prints, and after the user approves run login --resume until it stops printing status: pending.

Destructive operations

Operations that remove or revoke have no confirmation prompt. Confirm with the person first.

Other skills

Scenario skills add guidance for one kind of task. difyctl get skills shows them; difyctl install skills <skills root> --skill <name> installs one, where <skills root> is the folder above this file's folder. Re-running difyctl install skills <skills root> after upgrading difyctl refreshes every skill.

Domande frequenti

Cosa fa la skill IA Difyctl?

Base skill for the difyctl CLI: find any command or Dify operation through help and run it as a command. Use when the task involves difyctl or a Dify server from the command line.

Perché usare Difyctl su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Difyctl è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Difyctl in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/langgenius/dify/tree/main/skills/difyctl. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Difyctl?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Difyctl?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Difyctl: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Difyctl è gratuita?

È pubblicata su GitHub da langgenius. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇