Automatically wires up authentication for React apps running inside Cognite Fusion so they can talk to CDF. Detects whether you're using the newer Apps API flow or the legacy Files API setup by checking app.json, installs the right packages (either @cognite/app-sdk or @cognite/dune), and scaffolds the provider pattern in your entry file. It's a no-op if auth is already configured. Saves you from reading migration docs and hunting down which CSP plugin goes where in vite.config.ts. The Apps API path uses CogniteSdkProvider with a cleaner hook-based API, while classic setups get DuneAuthProvider. Strips out any manual CogniteClient instantiation or environment variables you had lying around.
npx skills add https://github.com/cognitedata/builder-skills --skill setup-flows-auth