Borrowing it
Nothing to install: this file belongs to EndogenAI/dogma. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/EndogenAI/dogma/main/.github/skills/rate-limit-resilience/SKILL.mdgit clone --depth 1 https://github.com/EndogenAI/dogmaWrote 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/endogenai/dogma/rate-limit-resilience)<a href="https://agentmods.dev/skills/endogenai/dogma/rate-limit-resilience"><img src="https://agentmods.dev/badge/skills/endogenai/dogma/rate-limit-resilience/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/endogenai/dogma/rate-limit-resilience"><img src="https://agentmods.dev/badge/skills/endogenai/dogma/rate-limit-resilience.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.00035 | $0.02632 |
| Opus 5 | $0.00017 | $0.01316 |
| Sonnet 5 | $0.00007 | $0.00526 |
| Haiku 4.5 | $0.00003 | $0.00263 |
Grade A, and why
rate-limit-resilience scanned grade A with 1 finding 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 10d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
result = subprocess.run( How it starts
The opening of the file, as written. The whole thing — 289 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rate-Limit Resilience — Pre-Delegation Gate Workflow
Beliefs & Context
Governing Axiom (from MANIFESTO.md#3-local-compute-first):
Rate-limit constraints are structural constraints on token usage, not optional optimizations.
Treating them as a first-class system property (not a post-hoc scaling concern) enables
reliable multi-phase sessions without token exhaustion.
Integration Points:
AGENTS.md#programmatic-first-principle— Phase 0 ships four scripts instead of interactive workaroundsAGENTS.md#executive-fleet-privileges— Orchestrator holds rate-limit gate logicphase-gate-sequenceSKILL.md — Pre-phase checkpoint integrates gate at step 2
Related Research:
docs/research/rate-limit-detection-api.md— Tier 1 budget tracking, Tier 2 circuit-breaker
Workflow & Intentions
1. Load Provider Policies
At the start of a delegation, the orchestrator loads provider-specific rate-limit policies:
from rate_limit_config import get_policy
policy = get_policy(provider='claude', operation='delegation')
# Returns: {'sleep_sec': 60, 'retry_limit': 1, 'circuit_breaker_threshold': 3}
Available Providers:
claude— Anthropic Claude API (conservative: 60s minimum sleep)gpt-4— OpenAI GPT-4 (moderate: 30s minimum sleep)gpt-3.5— OpenAI GPT-3.5 (permissive: 20s minimum sleep)local-localhost— Local inference (no rate limit: 0s sleep)fallback— Unknown providers (conservative fallback)
Available Operations:
fetch_source— Source fetching during researchdelegation— Agent delegation phasephase_boundary— Phase transitionsreview_gate— Review agent invocationscommit— GitHub commits/API calls
2. Pre-Delegation Budget Check
Before delegating a phase, call rate_limit_gate.py:
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.
- 10d ago First seen · 289 lines · 35 tokens per session scan A 8e4c9a17651a
rate-limit-resilience is a skill published in the GitHub repository EndogenAI/dogma (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,632 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
air-blackbox-sales-agent
AIR Blackbox's autonomous sales prospecting agent. Finds Python AI projects on GitHub that need EU AI Act compliance, identifies the right person to contact (CEO, CTO, lead maintainer), runs a free compliance scan, and drafts personalized outreach emails that convert to engagement. The sales flow: free scan as the…
interpret-results
Interprets AIR Blackbox scan results and maps findings to specific EU AI Act articles, recitals, and remediation steps. Use when the user has scan output and wants to understand what to fix, why it matters, or how to prioritize.
compliance-scan
Scans a Python AI project for EU AI Act compliance gaps using AIR Blackbox. Use when the user asks to check compliance, scan their code, audit their AI project, or mentions EU AI Act, Articles 9-15, or compliance checking.
nio-scan
Nio code/skill execution-risk scanner. Use when the user wants to scan a file, repo, directory, or skill for execution risks — e.g. "scan this code for risks", "is this file/plugin dangerous", "check this repo for malicious code", "run nio scan on ". Focused single-purpose skill; for other Nio operations use /nio.
nio-external-score
Nio external scoring-endpoint snapshot. Use when the user asks about their current Nio/risk scores from configured external scoring endpoints — e.g. "what's my Nio score", "tell me the nio score", "check my external/guardrail endpoint scores", "what do my scoring services return right now", "list the current risk…
constitutional-ai
Anthropic's method for training harmless AI through self-improvement. Two-phase approach - supervised learning with self-critique/revision, then RLAIF (RL from AI Feedback). Use for safety alignment, reducing harmful outputs without human labels. Powers Claude's safety system.