登録/Registry

Stack JSON Schema

This is the schema used by Kenji's stack export, stack import, and stack install commands. Any stack file that doesn't conform to this schema will be rejected on import.

Schema

json
{
  "type": "kenji-stack",
  "version": "1.0",
  "name": "frontend-stack",
  "description": "",
  "skills": [
    {
      "type": "registry",
      "value": "kenji/react-debug"
    },
    {
      "type": "github",
      "value": "anthropics/prompt-engineering"
    },
    {
      "type": "url",
      "value": "https://github.com/user/repo/tree/main/skills/frontend"
    },
    {
      "type": "global",
      "value": "my-local-skill"
    }
  ]
}

Required fields

  • type — must be exactly "kenji-stack"
  • version — must be present (any non-empty string)
  • name — must be a string, alphanumeric with hyphens and underscores only
  • skills — must be an array; each entry must be an object with type and value

Note

Plain string entries in the skills array are not accepted. Each skill must be a structured { type, value } object. Files that contain bare strings will fail validation and be rejected.

Skill entry types

  • "registry" — a registry item in namespace/name format
  • "github" — a GitHub repo in user/repo format
  • "url" — a GitHub tree URL, blob URL, or raw file URL
  • "global" — a locally installed global skill (referenced by folder name)

Any entry with an unrecognized type will be skipped during kenji stack install.