skill-naming-inconsistent
Skill has inconsistent file naming conventions
Rule Details
Consistent file naming improves readability and predictability. This rule scans the skill directory for files using .sh, .py, .js, and .md extensions, classifies them as kebab-case, snake_case, or camelCase, and warns if multiple conventions are present. The check only fires when the total number of classifiable files reaches the configured minimum threshold (default: 3). Kebab-case is the recommended convention.
Incorrect
Skill directory mixing kebab-case and snake_case
my-skill/
SKILL.md
build-app.sh
run_tests.sh
deploy-prod.shCorrect
Skill directory using consistent kebab-case
my-skill/
SKILL.md
build-app.sh
run-tests.sh
deploy-prod.shHow To Fix
Rename files to use a single naming convention. Kebab-case (e.g., my-script.sh) is recommended. Ensure all .sh, .py, .js, and .md files in the skill directory follow the same pattern.
Options
Default options:
{
"minFiles": 3
}Only check consistency when 5 or more files exist:
{
"minFiles": 5
}When Not To Use It
If the skill directory contains files from different ecosystems with established naming conventions (e.g., Python snake_case alongside shell kebab-case), you may disable this rule.
Related Rules
Resources
Version
Available since: v0.2.0