Back to list
Mearman

gravatar-download

by Mearman

Plugin marketplace distributing extensions that add skills, commands, hooks and custom agents to the code environment.

2🍴 0📅 Jan 23, 2026

SKILL.md


name: gravatar-download description: Download Gravatar avatar images to local files. Use when the user wants to save Gravatar images, download profile pictures, or create local avatar caches.

Download Gravatar Images

Download Gravatar avatar images to local files.

Usage

npx tsx scripts/download.ts <email> <output-file> [options]

Arguments

ArgumentRequiredDescription
emailYesEmail address
output-fileYesPath where image will be saved

Options

OptionDescription
--size=NImage size in pixels (default: 200, max: 2048)
--default=TYPEDefault image type: mp, identicon, monsterid, wavatar, retro, robohash, blank
--rating=LEVELRating level: g, pg, r, x (default: g)
--no-cacheBypass cache and fetch fresh data

Output

Email: user@example.com
Output: avatar.jpg
Hash: b48bf4373d7b7374351c0544f36f7fc3

✓ Downloaded successfully
  Size: 12.4 KB
  File: avatar.jpg

Script Execution (Preferred)

npx tsx scripts/download.ts <email> <output-file> [options]

Options:

  • --size=N - Image size in pixels (default: 200, max: 2048)
  • --default=TYPE - Default image type: mp, identicon, monsterid, wavatar, retro, robohash, blank
  • --rating=LEVEL - Rating level: g, pg, r, x (default: g)
  • --no-cache - Bypass cache and fetch fresh data

Run from the gravatar plugin directory: ~/.claude/plugins/cache/gravatar/

How It Works

  1. Generates Gravatar URL with specified parameters
  2. Downloads image using cached HTTP request
  3. Saves image to specified file path
  4. Caches downloaded images for 24 hours

Examples

Basic download (200px PNG):

npx tsx scripts/download.ts user@example.com avatar.png

Large avatar (800px):

npx tsx scripts/download.ts user@example.com large-avatar.jpg --size=800

Download with fallback to identicon:

npx tsx scripts/download.ts newuser@example.com avatar.png --default=identicon

Force fresh download:

npx tsx scripts/download.ts user@example.com avatar.png --no-cache

Image Size Options

SizeUse CaseFile Size (approx)
80Small thumbnails2-4 KB
200Profile avatars (default)8-15 KB
400Large profile images20-35 KB
800High-resolution displays50-90 KB
2048Maximum quality200-400 KB

Default Image Types

When no Gravatar exists, these defaults are used:

TypeDescription
mpMystery Person (simple silhouette)
identiconGeometric pattern based on email hash
monsteridUnique monster generated from email
wavatarUnique face generated from email
retro8-bit arcade-style face
robohashUnique robot generated from email
blankTransparent PNG

Use Cases

Team Avatar Cache

Download avatars for all team members:

for email in dev1@company.com dev2@company.com dev3@company.com; do
  npx tsx scripts/download.ts "$email" "avatars/${email}.png" --size=400
done

Profile Image Backup

Save user avatars locally:

npx tsx scripts/download.ts maintainer@project.org backup/maintainer.jpg --size=800

Generate Placeholder Avatars

Create consistent default avatars:

npx tsx scripts/download.ts user1@example.com user1.png --default=identicon
npx tsx scripts/download.ts user2@example.com user2.png --default=identicon

High-Resolution Display

Download retina-ready images:

npx tsx scripts/download.ts user@example.com avatar@2x.png --size=400

Caching

Downloaded images are cached for 24 hours:

  • Same email + parameters = cached file returned
  • Different parameters = new download
  • --no-cache = fresh download

This reduces API calls and bandwidth usage.

Error Handling

The script will fail if:

  • Email is missing or invalid format
  • Output file path is missing
  • Network errors occur
  • Disk write fails

Error messages indicate the specific failure for troubleshooting.

File Formats

Gravatar serves images in these formats:

  • JPG - Smaller file size, good for photos
  • PNG - Better for geometric/generated images (identicon, robohash)
  • WebP - Modern format, smallest size (when supported)

The file extension in the output path determines the format saved.

  • Use gravatar-check skill to verify Gravatar exists before downloading
  • Use gravatar-url skill to generate URLs for web display
  • Combine with npm/GitHub user data to download contributor avatars

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon