cognitedata/builder-skills/integrate-fusion-agent
Claude Code and agent skill by cognitedata/builder-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
MUST be used when adding AI, Atlas, an agent, a chat UI, or LLM features to a Flows/Fusion app. Use the Atlas/EOS sidebar via @cognite/app-sdk — not useAtlasChat, vendored atlas-agent, or per-row chat completions. Triggers: atlas, EOS, PAIA, agent chat, chat UI, sendAgentMessage, sendAgentLayoutMode, registerAgentServer, connectToHostApp, useAtlasChat, LLM. In-app chat: integrate-atlas-chat only if the host sidebar cannot work.
Install
npx vskill@latest install cognitedata/builder-skills/integrate-fusion-agentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cognitedata/builder-skills/integrate-fusion-agent.
Integrate Atlas / EOS Sidebar
Default AI path: the platform Atlas sidebar (EOS / Fusion PAIA) via @cognite/app-sdk. Do not embed useAtlasChat, vendor atlas-agent, or call third-party LLM APIs.
integrate-atlas-chat only if the user explicitly requires in-app chat and connectToHostApp cannot provide the sidebar (standalone app; always rejects). There is no manifest field for this.
Implement only what is needed:
- Open — Topbar Atlas button;
sendAgentLayoutModefor in-app triggers - Message —
sendAgentMessageto inject context - Server — resources (app state) and actions (tools)
Step 0 — Read the app
package.json— package manager,@cognite/app-sdksrc/App.tsx— structure, existing SDK usage
Ask which of the three capabilities are needed. Do not offer an in-app chat unless they already insisted.
Step 1 — Install
pnpm add @cognite/app-sdk (or npm/yarn). Minimum 0.3.1.
Step 2 — Connect to the host
connectToHostApp rejects outside Fusion (standalone vite dev). Catch that; hide agent triggers when api is null.
Comlink proxies are callable — setApi(proxy) makes React treat the proxy as an updater and stores a Promise. Always setApi(() => resolvedApi).
Call at the root; pass api down or via context. typeof proxy.method === 'function' is always true — do not feature-detect with typeof; use try/catch.
Step 3 — Open the sidebar
Primary launcher: Aura Topbar Atlas (systemActions.atlas.visible: true, see use-topbar). No second "Open Assistant" control.
sendAgentLayoutMode is for contextual triggers only (sidebar | fullscreen | closed):
Step 4 — Send a message
Pair with sendAgentLayoutMode. newSession: true for a new task from an item; omit to continue the thread. Put names/IDs/state in the message — one sidebar turn, not N completions over query rows.
Step 5 — Agent server
Register on mount, unregister on unmount. Factories take services as args so they can be unit-tested without React:
Resource read() returns { type: 'json', data } (preferred) or { type: 'text', text }. Write description like a docstring.
Actions: snake_case names, Zod params, .describe() on every field. The agent does not confirm before calling — mutating actions must say so in description and require prior user approval.
Step 6 — Wire together
Test factories directly:
Hard gate — LLM calls over query results
Do not map chat completions (Atlas agents/chat, OpenAI/Anthropic, useAtlasChat().send) over DMS/SDK rows. Prefer one sendAgentMessage or a resource the sidebar agent can read.
If per-item completions are an explicit product requirement (default: no):
| Rule | Limit | |
|---|---|---|
| Default | 5 completions per user-initiated action | |
| Ceiling | 50 — never generate code that can exceed this | |
| Cache | space:externalId:lastUpdatedTime; hits do not spend budget | |
| Batch | One prompt covering N items, not N calls | |
| Trigger | User-initiated only — never on render, poll, or an unbounded list | |
| UX | Say when the cap truncated the set |
Forbidden: items.map((row) => complete(row)), Promise.all of completions over a query page.
Checklist
- [ ] Topbar Atlas launcher (
use-topbar); no in-app chat widget - [ ]
@cognite/app-sdk@0.3.1+;setApi(() => resolvedApi); catch outside-Fusion rejection - [ ] Triggers hidden when
apiis null; server registered/unregistered with.catch() - [ ] Resource descriptions say what/when; action names
snake_case; mutating actions require prior approval - [ ] Factories take services as args; LLM-over-rows capped (5 / max 50) and cached if present
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/integrate-fusion-agent/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 1
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Sep 2026, 2 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cognitedata/builder-skills/integrate-fusion-agent)