You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 257c33a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cli): embed the difyctl skill in the binary and point agents at it
Offline install skills from the embedded copy (Bun 1.4 --asset). Adds a CI smoke check, a stderr notice on difyctl help, and a next-step line in all four installers.
Copy file name to clipboardExpand all lines: cli/ARD.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ src/
25
25
net/ fetch init and proxy dispatcher, shared by the http plugin and the pre-login device flow
26
26
store/ config/session/token file and keychain persistence
27
27
sys/ the process edges — env, argv, exit, platform paths; io/ holds streams.ts, color.ts and view.ts (a JSON value paired with its text form, the mode picks one)
28
-
skills/ reads skills from a GitHub folder or a local folder, and installs them
28
+
skills/ the one embedded difyctl skill (or a local folder) and its installer
|`version`| Print the client and (if logged in) server versions |
53
+
|`use workspace <id>`| Pin the local session to a workspace |
54
+
|`get config [key]`| Print the local config, or one key |
55
+
|`set config <key> <value>`| Set a local config value |
56
+
|`unset config <key>`| Remove a local config value, restoring its default |
57
+
|`refresh cache`| Refetch the server catalog and replace the local cache |
58
+
|`delete cache`| Delete the local server catalog cache |
59
+
|`install skills <dir>`| Write the difyctl skill into a skills root (`--from`) |
61
60
62
61
`login` blocks until the browser approval arrives. An agent runs it in the background, relays the `open <url>` and `code <code>` lines from its stderr to the user, and does not cancel the job. In a sandbox it adds `--no-keyring` and sets `DIFY_CONFIG_DIR` to persistent storage on every call, so the login survives the next session.
63
62
@@ -68,11 +67,9 @@ response in the error envelope instead of dropping it.
68
67
69
68
## Agent skills
70
69
71
-
difyctl installs agent skills from [`skills/`] at the repo root. It downloads them from GitHub at install time, from the commit the binary was built from; the binary holds no copy and needs no git. The basic skill, `difyctl`, teaches the discovery flow — `help` to see the map or search, `help <id>` to inspect one operation, then the operation's own command to run it — so it stays correct as the server's catalog grows. Scenario skills add guidance for one kind of task and open by reading the basic one.
70
+
difyctl ships one skill, `difyctl`, built into the binary. It teaches the discovery flow — `help` to see the map or search, `help <id>` to inspect one operation, then the operation's own command to run it — so it stays correct as the server's catalog grows. The skill is a tree of linked docs under [`skills/difyctl/`].
72
71
73
-
-`difyctl get skills` — the collection: each skill's name and description. Writes nothing.
74
-
-`difyctl install skills <dir>` — write every skill into `<dir>`, the agent's skills root: the folder that holds one subfolder per skill, for example `~/.claude/skills` for Claude Code or `~/.codex/skills` for Codex. Each skill's folder is replaced whole. `--skill <name>` (repeatable) writes only those skills; a scenario skill brings `difyctl` along.
75
-
-`--from` on both reads skills from elsewhere: any GitHub folder in the standard layout (`https://github.com/<owner>/<repo>/tree/<ref>/<folder>`), or a local folder when GitHub is blocked. Set `GITHUB_TOKEN` if GitHub's rate limit (60 requests an hour per IP) gets in the way.
72
+
-`difyctl install skills <dir> [--from <folder>]` — write the skill into `<dir>`, the agent's skills root: the folder that holds one subfolder per skill, for example `~/.claude/skills` for Claude Code or `~/.codex/skills` for Codex. The `difyctl` folder is replaced whole. It works offline. `--from` installs a local skill folder instead of the built-in one.
76
73
77
74
difyctl does not detect agents. You name the root, and re-running the same command refreshes the copies.
0 commit comments