Back to all rules / Format and vendor rules
skill-shadowed-command
A .claude/commands file has the same name as a skill, so the command never runs.
Source: Claude Code docs: Skills (code.claude.com), read 15 November 2026.
On GitHub: the rule doc and the tests.
Jump to another rule89
What it catches#
A .claude/commands file has the same name as a skill, so the command never runs.
A file directly in .claude/commands/ whose name matches a skill in the same .claude/skills/, by folder name or frontmatter name, ignoring case. Commands in subfolders (/frontend:build) cannot clash with a skill name. A plugin's commands/ and skills/ are not compared, because the Claude Code docs do not say which one wins there.
Why it matters#
When a skill and a file in .claude/commands/ share a name, Claude Code runs the skill. Names are compared ignoring case.
Bad example#
.claude/commands/run-app.md
.claude/skills/run-app/SKILL.md
Typing /run-app runs the skill. The command file is never used, and edits to it change nothing.
Good example#
.claude/skills/run-app/SKILL.md
How to fix#
Delete the command if the skill replaced it (the usual case after moving commands to skills), or rename one of them.
Suppress or configure#
For one finding, put a comment on the line above it. The reason after -- is optional but worth writing:
<!-- asitis-disable-next-line skill-shadowed-command -- why this one is fine -->
For a whole file:
<!-- asitis-disable-file skill-shadowed-command -- why this file is an exception -->
For every file, turn it off or change its severity in .asitisrc.json:
{ "rules": { "skill-shadowed-command": "off" } }
A .asitisrc.json overrides entry limits a change to some paths, and a baseline (asitis lint --format json --write-baseline) accepts today's findings so only new ones fail the build.
Source#
Claude Code docs: Skills, read on 15 November 2026.
See what an agent changed in your CLAUDE.md. Keep or revert each change.
The linter is free and needs no signup. I'm also building a desktop editor for the markdown your agents write and read. It shows what an agent changed since you last looked, lets you keep or revert each change, and never touches a line you didn't edit. No release date yet. One email to confirm, one when the paid beta opens, one when 1.0 ships. $29 once for a founding licence, with 24 months of updates.
Or add the linter to CI, no email needed.
Your address is stored with Cloudflare, which hosts this site. No IP address is kept. See the privacy policy.
Related guides
Run the rule
- In your browser, on one file
- In Claude Code, on the project
- In CI, on every pull request
This page is generated from the plugin's rule registry. Edit it on GitHub. False positive? Open an issue with the line it fired on.