Skip to content

Systematic performance fixes for Flows apps, from measuring baselines through re-render, query, and pagination changes.

CCM score
58 of 100
skills.sh installs
1.9K
GitHub stars
6
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full loop: baseline Lighthouse and React Profiler capture, targeted fixes for re-renders, DMS queries, and CDF fetching, then before-and-after measurement
  • Includes grep sweeps for inline object and handler creation, DMS instances.list calls, client-side .filter() chains, and unbounded pagination loops
  • Enforces a hard gate against mapping LLM completions over DMS query rows, with a cap of 5 per run and a ceiling of 50
  • Designed for Flows app developers fixing slow renders, heavy queries, or LLM cost in a React and CDF codebase

Install

$ npx -y skills add cognitedata/builder-skills --skill performance -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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" }} />

Details

Repository
github.com/cognitedata/builder-skills
Categories
Frontend & UI Code, Debugging
First seen
Jun 3, 2026

Questions

What does the performance skill do for a Flows app?

The performance skill finds and fixes speed problems in a Flows app, including re-renders, inefficient queries, missing pagination, unbounded fetches, large bundles and memory leaks. It measures the production build before and after each change so the gains are verified. Its trigger words include slow, laggy, optimize, bundle size and virtualize.

Which category is the performance skill in, and what leads it?

The performance skill sits in the Frontend & UI Code category on Claude Marketplaces. Vercel React best practices, web design guidelines, design taste frontend, Vercel composition patterns and Lark apps are the other top skills in that category. This skill is the one that targets Flows app speed, render counts and CDF query patterns.

How do I install the performance skill?

Run npx -y skills add cognitedata/builder-skills --skill performance -y in your project. Once it is installed, the agent can read your components, rewrite DMS queries and add memoization where the profiler shows it is needed. The skill also instructs it to run a production build first to capture baseline metrics.

More from cognitedata/builder-skills

All 25

Similar to Performance

More Frontend & UI Code