agentleFS
omidnwomidnw/my-skills/skills/architecture-and-performance/SKILL.md

architecture-and-performance

Skill0 starsChanged 12 days agoMITView on GitHub

Use when changing architecture or service boundaries, or investigating a concrete performance problem. Preserve established layers; measure bottlenecks before optimization and validate behavior and cost after changes.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Read project layering, dependencies, shared types, analogous modules and affected tests.

    line 19
  2. Distinctive:

    Create an abstraction only for actual reuse, an independently testable boundary or a concrete integration seam.

    line 23
  3. Distinctive:

    No speculative memoization, caching, indexing or framework migration.

    line 29

≈ “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

Architecture and performance

Design-to-delivery integration

For complex architectural design, consider design-to-delivery: a dependency/flow diagram, brainstorming, linked spec and tasks can reveal boundary mistakes and contract inconsistencies. Adapt or simplify the sequence using engineering judgment, and use this skill's boundary/tradeoff criteria in the selected artifacts. Preserve existing architecture decisions and evidence. Focused architecture or optimization work need not create a full package; explicit artifact requests remain deliverables.

Purpose

Choose a maintainable boundary or a measured optimization without unnecessary rewrites.

When to use

Architecture mode for structural decisions; performance mode for performance requests or an evidenced bottleneck. A routine edit does not trigger a full redesign or benchmark campaign.

Preconditions

Read project layering, dependencies, shared types, analogous modules and affected tests. Know the authorized scope. Performance mode needs a representative safe workload and a baseline metric.

Workflow

  1. Architecture mode: map the current dependency direction and requested change. Reuse existing feature modules and abstractions. Put transport, business decisions and persistence at their established boundaries; keep validation contracts shared where already supported.
  2. Create an abstraction only for actual reuse, an independently testable boundary or a concrete integration seam. Explain tradeoffs before introducing a new layer/dependency; do not transplant one project's architecture into all projects.
  3. Performance mode: define the metric (latency, query count, render work, memory, bundle size), workload and baseline. Profile or inspect query plans/traces locally; distinguish measured facts from hypotheses.
  4. Fix the dominant cost with the smallest change: repeated requests, N+1 queries, unbounded work, unnecessary renders or a poor algorithm. Caching needs ownership-aware keys, invalidation, bounded lifetime and memory; concurrency needs limits and cancellation.
  5. Preserve outputs, ordering, consistency and failure behavior. Run contract/regression tests and compare the same workload before/after. Account for warmup and variability; report data rather than unsupported percentages.

Rules

No speculative memoization, caching, indexing or framework migration. If measurement is unavailable, offer an evidenced opportunity and report impact as unverified. Do not run load tests against live services without explicit authorization.

Common mistakes

Moving business rules into UI/controllers; a new layer for one call; optimizing cold synthetic work unrelated to users; stale/unsafe caches; claiming a speedup from code inspection.

Validation

Architecture: dependencies respect project layers, changed callers and contracts are checked. Performance: same workload/metric, real before/after values and unchanged behavior; report limits when measurements cannot be obtained.

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.