quota-debug

quota-debug is a skill for Claude Code, Codex from scitix/siclaw. It costs 69 tokens per session (1,929 once invoked), scanned A, original, Apache-2.0.

A diagnostic guide for Kubernetes ResourceQuota and LimitRange, which restrict resource use and set allowed resource values within a namespace. It checks quota usage, limits, and controller events when pods cannot be created.

In plain words
What is it for?
Use it when a ReplicaSet or Job cannot create pods and events mention exceeded quota or LimitRange restrictions.
Why use it?
It helps explain FailedCreate and admission errors caused by exceeded quotas or invalid resource requests. It also separates native Kubernetes limits from Volcano Queue scheduling.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/scitix/siclaw/quota-debug
Any agent
npx skills add scitix/siclaw --skill quota-debug
Clone the repo
git clone --depth 1 https://github.com/scitix/siclaw

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for quota-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/scitix/siclaw/quota-debug.svg)](https://agentmods.dev/skills/scitix/siclaw/quota-debug)
Your own site
<a href="https://agentmods.dev/skills/scitix/siclaw/quota-debug"><img src="https://agentmods.dev/badge/skills/scitix/siclaw/quota-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,929 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00069 $0.01929
Opus 5 $0.00034 $0.00964
Sonnet 5 $0.00014 $0.00386
Haiku 4.5 $0.00007 $0.00193

Measured 4d ago against content hash d883fce9d402, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

quota-debug 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 4d 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.

skills/core/quota-debug/SKILL.md · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ResourceQuota & LimitRange Admission Diagnosis

When pods fail to be created due to Kubernetes native namespace-level resource constraints — ResourceQuota exceeded or LimitRange violations — follow this flow to identify the root cause.

Scope: This skill is for diagnosis only. Once you identify the root cause, report it to the user and stop. Do NOT attempt to modify ResourceQuota, LimitRange, or pod specs — that should be left to the user or cluster administrator.

When to use: Pods are not being created at all (not Pending, not CrashLoopBackOff — simply missing). Typical trigger: a ReplicaSet or Job shows FailedCreate events mentioning exceeded quota or forbidden: ... LimitRange.

Not applicable to Volcano Queue: If the cluster uses Volcano for gang scheduling, resource quotas are managed by Volcano Queue, not Kubernetes native ResourceQuota. Use the volcano-queue-diagnose skill instead. To check:

kubectl get queue 2>/dev/null

If this command returns results (Queue resources listed), the cluster uses Volcano — use volcano-queue-diagnose. If it returns nothing or an error, Volcano is not installed — continue with this skill.

Diagnostic Flow

1. Identify the creation failure

If the user reports a Deployment not progressing or pods not appearing, first find the controller that owns the pods:

kubectl get rs -n <ns> --sort-by='.metadata.creationTimestamp' | grep <deployment-name>

Then check the ReplicaSet events for creation failures:

kubectl describe rs <new-rs> -n <ns>

Look for events with reason FailedCreate. The event message reveals whether it is a ResourceQuota or LimitRange rejection.

If the user already has a specific error message, skip to step 2.

2. Match the rejection type


exceeded quota — ResourceQuota exhausted

The namespace has a ResourceQuota and creating the pod would exceed the allowed limits.

Check current quota usage:

kubectl get resourcequota -n <ns>

Read the full file on GitHub · 204 lines

Changes

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.

  1. 4d ago First seen · 204 lines · 69 tokens per session scan A d883fce9d402

Subscribe to this mod's changes

quota-debug is a skill published in the GitHub repository scitix/siclaw (230 stars, last pushed 5d ago), licensed Apache-2.0. It adds 69 tokens to every session and 1,929 once invoked, about $0.0003 per session on Opus 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.