tsaol/awesome-claude/image-moderation

Claude Code and agent skill by tsaol/awesome-claude

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install tsaol/awesome-claude/image-moderation

SKILL.md

Image Moderation Pipeline

Cost-optimized image content moderation using Claude's vision capabilities.

Core Strategies

  1. Image preprocessing — Resize/compress to minimize token usage
  2. Tiered cascade — pHash → lightweight ML → Haiku → Sonnet
  3. Prompt caching — Cache moderation rules for 90% token savings
  4. Batch API — 50% cost reduction for non-realtime workloads
  5. Structured output — Minimal JSON responses to cut output tokens

Usage

bash
pip install -e .
python
from image_moderation import ImageModerationPipeline
pipeline = ImageModerationPipeline(
anthropic_api_key="sk-...",
enable_cache=True,
cascade_levels=["prefilter", "haiku", "sonnet"],
)
result = pipeline.moderate("path/to/image.jpg")
print(result)
# ModerationResult(safe=False, category="violence", confidence=0.95, cost=0.0003)

Cost Comparison

StrategyTokens/ImageMonthly Cost (1M images)
Raw → Sonnet~5000$$$$$
Resized → Haiku~1000$$
Full pipeline~100 (avg)$

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
62
Repository forks
4
7-day trend score
21

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tsaol/awesome-claude/image-moderation/badge)](https://verified-skill.com/skills/tsaol/awesome-claude/image-moderation)

Something wrong with this skill or its page? Tell us.