Back to list
Riggd

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-assets command or other commands that need asset normalization

Actions

  1. Run Normalization Script:

    • Execute bash lowercase-assets.sh to rename all files and directories in src/assets to lowercase
    • The script handles case-only changes reliably using git mv (important for macOS)
  2. Update References:

    • The script automatically updates all references in .md and .njk files using Perl regex
    • Converts asset paths to lowercase: /assets/[path]/assets/[lowercase-path]
  3. 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 mv process 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 mv so changes are tracked by git
  • Always review changes with git status and git diff before 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