This is a proper hardening workflow for Flows apps that actually fixes vulnerabilities instead of just listing them. It walks through six steps in order: mapping attack surfaces, migrating raw CDF calls to the official SDK, eliminating hardcoded secrets, sanitizing dangerous DOM APIs with DOMPurify, checking auth guards and OIDC setup, and validating external input with Zod. The grep commands are specific and the fix instructions are concrete, like wrapping dangerouslySetInnerHTML with DOMPurify.sanitize() or replacing eval() with JSON.parse(). Run this before shipping anything that touches credentials, user input, or external data. It assumes a React/Vite/TypeScript stack and catches the most common ways developers accidentally introduce XSS or injection holes.

skills.sh installs
1.9K
GitHub stars
6
last updated
Aug 21, 2026

Install

$ npx -y skills add cognitedata/builder-skills --skill security --agent claude-code

Installs into .claude/skills of the current project.

Files

Security Fix

Find and fix security issues in $ARGUMENTS (or the whole app if no argument is given). Work through every step below in order. Every step that finds an issue must also fix it.


Step 1 — Map the attack surface

Read these files before checking anything:

  • src/main.tsx / src/App.tsx — entry point, routing, auth gating
  • vite.config.ts — dev server proxy, CORS, headers
  • package.json — list of third-party dependencies
  • Any file matching **/auth*, **/login*, **/token*, **/credential*

Identify:

  • All pages/routes and whether each is behind an auth guard
  • All places where external data enters the app (CDF SDK calls, fetch, user form input)
  • All places where data is written back (CDF upsert, fetch POST/PUT/DELETE)

Step 2 — Migrate all CDF access to the Cognite SDK

All traffic to Cognite Data Fusion (CDF) must go through the official Cognite SDK. Find any HTTP, WebSocket, or other network call to CDF-like hosts or APIs that bypasses the SDK and rewrite it to use the SDK.

Search for raw HTTP calls

Sponsors

Details

Repository
github.com/cognitedata/builder-skills
Categories
Backend & APIs, Security, Debugging
First seen
Jun 3, 2026

More from cognitedata/builder-skills

All 26
1github avatarflowstudio-power-automate-debuggithub/awesome-copilotDebug failing Power Automate cloud flows using the FlowStudio MCP server. The Graph API only shows top-level status codes. This skill gives your agent action-le1.9Kskills.sh installs
2nvidia avatarvss-deploy-detection-tracking-2dnvidia/skillsUse this skill when the user wants to deploy, run, debug, tear down, or call the REST API of the RTVI-CV 2D detection / tracking microservice. Trigger when the 1.8Kskills.sh installs
3nvidia avatarvss-deploy-dense-captioningnvidia/skillsUse this skill when deploying standalone RT-VLM dense captioning or calling its REST API (uploads, captions, streams, chat-completions, Kafka). Not for VSS prof1.8Kskills.sh installs
4nvidia avatarvss-deploy-video-embeddingnvidia/skillsUse this skill when deploying, operating, or integrating the VSS 3.2 GA RT-Embed Video Embedding microservice. Covers Docker Compose bring-up, GPU and storage p1.8Kskills.sh installs
5nvidia avatarvss-manage-video-io-storagenvidia/skillsUse to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add/delete sensors and streams). Not for VLM inference or search.1.8Kskills.sh installs
6shopify avatarshopify-admin-executionshopify/shopify-ai-toolkitRun a validated Admin GraphQL operation against a specific store using Shopify CLI. Use this when the user wants an executable store workflow, not just the quer1.8Kskills.sh installs