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.
npx skills add OpenLAIR/OpenSkill --skill evo-template-matching-countergit clone --depth 1 https://github.com/OpenLAIR/OpenSkillWrote 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.
[](https://agentmods.dev/skills/openlair/openskill/evo-template-matching-counter)<a href="https://agentmods.dev/skills/openlair/openskill/evo-template-matching-counter"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-template-matching-counter/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.
<a href="https://agentmods.dev/skills/openlair/openskill/evo-template-matching-counter"><img src="https://agentmods.dev/badge/skills/openlair/openskill/evo-template-matching-counter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.00632 |
| Opus 5.5 | $0.00021 | $0.00253 |
| Sonnet 5.5 | $0.00010 | $0.00126 |
| Haiku 4.5 | $0.00005 | $0.00063 |
Grade A, and why
evo-template-matching-counter 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.
How it starts
The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
evo-template-matching-counter
Overview
Counts game sprites (coins, enemies, turtles) in grayscale keyframe images using OpenCV template matching with NMS deduplication, outputs results to CSV.
Key Concepts
- Uses
cv2.TM_CCOEFF_NORMED- normalized correlation coefficient, best for rigid 2D pixel art - Default threshold: 0.8 (optimal for Super Mario sprites with MP4 compression artifacts)
- Non-Maximum Suppression (NMS) with IoU overlap threshold of 0.3 to deduplicate detections
- Both frame and template MUST be grayscale (single channel) for matching
np.where(result >= threshold)returns (y_coords, x_coords) - row/column order- Template must be smaller than frame in both dimensions
- CSV output columns: frame_id (full path like /root/keyframes_001.png), coins, enemies, turtles
Functions
load_template(template_path)
Loads template image as grayscale. Returns 2D numpy array.
non_max_suppression(boxes, overlap_thresh=0.3)
Malisiewicz et al. NMS algorithm. Input: (N,4) array of [x1,y1,x2,y2]. Returns filtered boxes.
count_objects_in_frame(frame_gray, template_gray, threshold=0.8, nms_overlap=0.3)
Counts single object type in a frame. Returns integer count.
count_all_objects_in_frame(frame_path, templates_dict, threshold=0.8, nms_overlap=0.3)
Counts all object types in one frame. templates_dict maps label->template array. Returns dict of counts.
generate_results_csv(frame_paths, templates_dict, output_csv, threshold=0.8, nms_overlap=0.3)
Processes all keyframes and writes CSV with columns: frame_id, coins, enemies, turtles. Returns DataFrame.
Usage
import sys
sys.path.insert(0, '/app/environment/skills/evo-template-matching-counter/scripts')
from counter_utils import load_template, generate_results_csv
# Load templates as grayscale
templates = {
"coins": load_template('/root/coin.png'),
"enemies": load_template('/root/enemy.png'),
"turtles": load_template('/root/turtle.png'),
}
# frame_paths from extraction step
frame_paths = [f'/root/keyframes_{i:03d}.png' for i in range(1, 28)]
# Generate CSV
df = generate_results_csv(frame_paths, templates, '/root/counting_results.csv', threshold=0.8)
What ships with it
1 file 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.
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.
- 2mo ago First seen · 59 lines · 52 tokens per session scan A b55201351c6b
evo-template-matching-counter is a skill published in the GitHub repository OpenLAIR/OpenSkill (101 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 52 tokens to every session and 632 once invoked, about $0.0002 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-09-11.
evo-template-matching-counter compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| evo-template-matching-counterOpenLAIR/OpenSkill | Skill | 101 | 2mo ago | Apache-2.0 | A | 52 | Claude Code, Codex |
| observationXiaoLuoLYG/GOD | Skill | 1.3k | 5d ago | Apache-2.0 | A | 12 | Claude Code, Codex |
| map-blockoutkevinpbuckley/VibeUE | Skill | 846 | yesterday | MIT | A | 104 | Claude Code, Codex |
| vegetable.sourceXiaoLuoLYG/GOD | Skill | 1.3k | 5d ago | Apache-2.0 | A | 11 | Claude Code, Codex |
| dialogue-graphRaidriar7170/hermes-skilleval | Skill | 29 | 2mo ago | MIT | A | 32 | Claude Code, Codex |
| dialogue-graphRaidriar7170/hermes-skilleval | Skill | 29 | 2mo ago | MIT | A | 32 | Claude Code, Codex |
| Cursor rules for ASCII simulation game developmentAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 7 | Claude Code, Codex |