본문으로 건너뛰기
cccskills
무료GitHub에 공개

image-webp

Audit and convert images to WebP format. Checks public/assets/ for PNG/JPG files, verifies <img> tags have width/height, and generates cwebp conversion commands.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md1.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Image WebP Skill

Ensure all illustrations are WebP format and all <img> tags have proper attributes.

Step 1 — Find non-WebP images

find public/assets/illustrations/ -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" 2>/dev/null

For each file found:

  • Is it an OG image (og-.png, og-image.)? → Keep as PNG (Twitter/X requirement)
  • Otherwise → Convert to WebP

Step 2 — Generate conversion commands

For each non-OG image that needs conversion:

cwebp -q 85 -preset photo input.jpg -o output.webp

Check if cwebp is installed: which cwebp || brew install webp

Step 3 — Check img attributes

Grep all .astro files for <img tags missing width or height:

grep -n "<img" src/**/*.astro | grep -v "width" | grep -v "height"

Also check for missing alt attributes:

grep -n "<img" src/**/*.astro | grep -v 'alt='

Step 4 — Check Astro Image component usage

Astro has <Image> from astro:assets which handles optimization automatically. If raw <img> tags exist for static assets, suggest migrating to <Image> component.

Output Format

Non-WebP images found:
  public/assets/illustrations/hero-diagram.png (45KB) → Convert
  public/assets/og-image.png (120KB) → KEEP (OG image)

Conversion commands:
  cwebp -q 85 -preset photo public/assets/illustrations/hero-diagram.png -o public/assets/illustrations/hero-diagram.webp

img tags missing width/height:
  src/pages/index.astro:142 — <img src="/assets/diagram.webp" alt="..."> → Add width="800" height="400"

img tags missing alt:
  src/components/landing/Hero.astro:23 — <img src="..."> → Add descriptive alt text

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Validate all JSON-LD scripts in Astro pages — check parsability, @context, @type, and Layout.astro auto-inject compatibility.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rtk-ai/rtk-ldp102026년 10월 16일 업데이트

seo-audit

무료

Full SEO audit for rtk-ldp landing pages — JSON-LD schemas, OG tags, meta, robots, titles. Outputs a structured pass/fail checklist with score.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rtk-ai/rtk-ldp102026년 10월 16일 업데이트

UI/UX design intelligence. 67 styles, 96 palettes, 57 font pairings, 25 charts, 13 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

rtk-ai/rtk-ldp102026년 10월 16일 업데이트

rtk-ai의 스킬 모두 보기

이 스킬의 문제 신고