CLI commands
ak skills graph
Show skill workflow graph relationships
ak skills graph
Show skill workflow graph relationships
Synopsis
What it does: 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.
Examples: ak skills graph ak skills graph --kit engineer ak skills graph --skill plan --edge-kind typically_precedes ak skills graph --heuristic --json
What changes on disk: Read-only. Loads local kit metadata and skill markdown through KitSource; writes nothing.
Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)
Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)
ak skills graph [flags]Options
--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 promptsSEE ALSO
- ak skills - Browse and install kit skills