Skip to content

Align skills/kiritan with the Agent Skills spec and the skills CLI - #73

Merged
otnc merged 1 commit into
mainfrom
skills/agent-skills-spec
Sep 27, 2026
Merged

otnc merged 1 commit into
mainfrom
skills/agent-skills-spec

Conversation

@otnc

@otnc otnc commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Closes #72

What

Rewrites \skills/kiritan\ to follow the Agent Skills specification and the Skills CLI conventions, per the five points in the issue.

1. Split SKILL.md for progressive disclosure

SKILL.md keeps only what loads on every activation — recognizing a Kiritan project, the never-hand-edit-generated-output rule, the \inline\ directive syntax, the CLI table, and common mistakes — and moves the rest into \skills/kiritan/references/, linked from SKILL.md with a one-line note on when to read each:


  • eferences/strategies.md\ — the \catalog\ and \sidecar\ document strategies

  • eferences/runtime.md\ — runtime i18n (\colocated/\split/\centralized/\�mbedded)

  • eferences/config.md\ — variable interpolation, config layering, and a minimal working config

2. Frontmatter: optional fields

\\yaml
license: WTFPL
compatibility: Requires Node.js 22.7+ and the kiritan CLI (npm install -D kiritan).
\\

3. \kiritan init\ in the CLI table

The first command to reach for in a repo that doesn't use Kiritan yet. Also notes that a project keeping \kiritan\ in devDependencies invokes it as
px kiritan \ or
pm run docs:build/\docs:check, and fixes the flag note (every command except \init\ accepts --mode/--config).

4. Installation docs aligned with the skills CLI

  • \skills/README.md: -g\ (user-wide install),
    px skills add otnc/kiritan --list,
    px skills update kiritan,
    px skills remove kiritan\
  • Root README (both locales): the Agent Skill link now points to the Agent Skills spec / Skills CLI instead of the Anthropic blog post, with the install command inline
  • \docs/DESIGN.md\ updated to describe the split layout

5. CI validation

  • \skills/validate.mjs: checks the frontmatter constraints (
    ame\ matches the directory and the naming rules, \description\ ≤ 1024 chars, \compatibility\ ≤ 500 chars), body < 500 lines, and that every relative link from SKILL.md resolves
  • New \�gent-skill\ job in \ci.yml: runs the validator and confirms
    px --yes skills add . --list\ still finds the skill (--list\ only lists and exits — it never installs or prompts)

Verification


  • ode skills/validate.mjs\ — passes

  • px --yes skills add . --list\ — recognizes \kiritan, no side-effect files

  • pm run ci\ (prettier/eslint),
    pm run docs:build\ → \docs:verify\ / \docs:check\ — all pass

Closes #72

- Split SKILL.md per progressive disclosure: catalog/sidecar strategies,
  runtime i18n, and config/interpolation detail move to references/
  (strategies.md, runtime.md, config.md), each linked from SKILL.md
  with a one-line note on when to read it
- Add the optional frontmatter fields: license (WTFPL) and
  compatibility (Node.js 22.7+ and the kiritan CLI)
- Add kiritan init to the CLI table (the first command to reach for in
  a repo that doesn't use Kiritan yet), note npx kiritan / npm run
  docs:build invocation for devDependencies projects, and fix the
  --mode/--config note (every command except init accepts them)
- Align installation docs with the skills CLI: -g, --list,
  update/remove in skills/README.md; swap the root README's Agent
  Skill link from the Anthropic blog post to the Agent Skills spec
  and the skills CLI
- Validate the skill in CI: skills/validate.mjs checks the frontmatter
  constraints, body size, and reference links against the spec, and a
  new agent-skill job also confirms the skills CLI still finds the
  skill via npx skills add . --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills/kiritan を Agent Skills の仕様と skills CLI の流儀に合わせて書き直す

1 participant