ソース情報
- リポジトリ
- arbazkhan971/godmode
- ソースの最終更新活動
- 2026年8月28日 00:33
- 検出された SKILL.md の言語
- 英語
- スター
- 25
- フォーク
- 7
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/arbazkhan971/godmode --skill ratelimitコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
| name | ratelimit |
| description | Rate limiting algorithms, quota management, throttling, API protection. |
/godmode:ratelimit, "rate limit", "throttle"grep -r "rate.limit\|ratelimit\|throttle" \
package.json requirements.txt go.mod 2>/dev/null
grep -r "rateLim\|throttle\|RateLimit" \
--include="*.ts" --include="*.py" -l 2>/dev/null
Current: None | Basic (nginx) | App-level | Multi-layer
API Surface: public <N>, authenticated <N>, internal <N>
Risk: unauthenticated abuse, cost-sensitive endpoints
IF unsure: use sliding window counter. IF burst tolerance needed: use token bucket.
Anonymous: 20/min, burst 5, 1K/day
Free: 60/min, burst 15, 10K/day
Basic/$29: 300/min, burst 50, 100K/day
Pro/$99: 1K/min, burst 200, 1M/day
Enterprise: 5K/min, burst 1K, unlimited
Internal: no limit (bypass)
Endpoint overrides (stricter):
Resolution: endpoint > user tier > global IP.
Standard: RateLimit-Limit, RateLimit-Remaining,
RateLimit-Reset. On 429: add Retry-After.
Set headers on EVERY response (success and 429).
Lua script for atomic sliding window counter.
Without shared state, N instances * limit = N*limit.
Load script via SCRIPT LOAD, call via EVALSHA.
Resolve client key (API key or IP), resolve tier, call Redis Lua, set headers, return 429 when denied. Skip health checks and internal paths.
RULE: Rate limiter failure NEVER causes app failure. Fail OPEN when Redis is down. Log warning. Optional local in-memory fallback (less accurate).
Rate limit = short window (100/min).
Quota = long window (10K/day, 1M/month).
INCR quota:{key}:{date} with 2-day TTL.
Warn at 75%, 90%, 100%. Optional overage billing.
Metrics: requests_total, rejected_total (>100/min), rejected_ratio (>10%), latency P95 (>5ms), redis_errors, failopen_total (>0), quota_usage (>90%).
All public endpoints protected, auth endpoints strict (<=5/min), headers on all responses, 429 has Retry-After, atomic ops, fail-open, tier limits set.
Append .godmode/ratelimit.tsv:
timestamp algorithm storage tiers endpoint_overrides quota status
KEEP if: limit enforced atomically AND headers present
AND fail-open on Redis down.
DISCARD if: race condition allows bypass
OR 429 missing Retry-After OR fail-closed.
STOP when FIRST of:
- All public endpoints protected
- Tiers configured
- Fail-open verified
On failure: git reset --hard HEAD~1. Never pause.
| Failure | Action |
|---|---|
| Redis unavailable | Fail open, in-memory fallback |
| Clients bypassing | Check atomic ops, add IP limit |
| 429 no Retry-After | Add to response handler |
| Limits too strict | Analyze traffic, increase burst |
| Lua script errors | Check Redis version, reload |
SOC 職業分類に基づく