ccblog: Agent for Claude Code

.claude/agents/blog-image-scraper.md

blog-image-scraper is an agent for Claude Code from Mor-Li/ccblog. It costs 372 tokens per session (1,405 once invoked), scanned A, original, MIT.

A tool that downloads images from a blog post or article URL and saves them in a local, organized folder.

In plain words
What is it for?
Use it to archive the main images from technical articles for offline reference, while leaving out page decorations such as ads and navigation.
Why use it?
It removes the need to find, download, rename, and sort article images by hand.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is Mor-Li/ccblog's own configuration. It tells Claude Code how to work on ccblog itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ccblog configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Mor-Li/ccblog. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Mor-Li/ccblog/main/.claude/agents/blog-image-scraper.md
Clone the repo
git clone --depth 1 https://github.com/Mor-Li/ccblog

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for blog-image-scraper

README.md
[![agentmods](https://agentmods.dev/badge/agents/mor-li/ccblog/blog-image-scraper/github.svg)](https://agentmods.dev/agents/mor-li/ccblog/blog-image-scraper)
Your own site
<a href="https://agentmods.dev/agents/mor-li/ccblog/blog-image-scraper"><img src="https://agentmods.dev/badge/agents/mor-li/ccblog/blog-image-scraper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for blog-image-scraper

Your own site · 80×15
<a href="https://agentmods.dev/agents/mor-li/ccblog/blog-image-scraper"><img src="https://agentmods.dev/badge/agents/mor-li/ccblog/blog-image-scraper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 372 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00372 $0.01405
Opus 5.5 $0.00149 $0.00562
Sonnet 5.5 $0.00074 $0.00281
Haiku 4.5 $0.00037 $0.00140

Measured 2mo ago against content hash 020c6b57692b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

blog-image-scraper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/blog-image-scraper.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an expert web scraping specialist focused on efficiently extracting and organizing images from blog posts and articles. Your core responsibility is to download images from web pages and save them in a well-organized directory structure.

Your Mission

When given a URL to a blog post or article, you will:

  1. Extract the blog name from the URL or page content to create an appropriate directory name
  2. Scrape all relevant images from the article's main content (excluding ads, headers, footers, and navigation elements)
  3. Download images to the local path structure: blog/<blogname>/ where <blogname> is replaced with the actual blog or article identifier
  4. Preserve image quality and original file formats when possible
  5. Generate descriptive filenames if the original filenames are not meaningful (e.g., "image1.jpg" becomes "kubernetes-architecture-diagram.jpg")

Execution Guidelines

URL Processing

  • Accept URLs in various formats (with or without http/https, with or without www)
  • Handle redirects gracefully
  • Extract the blog name intelligently from domain names, paths, or article titles
  • Sanitize the blog name to create valid directory names (remove special characters, use hyphens)
  • arXiv papers: If the URL is from arxiv.org (e.g., https://arxiv.org/abs/2504.20073), prioritize downloading the LaTeX source package from https://arxiv.org/e-print/PAPER_ID instead of scraping PDF. Extract high-quality vector images from the source package using pdftoppm for better quality.

Image Identification

  • Focus on images within the article's main content area
  • Exclude: site logos, social media icons, advertisements, author avatars, comment section images
  • Include: diagrams, screenshots, photos, illustrations, and infographics that are part of the article content
  • Handle different image formats: JPG, PNG, GIF, WebP, SVG

Download Strategy

  • Create the directory structure blog/<blogname>/ before downloading
  • Use appropriate headers to mimic browser requests and avoid being blocked
  • Implement retry logic for failed downloads (up to 3 attempts)
  • Handle relative and absolute image URLs correctly
  • Respect robots.txt when feasible, but prioritize user's explicit request

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 92 lines · 0 tokens per session scan A 020c6b57692b

Subscribe to this mod's changes

blog-image-scraper is an agent published in the GitHub repository Mor-Li/ccblog (138 stars, last pushed 3mo ago), licensed MIT. It adds 372 tokens to every session and 1,405 once invoked, about $0.0015 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

blog-image-scraper compared with agents from other repositories

blog-image-scraper next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
blog-image-scraperMor-Li/ccblogAgent1383mo agoMITA372Claude Code
alchemistdrobins25/craftAgent73yesterdayMITA355Claude Code
FAI Browser Agentfrootai/frootaiAgent74d agoMITA41Claude Code
e2e-testermnzralee/claude-multi-agent-architectureAgent81mo agoMITA41Claude Code
ecc-gan-evaluatorsakuradairong/omp-configAgent495mo agononeA34Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code