performance
Skill0 starsChanged 4 days agoMITView on GitHub
Keeping screens smooth and assistant messages small with narrow rebuilds, bounded lists, heavy work off the UI thread, short screen summaries. Use when a screen stutters, a list grows, a task is slow, or a screen summary gets large.
81 other projects use a version of this.
Adopted by
Most recently taken up by
- JeffKarling/Anviltheir own version, first seen Nov 15, 2026
- FimawLLC/fimaw-skillstheir own version, first seen Nov 15, 2026
- Stijnus/dsh-rev-engtheir own version, first seen Nov 8, 2026
- Mahesh-Bishnoi/skillstheir own version, first seen Nov 8, 2026
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 2026
- daveebbelaar/bawatheir own version, first seen Nov 8, 2026
Used with
Projects with it also use app-brief, design-from-app and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
StijnusSkillapp-brief
One-page brief (docs/BRIEF.md) for a new macOS app, written before any code. Use when the user has an app idea, wants to replace an app they pay for, or the research and clone skills are done.
Also in 3 projects that use this
StijnusSkilldesign-from-app
Rebuild the look of an app the user likes as a native SwiftUI design kit, by measuring its screenshots (sizes, spacing, type, colors, icons), building its parts, and comparing pixel by pixel until they match. Use when the user names an app whose look they want, shares screenshots of one, or says "make it look like X".
Also in 3 projects that use this
FlorianBruniauxSkilltdd-rust
Also in 3 projects that use this
RodrigoTomeESSkillweb-quality-audit
Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".
Also in 9 projects that use this
launchapp-devSkilllayout-grid
Define responsive layout grid systems with columns, gutters, margins, and breakpoint behavior.
Also in 3 projects that use this
MohamedAbdallah-14Skillapp-icon
Generate an app icon from a single 1024² master and fan out to iOS (AppIcon.appiconset with squircle-ready 1024 opaque), Android (adaptive foreground + background + Android 13 monochrome), PWA (192/512 + 512 maskable with 80% safe zone), and visionOS (3-layer parallax).
Also in 3 projects that use this
- +1 more from Stijnus
Other versions81 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 81
- rtk-ai/rtk★ 86ksame name
- millionco/react-doctor★ 15ksame name
- midudev/preguntas-entrevista-react★ 7.8ksame name
- BuilderIO/agent-native★ 7.6ksame name
- ethereum/ethereum-org-website★ 6ksame name
- plugin87/ux-ui-agent-skills★ 3.1ksame name
- static-web-server/static-web-server★ 2.4ksame name
- daveebbelaar/bama★ 1.7ksame name
- lichtblick-suite/lichtblick★ 1.2ksame name
- theexperiencecompany/gaia★ 325same name
71 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- actionsSkill
- adding-a-featureSkill
- agent-workflowSkill
- app-contextSkill
- approval-and-safetySkill
- backend-proxySkill
- background-workSkill
- build-an-appSkill
- capture-learningsSkill
- clean-architectureSkill
- customizing-the-assistantSkill
- delegate-to-agentSkill
- edit-boundariesSkill
- i18n-and-rtlSkill
- model-providersSkill
- permissions-and-platformSkill
- read-the-docsSkill
- reliable-mutationsSkill
- routingSkill
- secretsSkill
- state-managementSkill
- storing-dataSkill
- testingSkill
- ui-designSkill
- upgrade-the-frameworkSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 54 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Don't load this for work that must continue after the screen closes.
- Very specific: line 25
Measure first: use Flutter DevTools in profile mode (flutter run --profile) on a real device.
- Distinctive: line 37
No automated check. Profile on a device, or run the widget test for the screen and watch rebuild counts with DevTools.
“Common” is measured: kept by at least 6 in 10 of the 54 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Performance
Don't load this for work that must continue after the screen closes; see background-work.
Rule
Rebuild as little as possible, never load an unbounded list into a message or a widget tree you do not need, keep heavy computation off the UI thread, and keep the screen summary short. No automated check exists for these; follow them in review.
Why
Flutter redraws on every state change, so one wide watch redraws a whole screen. The assistant's screen block is sent with every message, so a large one costs money and fills the model's context window.
How
- Narrow rebuilds: watch the smallest provider you need and put the
watchas low in the tree as possible. Inlib/presentation/home/home_screen.dartthe selection (selectedItemIdsProvider) and the items (itemsProvider) are separate providers, so selecting a row does not reload the data. Useref.watch(provider.select(...))when only one field matters. Mark widgetsconst. - Long lists: use
ListView.builder(as the item list does) so only visible rows are built. The home list watches every item throughwatchItems(); if a list can grow large, read a page withgetItems({int limit})(lib/domain/repositories/items_repository.dart) and add a paging parameter in the repository rather than loading everything. - Heavy work: parsing, sorting or filtering large data should run in an isolate (
computeorIsolate.run), not inbuild. The database runs off the UI thread through drift already; do not wrap it again. - Screen summaries:
lib/ai/screen_contexts.dartcaps rows (_visibleRows, 10) and always includes the total, so the model knows more exists and can call a list action to see them. Follow that: a count, the first rows, ids always, no full lists, no long text bodies. - Streams: cancel or let providers dispose subscriptions; do not start work in
build. - Measure first: use Flutter DevTools in profile mode (
flutter run --profile) on a real device; debug mode is slower and misleading.
Anti-patterns
ref.watchof a provider at the top of a screen when only a small widget needs it.Column(children: [for (...) ...])over a long list inside a scroll view.- Sorting thousands of rows in
build. - A screen summary that returns every row, or whole item descriptions.
- Optimizing without profiling.
Verification
- No automated check. Profile on a device, or run the widget test for the screen and watch rebuild counts with DevTools.
test/ai/screen_contexts_test.dartchecks the summaries' content.tool/check.shfor everything else (seeverify).
Related skills
state-management— how providers are splitapp-context— what a summary should holdbackground-work— work that outlives the screenstoring-data— paging and queries
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.

