protego

protego is a skill for Claude Code from Totes-MickGOATs/opus-pocus. It costs 160 tokens per session (1,545 once invoked), scanned A, original, MIT.

A write-time hook that checks instruction files whenever they are edited. A hook is an automated action attached to an event; here, it looks for defects that a script can identify without needing an AI model.

In plain words
What is it for?
Checking instruction artifacts after Write or Edit operations for issues such as excessive emphasis and other mechanically detectable defects.
Why use it?
It catches repeatable problems when they are introduced, so later audits do not have to keep finding the same issues. It reports findings only when a check detects one.

Skill for Claude Code

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

Part of the opus-pocus plugin — 21 skills, 1 agent shipped together

Good fit Checking instruction artifacts after Write or Edit operations for issues such as excessive emphasis and other mechanically detectable defects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/totes-mickgoats/opus-pocus/protego
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 Totes-MickGOATs/opus-pocus --skill protego
Clone the repo
git clone --depth 1 https://github.com/Totes-MickGOATs/opus-pocus

Made for: Claude Code.

Or install opus-pocus, the plugin that ships this one along with the rest of its 21 skills, 1 agent.

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 protego

README.md
[![agentmods](https://agentmods.dev/badge/skills/totes-mickgoats/opus-pocus/protego.svg)](https://agentmods.dev/skills/totes-mickgoats/opus-pocus/protego)
Your own site
<a href="https://agentmods.dev/skills/totes-mickgoats/opus-pocus/protego"><img src="https://agentmods.dev/badge/skills/totes-mickgoats/opus-pocus/protego.svg" alt="Measured on agentmods" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,545 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.00160 $0.01545
Opus 5 $0.00080 $0.00772
Sonnet 5 $0.00032 $0.00309
Haiku 4.5 $0.00016 $0.00154

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

Security

Grade A, and why

protego 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 8d 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.

skills/protego/SKILL.md · 97 lines

How it starts

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

🦋 Protego

"The cheapest curse to remove is the one that never lands."

This book has one loud doctrine — if a rule matters enough to shout, it matters enough to enforce with a hook; blocking hooks achieve near-total compliance, prose is best-effort — and until this spell it was entirely prose: a whole book of advice about mechanism, delivered as text, to be obeyed by goodwill.

Protego is the shield: a hook that runs when an instruction artifact is written, catching the mechanically-decidable defects at the moment they are introduced. Not so the audit becomes unnecessary, but so it stops re-finding the same five classes every quarter.

What ships

  • hooks/protego.sh — the check itself. Reads the hook payload on stdin, works out whether the edited file is an instruction artifact, runs the checks, and emits only when it has a finding.
  • A hooks block for the plugin manifest wiring it to PostToolUse on Write|Edit.

Installed as part of the plugin, it is already wired. Copied into a repo by hand, wire it in that repo's settings file with the same event and matcher.

What it checks

Only what a script can decide without a model. Each finding names the spell that owns the full treatment, because the hook's job is to notice, not to adjudicate:

Check Fires when Owner
Emphasis inflation over 6 emphasis tokens in a file under 500 words, or over ~10 per 1k words above that — the small-N split quietus-capslockius uses, because one NEVER in a 300-word file is a rate of 3.3/1k and means nothing quietus-capslockius
Description length a skill or agent description: over 1,200 characters, conservatively under the commonly-measured cliff descriptio-reducio
Late NOT for the disambiguation clause starts past character 900 — the part that prevents wrong routing is the part most likely truncated descriptio-reducio
Undeclared model tier an agent with no model:, and only on a roster of 5 or more — below that, inheriting is correct and sorting-hat says so sorting-hat
Dead rule glob a paths: entry matching zero tracked files under both git pathspec modes accio-rulebook
Memory file size over 25,000 bytes obliviate-fossilium

Read the full file on GitHub · 97 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. 8d ago First seen · 97 lines · 0 tokens per session scan A c9d3b15b5e82

Subscribe to this mod's changes

protego is a skill published in the GitHub repository Totes-MickGOATs/opus-pocus (10 stars, last pushed 29d ago), licensed MIT. It adds 160 tokens to every session and 1,545 once invoked, about $0.0008 per session on Opus 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

Other skills, from other repositories

claude-md-architect

Design, create, extract, or audit CLAUDE.md files and their supporting docs/ folder structure for Claude Code projects. Use this skill whenever the user asks to create a new CLAUDE.md, extract context from a long session into a CLAUDE.md system, audit/refactor an existing CLAUDE.md that has bloated, review whether…

trin-zenityx/claude-md-architect · 210 tokens

huggingface-llm-trainer

Train or fine-tune language models with TRL or Unsloth on Hugging Face Jobs, including SFT, DPO, GRPO, reward models, and GGUF conversion. Use for cloud LLM training; use huggingface-vision-trainer for vision tasks.

waybarrios/opencode-power-pack · 65 tokens

feature-dev

Guide a feature implementation through a structured seven-phase workflow with deep codebase understanding, clarifying questions, parallel architecture design, and quality review. Use this skill when the user asks to build a new feature, add functionality, or wants a methodical approach to implementation rather than…

waybarrios/opencode-power-pack · 62 tokens

memstack-business-gdpr

Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…

cwinvestments/memstack · 121 tokens

memstack-development-refactor-planner

Use this skill when the user says 'refactor', 'refactoring plan', 'code cleanup', 'reduce duplication', 'simplify code', 'tech debt', 'god class', 'tight coupling', or needs to systematically improve existing code. Identifies targets, assesses risk, and builds incremental execution plans. Do NOT use for writing new…

cwinvestments/memstack · 81 tokens

memstack-product-feedback-analyzer

Use this skill when the user says 'analyze feedback', 'feedback analysis', 'what are customers asking for', or has support tickets, reviews, or survey data to categorize, score, and prioritize into actionable reports. Do NOT use for competitor analysis or market research.

cwinvestments/memstack · 61 tokens