技能/Skills

Install Sources

Kenji supports five install source types. Each installs skills into <repo-slug>/<skill-slug>/ folders under your skills directory.

Registry install

text
kenji install <namespace>/<skill>
shell
$ kenji install kenji/react-debug

Use when the skill is listed in the Kenji registry or a community registry. The skill slug and source repo are resolved from the registry entry.


GitHub repo install

text
kenji install <user>/<repo>
shell
$ kenji install anthropics/skills

Kenji fetches the full repository tree in a single API call and automatically discovers every skill (any .md file that is not a README), across all nested folders. Each discovered skill is installed into its own <repo-slug>/<skill-slug>/ folder.

If more than one skill is found, a preview is shown and you are asked to confirm before anything is downloaded. If only one skill is found, it installs immediately.

text
Discovered 3 skills in anthropics/skills:

  anthropics-skills/mcp-builder
  anthropics-skills/design-algorithmic-art
  anthropics-skills/prompt-engineering

Install all 3 skills? (Y/n)

GitHub tree URL

text
kenji install https://github.com/<user>/<repo>/tree/<branch>/<path>
shell
$ kenji install https://github.com/user/repo/tree/main/skills/react

Installs the files inside that specific folder as a single skill. The skill slug is derived from the last segment of the path.


GitHub blob URL

text
kenji install https://github.com/<user>/<repo>/blob/<branch>/<path>/file.md
shell
$ kenji install https://github.com/user/repo/blob/main/skills/react/SKILL.md

Use when you want a single specific file from a GitHub page URL. Kenji converts this to a raw URL automatically.


Raw GitHub URL

text
kenji install https://raw.githubusercontent.com/<user>/<repo>/<branch>/<path>
shell
$ kenji install https://raw.githubusercontent.com/user/repo/main/skills/react/SKILL.md

Use when you have the direct raw file URL. The skill slug is derived from the filename without extension.