skills install writes the difyctl skill (a SKILL.md file) into the skill directories of the coding agents on your machine.
The skill deliberately lists no commands: it points the agent at difyctl help -o json and lets it discover the live command surface itself.
See the help reference for that discovery surface, and Install the difyctl Skill for the full integration.
Install the Skill
Arguments
dir: optional. Install into this single directory, bypassing agent detection. The skill lands at<dir>/SKILL.md. Cannot be combined with--agent.
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-y, --yes | boolean | false | Write the skill. Without it, the command is a dry run: it lists where the skill would land and writes nothing. |
--agent | string, repeatable | none | Restrict the install to specific detected agents, using the names from Agent Detection. With no --agent, the skill installs into every detected agent. To install into several agents but not all, repeat the flag or pass a comma-separated list.Naming an agent that isn’t detected is a usage error. |
--stdout | boolean | false | Print the skill to stdout and write nothing. Cannot be combined with --yes, --agent, or dir. |
Examples
Preview where the skill would be installed (dry run, the default):Agent Detection
Detection checks whether each agent’s configuration directory exists. The CLI never probesPATH or launches anything. The skill is written to each agent’s documented user-level skill location:
| Agent | Detected when | Skill lands in |
|---|---|---|
claude-code | ~/.claude exists | ~/.claude/skills/difyctl/SKILL.md |
codex | ~/.codex exists | ~/.agents/skills/difyctl/SKILL.md |
opencode | ~/.config/opencode exists | ~/.config/opencode/skills/difyctl/SKILL.md |
cursor | ~/.cursor exists | ~/.cursor/skills/difyctl/SKILL.md |
pi | ~/.pi exists | ~/.pi/agent/skills/difyctl/SKILL.md |
difyctl skills install <dir>.
Output
A dry run lists the detected agents and the target paths, then tells you how to proceed:--yes, each write is confirmed:
skills install --yes after upgrading replaces the file with the current version. Re-running is always safe.
Exit Codes
| Code | Meaning |
|---|---|
0 | Success, including a dry run and the nothing-detected case |
1 | Local failure, such as a target directory that isn’t writable |
2 | Usage error: --stdout combined with a write option, dir combined with --agent, or --agent naming an agent that isn’t detected |