cognitedata avatar

Create Client Tool

Scaffolds a new AtlasTool for the Atlas agent framework and wires it into your useAtlasChat hook. This handles the full setup: TypeBox schema definition, the execute function that runs browser-side logic, and adding it to the tools array. Assumes you've already run integrate-atlas-chat to vendor the agent sources and dependencies. Useful when you need the agent to trigger client-side actions like rendering charts, querying local state, or showing UI panels. The skill walks through reading your existing setup, writing the typed tool constant, and optionally rendering structured results from toolCalls. It's opinionated about TypeBox for validation, which keeps runtime and compile-time types in sync but locks you into that stack.

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

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/cognitedata/builder-skills
Categories
AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from cognitedata/builder-skills

All 26
1phuryn avatarintended-vs-implementedphuryn/pm-skillsThe method for finding the gap between what a system is supposed to do and what the code actually does — the class of bug generic scanners miss because they hav1.9Kskills.sh installs
2buildgreatproducts avatardesign-systembuildgreatproducts/builder-osTranslates an image (or a set of image references — screenshots, mockups, Figma URLs, live websites) into two mirrored design-system artifacts: `docs/design.md`1.9Kskills.sh installs
3mindrally avatardeep-learning-pytorchmindrally/skillsExpert guidance for deep learning, transformers, diffusion models, and LLM development with PyTorch, Transformers, Diffusers, and Gradio.1.9Kskills.sh installs
4brightdata avatarseo-auditbrightdata/skillsWhen the user wants to audit, review, or diagnose SEO issues on their site. Uses live web data via the Bright Data CLI for accurate detection of JS-injected sch1.9Kskills.sh installs
5nvidia 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
6everyinc avatarce-sessionseveryinc/compound-engineering-pluginSearch and ask questions about coding agent session history across Claude Code, Codex, and Cursor. Use when asking what was worked on, what was tried before, ho1.8Kskills.sh installs