LinkAI CLI

标识: linkai-cli最新版本: 1.0.0安装 10 次更新于 2026-11-06
办公效率编程开发

通过CLI调用 LinkAI 的对话、图像、视频和音频模型,以及智能体应用、知识库、数据库、工作流和插件等平台资源。

在超级AI助理对话中安装/skill install linkai-cli

技能介绍

技能简介

通过 LinkAI CLI 使用已授权的平台资源,涵盖模型对话、图像、视频、音频、智能体应用、知识库、数据库、工作流和插件,适合日常调用与平台资源管理。

适用场景

调用智能体;查询知识库;生成内容;运行工作流;管理已授权的平台资源。

使用方法
  1. 先确认 CLI 与账号授权状态,说明要调用的能力和所属账号。
  2. 提供应用、模型、知识库或工作流的明确标识与输入内容;不清楚资源时可先查询列表。
  3. 需要生成文件、更新资源或运行流程时明确参数及目标,完成后核对实际结果。
参数与输入说明

可直接用自然语言说明这些选项;带代码样式的参数按实际工具定义处理。

参数或输入项 填写说明
目标能力 对话、图像、视频、音频、知识库、数据库、工作流或插件。
资源标识 应用编码、模型编码、知识库或工作流标识,以当前账号实际资源为准。
任务输入 问题、提示词、文件、查询条件或工作流所需数据。
输出选项 可要求结构化结果;CLI 支持 --json,具体业务参数按当前帮助核对。
示例需求

使用我指定的 LinkAI 智能体应用回答这份产品问题,先确认应用可访问,再提交问题并整理结果;如果引用知识库,请保留实际返回的来源线索。

交付内容

平台资源查询结果、模型或智能体输出、生成内容及已执行工作流的结果。

使用前提与注意事项
  • 需要 LinkAI CLI 和账号授权,功能受平台权限、模型可用性及积分余额影响。
  • 具体命令参数以当前版本为准,资源删除、付费调用和发布应明确目标与范围。

使用说明

以下为技能最新版本的 SKILL.md 正文,智能体按其中的步骤完成任务。

LinkAI CLI (agent edition)

This skill is optimized for agent invocation, not interactive human use. Default to JSON, non-streaming, non-interactive flags.

If linkai is not installed, see the fallback install note at the end of this file.

Agent defaults — always apply

Concern Default Reason
Output append --json machine-parseable
chat non-streaming is automatic when output is piped (agent case); add --no-stream to force it full reply in one block
account recharge add --agent returns qr_file (local PNG path), not ASCII QR
knowledge delete add --force skips confirmation prompt
auth login send the link, then poll on your next tool call (see below) login needs the user to authorize in a browser
Long async tasks video gen polls internally — just wait don't re-poll
Unknown command/flags run linkai <command> --help --help is the authoritative source when a reference is missing

Capability map

Intent Command Reference
Chat with an AI app linkai chat chat.md
Knowledge base (list/files/search/create/delete) linkai knowledge ... knowledge.md
Image / Video / Audio generation linkai image gen / video gen / audio speech content-gen.md
Database query linkai database ... database.md
Plugin linkai plugin ... plugin.md
Workflow linkai workflow ... workflow.md
App / Model / Account / Credits linkai app/model/account/score ... admin.md
Login / auth status linkai auth ... auth.md
Install / update the CLI linkai update install.md
Exit codes & scope recovery — errors.md

Decision flow

  1. Pick the command from the capability map.
  2. Open the matching reference for required flags and JSON output fields.
  3. Resolve missing IDs (app_code, kb_code, db_code, plugin_code) by listing first with --json. Don't guess codes.
  4. Run with --json. Parse the result; surface only what the user needs.
  5. On non-zero exit, classify via errors.md. For scope errors, stop and ask the user to re-login — do not retry.

Pre-flight

Before the first LinkAI call in a session, verify auth: linkai auth status --json. If status is not valid, run the login flow below.

Login (agent flow)

Login needs the user to authorize in a browser. After you send the link, do NOT stop to wait for the user to reply — make the poll your next tool call.

  1. Get the URL and tell the user to open it and authorize:

    linkai auth login --no-wait --json
  2. On your next tool call, poll until they finish — each call blocks up to --wait seconds:

    linkai auth login --device-code <code> --wait 60 --json

    Re-run the same command while event is authorization_pending (the poll blocks, so looping is not busy-spinning); stop on authorization_complete (then continue the user's original request) or authorization_failed.

See auth.md for the JSON fields and event handling.

Install (fallback) {#install-fallback}

If the linkai command is missing, install it (no interaction needed):

npm i -g linkai-cli   # when Node.js is available

If npm is unavailable or fails, see install.md for the
install-script and manual-download methods (macOS/Linux/Windows). Verify with
linkai --version.

版本记录

版本发布日期更新说明
1.0.02026-10-15-

相关技能

全部技能 →
PPT 生成与编辑 图标

PPT 生成与编辑

办公效率、内容创作

创建、读取和编辑 PowerPoint 演示文稿,支持内容提取、幻灯片合并与拆分,以及模板、布局、演讲备注和批注处理。

前端设计专家 图标

前端设计专家

编程开发

提供现代前端界面设计指南,适用于网页、落地页、仪表盘和各类用户界面的设计与实现。

飞书 CLI 图标

飞书 CLI

办公效率

安装、配置和登录授权飞书 CLI,排查依赖缺失或技能未就绪,并通过飞书开放平台操作消息、文档、多维表格、电子表格、日历、邮箱、任务和会议等业务。当用户要求安装飞书 CLI、修复无法调用、完成授权或操作上述飞书资源时使用。

企业微信 CLI 图标

企业微信 CLI

办公效率

通过CLI操作企业微信,适用于人工操作和智能体调用。

腾讯文档 图标

腾讯文档

办公效率、内容创作

查询、编辑和管理腾讯文档,支持生成演示文稿、表格和文字文档。

钉钉 CLI 图标

钉钉 CLI

办公效率

通过CLI管理钉钉表格、日历、通讯录、群聊、机器人、待办、审批、考勤和日志等功能。

把团队的做事方法沉淀为技能

在技能中心导入技能包、从平台资源生成或在线编写,发布后安装到超级AI助理使用。

前往技能中心
©2025 极简未来
粤ICP备2023060400号
网信算备440307657151501250017号
购买咨询