Skip to content

fix(lint): check the Agent Skills naming rule against the spec, not just Zed - #117

Merged
singhharsh1708 merged 1 commit into
mainfrom
fix/spec-name-convention
Aug 15, 2026
Merged

fix(lint): check the Agent Skills naming rule against the spec, not just Zed#117
singhharsh1708 merged 1 commit into
mainfrom
fix/spec-name-convention

Conversation

@singhharsh1708

Copy link
Copy Markdown
Owner

The gap

KSF's own name rule permits tidy--commits and tidy-. The Agent Skills spec — the shared authority every skills-directory target defers to — forbids them outright:

  • Must not start or end with a hyphen (-)
  • Must not contain consecutive hyphens (--)
  • Must match the parent directory name

So those are legal KSF names that Claude Code, Codex, Copilot, Cline, Zed, Gemini CLI and Agent Plugins may all refuse — and several refuse silently.

Only the zed adapter flagged it. That scoped a spec-wide rule to one target and left the other six unmentioned, so a user could reasonably read "→ zed" as "fine everywhere else."

Now

Reported once against the skill, at install, lint and test, citing the spec rather than a single client:

⚠ name-convention — "tidy--commits" has a leading, trailing or doubled hyphen.
  The Agent Skills spec allows neither, so hosts reading a skills directory may
  drop it — several without saying so.

A warning, not a failure — the name is valid KSF and still compiles; --strict escalates it like any other warning.

Verified against the spec page directly rather than secondhand, after two secondhand reports disagreed about Zed's exact regex.

5 new tests. Typecheck, suite, bench and site --check verified by exit code. Ships as 0.24.1.

…ust Zed

KSF's name rule permits `tidy--commits` and `tidy-`. The Agent Skills spec —
the shared authority every skills-directory target defers to — forbids a
leading, trailing or consecutive hyphen outright, and requires the name to
match its parent directory. So those names are legal KSF that Claude Code,
Codex, Copilot, Cline, Zed, Gemini CLI and Agent Plugins may all refuse, and
several refuse silently.

Only the zed adapter flagged it, which scoped a spec-wide rule to one target
and left the other six unmentioned. It is now reported once against the skill,
at install, lint and test, citing the spec rather than a single client.

A warning, not a failure: the name is valid KSF and still compiles, and
--strict escalates it like any other warning.

Verified against agentskills.io/specification, which states the rule verbatim:
1-64 characters, lowercase alphanumerics and hyphens, "Must not start or end
with a hyphen", "Must not contain consecutive hyphens".

Adds 5 tests. 0.24.1.
@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kitbash Building Building Preview Aug 15, 2026 7:56pm

@github-actions github-actions Bot added documentation Docs, spec, RFCs, README, site dependencies Dependency or action version bumps labels Aug 15, 2026
@singhharsh1708
singhharsh1708 merged commit 56c452f into main Aug 15, 2026
10 checks passed
@singhharsh1708
singhharsh1708 deleted the fix/spec-name-convention branch August 15, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency or action version bumps documentation Docs, spec, RFCs, README, site

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant