agentloop-audit-dashbo…
基于 LoongSuite Pilot 采集的 AI Agent 事件生成事件洞察、组织洞察、数据质量、研发效能和 AI Native 使用类 SLS 报表时使用;包含 agent-event / agent-event-webtracking…
安装、卸载 LoongSuite Pilot(面向研发团队的 AI Coding 数据采集工具, 支持 Cursor / Qoder / Claude Code / Codex)。当用户提到 loongsuite-pilot 安装、 pilot 部署、Node.js 前置条件、nvm 配置、Linux 7U glibc 补丁、SSH 远程安装、 新增或追加 SLS flusher、自定义 SLS/WebTracking 上报配置时, 务必使用本 Skill——即使用户只问“怎么装”也应触发。安装完成后可在
Claude Code
$ npx -y skills add alibaba/loongsuite-pilot --skill loongsuite-pilot-ops --agent claude-code
Codex
$ npx skills add alibaba/loongsuite-pilot --skill loongsuite-pilot-ops -a codex -y
Cursor
$ npx skills add alibaba/loongsuite-pilot --skill loongsuite-pilot-ops -a cursor -y
Gemini CLI
$ npx skills add alibaba/loongsuite-pilot --skill loongsuite-pilot-ops -a gemini-cli -y
GitHub Copilot
$ npx skills add alibaba/loongsuite-pilot --skill loongsuite-pilot-ops -a github-copilot -y
OpenCode
$ npx skills add alibaba/loongsuite-pilot --skill loongsuite-pilot-ops -a opencode -y
Windsurf
$ npx skills add alibaba/loongsuite-pilot --skill loongsuite-pilot-ops -a windsurf -y
name: loongsuite-pilot-ops version: 0.6.1 description: >- 安装、卸载 LoongSuite Pilot(面向研发团队的 AI Coding 数据采集工具, 支持 Cursor / Qoder / Claude Code / Codex)。当用户提到 loongsuite-pilot 安装、 pilot 部署、Node.js 前置条件、nvm 配置、Linux 7U glibc 补丁、SSH 远程安装、 新增或追加 SLS flusher、自定义 SLS/WebTracking 上报配置时, 务必使用本 Skill——即使用户只问“怎么装”也应触发。安装完成后可在 ~/.loongsuite-pilot/skills/loongsuite-pilot-ops/references/ 目录下找到诊断排查与观测面板的详细参考文档。
LoongSuite Pilot 是面向研发团队的 AI Coding 数据采集与效能评估工具,支持 Cursor、Qoder IDE/CLI、Claude Code、Codex 的数据自动采集与上报。
> 诊断排查请查阅 `~/.loongsuite-pilot/skills/loongsuite-pilot-ops/references/diagnostics.md`; > 观测面板与运维手册请查阅 `~/.loongsuite-pilot/skills/loongsuite-pilot-ops/references/monitoring.md`。 > 以上两个文件在 pilot 安装完成后自动写入本地,可直接打开阅读。
> **所有命令必须在完整权限环境下执行**(Shell 工具调用时设置 `required_permissions: ["all"]`)。 > 沙箱环境下 `nvm`、`sudo` 及 PID 读取会受限,导致安装或诊断结果不可信。
---
> ⚠️ **务必使用 nvm 的 Node,不要使用任何 Agent 自带的 Node 环境** > > 部分 AI Coding Agent(例如 **Codex**、以及其他自带运行时的 CLI 工具)会在安装时 > 内置一份 Node,并可能把 `node` 指向其私有目录(例如 `~/.codex/...` 或 Agent > 自身安装目录下的版本)。这类 Node **仅供该 Agent 内部使用**,用它安装 pilot > 会导致依赖错乱、hook 失效等问题。安装前务必确认: > > ```bash > which node # 路径应包含 .nvm,例如 ~/.nvm/versions/node/v22.x.x/bin/node > node -v # 输出应 >= v22.13.0(或 23.4+ / 24+),以便加载 node:sqlite > ``` > > 若 `which node` 指向任一 Agent 的私有目录(如 `~/.codex/`、Agent 安装目录等), > 请先执行 `nvm use 22`(或在新终端中确认 `nvm` 已加载)后再继续安装。
---
执行以下两步完成标准安装(Mac / Linux 8U / ECS):
# 步骤一:安装 nvm + Node.js(已有可加载 node:sqlite 的 node,即 22.13+ / 23.4+,可跳过) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash nvm install 22 # 步骤二:安装 LoongSuite Pilot(将 <工号> 替换为 6 位员工号,含前导 0) curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite/loongsuite-pilot/loongsuite-pilot-installer-inner.sh \ | bash -s -- install --user.id <工号>
安装成功后验证:
~/.local/bin/loongsuite-pilot status ~/.local/bin/loongsuite-pilot info # diagnostics 与 monitoring 参考文档已自动写入 loongsuite-pilot-ops/references/ ls -l ~/.loongsuite-pilot/skills/loongsuite-pilot-ops/references/
---
安装时或安装完成后,询问用户是否需要使用自定义 Logstore 上报数据。
询问用户:**是否使用 AK/SK 进行访问?**
如果用户提供的是 `region + project + logstore`,安装脚本没有 `--sls-region` 参数,需要先把 `region` 转成 `--sls-endpoint`:
--sls-endpoint "https://{region}.log.aliyuncs.com"例如 `region=cn-hangzhou` 时,endpoint 是 `https://cn-hangzhou.log.aliyuncs.com`。 不要再使用 `--default-sls-override=false`,当前安装脚本会直接拒绝该参数。
---
> ⚠️ **安全警告:以下命令包含 AK/SK 敏感信息,禁止发送给 Agent!** > > 请用户**自行复制**下方命令模板,**手动填入** AK/SK 等敏感参数后, > **在自己的终端中直接执行**。切勿将填写好的命令粘贴回对话窗口或发送给任何 Agent, > 以防 AK/SK 泄露。
请将以下命令模板展示给用户,让用户自行填写并执行:
curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite/loongsuite-pilot/loongsuite-pilot-installer-inner.sh | bash -s -- install \
--user.id={替换成你的工号,6位数字,如012345} \
--sls-endpoint "{endpoint链接,如https://cn-hangzhou.log.aliyuncs.com}" \
--sls-project "{project名字}" \
--sls-logstore "{logstore名字}" \
--sls-ak-id "{logstore ak}" \
--sls-ak-secret "{logstore secret}"**Agent 操作规范:** 1. 将上述命令模板**原样展示**给用户 2. 提醒用户将各占位符替换为实际值 3. **绝对不要**代替用户执行此命令 4. **绝对不要**要求用户将填好的命令发回给 Agent 5. 告知用户在终端执行完毕后,可以回来继续后续验证步骤
---
将 Logstore 设置为 WebTracking Enabled(开启匿名上报),无需提供 AK/SK。
如果用户已经明确选择 WebTracking,并提供了 `user.id`、`region`/`endpoint`、`project`、 `logstore`,Agent 可以将占位符替换为实际值后代替用户执行安装命令;如果信息不完整, 再将以下命令模板展示给用户,让用户补齐:
curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite/loongsuite-pilot/loongsuite-pilot-installer-inner.sh | bash -s -- install \
--user.id={替换成你的工号,6位数字,如012345} \
--sls-endpoint "{endpoint链接,如https://cn-hangzhou.log.aliyuncs.com}" \
--sls-project "{project名字}" \
--sls-logstore "{logstore名字}"**Agent 操作规范:** 1. 先确认用户明确选择的是 WebTracking 匿名上报,不涉及 AK/SK 2. 如果用户提供的是 `region + project + logstore`,先按上文转换出 `--sls-endpoint` 3. 执行前确认当前 `node` 来自 `nvm`,且 `node -e "require('node:sqlite')"` 成功(22.13+ 或 23.4+);否则先切换到 `nvm use 22` 4. 信息完整时,Agent **可以代替用户执行此命令**,并在安装后继续执行 `status` / `info` 验证 5. 提醒用户需要**提前在 SLS 控制台将对应 Logstore 开启 WebTracking**;如果安装或上报验证失败,优先提示检查 WebTracking 是否已开启
---
当用户说“新增 SLS 上报”、“添加 SLS flusher”、“再加一个 logstore”、“配置发送采集数据到 project/region/logstore,走 WebTracking”时,**不要重新安装 pilot**,直接修改用户的 `~/.loongsuite-pilot/config.json`。
需要的信息:
如果用户提供的是 `region + project + logstore`,先转换:
endpoint="https://{region}.log.aliyuncs.com"例如 `region=cn-heyuan` 时,endpoint 是 `https://cn-heyuan.log.aliyuncs.com`。
只修改 `config.json` 的 `sls` 字段,保留 `enabled`、`dataDir`、`userId`、`autoUpdate`、 `installId` 等其他字段。
{
"endpoint": "https://cn-heyuan.log.aliyuncs.com",
"project": "ai-coding-devops",
"logstore": "loongsuite-pilot-for-intern-contest2"
}"sls": [
{
"endpoint": "https://cn-heyuan.log.aliyuncs.com",
"project": "ai-coding-devops",
"logstore": "loongsuite-pilot-for-internl-contest"
},
{
"endpoint": "https://cn-heyuan.log.aliyuncs.com",
"project": "ai-coding-devops",
"logstore": "loongsuite-pilot-for-intern-contest2"
}
]已存在,不要重复追加,直接告诉用户已存在。
WebTracking 模式不要写入 AK/SK。通常只写 `endpoin
基于 LoongSuite Pilot 采集的 AI Agent 事件生成事件洞察、组织洞察、数据质量、研发效能和 AI Native 使用类 SLS 报表时使用;包含 agent-event / agent-event-webtracking…
查询 AgentLoop 行为、Token、风险、意图、拦截和实体数据;按用户需求返回实际结果、验证 SQL 或 CLI/SDK 接入材料。仪表盘制作使用 agentloop-audit-dashboard。
准备 AgentLoop 云环境、登录与切换账户或查询目标,以及安装、配置或重新获取采集器(loongsuite-pilot)时使用。 Triggers: "登录 AgentLoop", "切换账户", "切换账号", "切换 AgentSpace",…
当任务需要创建、修改、扩展或重组阿里云 SLS 的 dashboard JSON 或可导入的大盘配置时使用;尤其适用于线上大盘、强对比的分析看板、已校验的查询包,或需要专业中文标签与指标定义的运维向大盘。
Kubeshark installation and deployment skill. Use this skill whenever the user wants to install Kubeshark, deploy Kubeshark to a…
Call the user on the phone for real-time voice conversations. Use this when you need input, want to report on completed work, or…