
Correctness And Error Handling
This is the skill you run when your Flows app crashes in production or shows a blank screen instead of an error message. It systematically hunts down and fixes missing error boundaries, unhandled promise rejections, forgotten loading states, and unsafe JSON parsing from external sources. Goes beyond linting by actually writing the try/catch blocks, adding the empty state UI, and wrapping your data fetches with proper error handling. It's opinionated about structure (every async call needs a catch, every list needs an empty state, every external input needs validation) but that's the point. If you're tired of debugging "cannot read property of undefined" at 2am, this automates the defensive coding you should have written in the first place.
- skills.sh installs
- 1.9K
- GitHub stars
- 6
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cognitedata/builder-skills --skill correctness-and-error-handling --agent claude-codeInstalls into .claude/skills of the current project.
Files
Correctness & Error Handling Fix
Find and fix correctness issues and missing error handling in $ARGUMENTS (or the whole app if no argument is given). Work through every step below. Each step searches for problems and then fixes them in place. Only report issues that cannot be auto-fixed.
Step 1 — Map data flows and fix known defects
Read these files before checking anything:
src/main.tsx/src/App.tsx— top-level error boundaries and auth flow- All files matching
**/hooks/*.ts,**/contexts/*.tsx— shared async state - All files matching
**/api/*.ts,**/services/*.ts— CDF SDK call sites
For each async data source, note:
- What happens when the request fails (network error, CDF 403, timeout)?
- What does the UI show while loading?
- What does the UI show if the result is empty?
Find and fix known defects in critical paths
# Find TODO/FIXME/HACK in critical code paths (not test files)
grep -rn --include="*.ts" --include="*.tsx" -E "(TODO|FIXME|HACK|XXX):" src/ | grep -v ".test." | grep -v ".spec."
Sponsors
Details
- Repository
- github.com/cognitedata/builder-skills
- Categories
- Backend & APIs, Debugging
- First seen
- Jun 3, 2026
More from cognitedata/builder-skills
All 26- Dm Limits And Best Practices1.9K
- Integrate Atlas Chat1.9K
- Integrate File Viewer1.9K
- Security1.9K
- Setup Python Tools1.9K
- Graph Viewer1.9K
- Setup Flows Auth1.9K
- Performance1.9K
- 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