Skip to content
cognitedata avatar

Setup Python Tools

Client-side Pyodide Python tool execution for in-app Atlas chat, wired via usePyodideRuntime and pythonRuntime.

CCM score
64 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 installing pinned pyodide@0.29.3, adding usePyodideRuntime, and passing pythonRuntime into useAtlasChat without per-tool config
  • Includes the required python.ts, pyodide.ts, pyodide-react.ts, and pyodide-runtime.ts files copied from integrate-atlas-chat
  • Provides loading and error UI above the chat input, and disables input until the Python runtime is ready
  • Designed for Flows apps with their own chat UI, not the Atlas or EOS sidebar, which runs Python tools from agent config

Install

$ npx -y skills add cognitedata/builder-skills --skill setup-python-tools -y

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

Files

Set Up Python Tool Execution

Add client-side Pyodide execution for $ARGUMENTS. Skip this if the app uses the Atlas / EOS sidebar (integrate-fusion-agent).

Prerequisite: src/atlas-agent/ from integrate-atlas-chat, plus @sinclair/typebox. Copy python.ts, pyodide.ts, pyodide-react.ts, pyodide-runtime.ts from integrate-atlas-chat/code/ into src/atlas-agent/.

CDF runPythonCode tools arrive as toolConfirmation + clientTool. Wire usePyodideRuntime and pass pythonRuntime to useAtlasChat — no PythonToolConfig entries. Pyodide is ~30MB, cached after first load.


Step 1 — Understand the app

Read these files before touching anything:

  • package.json — detect package manager and existing deps
  • The component that calls useAtlasChat — understand current tools/config

Step 2 — Install Pyodide

Install exactly pyodide@0.29.3 using the app's package manager. This version must match the CDN artifacts loaded at runtime — installing a different version will cause errors.

  • pnpm → pnpm add pyodide@0.29.3
  • npm → npm install pyodide@0.29.3
  • yarn → yarn add pyodide@0.29.3

Details

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

Questions

What does the setup-python-tools skill do?

setup-python-tools adds client-side Pyodide Python execution to an in-app useAtlasChat UI, wiring usePyodideRuntime and passing pythonRuntime into useAtlasChat. It also handles Pyodide installation, hook setup, loading UI, and chat hook wiring. It is for in-app chat only and skips apps using the Atlas or EOS sidebar.

How do I install setup-python-tools?

Run npx -y skills add cognitedata/builder-skills --skill setup-python-tools -y in your project. After installing, setup-python-tools lets the agent set up Pyodide tool execution for an already-approved in-app chat.

What does setup-python-tools need before I use it?

setup-python-tools requires the src/atlas-agent folder from integrate-atlas-chat, plus @sinclair/typebox. You must also install pyodide at exactly version 0.29.3 to match the CDN artifacts loaded at runtime.

Where does setup-python-tools stand in the Frontend and UI Code category?

setup-python-tools sits in the Frontend & UI Code category alongside vercel-react-best-practices, web-design-guidelines and design-taste-frontend. Its focus is narrower, covering only Pyodide Python tools for in-app chat.

More from cognitedata/builder-skills

All 25

Similar to Setup Python Tools

More Frontend & UI Code