構成/Stacks

Adding Skills to Stacks

Use kenji stack add <stack-name> <skill> to append a skill to an existing stack.

Note

Both arguments are required. Running kenji stack add kenji/react-debug (with no stack name) will fail with a usage error.

From the registry

shell
$ kenji stack add my-stack kenji/react-debug

From a GitHub repo

shell
$ kenji stack add my-stack anthropics/prompt-engineering

From a GitHub tree URL

shell
$ kenji stack add my-stack https://github.com/user/repo/tree/main/skills/frontend

From a GitHub blob URL

shell
$ kenji stack add my-stack https://github.com/user/repo/blob/main/skills/ui.md

From a raw URL

shell
$ kenji stack add my-stack https://raw.githubusercontent.com/user/repo/main/api.md

From a locally installed skill

shell
$ kenji stack add my-stack my-local-skill

If the skill exists only in the current project's .kenji/skills/, Kenji copies it to global (~/.kenji/skills/) before adding it to the stack.

Remove a skill from a stack

shell
$ kenji stack remove-skill my-stack kenji/react-debug