agent-hook-guard SKILL.md skillA
agent-hook-guard from webreactiva/yesyak is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add webreactiva/yesyak/agent-hook-guard@git:20261017.b634987Pins git:20261017.b634987 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- webreactiva/yesyak
- Path
skills/agent-hook-guard/SKILL.md- Versions recorded
- 3
- Latest version
- git:20261017.b634987, committed Oct 17, 2026
- First version recorded
- Oct 17, 2026
- Size
- 3,459 bytes
- Repository stars
- 3
- License
- MIT
Turns one problem that the reviews found into one hook of the agent. A hook is a check that the agent tool runs by itself before or after a tool call or at the end of a turn. The skill shows the hook first with a diagram, writes it only after a yes, tests it by forcing the error and then shows it in a real run. Use it whenever the user asks for a hook, an automatic guard, "something that stops this from happening again" while the agent works, or wants a red team, verification or retrospective…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Agent hook guard A rule in AGENTS.md works only when the model remembers it. A hook runs every time. This skill adds one hook for one problem. An agent hook runs inside the agent tool, for example a Claude Code hook in its settings file, or an OpenCode plugin that listens to tool events. A git hook is not an agent hook. Use a git hook or CI only when the user asks for one. If the project's agent has no hooks, say so and propose a test or a command instead (`session-retrospective-rules`). ## 1. Choose one problem Read the findings: `.scratchpad/<slug>/redteam-report.md`, `verification-report.md`, `browser-test-report.md`, or the moments of a retrospective. Choose the one problem that a hook would have stopped and that is easiest to explain. A good candidate: - A program can check it, without judgment: a file in the wrong folder, a commit with failing tests, an edit to a generated file, a forbidden command. - Happened, or can happen again, in this project. - Has a check that runs in a few seconds. If the first candidate needs a long explanation, pick a simpler one. The user must understand the hook from one sentence. ## 2. Show it before you write it In the chat, give: …
Read the whole file at its exact version.
How to install
mdr add webreactiva/yesyak/agent-hook-guard@sha256:e4263a59ea6c7f56The line at the top of this page pins the label git:20261017.b634987, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_6qlmo5jd5eboevpt)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, all committed on Oct 17, 2026.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261017.b634987 latest | 2026-10-17 | b634987 | 3,459 B | A | view · diff |
| git:20261017.dad2884 | 2026-10-17 | dad2884 | 3,446 B | A | view · diff |
| git:20261017.fc43118 | 2026-10-17 | fc43118 | 3,426 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3459 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
webreactiva/yesyak · 3 stars · license MIT · pushed 2026-10-31 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_6qlmo5jd5eboevpt GET https://markdownregistry.com/api/v1/resolve?ref=webreactiva/yesyak/agent-hook-guard GET https://markdownregistry.com/api/v1/blob/e4263a59ea6c7f5674291609b63436a6cc4e700302f2c1f4830e98f5cdd059f8
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.