latch

latch is a skill for Claude Code, Codex from simota/agent-skills. It costs 39 tokens per session (5,511 once invoked), scanned B, original, MIT.

A guide for Claude Code hooks, which are commands or checks that run when Claude Code reaches events such as before or after using a tool. It also covers hooks that run when a task stops.

In plain words
What is it for?
Use it to propose, configure, debug, or maintain hooks for automation and quality checks in Claude Code.
Why use it?
It helps automate repeated checks and control what happens during an agent session without making the workflow noisy when everything works.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/simota/agent-skills/latch
Any agent
npx skills add simota/agent-skills --skill latch
Clone the repo
git clone --depth 1 https://github.com/simota/agent-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 latch

README.md
[![agentmods](https://agentmods.dev/badge/skills/simota/agent-skills/latch.svg)](https://agentmods.dev/skills/simota/agent-skills/latch)
Your own site
<a href="https://agentmods.dev/skills/simota/agent-skills/latch"><img src="https://agentmods.dev/badge/skills/simota/agent-skills/latch.svg" alt="Measured on agentmods" 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,511 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00039 $0.05511
Opus 5 $0.00019 $0.02756
Sonnet 5 $0.00008 $0.01102
Haiku 4.5 $0.00004 $0.00551

Measured 4d ago against content hash ec9b18ae0e2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.
.archive/latch/SKILL.md · 285 lines

How it starts

The opening of the file, as written. The whole thing — 285 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 · 285 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. 4d ago First seen · 285 lines · 39 tokens per session scan B ec9b18ae0e2e

Subscribe to this mod's changes

latch is a skill published in the GitHub repository simota/agent-skills (75 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 5,511 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

interview

Ask one useful structured question at a time only when material product/implementation choices are genuinely missing; remember answers and produce a brief/spec. Discoverable facts should be investigated instead of asked.

Hmbown/CodeWhale · 40 tokens

beevibe-team-mesh-negotiation

Multi-round negotiation protocol — covers both initiator and peer roles. Use when about to call negotiate(), when receiving a intent block as a peer, or when receiving an 'escalated' sentinel from a blocked respondnegotiate. Covers proposal crafting, counter-strategy, deadlock detection, when to accept early…

beevibe-ai/beevibe · 112 tokens

suede-aso

Suede-owned app-store optimization discipline for keyword fields, titles, subtitles, descriptions, screenshots, ratings context, and competitor listing audits. Use when improving App Store or Google Play visibility or listing conversion from a live app URL and current console evidence. NOT FOR: building or releasing…

JasonColapietro/suede-creator-skills · 146 tokens

suede-copy

Suede Labs conversion-copy writer: landing sections, email, microcopy, buttons, headlines, CTAs, variants, and anti-slop edits. Use when asked to write or rewrite conversion copy for one surface in one pass — a hero, a button set, an email subject, a README section, a product blurb — or when copy on a single surface…

JasonColapietro/suede-creator-skills · 140 tokens

copywriting

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value…

stagewise-io/stagewise · 174 tokens

a-fund-monitor

A股基金净值监控:盘中实时估值 + 盘后实际净值,定时推送到 Telegram。.

aAAaqwq/AGI-Super-Team · 33 tokens