Enhance-Scalability

Enhance-Scalability is a cursor rule for Cursor from TheSethRose/DevRules. It costs 29 tokens per session (1,255 once invoked), scanned A, original, MIT.

A review mode focused on helping software handle more users, requests, data, or background work without becoming inefficient or unreliable.

In plain words
What is it for?
Use it to identify scaling limits, clarify capacity goals, and propose changes to code or system architecture.
Why use it?
It directs the analysis toward bottlenecks such as shared resources, stateful components, and single points of failure instead of making unfocused architecture changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to identify scaling limits, clarify capacity goals, and propose changes to code or system architecture.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/thesethrose/devrules/enhance-scalability
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.

Clone the repo
git clone --depth 1 https://github.com/TheSethRose/DevRules

Made for: Cursor.

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 Enhance-Scalability

README.md
[![agentmods](https://agentmods.dev/badge/rules/thesethrose/devrules/enhance-scalability/github.svg)](https://agentmods.dev/rules/thesethrose/devrules/enhance-scalability)
Your own site
<a href="https://agentmods.dev/rules/thesethrose/devrules/enhance-scalability"><img src="https://agentmods.dev/badge/rules/thesethrose/devrules/enhance-scalability/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.

agentmods 80×15 button for Enhance-Scalability

Your own site · 80×15
<a href="https://agentmods.dev/rules/thesethrose/devrules/enhance-scalability"><img src="https://agentmods.dev/badge/rules/thesethrose/devrules/enhance-scalability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,255 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00029 $0.01255
Opus 5.5 $0.00012 $0.00502
Sonnet 5.5 $0.00006 $0.00251
Haiku 4.5 $0.00003 $0.00126

Measured 3mo ago against content hash 543f00aa20a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Enhance-Scalability 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 3mo 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.

.cursor/rules/tasks/Enhance-Scalability.mdc · 89 lines

How it starts

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

Improve System: Scalability Mode

1. Role

You are a Scalability Specialist. Your focus is on identifying limitations in code or architecture that hinder scaling and proposing changes to allow the system to handle significantly increased load gracefully and cost-effectively.

2. Process

  • Understand Context & Goals:
    • Identify the system or component needing improved scalability.
    • Clarify the scaling dimension: More users? Higher request rate? Larger data volume? More background jobs?
    • Define scalability goals: Handle X concurrent users? Process Y requests per second? Store Z terabytes of data?
    • Review current architecture (@modes/design/design-architecture.mdc), bottlenecks (@modes/debug/debug-performance.mdc), and technology stack (01-project-context.mdc).
  • Identify Scaling Bottlenecks: Analyze the system for factors limiting its ability to scale:
    • Stateful Components: Services that store client-specific state hinder horizontal scaling.
    • Single Points of Failure (SPOFs): Components whose failure brings down the system or prevents scaling (e.g., single database master without read replicas).
    • Shared Resources Contention: Bottlenecks on databases, locking mechanisms, shared file systems, or external dependencies under load.
    • Inefficient Resource Usage: Code that consumes excessive CPU/memory per request, limiting instance throughput.
    • Synchronous Operations: Long-running synchronous tasks that block request handling threads.
    • Lack of Horizontal Scalability: Architecture that doesn't easily allow adding more instances of a component to handle load.
  • Propose Scalability Improvements: Suggest specific changes targeting the bottlenecks:
    • Stateless Services: Refactor components to be stateless, storing session state externally (e.g., in Redis, database - requires @modes/design/design-caching.mdc or @modes/design/design-database.mdc).
    • Horizontal Scaling: Design components to allow multiple instances behind a load balancer.
    • Asynchronous Processing: Use message queues or background job systems for non-critical or long-running tasks.
    • Database Scaling: Implement read replicas, sharding, connection pooling, or consider NoSQL alternatives if relational DB is the bottleneck.
    • Caching: Introduce caching at appropriate layers (@modes/design/design-caching.mdc) to reduce load on backend services/databases.
    • Optimize Resource Usage: Apply performance optimizations (@modes/improve/improve-performance.mdc) to reduce per-request resource needs.
    • Decoupling: Use queues or event buses to decouple services, allowing independent scaling.
    • Rate Limiting/Throttling: Protect downstream services from being overwhelmed.
  • Explain Recommendations: Justify each proposed change in terms of how it addresses a specific scaling bottleneck and contributes to the overall scalability goal. Discuss trade-offs (e.g., complexity, consistency).
  • Verification Strategy: Suggest how to test or validate the improved scalability (e.g., load testing, stress testing, monitoring key metrics under simulated load).

Read the full file on GitHub · 89 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. 3mo ago First seen · 89 lines · 29 tokens per session scan A 543f00aa20a6

Subscribe to this mod's changes

Enhance-Scalability is a cursor rule published in the GitHub repository TheSethRose/DevRules (26 stars, last pushed 1y ago), licensed MIT. It adds 29 tokens to every session and 1,255 once invoked, about $0.0001 per session on Opus 5.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.

Related

Enhance-Scalability compared with cursor rules from other repositories

Enhance-Scalability next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Enhance-ScalabilityTheSethRose/DevRulesCursor rule261y agoMITA29Cursor
pyspark-etl-best-practices-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A3,275Cursor
project-epic-template-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A2,000Cursor
react-tanstack-router-query-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A1,995Cursor
ankra-cliPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A1,574Cursor
playwright-integration-testing-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A1,658Cursor
go-backend-scalability-cursorrules-prompt-filePatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A1,200Cursor