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 j4flmao/agent-skills --skill event-driven-scalinggit clone --depth 1 https://github.com/j4flmao/agent-skillsWrote 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/j4flmao/agent-skills/event-driven-scaling)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/event-driven-scaling"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/event-driven-scaling/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/j4flmao/agent-skills/event-driven-scaling"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/event-driven-scaling.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.00144 | $0.01744 |
| Opus 5.5 | $0.00058 | $0.00698 |
| Sonnet 5.5 | $0.00029 | $0.00349 |
| Haiku 4.5 | $0.00014 | $0.00174 |
Grade A, and why
cloud-native-event-driven-scaling 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 9d 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 — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Event-Driven Scaling with KEDA
Purpose
CPU-based HPA reacts late to queue backlogs and cannot scale from zero. KEDA feeds event-source metrics to the HPA and handles 0↔1 activation itself, so consumers scale with work waiting rather than with CPU after the fact.
Agent Protocol
Trigger
"keda", "scale to zero", "ScaledObject", "ScaledJob", "scale on queue length", "kafka consumer autoscaling", "sqs scaling", "event driven autoscaling", "TriggerAuthentication".
Input Context
- Event source and auth model (IRSA/EKS Pod Identity, Workload Identity, secrets).
- Per-pod throughput (messages/s) and acceptable backlog drain time.
- Message processing duration (seconds vs hours).
Output Artifact
ScaledObject/ScaledJob + TriggerAuthentication YAML. No file unless requested.
Response Format
Resource: {ScaledObject|ScaledJob} (why)
Trigger: {type} target={value} activation={value}
Replicas: min={n} max={n} (max bounded by {partitions|downstream limit})
Flapping control: {cooldownPeriod, HPA behavior}
Auth: {TriggerAuthentication / ClusterTriggerAuthentication}
Completion Criteria
- Target value derived from per-pod throughput, not guessed.
-
maxReplicaCountbounded by partitions or downstream capacity. - Long-running work uses ScaledJob or graceful termination.
How KEDA Works
- keda-operator: watches
ScaledObjects, polls scalers everypollingInterval(default 30 s), creates/owns an HPA, and performs activation (scales 0→1 when the metric exceedsactivationThreshold/activation*value, and 1→0 aftercooldownPeriod, default 300 s, with no activity). - keda-operator-metrics-apiserver: implements the Kubernetes External Metrics API (
external.metrics.k8s.io); the HPA queries it for 1↔N scaling. - KEDA does not replace the HPA — scaling between 1 and N is the regular HPA algorithm:
desired = ceil(current × currentMetric / target); forAverageValueexternal metrics this is effectivelyceil(totalMetric / target). - Only one external metrics server can be registered per cluster; KEDA conflicts with other adapters (e.g. prometheus-adapter for external metrics).
What ships with it
3 files 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.
- 9d ago Changed · +143 lines · +144 tokens per session 6c53f0678823
- 2mo ago First seen · 23 lines · 0 tokens per session scan A 8aaf986b9900
cloud-native-event-driven-scaling is a skill published in the GitHub repository j4flmao/agent-skills (38 stars, last pushed 3d ago), licensed MIT. It adds 144 tokens to every session and 1,744 once invoked, about $0.0006 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-09-03.
cloud-native-event-driven-scaling compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cloud-native-event-driven-scalingj4flmao/agent-skills | Skill | 38 | 3d ago | MIT | A | 144 | Claude Code, Codex |
| flash-sale-scalingfinsilabs/awesome-ecommerce-skills | Skill | 63 | 14d ago | MIT | A | 29 | Claude Code, Codex |
| openpitrixkubesphere/kubesphere | Skill | 17k | 3mo ago | none | A | 60 | Claude Code, Codex |
| whizard-notificationkubesphere/kubesphere | Skill | 17k | 3mo ago | none | A | 36 | Claude Code, Codex |
| whizard-telemetry-rulerkubesphere/kubesphere | Skill | 17k | 3mo ago | none | A | 31 | Claude Code, Codex |
| kubesphere-openkruisekubesphere/kubesphere | Skill | 17k | 3mo ago | none | A | 99 | Claude Code, Codex |
| kubesphere-volcanokubesphere/kubesphere | Skill | 17k | 3mo ago | none | A | 85 | Claude Code, Codex |