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.
git clone --depth 1 https://github.com/kubev2v/forklift-console-pluginWrote 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/rules/kubev2v/forklift-console-plugin/hook-controller)<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/hook-controller"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/hook-controller/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/rules/kubev2v/forklift-console-plugin/hook-controller"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/hook-controller.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.00015 | $0.02140 |
| Opus 5.5 | $0.00006 | $0.00856 |
| Sonnet 5.5 | $0.00003 | $0.00428 |
| Haiku 4.5 | $0.00002 | $0.00214 |
Grade A, and why
hook-controller 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 29d 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 — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Hook Controller
Analyzed from commit:
baf9c7bcc307ed9358ad59886a5536366a050012on 2026-09-17 Source paths:pkg/controller/hook/,pkg/controller/plan/hook.go,pkg/apis/forklift/v1beta1/hook_exec.go
Package Purpose
The Hook lifecycle spans two controllers:
- Hook controller (
pkg/controller/hook/) — validates the Hook CRD and setsReady. - Plan controller (
pkg/controller/plan/hook.go) — executes hooks viaHookRunnerduring migration phasesPreHookandPostHook.
Hooks support two execution modes: local (Kubernetes Job with optional Ansible playbook) and AAP (remote Ansible Automation Platform job template).
Key Types and Structs
HookSpec (pkg/apis/forklift/v1beta1/hook.go)
type HookSpec struct {
ServiceAccount string // optional; local hooks only
Image string // required for local hooks
Playbook string // optional base64-encoded Ansible playbook
Deadline int64 // pod/job deadline in seconds
AAP *AAPConfig // remote AAP execution (mutually exclusive with image/playbook)
}
type AAPConfig struct {
JobTemplateID int // required > 0
URL string // optional per-hook AAP URL
TokenSecret *core.ObjectReference // optional per-hook token Secret (key "token")
Timeout int64 // optional poll timeout in seconds
}
HookRunner (pkg/controller/plan/hook.go)
type HookRunner struct {
*plancontext.Context
vm *planapi.VMStatus
hook *api.Hook
}
Validation helpers (pkg/apis/forklift/v1beta1/hook_exec.go)
HookExecutionConfigValid(hook)— local hook needs non-emptyimage(playbook optional); AAP hook needsjobTemplateId > 0and no local fields.HookAAPRunnable(hook, clusterURL, clusterTokenSecret)— AAP hook runnable when per-hook or cluster AAP connection is configured.
Interfaces and Implementations
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.
- 29d ago Changed · +104 lines be6b60b3e2e0
- 1mo ago First seen · 118 lines · 15 tokens per session scan A 180b59d97342
hook-controller is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed today), licensed Apache-2.0. It adds 15 tokens to every session and 2,140 once invoked, about $0.0001 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.
Other cursor rules, from other repositories
python-containerization-cursorrules-prompt-file
Cursor rules for Python development with containerization integration.
aws-ecs
Definitive guidelines for building, deploying, and operating applications on AWS ECS, emphasizing immutable containers, secure secrets management, and robust operational patterns.
hack
Hack is local-first. This project uses hack for local runtime orchestration (compose + DNS/TLS + logs + sessions). Prefer hack when shell access is available. Use MCP only when shell access is unavailable.
local-compose-db-lifecycle-for-web-tests
Keep local compose DB lifecycle ready for web tests.
runwhen-infrastructure
Infrastructure conventions for scripts targeting Kubernetes and databases via RunWhen runners.
container-rightsizer
Rightsizes container CPU and memory requests and limits using real usage data. Reduces requested resources without hitting OOMKills or CPU throttling.