AgentKit
DocsKitsCLI ReferenceDesktop App
BetaYou are reading docs for the beta channel (3.4.0-beta.1). Features may change before the next stable release.Switch to stable →

ak skills

ak skills install

Copy one local skill into the user Claude plugin tree, optionally provision its runtime, and understand force recovery limits.

Use ak skills install to copy one skill from a local kits tree into the user-level Claude plugin install root.

Usage

ak skills install <kit>/<skill>
FlagDefaultDescription
--forcefalseDelete an existing destination directory before copying the source.

The canonical reference is recommended. Reference shorthands ak:, ake:, and akm: are also accepted. Source and destination roots are controlled by AGENTKIT_KITS_DIR and AGENTKIT_PLUGIN_DIR; the local route has no --kits-dir, target, scope, or channel flag. --scope, --runtime, and --dry-run apply only to the SkillX source.

Resolution and disk effects

For <kit>/<skill>, source lookup tries both skills/<skill> and skills/ak-<skill>. It copies regular files into:

~/.claude/plugins/<kit>/skills/<skill>/

Directories are created with mode 0750 and copied files with 0600. Non-regular entries are skipped. Symlinks are copied as file contents only when their resolved regular-file target stays inside the source skill root; an outside link fails closed.

If the source has a Python or Node runtime and the runtime kill switch is not set, the command then provisions the singular runtime record and shared cache.

Force and recovery boundary

--force removes the entire existing skill destination before the new copy. There is no confirmation, ownership classification, snapshot, backup, or rollback. A copy or runtime-install failure can leave the old content gone and the new content partial or present without a ready runtime.

Back up user changes yourself before force. On failure, fix the local source or runtime dependency, remove only the partial destination you reviewed, and rerun. The shared runtime cache is not a backup of skill content.

--yes and --no-interactive do not change behavior because the command never prompts. The local route does not contact the AgentKit registry or check entitlement, though runtime provisioning can contact PyPI or npm through uv or pnpm.

SkillX source

With SkillX and the skill store on (after ak update --ssot, or AGENTKIT_SKILLX=1 and AGENTKIT_SKILL_STORE=1), --source skillx installs a verified SkillX release named @publisher/slug[@version] instead of a local kit skill:

ak skills install @publisher/review-guardrails@1.2.0 --source skillx --dry-run --json

The plan shows the release identity, digest, trust, targets, projected paths, and declared scripts. It applies without prompting unless --dry-run is set. --runtime selects claude-code, codex, or both (default claude-code), and --scope selects the project (default) or global lock and skills root.

One journaled transaction under the kit lifecycle lock writes the release into the skill store under AGENTKIT_HOME, the projected files (mode 0644, never executable) into each runtime's native skills root, removing stale ones, the scope's skill lock and receipts, and, for a project, the project root registry under AGENTKIT_HOME/state and the project skill state .gitignore. It never runs a declared script, npm, npx, or a SkillX installer.

Without a version, the newest published stable release is installed. If the package has published releases but no stable release, the install fails with source.no_stable_release (exit 5, JSON error_code not_found). The message names the latest version on each channel and a copyable ak skills install <id>@<version> --source skillx command; name a version to select a prerelease or another channel. A package with no published release at all fails with source.not_found.

Output

JSON success uses kind=assets.install:

data.ref, data.kit, data.asset, data.files_written,
data.env_installed, data.success

Human stdout reports the reference, file count, and whether the runtime is ready. env_installed=false can mean no runtime declaration or the kill switch was set.

Exit behavior

ExitMeaning
0Content was copied and any requested runtime provisioning completed.
1Copying, path safety, runtime provisioning, or filesystem work failed.
2The reference or flags were invalid.
4--source skillx only: another kit lifecycle operation holds the lock.
5No matching local source skill or SkillX release was found, or a SkillX package has no stable release and no version was named (source.no_stable_release).
6The destination already existed without --force; with --source skillx, an alias collision or an unowned or modified path.
7--source skillx only: the release is revoked, yanked, or untrusted, a target path contains a link, or a digest did not match.

For exits 2, 5, and 6, the current JSON error envelope can contain exit_code: 1; trust process status. Missing or extra positional arguments are rejected before classification and currently exit 1.