leak-check

leak-check is a skill for Claude Code from Tasachii/Tasachii-Tools. It costs 141 tokens per session (937 once invoked), scanned A, original, MIT.

A code review process for finding data leakage in machine-learning pipelines. Data leakage happens when information unavailable at prediction time influences training or evaluation.

In plain words
What is it for?
Use it to inspect data loading, feature preparation, splitting, training, evaluation, and serving for issues such as future information, shared entities, test contamination, missing seeds, or differences between training and production.
Why use it?
It explains why evaluation scores can look unusually good while failing in real use, and identifies where information crossed the intended boundaries.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the craft-ml plugin — 3 skills shipped together

Good fit Use it to inspect data loading, feature preparation, splitting, training, evaluation, and serving for issues such as future information, shared entities, test contamination, missing seeds, or differences between training and production.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tasachii/tasachii-tools/leak-check
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 Tasachii/Tasachii-Tools --skill leak-check
Clone the repo
git clone --depth 1 https://github.com/Tasachii/Tasachii-Tools

Made for: Claude Code.

Or install craft-ml, the plugin that ships this one along with the rest of its 3 skills.

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 leak-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/tasachii/tasachii-tools/leak-check/github.svg)](https://agentmods.dev/skills/tasachii/tasachii-tools/leak-check)
Your own site
<a href="https://agentmods.dev/skills/tasachii/tasachii-tools/leak-check"><img src="https://agentmods.dev/badge/skills/tasachii/tasachii-tools/leak-check/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 leak-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/tasachii/tasachii-tools/leak-check"><img src="https://agentmods.dev/badge/skills/tasachii/tasachii-tools/leak-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 937 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.00141 $0.00937
Opus 5.5 $0.00056 $0.00375
Sonnet 5.5 $0.00028 $0.00187
Haiku 4.5 $0.00014 $0.00094

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

Security

Grade A, and why

leak-check 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 3mo 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.

plugins/craft-ml/skills/leak-check/SKILL.md · 39 lines

How it starts

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

leak-check — metric สวยผิดปกติ ให้สงสัยว่ารั่ว ก่อนสงสัยว่าเก่ง

Phase 0 — อ่านทั้ง pipeline ไม่ใช่แค่ไฟล์เทรน

ไล่ตามเส้นทางข้อมูลจริง: โหลด → clean/feature engineering → split → fit → evaluate → (serve ถ้ามี) — leakage ส่วนใหญ่เกิดก่อนบรรทัด model.fit() และมองไม่เห็นถ้าเปิดดูแค่ตอนเทรน

Phase 1 — บาป 7 ข้อ

# บาป หน้าตาในโค้ด กลไกการรั่ว
1 Fit ก่อน split scaler.fit(X) แล้วค่อย train_test_split สถิติของ test (mean/std/min-max) ซึมเข้า train — ต้อง fit เฉพาะ train แล้ว transform test
2 Temporal leakage feature เป็น aggregate ทั้งช่วงเวลา, random split บนข้อมูลมีเวลา, ใช้ค่า "อนาคตของแถวนั้น" โมเดลเห็นอนาคตตอนเทรน — ใน production ไม่มีอนาคตให้เห็น
3 Group leakage user/คนไข้/ร้านเดิมอยู่ทั้ง train และ test โมเดลจำ entity ไม่ใช่เรียน pattern — เจอ entity ใหม่แล้วร่วง
4 Target leakage feature ที่เป็น proxy ของคำตอบ (ค่าที่รู้ได้ก็ต่อเมื่อเหตุการณ์เกิดแล้ว เช่น "จำนวนวันที่ค้างชำระ" ตอนทำนาย default) metric เทพตอน dev, พังตอน serve เพราะ feature นั้นยังไม่มีค่า
5 Test contamination ใช้ test set เลือก feature / tune hyperparameter / early stopping / เลือกโมเดล test กลายเป็น validation — ตัวเลขสุดท้าย optimistic เสมอ
6 Randomness ไม่คุม ไม่ seed numpy/torch/sklearn, split ใหม่ทุกรัน ผล reproduce ไม่ได้ — เทียบ run ต่อ run ไม่มีความหมาย
7 Train/serve skew preprocessing ตอนเทรนกับตอน serve เขียนคนละที่คนละ logic โมเดลถูกแต่ input ตอนจริงคนละภาษากับตอนเทรน

Phase 2 — รายงาน

ต่อ finding: file:line + เล่ากลไกรั่วเป็นเหตุการณ์ (ไม่ใช่แปะชื่อบาป) + วิธีแก้เจาะจง (pipeline object, split ใหม่, ตัด feature) + ผลต่อ metric

ปิดท้ายด้วย คำตัดสินรวม เสมอ:

  • ✅ ไม่พบรั่ว — metric ปัจจุบันเชื่อได้ (ในขอบเขตที่โค้ดแสดง)
  • ⚠️ พบรั่วเบา — ตัวเลข optimistic, แก้ข้อ X แล้ววัดใหม่เพื่อยืนยัน
  • 🔴 พบรั่วหนัก — ตัวเลขที่รายงานไว้ใช้ไม่ได้ ต้องแก้แล้ว rerun ทั้งชุด ระบุลำดับ: แก้อะไรก่อน วัดใหม่ยังไง เทียบกับ baseline ไหน

กติกา

  • ทุกข้อกล่าวหาต้องมีบรรทัดอ้างอิง — ไม่มีหลักฐาน = ไม่รายงาน
  • อย่าเหมา: บาง pattern ดูเหมือนรั่วแต่ถูก (เช่น fit บน train ทั้งก้อนใน CV loop ที่ทำถูกแล้ว) — อ่าน context ก่อนฟันธง
  • ถ้าแก้แล้ว metric ตก — นั่นคือข่าวดี (ตัวเลขจริงโผล่มาแล้ว) ช่วย user สื่อสารเรื่องนี้กับทีม/อาจารย์ให้เป็น

Read the full file on GitHub · 39 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. 3mo ago First seen · 39 lines · 141 tokens per session scan A 12138a5912e5

Subscribe to this mod's changes

leak-check is a skill published in the GitHub repository Tasachii/Tasachii-Tools (2 stars, last pushed 2mo ago), licensed MIT. It adds 141 tokens to every session and 937 once invoked, about $0.0006 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-31.

Related

leak-check compared with skills from other repositories

leak-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
leak-checkTasachii/Tasachii-ToolsSkill22mo agoMITA141Claude Code
huggingface-llm-trainerwaybarrios/opencode-power-packSkill5624d agoMITA65Claude Code
huggingface-vision-trainerwaybarrios/opencode-power-packSkill5624d agoMITA48Claude Code
submit-github-prNVIDIA/TensorRT-Model-ConnectSkill307todayApache-2.0A58Codex
council-reviewalinaqi/maggySkill7137d agoMITA28Claude Code
huggingface-bestwaybarrios/opencode-power-packSkill5624d agoMITA49Claude Code
rag-code-reviewlyonzin/knowledge-ragSkill3132d agoMITA83Claude Code, Codex