image-layer-alignment-validator

image-layer-alignment-validator is a skill for Codex from sergekostenchuk/mouse-trail-masking-reveal. It costs 92 tokens per session (984 once invoked), scanned A, a copy of image-layer-alignment-validator, MIT.

A local checker that compares two raster images, such as PNG or JPEG files, to see whether they show the same subject in matching positions. It is intended for before-and-after reveals, masks, and morph effects.

In plain words
What is it for?
Use it to compare a base image with a reveal image, diagnose misalignment, choose a correction such as shifting or recropping, and set suitable acceptance thresholds.
Why use it?
It catches shifts in the main subject that can make layered image effects look broken or poorly aligned.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to compare a base image with a reveal image, diagnose misalignment, choose a correction such as shifting or recropping, and set suitable acceptance thresholds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sergekostenchuk/mouse-trail-masking-reveal/image-layer-alignment-validator
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 sergekostenchuk/mouse-trail-masking-reveal --skill image-layer-alignment-validator
Clone the repo
git clone --depth 1 https://github.com/sergekostenchuk/mouse-trail-masking-reveal

Made for: 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-layer-alignment-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/sergekostenchuk/mouse-trail-masking-reveal/image-layer-alignment-validator/github.svg)](https://agentmods.dev/skills/sergekostenchuk/mouse-trail-masking-reveal/image-layer-alignment-validator)
Your own site
<a href="https://agentmods.dev/skills/sergekostenchuk/mouse-trail-masking-reveal/image-layer-alignment-validator"><img src="https://agentmods.dev/badge/skills/sergekostenchuk/mouse-trail-masking-reveal/image-layer-alignment-validator/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-layer-alignment-validator

Your own site · 80×15
<a href="https://agentmods.dev/skills/sergekostenchuk/mouse-trail-masking-reveal/image-layer-alignment-validator"><img src="https://agentmods.dev/badge/skills/sergekostenchuk/mouse-trail-masking-reveal/image-layer-alignment-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 984 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 100% copy Near-identical to another mod 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.00092 $0.00984
Opus 5 $0.00046 $0.00492
Sonnet 5 $0.00018 $0.00197
Haiku 4.5 $0.00009 $0.00098

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

Security

Grade A, and why

image-layer-alignment-validator 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/compare_layers.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

100% identical to image-layer-alignment-validator — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/image-layer-alignment-validator/SKILL.md · 98 lines

How it starts

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

Image Layer Alignment Validator

Use this skill to check whether two image layers can be composited as the same scene or subject. The goal is not generic image critique; the goal is to decide whether a base layer and reveal layer are spatially compatible.

Modes

  • compare: analyze two local image files and produce visual/report artifacts.
  • diagnose: inspect an existing report or screenshots and explain why a reveal/morph looks misaligned.
  • advise: convert measured drift into concrete fixes: shift, scale, crop, regenerate, or accept.
  • threshold: tune acceptance thresholds for strict product/portrait work versus looser creative reveal effects.

Workflow

  1. Confirm there are exactly two intended layers: base and reveal/after.

  2. Keep all analysis local by default. Do not upload private images to external services unless the user explicitly requests that.

  3. Run scripts/compare_layers.py when local image paths are available:

    python3 scripts/compare_layers.py \
      --base /path/to/base.png \
      --reveal /path/to/reveal.png \
      --out /path/to/alignment-output
    
  4. Inspect the generated artifacts before giving a verdict. The script is a deterministic foreground/geometry heuristic; semantic judgment still matters.

  5. If the main subject is ambiguous, read references/subject-taxonomy.md and state the chosen primary subject explicitly.

  6. Score alignment with references/alignment-rubric.md.

  7. Report measured drift and a concrete next action.

Evidence Artifacts

The comparison script writes:

  • alignment-report.md: human-readable metrics, verdict, and suggested fixes.
  • alignment-metrics.json: machine-readable dimensions, boxes, drift, IoU, and verdict.
  • annotated-base.png: detected primary and secondary boxes on the base layer.
  • annotated-reveal.png: detected primary and secondary boxes on the reveal layer.
  • side-by-side.png: visual comparison with boxes.
  • overlay.png: reveal blended over base for quick inspection.
  • difference.png: amplified pixel difference map.

Read the full file on GitHub · 98 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 98 lines · 92 tokens per session scan A b2ef7ace990e

Subscribe to this mod's changes

image-layer-alignment-validator is a skill published in the GitHub repository sergekostenchuk/mouse-trail-masking-reveal (2 stars, last pushed 2mo ago), licensed MIT. It adds 92 tokens to every session and 984 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to image-layer-alignment-validator, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

slides

Build a Grida slides deck — a .canvas bundle in slides mode whose pages are SVG documents (16:9, one SVG per slide). Use when creating a presentation, pitch deck, slideshow, or talk.

gridaco/grida · 46 tokens

tapcanvas-storyboard-expert

A chapter-based storyboard and video-planning guide for turning stories or scripts into production-ready shot plans. It covers characters, locations, props, camera direction, dialogue, voice-over, subtitles, and short video timelines.

anymouschina/TapCanvas · 89 tokens

seedance-2-video-gen

A reference guide for planning videos with Seedance 2.0, including text-to-video, image-to-video, and mixed image, video, and audio inputs.

anymouschina/TapCanvas · 101 tokens

tapcanvas-api

A single setup and command-line entry point for calling TapCanvas's public chat, drawing, image-understanding, video, task-result, and flow APIs.

anymouschina/TapCanvas · 104 tokens

edit-video

Edit video with FableCut — assemble a cut, add titles and captions, grade, add transitions, keyframe animation, speed ramps, and export. Use whenever the user wants to cut, trim, caption, subtitle, grade, or otherwise edit a video, or asks to open/start the video editor.

ronak-create/FableCut · 62 tokens

remake-reel

Analyze a reference video (a reel, montage, or ad the user likes) into an edit blueprint — shot boundaries, music beats, BPM, energy curve, the drop — and rebuild the same structure with the user's own footage. Use when someone says "make it like this video", "remake this reel with my clips", or asks what makes an…

ronak-create/FableCut · 74 tokens