Skip to content
cognitedata avatar

Create Client Tool

Scaffolds an in-app AtlasTool for useAtlasChat with TypeBox schemas and execute-function wiring, not Fusion actions.

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 the tool file scaffold: AtlasTool definition, snake_case name, TypeBox parameters, and an execute returning output and details
  • Includes a TypeBox quick reference (Type.String, Type.Union, Type.Optional, and related schemas) and a step to add the tool to the tools array in useAtlasChat
  • Shows how to render message.toolCalls so the UI can display each tool's details payload
  • Designed for approved in-app chat UIs that already use integrate-atlas-chat; EOS sidebar tools go through integrate-fusion-agent instead

Install

$ npx -y skills add cognitedata/builder-skills --skill create-client-tool -y

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

Files

Create a Client Tool

Scaffold an AtlasTool named $ARGUMENTS. If the app has no approved in-app useAtlasChat, implement a Fusion action via integrate-fusion-agent instead.

Prerequisite: vendored src/atlas-agent/ and @sinclair/typebox from integrate-atlas-chat.

Background

Client tools let the Atlas Agent invoke browser-side logic — charts, local state, UI panels, navigation. The agent decides when to call; the app executes and returns a result.

  1. Agent responds with a clientTool action
  2. TypeBox validates the arguments
  3. execute() runs in the browser and returns { output, details }
  4. output (string) is sent back to the agent
  5. details is available on message.toolCalls for the UI to render

Step 1 — Understand the codebase

Before writing anything, read:

  • The file where useAtlasChat is called (often src/App.tsx or a chat hook) to find where tools is passed — imports are typically from ./atlas-agent/react after integrate-atlas-chat
  • Any existing tool definitions to match the file/naming conventions

Step 2 — Define the tool

Details

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

Questions

What does the create-client-tool skill do?

It scaffolds an AtlasTool for an approved in-app useAtlasChat interface, writing the TypeBox parameter schema, the execute function and the hook wiring. It also explains how to render the returned details in the message list.

How do I install create-client-tool?

Run npx -y skills add cognitedata/builder-skills --skill create-client-tool -y inside your project. Once installed, the agent can create AtlasTool definitions for tools that fetch data, render UI, call APIs or show charts.

What do I need before using create-client-tool?

The vendored src/atlas-agent folder and the @sinclair/typebox dependency from the integrate-atlas-chat skill must be in place first. Without them the tool file has no types or schema library to import.

Where does create-client-tool sit in its category?

It is listed under Frontend & UI Code, alongside vercel-react-best-practices, web-design-guidelines and design-taste-frontend. Its focus is narrower: building Atlas agent tools, not general interface guidance.

More from cognitedata/builder-skills

All 25

Similar to Create Client Tool

More Frontend & UI Code