image-fundamentals

image-fundamentals is a skill for Claude Code, Codex from aeren23/image-processing-skills. It costs 24 tokens per session (1,528 once invoked), scanned A, original, MIT.

A guide to the basic choices behind image processing, such as how colors are stored, how positions are measured, which file formats to use, and how much memory images need.

In plain words
What is it for?
Use it when starting an image-processing pipeline, converting between color systems, choosing image formats, debugging OpenCV coordinates, or calculating image memory needs.
Why use it?
It helps prevent common mistakes, such as displaying the wrong colors, misreading pixel positions, choosing a format that reduces quality, or underestimating memory use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when starting an image-processing pipeline, converting between color systems, choosing image formats, debugging OpenCV coordinates, or calculating image memory needs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aeren23/image-processing-skills/01-image-fundamentals
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aeren23/image-processing-skills --skill 01-image-fundamentals
Clone the repo
git clone --depth 1 https://github.com/aeren23/image-processing-skills

Made for: Claude Code, Codex.

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 image-fundamentals

README.md
[![agentmods](https://agentmods.dev/badge/skills/aeren23/image-processing-skills/01-image-fundamentals/github.svg)](https://agentmods.dev/skills/aeren23/image-processing-skills/01-image-fundamentals)
Your own site
<a href="https://agentmods.dev/skills/aeren23/image-processing-skills/01-image-fundamentals"><img src="https://agentmods.dev/badge/skills/aeren23/image-processing-skills/01-image-fundamentals/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 image-fundamentals

Your own site · 80×15
<a href="https://agentmods.dev/skills/aeren23/image-processing-skills/01-image-fundamentals"><img src="https://agentmods.dev/badge/skills/aeren23/image-processing-skills/01-image-fundamentals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,528 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.00024 $0.01528
Opus 5 $0.00012 $0.00764
Sonnet 5 $0.00005 $0.00306
Haiku 4.5 $0.00002 $0.00153

Measured 10d ago against content hash 1cb22971d9a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

image-fundamentals 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 10d 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.

skills/01-image-fundamentals/SKILL.md · 150 lines

How it starts

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

Image Fundamentals

When to Use This Skill

  • Starting any new image processing pipeline
  • Choosing between color spaces (BGR, RGB, HSV, Gray, LAB)
  • Deciding image format for saving/loading
  • Debugging coordinate-related bugs in OpenCV
  • Calculating memory requirements for image data

Decision Framework

Color Space Selection

Goal Convert To OpenCV Code Why
Display with matplotlib RGB cv2.cvtColor(img, cv2.COLOR_BGR2RGB) Matplotlib expects RGB, OpenCV loads BGR
Grayscale processing Gray cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) Single channel, faster computation
Color-based object filtering HSV cv2.cvtColor(img, cv2.COLOR_BGR2HSV) Isolate hue independently from brightness
Perceptual color difference LAB cv2.cvtColor(img, cv2.COLOR_BGR2LAB) L=lightness, A/B=color, perceptually uniform
Print/publishing output CMYK External library Subtractive color model for ink

Format Selection

Format Use When Compression Quality Loss
.jpg/.jpeg Web, general photos Lossy Yes — artifacts at low quality
.png Transparency needed, lossless required Lossless No
.tiff Medical/scientific, archival Both Depends on setting
.dcm (DICOM) Clinical X-ray, MR, CT Lossless No
.nii (NIfTI) Neuroimaging (brain MRI) Lossless No
.gif Animations, indexed color Lossless (256 colors) Color palette limited

Bit Depth Decision

Bit Depth Colors Use Case Memory per Pixel
1-bit 2 (B/W) Binary masks, documents 0.125 bytes
8-bit gray 256 shades Standard grayscale processing 1 byte
24-bit (3×8) 16.7M Standard color (BGR/RGB) 3 bytes
32-bit float Continuous HDR, scientific computation 4 bytes
48-bit (3×16) 281T Medical, raw camera 6 bytes

Memory formula: width × height × channels × bytes_per_channel

Read the full file on GitHub · 150 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. 10d ago First seen · 150 lines · 24 tokens per session scan A 1cb22971d9a6

Subscribe to this mod's changes

image-fundamentals is a skill published in the GitHub repository aeren23/image-processing-skills (5 stars, last pushed 3mo ago), licensed MIT. It adds 24 tokens to every session and 1,528 once invoked, about $0.0001 per session on Opus 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-31.

Related

Other skills, from other repositories

srt-whiteboard-animation

A workflow that turns SRT subtitle files into whiteboard-style hand-drawn animation videos. It plans scenes from the subtitles, draws them in flowing strokes, and renders an MP4.

geeklee/srt-whiteboard-animation · 156 tokens

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens