From 21705aa3c87844717e2243d4fc0567bc9543c3a3 Mon Sep 17 00:00:00 2001 From: omartelo Date: Sat, 14 Nov 2026 00:07:02 -0300 Subject: [PATCH] docs: say where the extension skill reaches the agent, as measured --- CLAUDE.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 35d467d..df6e1de 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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 diff --git a/README.md b/README.md index f568ffa..89aac2d 100644 --- a/README.md +++ b/README.md @@ -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