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 KeyArgo/custodian-kernel --skill modal-invokegit clone --depth 1 https://github.com/KeyArgo/custodian-kernelWrote 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/keyargo/custodian-kernel/modal-invoke)<a href="https://agentmods.dev/skills/keyargo/custodian-kernel/modal-invoke"><img src="https://agentmods.dev/badge/skills/keyargo/custodian-kernel/modal-invoke/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/keyargo/custodian-kernel/modal-invoke"><img src="https://agentmods.dev/badge/skills/keyargo/custodian-kernel/modal-invoke.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.00012 | $0.00324 |
| Opus 5 | $0.00006 | $0.00162 |
| Sonnet 5 | $0.00002 | $0.00065 |
| Haiku 4.5 | $0.00001 | $0.00032 |
Grade A, and why
modal-invoke 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 5d 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.
This is a copy
75% identical to discord-webhook — 22 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
Modal Invoke
Invoke a deployed Modal function with JSON arguments
Authority band
This tool runs under L2 authority in the Custodian kernel. Autonomous up to the per-action and session caps; escalates above threshold.
Inputs
| Parameter | Type | Required | Description |
|---|---|---|---|
| (see execute.py for full schema) |
Configuration
Set the required environment variables before use. Until configured, custodian tools run modal-invoke returns a stub response indicating which variables are needed.
Usage
custodian tools run modal-invoke --param value
Custodian governance
Every call to this tool passes through the Custodian kernel authority check before executing. The kernel verifies the current authority band, checks spending caps where applicable, logs the action to the OCSF audit trail, and escalates to a human operator if the action exceeds the declared band.
Adding this tool to any Hermes agent session requires no code changes —
declare custodian-band: L2 in the SKILL.md frontmatter and the kernel
wraps it automatically.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago First seen · 51 lines · 12 tokens per session scan A 0469ca85e6f8
modal-invoke is a skill published in the GitHub repository KeyArgo/custodian-kernel (119 stars, last pushed 17d ago), licensed MIT. It adds 12 tokens to every session and 324 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 75% identical to discord-webhook, differing in 22 lines, and is treated as a copy.
Other skills, from other repositories
auditing-terraform-infrastructure-for-security
Auditing Terraform infrastructure-as-code for security misconfigurations using Checkov, tfsec, Terrascan, and OPA/Rego policies to detect overly permissive IAM policies, public resource exposure, missing encryption, and insecure defaults before cloud deployment.
cis-aws-foundations-2.16
Ensure IAM instance roles are used for AWS resource access from instances.
cis-aws-foundations-2.4
Ensure no 'root' user account access key exists.
cis-aws-compute-12.3
Ensure AWS Secrets manager is configured and being used by Lambda for databases.
cis-aws-compute-3.6
Ensure secrets are not passed as container environment variables in Amazon ECS task definitions.
cis-aws-compute-5.12
Change the auto-generated password for Windows based instances.