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-code

Installs 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

Recommended

More Debugging
1liuzhengdongfortest avatarcs-issue-fixliuzhengdongfortest/codestablecs issue fix1.2Kskills.sh installs
2daymade avatarcloudflare-troubleshootingdaymade/claude-code-skillsInvestigate and resolve Cloudflare configuration issues using API-driven evidence gathering. Use when troubleshooting ERR_TOO_MANY_REDIRECTS, SSL errors, DNS is978skills.sh installs
3microsoft avatarfile-test-bugmicrosoft/github-copilot-for-azureFile a GitHub issue for local integration test failures. TRIGGERS: file test bug, report test failure, create bug for test, integration test failed, test failur978skills.sh installs
4theqtcompanyrnd avatarqt-qml-profilertheqtcompanyrnd/agent-skills>-787skills.sh installs
5sickn33 avatarperformance-engineersickn33/antigravity-awesome-skillsperformance engineer743skills.sh installs
6charon-fan avatardebuggercharon-fan/agent-playbookdebugger678skills.sh installs