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.
In this repository34 other files it gives its agents.
- chatgpt/AGENTS.mdAGENTS.md
- opencode/AGENTS.mdAGENTS.md
- zcode/AGENTS.mdAGENTS.md
- claude/CLAUDE.mdCLAUDE.md
- agent-doc-authoringSkill
- agent-experienceSkill
- ai-image-promptsSkill
- api-behavior-flowSkill
- behavioral-testingSkill
- behavior-auditSkill
- browser-tabs-uiSkill
- code-qualitySkill
- context-compactSkill
- design-principlesSkill
- design-to-deliverySkill
- design-validationSkill
- e2e-test-authoringSkill
- engineering-reviewSkill
- excalidrawSkill
- external-ai-consultSkill
- google-omni-videoSkill
- llm-agent-tool-disciplineSkill
- parallel-subagentsSkill
- qa-test-scenariosSkill
- reliable-executionSkill
- research-and-reuseSkill
- server-security-hardeningSkill
- session-handoffSkill
- shadcn-librarySkill
- sudo-handoffSkill
- task-intakeSkill
- tauri-v2-docsSkill
- test-failure-triageSkill
- user-behavior-flowSkill
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
- Distinctive: line 19
Read project layering, dependencies, shared types, analogous modules and affected tests.
- Distinctive: line 23
Create an abstraction only for actual reuse, an independently testable boundary or a concrete integration seam.
- Distinctive: line 29
No speculative memoization, caching, indexing or framework migration.
≈ “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.
Files
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
- 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.
- 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.
- 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.
- 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.
- 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.
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
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.

