← スキル一覧に戻る

webp-images
by Manuelvillarvieites
⭐ 0🍴 0📅 2026年1月20日
SKILL.md
name: webp-images description: Implement images into page sections. Converts from /public/raw/[page]/ to WebP with responsive variants, replaces CDN placeholders with Next.js Image component. Use after midjourney-prompts skill. Triggers on "implement images", "add images to page", "replace placeholder images".
Image Implementation
Convert and implement images into page sections.
Workflow
- User provides: page route, source folder, image-to-section mapping
- Run WebP conversion script
- Replace CDN placeholders with Next.js
<Image> - Add alt text keys to i18n files
Convert Images
./scripts/convert-to-webp.sh [input_dir] [output_dir]
Default paths:
- Input:
/public/raw/[page]/ - Output:
/public/images/[page]/
Generates responsive variants: 640w, 1024w, 1920w
Replace Patterns
See references/nextjs-patterns.md for code examples.
Quick Reference
| Image Type | Props | Use Case |
|---|---|---|
| Fixed size | width, height | Testimonials, logos |
| Fill container | fill, sizes | Hero, project thumbnails |
| Above fold | priority | First visible image |
| Object fit | className="object-cover" | Cropped images |
i18n Alt Text
Add to messages/de.json and messages/en.json:
{
"hero": {
"imageAlt": "Beschreibung des Bildes"
},
"projects": {
"items": {
"0": { "imageAlt": "Projekt 1 Beschreibung" }
}
}
}
Checklist
- Images converted to WebP
- Responsive variants generated
- CDN URLs replaced with local paths
-
<img>tags converted to<Image> - Alt text added to i18n
-
priorityset for above-fold images -
sizesprop set for responsive images
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です