Stop `clai2` from warning at every launch about Agent Skill frontmatter fields meant for other clients

Merged
MP
2mo ago
+12-19

Why we make these changes

Every clai2 launch in a repository whose skills carry Claude Code frontmatter (this one included) printed a yellow notice naming them. Nobody can act on it: fields such as allowed-tools work in the other clients sharing .agents/skills and .claude/skills, so removing them is not an option, and the skills load and run fine in CLAI. This drops that notice from the coder plugin. Notices for skipped skills (malformed SKILL.md, duplicate names, stray library paths) and Skills are off: ... stay, since those are actionable. Harness Skills is unchanged; its run-start UserWarning is still hidden by CLAI's library-warning filter.

New public surface: none.

User-visible behavior

Before, launching uv run clai2 in this repo:

/new starts a session; /resume restores one; /exit quits. Esc or Ctrl-C interrupts a turn.
Ignoring unsupported Agent Skill behavioral frontmatter fields: add-new-model: allowed-tools; adding-a-provider-api-feature: allowed-tools; docs-parity-reviewer: context, disallowed-tools, model; ...

After:

/new starts a session; /resume restores one; /exit quits. Esc or Ctrl-C interrupts a turn.

docs/reference.md and PLUGINS.md now say these fields are ignored quietly.

Verification

  • test_frontmatter_for_other_clients_loads_without_a_notice: a skill with allowed-tools and context still gets its /review command and prints nothing.
  • tests/clai2/test_coder_skills.py and tests/harness/skills pass; ruff and pyright clean on the changed files.
  • Manual tmux check: uv run clai2 in this repo starts with only the banner and the hint above.

What changes for existing users: one less warning at startup; skill behavior is unchanged.

Checklist

  • No breaking changes in accordance with the version policy.
  • Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
  • PR title is fit for the release changelog.