Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Each doc carries the event mapping for **every** provider, one column each — a
## Skills

- [skills/theme](skills/theme/SKILL.md) — writing, porting and validating lich color themes, as a single file or as a versioned theme repository. Mirrors the theme contract in the lich repository (`docs/themes.md` there); `template.json` is a copy of the starter lich itself hands out, vendored at `tests/lich-ref` by `tests/refresh-fixtures.sh` and diffed by CI like the fixtures, and `validate.mjs` derives its token sets from that copy. A change to the theme shape, or to the repository contract, lands here too. The harnesses that read no skills out of a plugin (opencode, oh-my-pi, Crush, Kiro CLI) get the skill from lich's install, which fetches `SKILL.md`, `template.json` and `validate.mjs` from the release tag and rewrites the `name: theme` frontmatter line to `name: lich-theme` (`internal/agentplugin/skill.go` in the lich repository): adding, renaming or moving a file the skill needs, or renaming the skill, means changing that list in lich first.
- [skills/extension](skills/extension/SKILL.md) — writing, developing and publishing a lich extension. Mirrors `docs/extensions.md` in the lich repository, which holds every table, limit and the catalog rules: the skill links to it on GitHub `main` instead of copying them, so a change to that contract lands in the skill's steps only when an order or a trap moved. It is manual only wherever the harness can say so: `disable-model-invocation: true` (Claude Code, Cursor CLI, opencode, oh-my-pi) with `user-invocable: true` (Crush needs it to make a command), and `agents/openai.yaml` with `policy.allow_implicit_invocation: false` for Codex, which ignores the frontmatter key. Antigravity documents only `name` and `description` and lists every skill to the agent on every turn, so there it costs its description and the agent may load it; it stays in `skills/` anyway, because Codex's manifest `skills` is one path and moving it out would cost theme or this. lich's install of the opencode, oh-my-pi, Crush and Kiro CLI copies fetches a fixed list of files (see theme above), so this skill reaches them only once that list names it.
- [skills/extension](skills/extension/SKILL.md) — writing, developing and publishing a lich extension. Mirrors `docs/extensions.md` in the lich repository, which holds every table, limit and the catalog rules: the skill links to it on GitHub `main` instead of copying them, so a change to that contract lands in the skill's steps only when an order or a trap moved. It is manual only wherever the harness can say so: `disable-model-invocation: true` (Claude Code, oh-my-pi, opencode 2) with `user-invocable: true` (Crush needs it to make a command), and `agents/openai.yaml` with `policy.allow_implicit_invocation: false` for Codex, which ignores the frontmatter key and invokes it as `$lich:extension`. opencode 1 reads only `description`, so lich's copy for opencode drops that line. Antigravity documents only `name` and `description`, and Cursor CLI keeps every plugin skill in the agent's list whatever its frontmatter says, so on both it costs its description and the agent may load it; it stays in `skills/` anyway, because Codex's manifest `skills` is one path and moving it out would cost theme or this. lich's install copies it into opencode, oh-my-pi and Crush from 0.21.1 on, and leaves Kiro CLI, which cannot hide a skill, without it (`internal/agentplugin/skill.go` in the lich repository).

## Tests

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ such as `/compact`, the session runs it on itself once its turn ends
It also ships skills for the parts of lich you configure from inside a session:

- **theme** (`/lich:theme` in Claude Code; on Codex and Antigravity the `theme` skill loads from its description; Cursor CLI loads it from the Claude Code install; lich copies it as `lich-theme` into opencode, where it is `/lich-theme`, oh-my-pi, Crush and Kiro CLI when it installs the plugin there): write, port or fix a lich color theme: the app tokens, the xterm palette, where the file goes, and a validator for the rules that otherwise fail silently
- **extension** (`/lich:extension` in Claude Code, `$extension` on Codex; run by hand only, no agent loads it on its own, except on Antigravity, which has no manual-only setting and lists it to the agent like any skill; Cursor CLI loads it from the Claude Code install; opencode, oh-my-pi, Crush and Kiro CLI do not get it until lich's install ships it): write, develop and publish a lich extension: the template repository, the manifest, permissions, translations, trying it in place, `lich extension check`, a release and the catalog listing
- **extension** (`/lich:extension` in Claude Code, `$lich:extension` on Codex; run by hand only, no agent loads it on its own, except on Antigravity and Cursor CLI, which list every skill a plugin ships to the agent; lich copies it as `lich-extension` into opencode, oh-my-pi and Crush, and leaves Kiro CLI without it): write, develop and publish a lich extension: the template repository, the manifest, permissions, translations, trying it in place, `lich extension check`, a release and the catalog listing

## Structure

Expand Down
Loading