rate-limiting — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited rate-limiting (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
| Strategy | How | Use Case |
|---|---|---|
| Token bucket | Tokens refill at fixed rate | Bursty traffic, API keys |
| Leaky bucket | Fixed processing rate | Queue processing |
| Sliding window | Count requests in rolling time window | General purpose |
| Fixed window | Reset counter at intervals | Simple rate limiting |
# Sliding window with Redis
import time
from redis import Redis
r = Redis()
def check_rate_limit(user_id: str, max_requests: int = 100, window: int = 60) -> bool:
key = f"ratelimit:{user_id}:{int(time.time() / window)}"
count = r.incr(key)
if count == 1:
r.expire(key, window * 2)
return count <= max_requestsX-RateLimit-Limit: 100
X-RateLimit-Remaining: 42
X-RateLimit-Reset: 1680000000
Retry-After: 30~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.