Keda logo

Keda

Community
nitinjain999
keda

Design, debug, and review KEDA ScaledObject/ScaledJob autoscaling. Covers all major scalers (Prometheus, SQS, Kafka, Redis, Cron, HTTP Add-on, Azure Service Bus), TriggerAuthentication, scaling lifecycle tuning, GitOps integration, and troubleshooting. Use when asked to "add KEDA autoscaling", "debug why my ScaledObject isn't scaling", "review my KEDA config", or "generate a ScaledObject for <trigger>".

Overview

Publishernitinjain999
Repositoryplatform-skills
Skill namekeda
Stars
71
Forks
14
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by nitinjain999 on GitHub. Read the source before you install it.

Installation

Install the Keda AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/keda
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nitinjain999/platform-skills.git /tmp/platform-skills
mkdir -p .claude/skills
cp -r /tmp/platform-skills/plugins/platform-skills/skills/keda .claude/skills/keda
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Keda in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Keda on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Keda is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Design, debug, and review KEDA (Kubernetes Event-Driven Autoscaling) ScaledObject and ScaledJob resources.

Mode: generate

Write a production-ready ScaledObject or ScaledJob from a description.

Steps:

  1. Identify: target workload kind (Deployment / StatefulSet / Job), trigger type, and whether scale-to-zero is acceptable
  2. Choose the right resource kind:
    • Long-running service → ScaledObject
    • Batch processing per message → ScaledJob
  3. Generate with:
    • apiVersion: keda.sh/v1alpha1
    • scaleTargetRef.name matching the exact Deployment/StatefulSet/Job name
    • minReplicaCount: 0 only if the service can tolerate cold-start latency; otherwise minReplicaCount: 1

Scale-to-zero warning: Setting minReplicaCount: 0 means the Deployment will have 0 replicas when the queue/metric is empty. Cold-start latency applies — confirm this is acceptable before enabling.

  • pollingInterval and cooldownPeriod sized to the workload pattern (see table in references/keda.md)
  • Trigger-specific metadata with activationThreshold/activationQueueLength set to avoid flapping on sparse events
  • authenticationRef pointing to a TriggerAuthentication — never inline credentials in the ScaledObject
  • For AWS: prefer IRSA (podIdentity.provider: aws) over static key/secret pairs
  1. Generate the companion TriggerAuthentication or ClusterTriggerAuthentication
  2. Show validation command: kubectl describe scaledobject <name> -n <ns> and the expected Active: true condition

Mode: debug

Diagnose why a ScaledObject or ScaledJob is not scaling as expected.

Steps:

  1. Collect:
    bash
    kubectl get scaledobject -n <namespace>
    kubectl describe scaledobject <name> -n <namespace>
    kubectl get hpa -n <namespace>
    kubectl describe hpa keda-hpa-<scaledobject-name> -n <namespace>
    kubectl logs -n keda -l app.kubernetes.io/name=keda-operator --tail=100
    kubectl logs -n keda -l app.kubernetes.io/name=keda-operator-metrics-apiserver --tail=100
  2. Check the ScaledObject Conditions block:
    • Active: false → scaler is not detecting events (check trigger config and auth)
    • Ready: false → KEDA cannot reach the target deployment (check scaleTargetRef.name)
    • Fallback: true → metric fetch is failing; KEDA is using fallback replicas
  3. Check HPA for <unknown> targets — indicates metrics adapter cannot reach the external source
  4. Work through this checklist in order:
    • External source reachable from the KEDA namespace?
    • TriggerAuthentication secret exists and has correct keys?
    • activationThreshold too high for current event volume?
    • minReplicaCount preventing scale-to-zero?
    • Conflicting HPA on the same Deployment?
    • cooldownPeriod not yet elapsed?
  5. State the most likely root cause with the exact field or resource to fix
  6. Show the corrected spec section and the command to verify it

If you need deeper context on KEDA troubleshooting, scaling lifecycle, or scaler-specific behaviour, load references/keda.md.

Mode: review

Review an existing ScaledObject or ScaledJob for correctness, security, and operational safety.

Review in this priority order:

Correctness

  • Does scaleTargetRef.name match an existing Deployment/StatefulSet?
  • Are minReplicaCount and maxReplicaCount consistent with the workload SLA?
  • Is pollingInterval appropriate for the trigger type (SQS charges per API call)?
  • Does the trigger metadata use the right field names for this scaler version?

Security

  • Are credentials stored in TriggerAuthentication, not inlined in ScaledObject?
  • Is IRSA / Workload Identity used instead of static access keys?
  • Is TriggerAuthentication namespace-scoped unless cluster-wide sharing is justified?
  • Does the IAM policy grant only the minimum permissions needed (read queue depth, not consume)?

Operational safety

  • Is minReplicaCount: 0 justified? What is the cold-start latency?
  • Is cooldownPeriod long enough to prevent thrashing?
  • Is advanced.restoreToOriginalReplicaCount: true set if the ScaledObject may be deleted?
  • Are activationThreshold/activationQueueLength set to prevent premature activation on sparse events?
  • Is HPA scaleDown.stabilizationWindowSeconds configured for latency-sensitive services?

GitOps safety

  • Does the Flux/Argo Kustomization depend on KEDA CRDs being installed first?
  • Is the TriggerAuthentication Secret rendered by External Secrets Operator (not committed to Git)?

Separate findings into:

  • Critical — must fix before deploying (missing auth, wrong target, wildcard IAM permissions)
  • Improvement — should fix (tune cooldownPeriod, add activationThreshold)
  • Note — informational (consider IRSA, document cold-start expectations)

Mode: scale

Design the scaling strategy for a workload from requirements.

Steps:

  1. Ask for (or infer from context):
    • Workload type: background job or synchronous service?
    • Event source: queue service, stream, metrics, time-based, HTTP?
    • Expected event volume range (min/max per minute)
    • Acceptable cold-start latency (drives min replicas decision)
    • Cloud provider (for auth pattern: IRSA vs Workload Identity vs static)
  2. Apply the KEDA vs HPA decision matrix from references/keda.md
  3. Recommend the trigger type(s) and explain why
  4. Size pollingInterval, cooldownPeriod, and minReplicaCount based on the workload pattern
  5. Recommend the authentication pattern (IRSA preferred on AWS, no static credentials)
  6. If multiple triggers are needed (e.g., queue depth + cron business hours), explain the OR-max semantics
  7. Output the complete ScaledObject, TriggerAuthentication, and IAM policy skeleton

Rollback: kubectl delete scaledobject <name> -n <namespace> removes KEDA control. Replica behavior on deletion depends on configuration:

  • advanced.restoreToOriginalReplicaCount: true (explicit) → restores the pre-KEDA replica count
  • Default (not set) → leaves replicas at the last scaled value, which may be 0 if scale-to-zero was active

Verify: kubectl get deployment <name> -n <namespace> -o jsonpath='{.spec.replicas}' — if replicas are 0, manually scale up: kubectl scale deployment <name> -n <namespace> --replicas=<desired>.

Frequently asked questions

What does the Keda AI skill do?

Design, debug, and review KEDA ScaledObject/ScaledJob autoscaling. Covers all major scalers (Prometheus, SQS, Kafka, Redis, Cron, HTTP Add-on, Azure Service Bus), TriggerAuthentication, scaling lifecycle tuning, GitOps integration, and troubleshooting. Use when asked to "add KEDA autoscaling", "debug why my ScaledObject isn't scaling", "review my KEDA config", or "generate a ScaledObject for <trigger>".

Why use Keda on TypingMind?

Because you install it once and use it with any model. Keda is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Keda in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/keda. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Keda?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Keda?

As many as you like. As long as a model supports skills, you can use Keda with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Keda AI skill free?

Yes. It is published on GitHub by nitinjain999 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇