latch

latch is a skill for Claude Code from seaworld008/Commonly-used-high-value-skills. It costs 39 tokens per session (5,827 once invoked), scanned B, a copy of latch, MIT.

A guide for configuring and troubleshooting Claude Code hooks, which run automatically at points such as before or after a tool call.

In plain words
What is it for?
Use it to design, change, or debug hooks for events such as PreToolUse, PostToolUse, and Stop.
Why use it?
It helps automate checks and workflow actions while keeping the configuration focused and recoverable.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to design, change, or debug hooks for events such as PreToolUse, PostToolUse, and Stop.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seaworld008/commonly-used-high-value-skills/latch
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 seaworld008/Commonly-used-high-value-skills --skill latch
Clone the repo
git clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skills

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 latch

README.md
[![agentmods](https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/latch/github.svg)](https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/latch)
Your own site
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/latch"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/latch/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 latch

Your own site · 80×15
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/latch"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/latch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% 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.00039 $0.05827
Opus 5 $0.00019 $0.02913
Sonnet 5 $0.00008 $0.01165
Haiku 4.5 $0.00004 $0.00583

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

Security

Grade B, and why

latch scanned grade B with 1 finding 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 5d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Backup `~/.claude/settings.json` before modification.
Origin

This is a copy

97% identical to latch — 48 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.

openclaw-skills/latch/SKILL.md · 325 lines

How it starts

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

Latch

Claude Code hook specialist for one session-scoped task: propose one hook set, configure one settings.json hook change, or debug one hook issue.

Principles: hooks stay invisible when they work, backup before modify, restart required after config changes, blocking hooks need justification, less is more.

Read the full file on GitHub · 325 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. 5d ago Changed · +1 lines a5c504705650
  2. 9d ago First seen · 324 lines · 39 tokens per session scan B 00132588a1d2

Subscribe to this mod's changes

latch is a skill published in the GitHub repository seaworld008/Commonly-used-high-value-skills (70 stars, last pushed 5d ago), licensed MIT. It adds 39 tokens to every session and 5,827 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 97% identical to latch, differing in 48 lines, and is treated as a copy.

Related

Other skills, from other repositories

elasticsearch

Query and analyze logs in Elasticsearch. Use this skill when the user wants to search logs, query log data, count log entries, filter by trace IDs, or analyze application logs stored in Elasticsearch. Common use cases include debugging requests by trace ID, finding error logs, analyzing request patterns, and…

jawwadfirdousi/agent-skills · 68 tokens

svg-creator

Produce SVGs that are spec-correct (W3C SVG 2), CSS-independent, accessible when meaningful, safe to render in untrusted contexts, optimized in size, and readable enough to edit.

jawwadfirdousi/agent-skills · 95 tokens

prompt-template-wizard

Rigorously collects and validates all fields needed to produce a complete, unambiguous prompt template for features and bug fixes. The skill asks targeted questions until the template is fully filled, consistent, and ready to paste into a Codex/GPT-5.2 coding session.

jawwadfirdousi/agent-skills · 61 tokens

read-only-gh-pr-review

Review backend pull requests for correctness, security, performance, maintainability, and test coverage using GitHub CLI plus local repository inspection. Use when asked to review service-layer/API/database changes, audit backend branch diffs, summarize backend risk, or produce actionable must-fix/should-fix feedback.

jawwadfirdousi/agent-skills · 65 tokens

german-elster-tax-filing

Use this skill to run a complete intake for a german personal income tax return in elster for tax years 2024 onward, estimate the tax result, and map the final values into the correct official forms and fields.

jawwadfirdousi/agent-skills · 123 tokens

trello

Manage Trello boards, lists, and cards via the Trello REST API.

jawwadfirdousi/agent-skills · 19 tokens