AgentKit
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 --json

Flags

FlagDescription
--edge-kind stringArrayFilter edge kind; repeatable
-h, --helphelp for graph
--heuristicInclude /ak: co-mention related edges
--jsonEmit machine-readable JSON (implies --no-interactive)
--kit stringFilter graph to one kit
--no-interactiveDisable interactive prompts (CI-safe)
-q, --quietSuppress non-error output on stderr
--skill stringShow the selected skill and connected upstream/downstream skills
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
  • ak skills — Browse and install kit skills

On this page