[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M792EJB9KZA1HD7TVCWRMS8D":3,"skill-same:01M792EJB9KZA1HD7TVCWRMS8D":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M792EJB9KZA1HD7TVCWRMS8D","langchain-rate-limits",null,"Rate-limit LangChain 1.0 calls correctly across multi-worker deployments —\nRedis-backed limiters, asyncio.Semaphore, narrow exception whitelists, and\nprovider-specific throttle handling. Use when hitting 429s in production,\nscaling workers horizontally, or tuning throughput against Anthropic, OpenAI,\nor Gemini tier limits.\nTrigger with \"langchain rate limit\", \"langchain 429\", \"langchain semaphore\",\n\"langchain token bucket\", \"anthropic rpm\", \"openai rpm throttling\",\n\"InMemoryRateLimiter\", \"redis rate limiter\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--langchain-py-pack--langchain-rate-limits\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: langchain-rate-limits\ndescription: |\n  Rate-limit LangChain 1.0 calls correctly across multi-worker deployments —\n  Redis-backed limiters, asyncio.Semaphore, narrow exception whitelists, and\n  provider-specific throttle handling. Use when hitting 429s in production,\n  scaling workers horizontally, or tuning throughput against Anthropic, OpenAI,\n  or Gemini tier limits.\n  Trigger with \"langchain rate limit\", \"langchain 429\", \"langchain semaphore\",\n  \"langchain token bucket\", \"anthropic rpm\", \"openai rpm throttling\",\n  \"InMemoryRateLimiter\", \"redis rate limiter\".\nallowed-tools: Read, Write, Edit, Bash(python:*), Bash(redis-cli:*)\nversion: 2.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, langchain, langgraph, python, langchain-1.0, rate-limits, throttling, concurrency]\ncompatible-with: claude-code, codex\n---\n\n# LangChain Rate Limits (Python)\n\n## Overview\n\nA team deploys 10 Cloud Run workers. Each worker initializes its `ChatAnthropic`\nwith `InMemoryRateLimiter(requests_per_second=10)` — they read the docs, they\npicked a safe-looking number, they shipped. Thirty seconds later the dashboard\nlights up with 429s: the cluster is pushing 100 RPS to Anthropic's 50 RPM\ntier-1 ceiling, not the 10 RPS they configured. The name is the fix —\n`InMemoryRateLimiter` is **in-process**. Each worker has its own counter. Ten\nworkers × 10 RPS = 100 RPS to the provider. This is pain-catalog entry **P29**\nand it lands on every team that scales past one pod.\n\nThree more traps wait on the same code path:\n\n- **P07** — `.with_fallbacks([backup])` defaults `exceptions_to_handle=(Exception,)`,\n  which on Python \u003C3.12 swallows `KeyboardInterrupt`. Ctrl+C during a 429\n  retry storm silently falls through to the backup chain and keeps billing.\n- **P30** — `ChatOpenAI` and `ChatAnthropic` default `max_retries=6`. That is\n  retries, not attempts: **7 total requests per logical call** on flaky\n  networks. One `.invoke()` can bill 7x.\n- **P31** — Anthropic's RPM counts cache reads, cache writes, and uncached\n  calls **uniformly**. Cache-heavy workloads at 50 RPM can 429 on cache writes\n  while the ITPM dashboard shows headroom.\n\nThis skill covers measuring demand before picking a limit; the\n`InMemoryRateLimiter` vs Redis-backed limiter vs `asyncio.Semaphore` decision\ntree; the narrow `exceptions_to_handle` whitelist; `max_retries=2` math; and\nthe provider-specific limit taxonomy (RPM, ITPM, OTPM, concurrent,\ncached-vs-uncached). Pin: `langchain-core 1.0.x`, `langchain-anthropic 1.0.x`,\n`langchain-openai 1.0.x`. Pain-catalog anchors: **P07, P08, P29, P30, P31**.\nFor `.batch(max_concurrency=...)` tuning, see the sibling skill\n`langchain-performance-tuning` — this skill is about provider-facing rate caps.\n\n## Prerequisites\n\n- Python 3.10+ (3.12+ fixes the `KeyboardInterrupt` half of P07)\n- `langchain-core >= 1.0, \u003C 2.0`\n- At least one provider: `pip install langchain-anthropic langchain-openai`\n- For multi-worker prod: `redis >= 4.5` client and a Redis server reachable from every worker\n- Completed `langchain-model-inference` — the chat-model factory from that skill is where `rate_limiter=` gets attached\n\n## Instructions\n\n### Step 1 — Measure actual demand before picking a number\n\n**Do not guess at `requests_per_second`.** Instrument first, size second.\nAttach a `BaseCallbackHandler` that logs per-call `input_tokens`,\n`output_tokens`, and `cache_read_input_tokens` from `response.generations[].message.usage_metadata`:\n\n```python\nchain.with_config({\"callbacks\": [DemandLogger()]})\n```\n\nCollect 24-48 hours of representative traffic. Roll up: p50 and p95 RPM, p95\nITPM, p95 OTPM, cache hit rate. Size the limiter at **70% of the binding\nconstraint's tier ceiling** on your p95.\n\nSee [Measuring Demand](references\u002Fmeasuring-demand.md) for the full\n`DemandLogger` implementation, pandas roll-up, OTEL integration, load-test\nharness, and multi-tenant sizing strategies.\n\n### Step 2 — `InMemoryRateLimiter` for single-process dev only; never multi-worker prod\n\nLangChain 1.0 ships `InMemoryRateLimiter` as a first-class `BaseChatModel` parameter:\n\n```python\nfrom langchain_anthropic import ChatAnthropic\nfrom langchain_core.rate_limiters import InMemoryRateLimiter\n\nlimiter = InMemoryRateLimiter(\n    requests_per_second=0.58,    # 35 RPM = 70% of Anthropic tier-1 50 RPM\n    check_every_n_seconds=0.1,\n    max_bucket_size=5,           # burst capacity\n)\n\nllm = ChatAnthropic(\n    model=\"claude-sonnet-4-6\",\n    rate_limiter=limiter,\n    max_retries=2,\n    timeout=30,\n)\n```\n\n**`InMemoryRateLimiter` is per-process.** Safe for:\n\n- Single-process local dev (`python script.py`)\n- Single-worker uvicorn (`uvicorn --workers 1`)\n- Jupyter notebooks, batch scripts\n\n**Unsafe for** (this is P29):\n\n- Multi-worker uvicorn \u002F gunicorn (`--workers 4`)\n- Any container orchestrator with replica count > 1 (Cloud Run min-instances > 1, K8s, ECS)\n- Distributed job runners (Celery, Temporal, Cloud Tasks fanout)\n\n### Step 3 — Redis-backed limiter for cluster-wide enforcement\n\nFor multi-worker deployments, cluster-wide rate limiting requires shared state.\nRedis is the default answer — atomic Lua script for sliding-window, or Redis\n6.2+ `CL.THROTTLE` for GCRA.\n\n```python\nimport redis\nfrom langchain_anthropic import ChatAnthropic\n# RedisRateLimiter class defined in references\u002Fredis-limiter-pattern.md\nfrom your_app.limiters import RedisRateLimiter\n\nclient = redis.Redis.from_url(\"redis:\u002F\u002Fredis.internal:6379\u002F0\")\n\nlimiter = RedisRateLimiter(\n    client,\n    key=\"anthropic:prod\",\n    requests_per_second=35 \u002F 60,  # 35 RPM cluster-wide, not per-worker\n)\n\nllm = ChatAnthropic(\n    model=\"claude-sonnet-4-6\",\n    rate_limiter=limiter,\n    max_retries=2,\n    timeout=30,\n)\n```\n\n**Key scoping decisions:**\n\n- `key=\"anthropic:prod\"` — all tenants share one global budget (simplest)\n- `key=f\"anthropic:tenant:{tenant_id}\"` — per-tenant quota (requires cleanup for dead tenants)\n- Two-level: per-tenant + global, acquire both (best for multi-tenant SaaS)\n\nSee [Redis Limiter Pattern](references\u002Fredis-limiter-pattern.md) for the full\n`RedisRateLimiter` implementation (atomic Lua sliding window), the GCRA\nalternative via `CL.THROTTLE`, failure modes (Redis down, clock skew), and\nper-tenant cleanup strategy.\n\n### Step 4 — `asyncio.Semaphore` for per-worker in-flight concurrency cap\n\nThe rate limiter throttles **request rate**. A semaphore throttles **in-flight\ncount**. Use both:\n\n```python\nimport asyncio\n\n# Cluster: 35 RPM (Redis enforces)\n# Worker: 20 in-flight at once (semaphore enforces)\nworker_sem = asyncio.Semaphore(20)\n\nasync def bounded_invoke(inp):\n    async with worker_sem:\n        return await llm.ainvoke(inp)\n\n# Fanout\nresults = await asyncio.gather(*[bounded_invoke(x) for x in inputs])\n```\n\nWhy both: a semaphore prevents a single worker from queueing hundreds of\npending limiter acquires against Redis (head-of-line blocking on the event\nloop). The limiter prevents the cluster from exceeding the provider tier. They\nsolve different problems.\n\n**Semaphore sizing**: target latency-bandwidth-product. If p95 request latency\nis 2s and the worker's RPS cap is 10, in-flight count ≈ 2 × 10 = 20. Overshoot\nis wasted memory; undershoot leaves throughput on the table.\n\n### Step 5 — Narrow `with_fallbacks(exceptions_to_handle=...)` — never `(Exception,)`\n\n`.with_fallbacks([backup])` defaults to catching `Exception`. This is P07 — on\nPython \u003C3.12, `Exception` edge-cases include `KeyboardInterrupt` propagation.\nCtrl+C during a retry storm silently hands off to the backup and keeps running.\n**Always narrow the tuple:**\n\n```python\nfrom anthropic import (\n    RateLimitError, APITimeoutError, APIConnectionError, InternalServerError,\n)\n\nresilient = (prompt | claude | parser).with_fallbacks(\n    [prompt | gpt4o | parser],\n    exceptions_to_handle=(\n        RateLimitError, APITimeoutError,\n        APIConnectionError, InternalServerError,\n    ),\n    # NEVER: Exception, BaseException, AuthenticationError,\n    # BadRequestError, ValidationError\n)\n```\n\nThe whitelist is **only transient provider errors**. `AuthenticationError`,\n`BadRequestError`, and `ValidationError` are bugs in your code\u002Fcredentials —\nfallback produces the same crash. See the sibling skill's reference\n`langchain-sdk-patterns\u002Freferences\u002Ffallback-exception-list.md` for the full\nper-provider whitelist (Anthropic, OpenAI, Gemini).\n\n### Step 6 — `max_retries=2`, never the default `max_retries=6`\n\n`max_retries` is **retries, not attempts.** Default `max_retries=6` on\n`ChatOpenAI` \u002F `ChatAnthropic` means **initial + 6 retries = 7 billed requests**\nper logical call (P30). On a flaky network, one `.invoke()` costs 7x what you\nbudgeted.\n\n```python\n# BAD — default\nllm = ChatOpenAI(model=\"gpt-4o\")  # max_retries=6\n\n# GOOD — production default\nllm = ChatOpenAI(\n    model=\"gpt-4o\",\n    max_retries=2,      # initial + 2 retries = 3 total billed requests max\n    timeout=30,\n    rate_limiter=redis_limiter,\n)\n```\n\nTrade resilience off to the fallback layer — `with_fallbacks` is strictly\ncheaper than retry amplification when the primary is genuinely unhealthy.\nInstrument retry count via callback and alert if retry rate exceeds ~5%.\n\nSee [Backoff and Retry](references\u002Fbackoff-and-retry.md) for the full math,\n`Retry-After` header handling, and circuit-breaker pattern for sustained\noverload.\n\n### Step 7 — Understand the provider limit taxonomy\n\nDifferent providers expose different limit types. Know which one binds your\nworkload before you size:\n\n| Limit | Meaning | Who enforces | Binds for |\n|---|---|---|---|\n| **RPM** | Requests\u002Fminute (counts every call) | All three providers | Short chat replies |\n| **ITPM** | Input tokens\u002Fminute | Anthropic, OpenAI (as TPM combined) | Long document Q&A |\n| **OTPM** | Output tokens\u002Fminute | Anthropic separately; OpenAI as combined TPM | Long completions |\n| **Concurrent** | In-flight request cap | Mainly OpenAI higher tiers | Burst traffic |\n| **Cached reads** | Cache-read input tokens (Anthropic) | Anthropic separate budget line | Cache-heavy workloads (but still counts toward RPM — P31) |\n\nCritical for Anthropic cache workloads (P31): RPM counts uniformly across\ncached reads, cache writes, and uncached calls. A workload at 90% cache hit\nrate still trips the 50 RPM ceiling at 51 requests\u002Fmin. Separate monitors for\n`cache_read_input_tokens` vs `input_tokens` (minus cache read\u002Fwrite) give\nearly warning.\n\n### Step 8 — Decision tree: which limiter to use\n\n```\n┌─ Single process (dev, notebooks, sync CLI, --workers 1)?\n│  └─ InMemoryRateLimiter\n│\n├─ Multi-process but single host (same-machine pool, local gunicorn)?\n│  └─ Redis-backed limiter (even localhost Redis beats InMemoryRateLimiter —\n│     which still has per-process counters)\n│\n├─ Multi-host cluster (Cloud Run --min-instances>1, K8s, ECS)?\n│  └─ Redis-backed limiter (mandatory)\n│\n├─ Multi-region or cross-cloud?\n│  └─ Regional Redis per zone + provider-side account quota\n│     (cross-region Redis latency adds 30-200ms per acquire)\n│\n└─ Any of the above + multi-tenant SaaS?\n   └─ Two-level Redis limiter: per-tenant + global, acquire both\n```\n\nAlways pair with `asyncio.Semaphore(N)` per-worker for in-flight concurrency.\n\n### Step 9 — Provider tier snapshot (verify before shipping)\n\n**2026-04-21 snapshot — re-verify against the official console before shipping.**\n\n| Provider | Free tier RPM | Tier-1 RPM | High tier RPM | Source |\n|---|---|---|---|---|\n| Anthropic | 5 | 50 (Build 1) | 4000 (Build 4) | https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Frate-limits |\n| OpenAI | 3 | 500 | 10000 (Tier 5) | https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fguides\u002Frate-limits |\n| Google Gemini | 15 | 2000 (Paid 1) | 30000 (Paid 3) | https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Frate-limits |\n\nTiers change quarterly. A limiter sized six months ago on a different tier is\na liability. See [Provider Tier Matrix](references\u002Fprovider-tier-matrix.md) for\nthe full matrix including ITPM \u002F OTPM \u002F cached-read separation, binding-limit\nmath, and the pre-ship verification checklist.\n\n## Output\n\n- Instrumented `DemandLogger` callback attached to your chains for 24-48h before sizing\n- `InMemoryRateLimiter` in dev \u002F notebooks \u002F single-worker only\n- `RedisRateLimiter` (sliding-window Lua or `CL.THROTTLE` GCRA) for any multi-worker deployment, keyed per-tenant or global\n- `asyncio.Semaphore(N)` per-worker in-flight cap paired with the cluster-wide limiter\n- `max_retries=2` on every `ChatAnthropic` \u002F `ChatOpenAI` \u002F `ChatGoogleGenerativeAI`\n- `.with_fallbacks(exceptions_to_handle=(RateLimitError, APITimeoutError, APIConnectionError, InternalServerError))` — never `(Exception,)`\n- Per-provider tier re-verified from the official console, sized at 70% of the binding constraint\n\n## Error Handling\n\n| Error | Cause | Fix |\n|---|---|---|\n| `anthropic.RateLimitError: 429 THROTTLED` at cluster RPM = N × InMemoryRateLimiter ceiling | `InMemoryRateLimiter` is per-process; N workers each send at their limit (P29) | Switch to Redis-backed limiter (Step 3) |\n| 429 on cache writes while ITPM dashboard shows headroom | Anthropic RPM counts cache writes uniformly (P31) | Budget at RPM level with limiter; separate cached vs uncached metrics |\n| One `.invoke()` bills as 7 requests on flaky networks | Default `max_retries=6` (P30) | `max_retries=2` + fallback layer for resilience |\n| `Ctrl+C` during retry storm silently falls through to backup chain | `exceptions_to_handle=(Exception,)` catches `KeyboardInterrupt` on Python \u003C3.12 (P07) | Narrow tuple to `(RateLimitError, APITimeoutError, APIConnectionError, InternalServerError)` |\n| Limiter queue p95 wait > 500ms | Limiter is oversubscribed for real traffic | Re-measure demand (Step 1); upgrade provider tier OR shed load |\n| `redis.exceptions.ConnectionError` blocks all LLM calls | Redis unavailable and limiter is fail-closed | Instrument Redis health; decide fail-open (log loudly) vs fail-closed (shed load) — for provider safety, prefer fail-closed |\n| `retry-after` header climbing 2→4→8→16 | Pushing past tier; backoff amplifying, not absorbing | Lower limiter target RPS by 20%; upgrade tier if sustained |\n| `google.api_core.exceptions.ResourceExhausted` on Gemini | Gemini free tier 15 RPM is brutal | Upgrade to paid Gemini tier 1 (2000 RPM) or use Redis limiter at 10 RPM |\n\n## Examples\n\n### Multi-worker Cloud Run deployment with Anthropic tier-1 50 RPM\n\nTen workers, single region, Redis in same VPC. Target: 35 RPM cluster-wide\n(70% of 50 RPM ceiling), 20 in-flight per worker.\n\n```python\nimport asyncio, os, redis\nfrom langchain_anthropic import ChatAnthropic\nfrom anthropic import (\n    RateLimitError, APITimeoutError, APIConnectionError, InternalServerError,\n)\nfrom your_app.redis_limiter import RedisRateLimiter  # see references\n\n_client = redis.Redis.from_url(os.environ[\"REDIS_URL\"])\nanthropic_limiter = RedisRateLimiter(\n    _client, key=\"anthropic:prod\",\n    requests_per_second=35 \u002F 60,    # 35 RPM cluster-wide\n)\n\nllm = ChatAnthropic(\n    model=\"claude-sonnet-4-6\",\n    rate_limiter=anthropic_limiter, # cluster gate\n    max_retries=2,                  # not 6 (P30)\n    timeout=30,\n)\n\nchain = (prompt | llm | parser).with_fallbacks(\n    [prompt | gpt4o_backup | parser],\n    exceptions_to_handle=(          # narrow tuple (P07)\n        RateLimitError, APITimeoutError,\n        APIConnectionError, InternalServerError,\n    ),\n)\n\nworker_sem = asyncio.Semaphore(20)  # per-worker in-flight cap\nasync def invoke_bounded(inp):\n    async with worker_sem:\n        return await chain.ainvoke(inp)\n```\n\nCluster behavior: every worker's limiter call hits the same Redis key. At 35\nRPM cluster-wide, individual workers see fair-share throughput. `max_retries=2`\n+ narrow fallback tuple means transient 429s surface quickly and hand off to\nGPT-4o instead of amplifying cost.\n\n### Multi-tenant SaaS with per-tenant isolation\n\nTwo-level Redis limiter. Per-tenant limit prevents noisy neighbors; global limit\nprotects the provider tier.\n\nSee [Redis Limiter Pattern](references\u002Fredis-limiter-pattern.md) for the\ntwo-level acquire implementation (acquire tenant key first, then global key;\nrelease tenant if global fails) and the per-tenant cleanup cron.\n\n### Single-process dev — `InMemoryRateLimiter` is fine\n\nFor local debugging, notebook work, or a sync CLI tool:\n\n```python\nfrom langchain_core.rate_limiters import InMemoryRateLimiter\n\nlimiter = InMemoryRateLimiter(requests_per_second=0.5, max_bucket_size=3)\nllm = ChatAnthropic(model=\"claude-sonnet-4-6\", rate_limiter=limiter, max_retries=2)\n```\n\nDo not carry this into production without re-reading Step 2.\n\n## Resources\n\n- [LangChain how-to: Chat model rate limiting](https:\u002F\u002Fpython.langchain.com\u002Fdocs\u002Fhow_to\u002Fchat_model_rate_limiting\u002F)\n- [`InMemoryRateLimiter` API](https:\u002F\u002Fpython.langchain.com\u002Fapi_reference\u002Fcore\u002Frate_limiters\u002Flangchain_core.rate_limiters.InMemoryRateLimiter.html)\n- [Anthropic rate limits](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Frate-limits)\n- [OpenAI rate limits](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fguides\u002Frate-limits)\n- [Google Gemini rate limits](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Frate-limits)\n- [Redis `CL.THROTTLE` (redis-cell module)](https:\u002F\u002Fgithub.com\u002Fbrandur\u002Fredis-cell)\n- Pack pain catalog: `docs\u002Fpain-catalog.md` (entries P07, P08, P29, P30, P31)\n- Sibling skills: `langchain-sdk-patterns` (batch concurrency, fallback exception whitelist), `langchain-performance-tuning` (`.batch(max_concurrency=...)` tuning for throughput)\n","# LangChain Rate Limits (Python)\n\n## Overview\n\nA team deploys 10 Cloud Run workers. Each worker initializes its `ChatAnthropic`\nwith `InMemoryRateLimiter(requests_per_second=10)` — they read the docs, they\npicked a safe-looking number, they shipped. Thirty seconds later the dashboard\nlights up with 429s: the cluster is pushing 100 RPS to Anthropic's 50 RPM\ntier-1 ceiling, not the 10 RPS they configured. The name is the fix —\n`InMemoryRateLimiter` is **in-process**. Each worker has its own counter. Ten\nworkers × 10 RPS = 100 RPS to the provider. This is pain-catalog entry **P29**\nand it lands on every team that scales past one pod.\n\nThree more traps wait on the same code path:\n\n- **P07** — `.with_fallbacks([backup])` defaults `exceptions_to_handle=(Exception,)`,\n  which on Python \u003C3.12 swallows `KeyboardInterrupt`. Ctrl+C during a 429\n  retry storm silently falls through to the backup chain and keeps billing.\n- **P30** — `ChatOpenAI` and `ChatAnthropic` default `max_retries=6`. That is\n  retries, not attempts: **7 total requests per logical call** on flaky\n  networks. One `.invoke()` can bill 7x.\n- **P31** — Anthropic's RPM counts cache reads, cache writes, and uncached\n  calls **uniformly**. Cache-heavy workloads at 50 RPM can 429 on cache writes\n  while the ITPM dashboard shows headroom.\n\nThis skill covers measuring demand before picking a limit; the\n`InMemoryRateLimiter` vs Redis-backed limiter vs `asyncio.Semaphore` decision\ntree; the narrow `exceptions_to_handle` whitelist; `max_retries=2` math; and\nthe provider-specific limit taxonomy (RPM, ITPM, OTPM, concurrent,\ncached-vs-uncached). Pin: `langchain-core 1.0.x`, `langchain-anthropic 1.0.x`,\n`langchain-openai 1.0.x`. Pain-catalog anchors: **P07, P08, P29, P30, P31**.\nFor `.batch(max_concurrency=...)` tuning, see the sibling skill\n`langchain-performance-tuning` — this skill is about provider-facing rate caps.\n\n## Prerequisites\n\n- Python 3.10+ (3.12+ fixes the `KeyboardInterrupt` half of P07)\n- `langchain-core >= 1.0, \u003C 2.0`\n- At least one provider: `pip install langchain-anthropic langchain-openai`\n- For multi-worker prod: `redis >= 4.5` client and a Redis server reachable from every worker\n- Completed `langchain-model-inference` — the chat-model factory from that skill is where `rate_limiter=` gets attached\n\n## Instructions\n\n### Step 1 — Measure actual demand before picking a number\n\n**Do not guess at `requests_per_second`.** Instrument first, size second.\nAttach a `BaseCallbackHandler` that logs per-call `input_tokens`,\n`output_tokens`, and `cache_read_input_tokens` from `response.generations[].message.usage_metadata`:\n\n```python\nchain.with_config({\"callbacks\": [DemandLogger()]})\n```\n\nCollect 24-48 hours of representative traffic. Roll up: p50 and p95 RPM, p95\nITPM, p95 OTPM, cache hit rate. Size the limiter at **70% of the binding\nconstraint's tier ceiling** on your p95.\n\nSee [Measuring Demand](references\u002Fmeasuring-demand.md) for the full\n`DemandLogger` implementation, pandas roll-up, OTEL integration, load-test\nharness, and multi-tenant sizing strategies.\n\n### Step 2 — `InMemoryRateLimiter` for single-process dev only; never multi-worker prod\n\nLangChain 1.0 ships `InMemoryRateLimiter` as a first-class `BaseChatModel` parameter:\n\n```python\nfrom langchain_anthropic import ChatAnthropic\nfrom langchain_core.rate_limiters import InMemoryRateLimiter\n\nlimiter = InMemoryRateLimiter(\n    requests_per_second=0.58,    # 35 RPM = 70% of Anthropic tier-1 50 RPM\n    check_every_n_seconds=0.1,\n    max_bucket_size=5,           # burst capacity\n)\n\nllm = ChatAnthropic(\n    model=\"claude-sonnet-4-6\",\n    rate_limiter=limiter,\n    max_retries=2,\n    timeout=30,\n)\n```\n\n**`InMemoryRateLimiter` is per-process.** Safe for:\n\n- Single-process local dev (`python script.py`)\n- Single-worker uvicorn (`uvicorn --workers 1`)\n- Jupyter notebooks, batch scripts\n\n**Unsafe for** (this is P29):\n\n- Multi-worker uvicorn \u002F gunicorn (`--workers 4`)\n- Any container orchestrator with replica count > 1 (Cloud Run min-instances > 1, K8s, ECS)\n- Distributed job runners (Celery, Temporal, Cloud Tasks fanout)\n\n### Step 3 — Redis-backed limiter for cluster-wide enforcement\n\nFor multi-worker deployments, cluster-wide rate limiting requires shared state.\nRedis is the default answer — atomic Lua script for sliding-window, or Redis\n6.2+ `CL.THROTTLE` for GCRA.\n\n```python\nimport redis\nfrom langchain_anthropic import ChatAnthropic\n# RedisRateLimiter class defined in references\u002Fredis-limiter-pattern.md\nfrom your_app.limiters import RedisRateLimiter\n\nclient = redis.Redis.from_url(\"redis:\u002F\u002Fredis.internal:6379\u002F0\")\n\nlimiter = RedisRateLimiter(\n    client,\n    key=\"anthropic:prod\",\n    requests_per_second=35 \u002F 60,  # 35 RPM cluster-wide, not per-worker\n)\n\nllm = ChatAnthropic(\n    model=\"claude-sonnet-4-6\",\n    rate_limiter=limiter,\n    max_retries=2,\n    timeout=30,\n)\n```\n\n**Key scoping decisions:**\n\n- `key=\"anthropic:prod\"` — all tenants share one global budget (simplest)\n- `key=f\"anthropic:tenant:{tenant_id}\"` — per-tenant quota (requires cleanup for dead tenants)\n- Two-level: per-tenant + global, acquire both (best for multi-tenant SaaS)\n\nSee [Redis Limiter Pattern](references\u002Fredis-limiter-pattern.md) for the full\n`RedisRateLimiter` implementation (atomic Lua sliding window), the GCRA\nalternative via `CL.THROTTLE`, failure modes (Redis down, clock skew), and\nper-tenant cleanup strategy.\n\n### Step 4 — `asyncio.Semaphore` for per-worker in-flight concurrency cap\n\nThe rate limiter throttles **request rate**. A semaphore throttles **in-flight\ncount**. Use both:\n\n```python\nimport asyncio\n\n# Cluster: 35 RPM (Redis enforces)\n# Worker: 20 in-flight at once (semaphore enforces)\nworker_sem = asyncio.Semaphore(20)\n\nasync def bounded_invoke(inp):\n    async with worker_sem:\n        return await llm.ainvoke(inp)\n\n# Fanout\nresults = await asyncio.gather(*[bounded_invoke(x) for x in inputs])\n```\n\nWhy both: a semaphore prevents a single worker from queueing hundreds of\npending limiter acquires against Redis (head-of-line blocking on the event\nloop). The limiter prevents the cluster from exceeding the provider tier. They\nsolve different problems.\n\n**Semaphore sizing**: target latency-bandwidth-product. If p95 request latency\nis 2s and the worker's RPS cap is 10, in-flight count ≈ 2 × 10 = 20. Overshoot\nis wasted memory; undershoot leaves throughput on the table.\n\n### Step 5 — Narrow `with_fallbacks(exceptions_to_handle=...)` — never `(Exception,)`\n\n`.with_fallbacks([backup])` defaults to catching `Exception`. This is P07 — on\nPython \u003C3.12, `Exception` edge-cases include `KeyboardInterrupt` propagation.\nCtrl+C during a retry storm silently hands off to the backup and keeps running.\n**Always narrow the tuple:**\n\n```python\nfrom anthropic import (\n    RateLimitError, APITimeoutError, APIConnectionError, InternalServerError,\n)\n\nresilient = (prompt | claude | parser).with_fallbacks(\n    [prompt | gpt4o | parser],\n    exceptions_to_handle=(\n        RateLimitError, APITimeoutError,\n        APIConnectionError, InternalServerError,\n    ),\n    # NEVER: Exception, BaseException, AuthenticationError,\n    # BadRequestError, ValidationError\n)\n```\n\nThe whitelist is **only transient provider errors**. `AuthenticationError`,\n`BadRequestError`, and `ValidationError` are bugs in your code\u002Fcredentials —\nfallback produces the same crash. See the sibling skill's reference\n`langchain-sdk-patterns\u002Freferences\u002Ffallback-exception-list.md` for the full\nper-provider whitelist (Anthropic, OpenAI, Gemini).\n\n### Step 6 — `max_retries=2`, never the default `max_retries=6`\n\n`max_retries` is **retries, not attempts.** Default `max_retries=6` on\n`ChatOpenAI` \u002F `ChatAnthropic` means **initial + 6 retries = 7 billed requests**\nper logical call (P30). On a flaky network, one `.invoke()` costs 7x what you\nbudgeted.\n\n```python\n# BAD — default\nllm = ChatOpenAI(model=\"gpt-4o\")  # max_retries=6\n\n# GOOD — production default\nllm = ChatOpenAI(\n    model=\"gpt-4o\",\n    max_retries=2,      # initial + 2 retries = 3 total billed requests max\n    timeout=30,\n    rate_limiter=redis_limiter,\n)\n```\n\nTrade resilience off to the fallback layer — `with_fallbacks` is strictly\ncheaper than retry amplification when the primary is genuinely unhealthy.\nInstrument retry count via callback and alert if retry rate exceeds ~5%.\n\nSee [Backoff and Retry](references\u002Fbackoff-and-retry.md) for the full math,\n`Retry-After` header handling, and circuit-breaker pattern for sustained\noverload.\n\n### Step 7 — Understand the provider limit taxonomy\n\nDifferent providers expose different limit types. Know which one binds your\nworkload before you size:\n\n| Limit | Meaning | Who enforces | Binds for |\n|---|---|---|---|\n| **RPM** | Requests\u002Fminute (counts every call) | All three providers | Short chat replies |\n| **ITPM** | Input tokens\u002Fminute | Anthropic, OpenAI (as TPM combined) | Long document Q&A |\n| **OTPM** | Output tokens\u002Fminute | Anthropic separately; OpenAI as combined TPM | Long completions |\n| **Concurrent** | In-flight request cap | Mainly OpenAI higher tiers | Burst traffic |\n| **Cached reads** | Cache-read input tokens (Anthropic) | Anthropic separate budget line | Cache-heavy workloads (but still counts toward RPM — P31) |\n\nCritical for Anthropic cache workloads (P31): RPM counts uniformly across\ncached reads, cache writes, and uncached calls. A workload at 90% cache hit\nrate still trips the 50 RPM ceiling at 51 requests\u002Fmin. Separate monitors for\n`cache_read_input_tokens` vs `input_tokens` (minus cache read\u002Fwrite) give\nearly warning.\n\n### Step 8 — Decision tree: which limiter to use\n\n```\n┌─ Single process (dev, notebooks, sync CLI, --workers 1)?\n│  └─ InMemoryRateLimiter\n│\n├─ Multi-process but single host (same-machine pool, local gunicorn)?\n│  └─ Redis-backed limiter (even localhost Redis beats InMemoryRateLimiter —\n│     which still has per-process counters)\n│\n├─ Multi-host cluster (Cloud Run --min-instances>1, K8s, ECS)?\n│  └─ Redis-backed limiter (mandatory)\n│\n├─ Multi-region or cross-cloud?\n│  └─ Regional Redis per zone + provider-side account quota\n│     (cross-region Redis latency adds 30-200ms per acquire)\n│\n└─ Any of the above + multi-tenant SaaS?\n   └─ Two-level Redis limiter: per-tenant + global, acquire both\n```\n\nAlways pair with `asyncio.Semaphore(N)` per-worker for in-flight concurrency.\n\n### Step 9 — Provider tier snapshot (verify before shipping)\n\n**2026-04-21 snapshot — re-verify against the official console before shipping.**\n\n| Provider | Free tier RPM | Tier-1 RPM | High tier RPM | Source |\n|---|---|---|---|---|\n| Anthropic | 5 | 50 (Build 1) | 4000 (Build 4) | https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Frate-limits |\n| OpenAI | 3 | 500 | 10000 (Tier 5) | https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fguides\u002Frate-limits |\n| Google Gemini | 15 | 2000 (Paid 1) | 30000 (Paid 3) | https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Frate-limits |\n\nTiers change quarterly. A limiter sized six months ago on a different tier is\na liability. See [Provider Tier Matrix](references\u002Fprovider-tier-matrix.md) for\nthe full matrix including ITPM \u002F OTPM \u002F cached-read separation, binding-limit\nmath, and the pre-ship verification checklist.\n\n## Output\n\n- Instrumented `DemandLogger` callback attached to your chains for 24-48h before sizing\n- `InMemoryRateLimiter` in dev \u002F notebooks \u002F single-worker only\n- `RedisRateLimiter` (sliding-window Lua or `CL.THROTTLE` GCRA) for any multi-worker deployment, keyed per-tenant or global\n- `asyncio.Semaphore(N)` per-worker in-flight cap paired with the cluster-wide limiter\n- `max_retries=2` on every `ChatAnthropic` \u002F `ChatOpenAI` \u002F `ChatGoogleGenerativeAI`\n- `.with_fallbacks(exceptions_to_handle=(RateLimitError, APITimeoutError, APIConnectionError, InternalServerError))` — never `(Exception,)`\n- Per-provider tier re-verified from the official console, sized at 70% of the binding constraint\n\n## Error Handling\n\n| Error | Cause | Fix |\n|---|---|---|\n| `anthropic.RateLimitError: 429 THROTTLED` at cluster RPM = N × InMemoryRateLimiter ceiling | `InMemoryRateLimiter` is per-process; N workers each send at their limit (P29) | Switch to Redis-backed limiter (Step 3) |\n| 429 on cache writes while ITPM dashboard shows headroom | Anthropic RPM counts cache writes uniformly (P31) | Budget at RPM level with limiter; separate cached vs uncached metrics |\n| One `.invoke()` bills as 7 requests on flaky networks | Default `max_retries=6` (P30) | `max_retries=2` + fallback layer for resilience |\n| `Ctrl+C` during retry storm silently falls through to backup chain | `exceptions_to_handle=(Exception,)` catches `KeyboardInterrupt` on Python \u003C3.12 (P07) | Narrow tuple to `(RateLimitError, APITimeoutError, APIConnectionError, InternalServerError)` |\n| Limiter queue p95 wait > 500ms | Limiter is oversubscribed for real traffic | Re-measure demand (Step 1); upgrade provider tier OR shed load |\n| `redis.exceptions.ConnectionError` blocks all LLM calls | Redis unavailable and limiter is fail-closed | Instrument Redis health; decide fail-open (log loudly) vs fail-closed (shed load) — for provider safety, prefer fail-closed |\n| `retry-after` header climbing 2→4→8→16 | Pushing past tier; backoff amplifying, not absorbing | Lower limiter target RPS by 20%; upgrade tier if sustained |\n| `google.api_core.exceptions.ResourceExhausted` on Gemini | Gemini free tier 15 RPM is brutal | Upgrade to paid Gemini tier 1 (2000 RPM) or use Redis limiter at 10 RPM |\n\n## Examples\n\n### Multi-worker Cloud Run deployment with Anthropic tier-1 50 RPM\n\nTen workers, single region, Redis in same VPC. Target: 35 RPM cluster-wide\n(70% of 50 RPM ceiling), 20 in-flight per worker.\n\n```python\nimport asyncio, os, redis\nfrom langchain_anthropic import ChatAnthropic\nfrom anthropic import (\n    RateLimitError, APITimeoutError, APIConnectionError, InternalServerError,\n)\nfrom your_app.redis_limiter import RedisRateLimiter  # see references\n\n_client = redis.Redis.from_url(os.environ[\"REDIS_URL\"])\nanthropic_limiter = RedisRateLimiter(\n    _client, key=\"anthropic:prod\",\n    requests_per_second=35 \u002F 60,    # 35 RPM cluster-wide\n)\n\nllm = ChatAnthropic(\n    model=\"claude-sonnet-4-6\",\n    rate_limiter=anthropic_limiter, # cluster gate\n    max_retries=2,                  # not 6 (P30)\n    timeout=30,\n)\n\nchain = (prompt | llm | parser).with_fallbacks(\n    [prompt | gpt4o_backup | parser],\n    exceptions_to_handle=(          # narrow tuple (P07)\n        RateLimitError, APITimeoutError,\n        APIConnectionError, InternalServerError,\n    ),\n)\n\nworker_sem = asyncio.Semaphore(20)  # per-worker in-flight cap\nasync def invoke_bounded(inp):\n    async with worker_sem:\n        return await chain.ainvoke(inp)\n```\n\nCluster behavior: every worker's limiter call hits the same Redis key. At 35\nRPM cluster-wide, individual workers see fair-share throughput. `max_retries=2`\n+ narrow fallback tuple means transient 429s surface quickly and hand off to\nGPT-4o instead of amplifying cost.\n\n### Multi-tenant SaaS with per-tenant isolation\n\nTwo-level Redis limiter. Per-tenant limit prevents noisy neighbors; global limit\nprotects the provider tier.\n\nSee [Redis Limiter Pattern](references\u002Fredis-limiter-pattern.md) for the\ntwo-level acquire implementation (acquire tenant key first, then global key;\nrelease tenant if global fails) and the per-tenant cleanup cron.\n\n### Single-process dev — `InMemoryRateLimiter` is fine\n\nFor local debugging, notebook work, or a sync CLI tool:\n\n```python\nfrom langchain_core.rate_limiters import InMemoryRateLimiter\n\nlimiter = InMemoryRateLimiter(requests_per_second=0.5, max_bucket_size=3)\nllm = ChatAnthropic(model=\"claude-sonnet-4-6\", rate_limiter=limiter, max_retries=2)\n```\n\nDo not carry this into production without re-reading Step 2.\n\n## Resources\n\n- [LangChain how-to: Chat model rate limiting](https:\u002F\u002Fpython.langchain.com\u002Fdocs\u002Fhow_to\u002Fchat_model_rate_limiting\u002F)\n- [`InMemoryRateLimiter` API](https:\u002F\u002Fpython.langchain.com\u002Fapi_reference\u002Fcore\u002Frate_limiters\u002Flangchain_core.rate_limiters.InMemoryRateLimiter.html)\n- [Anthropic rate limits](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Frate-limits)\n- [OpenAI rate limits](https:\u002F\u002Fplatform.openai.com\u002Fdocs\u002Fguides\u002Frate-limits)\n- [Google Gemini rate limits](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Frate-limits)\n- [Redis `CL.THROTTLE` (redis-cell module)](https:\u002F\u002Fgithub.com\u002Fbrandur\u002Fredis-cell)\n- Pack pain catalog: `docs\u002Fpain-catalog.md` (entries P07, P08, P29, P30, P31)\n- Sibling skills: `langchain-sdk-patterns` (batch concurrency, fallback exception whitelist), `langchain-performance-tuning` (`.batch(max_concurrency=...)` tuning for throughput)\n",{"name":5,"tags":24,"author":33,"license":15,"version":34,"description":35,"allowed-tools":36,"compatible-with":37},[25,26,27,28,29,30,31,32],"saas","langchain","langgraph","python","langchain-1.0","rate-limits","throttling","concurrency","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","2.0.0","Rate-limit LangChain 1.0 calls correctly across multi-worker deployments —\nRedis-backed limiters, asyncio.Semaphore, narrow exception whitelists, and\nprovider-specific throttle handling. Use when hitting 429s in production,\nscaling workers horizontally, or tuning throughput against Anthropic, OpenAI,\nor Gemini tier limits.\nTrigger with \"langchain rate limit\", \"langchain 429\", \"langchain semaphore\",\n\"langchain token bucket\", \"anthropic rpm\", \"openai rpm throttling\",\n\"InMemoryRateLimiter\", \"redis rate limiter\".\n","Read, Write, Edit, Bash(python:*), Bash(redis-cli:*)","claude-code, codex","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--langchain-py-pack--langchain-rate-limits",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill langchain-rate-limits",{"tool":53,"command":54},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill langchain-rate-limits",{"tool":56,"command":57},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill langchain-rate-limits","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--langchain-py-pack--langchain-rate-limits\u002FSKILL.md",true,[],[62,69,76,83,90,98],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]