Agent Skill
2/7/2026asset-normalization
Ensure all asset filenames are lowercase and hyphenated
R
riggd
0GitHub Stars
1Views
npx skills add Riggd/portfolio
SKILL.md
| Name | asset-normalization |
| Description | Ensure all asset filenames are lowercase and hyphenated |
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
Skills Info
Original Name:asset-normalizationAuthor:riggd
Download