
Performance
This is a surgical performance fix skill for Flows apps that measures first, then systematically hunts down and patches the usual culprits: unnecessary re-renders from inline objects and arrow functions, expensive instances.list calls that should be instances.query, client-side filtering that belongs in the API request, and missing pagination limits. It's opinionated about moving compute server-side and swapping Postgres-hitting DMS APIs for Elasticsearch-backed ones in read-heavy paths. Every fix includes before/after measurement via Lighthouse and React Profiler. Use it when your app feels sluggish or when you see long lists rendering without virtualization. It won't just tell you what's slow, it rewrites the code.
- skills.sh installs
- 1.9K
- GitHub stars
- 6
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cognitedata/builder-skills --skill performance --agent claude-codeInstalls into .claude/skills of the current project.
Files
Performance Fix
Systematically find and fix performance issues in $ARGUMENTS (or the whole app if no argument is given). Always measure first — never optimize blindly.
Step 1 — Measure baseline before touching anything
Run the production build and capture metrics before making any changes:
pnpm run build
pnpm run preview
Open the app in Chrome and capture:
- Lighthouse score (Performance tab → Run audit)
- React Profiler (React DevTools → Profiler → Record an interaction)
- Note the components with the longest render times and highest render counts
Record baseline numbers. Every fix must be measured against these.
Step 2 — Find and fix unnecessary re-renders
Read the component tree (start from src/App.tsx) and search for these patterns:
grep -rn --include="*.tsx" \
-E "value=\{\{|onClick=\{\(\)" src/
For each instance found, apply the fix directly:
Inline object/array creation in JSX → wrap with useMemo:
// BAD — new object on every render causes children to re-render
<Chart options={{ color: "red" }} />
Sponsors
Details
- Repository
- github.com/cognitedata/builder-skills
- Category
- Debugging
- First seen
- Jun 3, 2026
More from cognitedata/builder-skills
All 26- Create Client Tool1.9K
- Pull Changes Resolve Conflicts1.9K
- Use Topbar1.9K
- Migrate App To Flows1.7K
- Integrate Fusion Agent1.7K
- Flows Code Review1.6K
- Flows Design Review1.1K
- Flows App Brief1.1K
- Flows External App Submit1.1K
- Flows App Review298
- Skill Creator2.5K
- Code Quality2K
- Test Coverage1.9K
- Dependencies Audit1.9K
- Design1.9K
- Reveal 3d1.9K
- Integrate Todo List1.9K
- Correctness And Error Handling1.9K
- Dm Limits And Best Practices1.9K
- Integrate Atlas Chat1.9K
- Integrate File Viewer1.9K
- Security1.9K
- Setup Python Tools1.9K
- Graph Viewer1.9K