← Back to list

asset-normalization
by Riggd
My little slice of the internet.
⭐ 0🍴 0📅 Jan 17, 2026
SKILL.md
name: asset-normalization description: Ensure all asset filenames are lowercase and hyphenated trigger: automatic
Asset Normalization Skill
This skill ensures all asset filenames follow naming conventions and updates references throughout the codebase.
Purpose
Ensure all asset filenames are lowercase and hyphenated, and update all references to them in source code.
Trigger Conditions
- Automatic: When files are added to
src/assets/ - Manual: Invoked by
/optimize-assetscommand or other commands that need asset normalization
Actions
-
Run Normalization Script:
- Execute
bash lowercase-assets.shto rename all files and directories insrc/assetsto lowercase - The script handles case-only changes reliably using
git mv(important for macOS)
- Execute
-
Update References:
- The script automatically updates all references in
.mdand.njkfiles using Perl regex - Converts asset paths to lowercase:
/assets/[path]→/assets/[lowercase-path]
- The script automatically updates all references in
-
Verification:
- Report any files that were renamed
- Confirm that references have been updated
Implementation Details
The skill leverages the existing lowercase-assets.sh script which:
- Processes files depth-first to handle nested items correctly
- Uses a two-step
git mvprocess for case-only changes (required on macOS) - Updates references in Markdown and Nunjucks files automatically
Notes
- This skill should be run automatically whenever new assets are added
- The script uses
git mvso changes are tracked by git - Always review changes with
git statusandgit diffbefore committing
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon
