Install Atk

作者 microsoft354361d83247無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Install or update the M365 Agents Toolkit (ATK) CLI and VS Code extension. Triggers: "install atk", "update atk", "install agents toolkit", "update agents toolkit", "install the toolkit", "setup atk", "get atk", "install atk cli", "install atk extension", "install atk vsix", "update the vs code extension", "install latest atk", "upgrade atk"

精選僅含說明DevOps & Cloud
AI 產生的概覽

安裝或更新 M365 Agents Toolkit(ATK)CLI 與 VS Code 擴充功能。

功能
引導代理透過 npx 套件呼叫驗證 M365 Agents Toolkit CLI 是否可用,並回報版本號或失敗訊息。在被要求時,也會依擴充功能 ID 安裝 ATK VS Code 擴充功能,並說明不需要全域安裝。它會設定工作階段環境變數,讓 CLI 呼叫被標記為由技能發起。
適用情境
當使用者要求安裝、更新、設定或開始使用 ATK、Agents Toolkit、其 CLI 或其 VS Code 擴充功能時使用。也適用於安裝或更新 VSIX 的要求。
執行需求
需要 Node.js 18+ 與 npm 以執行以 npx 為基礎的 CLI 呼叫,需要網路存取以下載套件,並需要 VS Code 的 code 指令來安裝擴充功能。未隨附指令碼,僅為說明性內容。

Install ATK

Install or update the M365 Agents Toolkit (ATK) CLI and/or VS Code extension.

Telemetry Tagging

Before running any atk CLI commands, set the session environment variable so all CLI invocations are tagged as skill-initiated:

bash
export ATK_CLI_SKILL=true

Run this once at the start of the session. All subsequent atk commands in the same terminal will inherit it.

Triggers

This skill activates when the user asks to:

  • Install or update ATK / Agents Toolkit / the toolkit
  • Install or update the ATK CLI
  • Install or update the ATK VS Code extension / VSIX
  • Set up ATK / get started with ATK

Behavior

ATK CLI commands use npx -y --package @microsoft/m365agentstoolkit-cli atk which automatically downloads and runs the latest version — no global installation is needed.

When triggered, determine what the user wants:

User intentAction
Install/update everything or just "ATK"Verify CLI works + install VSIX
Install/update CLI onlyVerify CLI works (npx handles it automatically)
Install/update extension / VSIX onlyInstall VSIX only
AmbiguousVerify CLI works + install VSIX

Commands

Step 1: Verify ATK CLI works

bash
npx -y --package @microsoft/m365agentstoolkit-cli atk --version
  • If this succeeds (prints a version): ATK CLI is available. The npx prefix automatically downloads the latest package on first use and caches it for subsequent runs.
  • If this fails: Check that Node.js 18+ and npm are installed. The npx command requires a working Node.js environment.

Step 2: ATK VS Code Extension (if requested)

bash
code --install-extension TeamsDevApp.ms-teams-vscode-extension

Execution

  1. Verify ATK CLI works by running npx -y --package @microsoft/m365agentstoolkit-cli atk --version
  2. Report the result (version number / failure)
  3. Install VS Code extension if requested
  4. Explain that all ATK commands use the npx -y --package @microsoft/m365agentstoolkit-cli atk prefix — no global install needed

Safety Rules

  • MUST NOT skip errors — report failures clearly to the user
  • MUST use the exact package names and extension IDs above — do not substitute with other names or links

來源與署名

來源:microsoft/skills位於.github/plugins/microsoft-365-agents-toolkit/skills/install-atk提交354361d

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架