Lightlines
By cognitedata

correctness-and-error-handling

cognitedata1.9k installs

Fix crashes, missing error states, and edge-case bugs.

What it does

Finds and fixes correctness bugs, missing error handling, and edge-case failures in a Flows app, then reports unresolved issues.

When to use it

Use whenever fixing correctness and error handling issues in a Flows app.

How to use it

Give it an app, optionally naming a file or directory; it fixes issues in place and reports the changes and unresolved findings.

What you provide

  • An existing project

Latest review

What you need · 3

Uses pnpm to install react-error-boundary when adding a missing error boundary and the package is not present.

The prescribed missing-error-boundary fix uses react-error-boundary; the skill installs it if absent.

The prescribed replacement for JSON.parse type assertions imports zod and validates parsed data with safeParse.


Access · 1

This skill

react-error-boundary

Execute

Installs react-error-boundary when needed