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.

Install it, pinned
mdr add webreactiva/yesyak/agent-hook-guard@git:20261017.b634987

Pins 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

The exact contents, by fingerprint
mdr add webreactiva/yesyak/agent-hook-guard@sha256:e4263a59ea6c7f56

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6qlmo5jd5eboevpt.svg)](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.

versioncommittedcommitsizeaudit
git:20261017.b634987 latest2026-10-17 b634987 3,459 BA view · diff
git:20261017.dad28842026-10-17 dad2884 3,446 BA view · diff
git:20261017.fc431182026-10-17 fc43118 3,426 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from webreactiva/yesyak

yak-bench SKILL.md skill
webreactiva/yesyak · .claude/skills/yak-bench/SKILL.md · Internal benchmark of this repository. It takes a small real project, drives a weaker agent (OpenCode in tmux, as a…
git:20261030.4afff19 · audit A · 3 stars
AGENTS.md AGENTS.md file
webreactiva/yesyak · AGENTS.md
git:20261017.75a50dc · audit A · 3 stars
CLAUDE.md CLAUDE.md file
webreactiva/yesyak · CLAUDE.md
git:20260928.79ace91 · audit B · 3 stars
ask-yak SKILL.md skill
webreactiva/yesyak · skills/ask-yak/SKILL.md · Tells the user where their work is in the YesYak process and what comes next. It reads the branch, the progress file…
git:20261017.75a50dc · audit A · 3 stars
browser-acceptance-testing SKILL.md skill
webreactiva/yesyak · skills/browser-acceptance-testing/SKILL.md · Tests acceptance criteria and edge cases as an end user in a real browser (Chrome DevTools MCP, Playwright or the…
git:20261017.b634987 · audit A · 3 stars
bug-intake SKILL.md skill
webreactiva/yesyak · skills/bug-intake/SKILL.md · Entry point for one bug report. Capture it, triage it without changing anything (severity, owning area, layers crossed…
git:20261023.b04ffec · audit A · 3 stars
customize-yak SKILL.md skill
webreactiva/yesyak · skills/customize-yak/SKILL.md · Adapts the YesYak process to a project or a person without editing any skill. It detects what the project already has…
git:20261031.1bf6fd8 · audit A · 3 stars
decision-record-log SKILL.md skill
webreactiva/yesyak · skills/decision-record-log/SKILL.md · Convention for recording implementation decisions as ADRs (Architecture Decision Records) in docs/decisions/, each with…
git:20261017.b634987 · audit A · 3 stars
domain-language SKILL.md skill
webreactiva/yesyak · skills/domain-language/SKILL.md · Fixes the domain language of one feature after the interview, so the spec, code, tests and UI all say the same thing…
git:20261017.b634987 · audit A · 3 stars
execute-plan-loop SKILL.md skill
webreactiva/yesyak · skills/execute-plan-loop/SKILL.md · Implements a plan step by step in a loop until the end. Each step has one capability, tests and a manual check…
git:20261017.b634987 · audit A · 3 stars
feature-delivery-pipeline SKILL.md skill
webreactiva/yesyak · skills/feature-delivery-pipeline/SKILL.md · Orchestrates the full feature workflow from a vague request to a reviewed pull request, with a checkpoint for the user…
git:20261023.b04ffec · audit A · 3 stars
feature-walkthrough SKILL.md skill
webreactiva/yesyak · skills/feature-walkthrough/SKILL.md · Writes a walkthrough of a feature branch for a reader who did not build it. It follows the real code path end to end…
git:20261017.75a50dc · audit A · 3 stars

Every file in webreactiva/yesyak

Browse by kind, by grade A, or by owner.