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.
npx skills add blackzhanzhan/Cyber-Ming-Protocol --skill contract-hook-routergit clone --depth 1 https://github.com/blackzhanzhan/Cyber-Ming-ProtocolWrote 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.
[](https://agentmods.dev/skills/blackzhanzhan/cyber-ming-protocol/contract-hook-router)<a href="https://agentmods.dev/skills/blackzhanzhan/cyber-ming-protocol/contract-hook-router"><img src="https://agentmods.dev/badge/skills/blackzhanzhan/cyber-ming-protocol/contract-hook-router/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.
<a href="https://agentmods.dev/skills/blackzhanzhan/cyber-ming-protocol/contract-hook-router"><img src="https://agentmods.dev/badge/skills/blackzhanzhan/cyber-ming-protocol/contract-hook-router.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.01456 |
| Opus 5.5 | $0.00021 | $0.00582 |
| Sonnet 5.5 | $0.00010 | $0.00291 |
| Haiku 4.5 | $0.00005 | $0.00146 |
Grade A, and why
contract-hook-router 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Contract Hook Router
Prerequisite: read and obey the repository parent policy at skill/global_rules/SKILL.md first.
Role
This skill is the runtime hook router.
It does not replace:
approval-first-plannerapproved-checklist-executorlegacy-project-handoverprobe-first-scoutfree-development-mode
It decides which hook is active, what truth must be loaded, and which downstream skill owns the next move.
Core Law
Host-native plan modes are not contracts.
Treat Claude Code plan mode, Codex ask/plan-like mode, Cursor planning, OpenCode planning, and similar "think before edit" surfaces as plan-start only. A plan becomes actionable only after plan-compile produces a Cyber-Ming contract and the human approves it or the current run mode already authorizes it.
Hook Lifecycle
bootstrap-read
Use when entering a repository, taking over a project, or recovering from context decay.
Required reads:
- repository starter law
dev_repo/state.json,journal.jsonl,evidence_index.json,tree.mdwhen presentdev_repo/architecture/README.md,ARCHITECTURE.md,graph.json,index.json,invariants.mdwhen presentdev_repo/architecture/data-model/README.md,ER.md,entities.json,relationships.json,invariants.md,migrations.mdwhen present
If runtime truth is missing, downstream execution should bootstrap it.
If architecture truth is missing during old-project takeover, downstream planning must open or require an architecture census before broad implementation.
If data-model truth is missing during old-project takeover and durable data semantics matter, downstream planning must open or require an ER/data-model census before broad data-changing implementation.
plan-start
Use when the user asks for a plan, asks to implement, or the host enters planning mode.
Required action:
- identify whether the request is ordinary implementation, probe, takeover, free development, architecture amendment, or data-model amendment
- route to the smallest valid downstream skill
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.
- 2mo ago First seen · 176 lines · 52 tokens per session scan A cbee6cb2bca4
contract-hook-router is a skill published in the GitHub repository blackzhanzhan/Cyber-Ming-Protocol (57 stars, last pushed 6mo ago), licensed MIT. It adds 52 tokens to every session and 1,456 once invoked, about $0.0002 per session on Opus 5.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-30.
contract-hook-router compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| contract-hook-routerblackzhanzhan/Cyber-Ming-Protocol | Skill | 57 | 6mo ago | MIT | A | 52 | Claude Code, Codex |
| save-progressKimYx0207/Meta_Kim | Skill | 288 | 5d ago | Apache-2.0 | A | 65 | Claude Code |
| meta-theoryKimYx0207/Meta_Kim | Skill | 288 | 5d ago | Apache-2.0 | B | 57 | Claude Code |
| same-set-reusable-flow-for-project-file-inventorKimYx0207/Meta_Kim | Skill | 288 | 5d ago | Apache-2.0 | A | 45 | Claude Code |
| requirements-elicitationandreaswasita/copilot-agents-dojo | Skill | 54 | 2mo ago | MIT | A | 13 | Claude Code, Codex |
| self-improvementandreaswasita/copilot-agents-dojo | Skill | 54 | 2mo ago | MIT | A | 12 | Claude Code, Codex |
| subagent-strategyandreaswasita/copilot-agents-dojo | Skill | 54 | 2mo ago | MIT | A | 16 | Claude Code, Codex |