← Back to list

image-optimization
by Riggd
My little slice of the internet.
⭐ 0🍴 0📅 Jan 17, 2026
SKILL.md
name: image-optimization description: Audit and optimize image assets for performance trigger: automatic
Image Optimization Skill
This skill audits image assets for size and performance issues.
Purpose
Audit and optimize image assets for performance, identifying files that exceed size thresholds and need optimization.
Trigger Conditions
- Automatic: When images are added to
src/assets/ - Manual: Invoked by
/optimize-assetscommand
Actions
-
List Assets:
- Scan
src/assets/images(if it exists) orsrc/assets/projects/for image files - Identify all image files (
.png,.jpg,.jpeg,.gif,.webp,.svg)
- Scan
-
Size Audit:
- Check file sizes for all images
- Identify any files over 500KB
- List files with their sizes for user review
-
Summary Report:
- Present findings to the user:
- Total number of images found
- Number of images exceeding 500KB
- List of oversized files with their sizes
- Suggest optimization strategies:
- Convert to WebP format
- Compress images
- Resize large images
- Use responsive image techniques
- Present findings to the user:
-
Warnings:
- Warn the user if any image exceeds 500KB
- Suggest specific optimization steps for each oversized file
Implementation Details
- Check file sizes using filesystem operations
- Focus on
src/assets/projects/as the primary location for project images - Consider both individual files and nested directories
- Provide actionable recommendations for each oversized file
Notes
- The 500KB threshold is based on portfolio performance best practices
- Large images should be optimized before deployment
- Consider using Eleventy Image plugin for automatic optimization during build
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
