ReferenceCLI commands
BetaYou are reading docs for the beta channel (
2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →CLI commands
ak skills graph
Show skill workflow graph relationships
Builds a read-only graph of AgentKit skills and their workflow relationships. Edges come from metadata.workflow frontmatter, Workflow Position sections, and optional /ak: co-mention heuristics.
Who it's for: Power users and maintainers who want to inspect how skills connect across kits. The dashboard Skills page exposes the same graph visually.
When to use it: Use before editing skill workflow metadata, while auditing skill discovery, or when checking why one skill should typically precede or follow another.
What changes on disk: Read-only. Loads local kit metadata and skill markdown through KitSource; writes nothing.
Usage
ak skills graph [flags]Examples
ak skills graph
ak skills graph --kit engineer
ak skills graph --skill plan --edge-kind typically_precedes
ak skills graph --heuristic --jsonFlags
| Flag | Description |
|---|---|
--edge-kind stringArray | Filter edge kind; repeatable |
-h, --help | help for graph |
--heuristic | Include /ak: co-mention related edges |
--json | Emit machine-readable JSON (implies --no-interactive) |
--kit string | Filter graph to one kit |
--no-interactive | Disable interactive prompts (CI-safe) |
-q, --quiet | Suppress non-error output on stderr |
--skill string | Show the selected skill and connected upstream/downstream skills |
-V, --verbose | Extra diagnostic output on stderr (loses to --quiet) |
-y, --yes | Assume yes for all prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
0 | success |
1 | runtime error |
2 | invalid flags |
3 | user-cancel (SIGINT, prompt-cancel) |
Related commands
ak skills— Browse and install kit skills