360 Secure SkillHub
360 安全技能中心

integrate-atlas-chat

该 Skill 仅在用户明确要求应用内嵌入聊天、且宿主侧栏方案不可用时,指导开发者用 useAtlasChat 接入 Cognite Atlas Agent,并附带基于 Pyodide 的 Python 工具执行、会话与校验代码;默认引导到侧栏集成方案。

分类:开发
cognitedata
热度 0.00
最近更新 2026-10-19 03:38:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cognitedata/builder-skills/integrate-atlas-chat
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
integrate-atlas-chat
description
Exception path. Use integrate-fusion-agent for Atlas/chat/agent. Only when the user explicitly requires in-app useAtlasChat and connectToHostApp cannot provide the EOS sidebar (standalone app, always rejects). Triggers: useAtlasChat, in-app atlas chat, embedded chat, vendored atlas-agent. Not for generic "add a chat".
allowed-tools
Read, Glob, Grep, Edit, Write, Bash
metadata
{"argument-hint":"[agent-external-id]"}

Integrate Atlas Agent Chat (exception path)

Stop. Use integrate-fusion-agent (Atlas / EOS sidebar) unless all of:

  1. The user asked for an in-app / embedded chat — not "add Atlas" / "add a chat"
  2. The host Atlas sidebar cannot work. There is no manifest field for this. Probe the app:
    • @cognite/app-sdk + connectToHostApp / useHostApp resolving inside Fusion/EOS → sidebar works; do not continue
    • Standalone-only (host connect always rejects; app is never loaded in Fusion) → in-app chat is allowed
    • If unsure, ask. Default to the sidebar.
  3. The user accepted this as the non-standard path

Then follow https://docs.cognite.com/cdf/flows/guides/ai_agent_integration and wire useAtlasChat for $ARGUMENTS. Keep the product UI; do not replace the app with a chat view.

Do not map send() / chat completions over DMS rows. If per-item completions are required: 5 per user action, ceiling 50, cache by space:externalId:lastUpdatedTime. See integrate-fusion-agent.