agentleFS
patonkikhpatonkikh/APES/skills/architecture/scalability-advisor/skill.md

scalability-advisor

Skill3 starsChanged 4 months agoMITView on GitHub

Assess system scalability: identify bottlenecks, recommend scaling strategies per container, and define capacity planning guidelines. Use when working on solution architecture, C4 diagrams, APIs, ADRs, or system design.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with measured baseline, not guesses.

    line 123
  2. Distinctive:

    Prefer stateless containers for horizontal scaling.

    line 125

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Scalability Advisor

Purpose

Assess system scalability: identify bottlenecks, recommend scaling strategies per container, and define capacity planning guidelines.

Input: Container diagram, NFRs (throughput, latency, users), data flow analysis (optional)
Output: Scalability Assessment with bottleneck analysis, scaling recommendations, and capacity model Examples: See examples.md for worked input/output.


Workflow

Step 1: Extract scalability requirements

From NFRs, define:

MetricTargetPeak multiplierMeasurement

Metrics: concurrent users, requests/sec, data volume, growth rate.

Step 2: Analyze each container

For each container:

ContainerStateless?Bottleneck riskCurrent limit estimate

Identify: CPU-bound, memory-bound, I/O-bound, connection-pool limits.

Step 3: Identify system bottlenecks

Rank bottlenecks:

RankComponentConstraintImpact at scale

Common: database connections, single instance, sync external calls, large payloads.

Step 4: Recommend scaling strategies

Per container:

StrategyWhenTrade-off
Horizontal scalingStateless servicesCoordination complexity
Vertical scalingShort-term, DBCost ceiling
CachingRead-heavyStaleness
Read replicasRead/write splitReplication lag
ShardingLarge datasetsQuery complexity
Async processingBurst workloadsLatency

Step 5: Build capacity model

Simple capacity estimate:

Peak RPS = users × actions_per_session / session_duration
Required instances = Peak RPS / RPS_per_instance

Document assumptions explicitly.

Step 6: Define load testing plan

ScenarioLoadSuccess criteria

Step 7: Validate

Run Validation checklist.


Decision Rules

ConditionAction
No NFR throughput targetsRequest targets or use conservative assumptions; mark Confidence low
Stateful container scaled horizontallyFlag session/state management requirement
Database is bottleneckRecommend read replicas, caching, or sharding with trade-offs
External API rate limitsInclude in capacity model; recommend caching/batching
Scale requirements < 1000 usersRecommend simple vertical scaling; avoid premature optimization

Validation

  • Scalability NFRs extracted or assumptions stated
  • Every container analyzed for bottleneck risk
  • Top 3 bottlenecks ranked with rationale
  • Scaling strategy per high-risk container
  • Capacity model with explicit assumptions
  • Load testing scenarios defined
  • Premature optimization flagged if scale is small
  • Trade-offs documented for each strategy

Anti-patterns

  • Scale everything — horizontal scaling stateful DB without plan.
  • Cache as fix-all — caching without invalidation strategy.
  • Ignore externals — not modeling third-party rate limits.
  • No load testing — recommendations without validation plan.
  • Infinite scale claims — "handles any load" without evidence.

Best Practices

  • Start with measured baseline, not guesses.
  • Scale the bottleneck first (Amdahl's law).
  • Prefer stateless containers for horizontal scaling.
  • Plan scale-down as well as scale-up (cost).
  • Align with data-flow-analyzer for data layer scaling.

Output Structure

# Scalability Assessment: [System Name]

## Requirements
| Metric | Target | Peak | Assumptions |
|--------|--------|------|-------------|

## Container Analysis
| Container | Stateless | Risk | Limit |
|-----------|-----------|------|-------|

## Bottlenecks
| Rank | Component | Constraint | At-risk metric |
|------|-----------|------------|----------------|

## Recommendations
| Container | Strategy | Rationale | Trade-off |
|-----------|----------|-----------|-----------|

## Capacity Model
[Calculations with assumptions]

## Load Test Plan
| Scenario | Load | Pass criteria |
|----------|------|---------------|

## Risks
| Risk | Mitigation |
|------|------------|

Next Skills

OutcomeRecommended Skill
Review scalability in full contextarchitecture/architecture-review
Update architecture for scalearchitecture/solution-architecture
Document scaling decisionarchitecture/adr-generator
AI system scalingai/ai-solution-architect

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.