Token导航 LogoToken导航

Agent Skill · 研究检索

teams-bot-infra(团队机器人基础设施)

teams-bot-infra 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

teams-bot-infra 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 68,166。

总安装 235周安装 10GitHub Stars 2下载 82核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:teams-bot-infra(团队机器人基础设施)
来源仓库:https://github.com/heyitsaamir/teamscli
仓库路径:skills/teams-bot-infra
安装命令:
npx skills add https://github.com/heyitsaamir/teamscli --skill teams-bot-infra
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/heyitsaamir/teamscli --skill teams-bot-infra

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

teams-bot-infra 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据任务场景快速定位候选结果。通过 npx skills add 命令从指定仓库安装并使用。安装前需确认权限范围、维护状态及是否触发联网或命令执行。

建议结合原始 README 核验具体用法和功能边界。

来源仓库内路径:skills/teams-bot-infra

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/heyitsaamir/teamscli --skill teams-bot-infra;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

teams-bot-infra 怎么安装?

在终端执行 npx skills add https://github.com/heyitsaamir/teamscli --skill teams-bot-infra。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

teams-bot-infra 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

teams-bot-infra 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

teams-bot-infra 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

teams-bot-infra 用的人多吗?

公开数据是累计安装 235 次,近一周安装 10 次,下载 82 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

teams-bot-infra 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
teams-bot-infra

团队机器人基础设施 · 本页

2352操作浏览器未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Teams Bot Infrastructure Management

This skill will guide you in creating, configuring, and troubleshooting Microsoft Teams bot infrastructure using the Teams CLI. It does NOT cover building or hosting bot application code.

1. Prerequisites Verification

Before creating a Teams bot, verify these prerequisites:

Step 1: Check Teams CLI Installation

Verify the Teams CLI is installed:

teams --version

Expected output: Shows version number (e.g., 1.0.0 or similar)

If not installed:

Install the Teams CLI using npm:

npm install -g https://github.com/heyitsaamir/teamscli/releases/latest/download/teamscli.tgz

After installation:

  • Verify: Run teams --version to confirm installation
  • You should see the version number

Checkpoint: Teams CLI is installed.

Step 2: Check Authentication

Run the following command to check authentication status:

teams status

Expected output: Shows authenticated user information.

If not authenticated:

  1. Run: teams login
  2. Follow the authentication flow
  3. Verify: Run teams status again and confirm you see your authenticated account

Checkpoint: Authentication verified before proceeding.

Step 3: Verify Bot Endpoint Availability (Optional)

Ask the user: "Do you have a bot messaging endpoint URL, or will this bot only send proactive messages?"

If using proactive flows only (no endpoint needed):

  • Proactive flows = bot sends messages to Teams without first receiving a message from users
  • Examples: Notifications, scheduled updates, alerts from external systems
  • ⚠️ Warning: Without an endpoint, your bot cannot receive messages from Teams users. It can only send proactive messages programmatically.
  • 💡 Note: You can always add an endpoint later using teams app edit <appId> --endpoint <url> (here, <appId> is the teamsAppId returned by teams app create; see Section 4)
  • Skip to Section 2 — no endpoint required for creation

If the bot needs to receive messages (endpoint required):

  • Confirm the endpoint format: https://your-domain/api/messages
  • Common formats:

- Devtunnels: https://your-tunnel.devtunnels.ms/api/messages - ngrok: https://your-ngrok-id.ngrok.io/api/messages - Azure: https://your-app.azurewebsites.net/api/messages

  • Default port for Teams SDK samples: 3978

If NO endpoint yet:

Checkpoint: Either endpoint URL is ready OR confirmed proactive-only use case.


2. Create Teams Bot

Now create the Teams bot with infrastructure.

Step 1: Run Creation Command

Execute the following command (replace placeholders):

With endpoint (bot receives messages):

teams app create --name "YourBotName" --endpoint "https://your-endpoint/api/messages" --json

Without endpoint (proactive flows only):

teams app create --name "YourBotName" --json

Parameters:

  • --name: Your bot's display name (e.g., "Notification Bot", "MyBot")
  • --endpoint: [OPTIONAL] The bot messaging endpoint URL. Omit this for proactive-only bots.
  • --json: Output structured JSON (required for parsing)

Expected: Command completes successfully and returns JSON output.

Step 2: Parse JSON Output

The command returns JSON with these fields:

{
  "appName": "YourBotName",
  "teamsAppId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "botId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "endpoint": "https://your-endpoint/api/messages",
  "installLink": "https://teams.microsoft.com/l/app/...",
  "botLocation": "teams-managed",
  "credentials": {
    "CLIENT_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "CLIENT_SECRET": "your-secret-value",
    "TENANT_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  }
}

Note: If no endpoint was provided, endpoint will be null. This is normal for proactive-only bots.

Step 3: Save Credentials to.env File

Ask the user: "Do you already have a.env file for this project?"

If YES:

  • Prompt: "What is the path to your.env file?"
  • Default suggestion: .env (current directory)
  • Example paths: .env, ./bot/.env, ../config/.env

If NO:

  • Prompt: "Where should I create the.env file?"
  • Default: .env (current directory)
  • Inform: "I'll create a new.env file at this location"

After getting the path:

Write the credentials to the.env file using the values from JSON output:

CLIENT_ID=<value-from-json>
CLIENT_SECRET=<value-from-json>
TENANT_ID=<value-from-json>

Instruct the user:

"Credentials saved to [path]. Your bot application code will use these values to authenticate with Microsoft Teams."

Important: If the.env file already exists, replace any existing CLIENT_ID, CLIENT_SECRET, and TENANT_ID entries in place with the new values. Append only the keys that are missing. Do not create duplicate entries for these keys, and do not overwrite any other existing values in the file.

Step 4: Display Install Link

Show the install link from the JSON output:

Install your bot in Teams:
<install-link-from-json>

Instruct the user:

"Open this link in your browser to install the bot in Microsoft Teams. You can install it for personal use, in a team, or in a group chat."

Do NOT automatically open the browser - let the user decide when to install.

Checkpoint: Bot created successfully, credentials and install link displayed.


3. Verification

Verify the bot was created successfully.

Step 1: Verify App Exists

Run the following command (use the teamsAppId from creation output):

teams app view <teamsAppId> --json

Expected output: Returns app details matching what was created:

  • teamsAppId matches
  • botId matches
  • endpoint matches (or is empty if not configured)
  • App shows as active

If verification fails: Check the error message and refer to Error Recovery section.

Checkpoint: App verified in Teams Developer Portal.


4. Common Operations

Update Teams CLI

Use case: Update the Teams CLI to the latest version (recommended to stay current with new features and bug fixes)

Command:

teams self-update

When to use:

  • Periodically update to get latest features
  • After bug reports or known issues
  • When new CLI features are announced

Expected: CLI downloads and installs the latest version

Update Bot Endpoint

Use case: Endpoint URL changed (new ngrok/devtunnels session, redeployment, local → cloud migration)

Command:

teams app edit <appId> --endpoint "https://new-endpoint-url/api/messages"

When to use:

  • Ngrok URL changed (new session)
  • Devtunnels URL changed
  • Deployed bot to cloud (Azure, AWS, etc.)
  • Switched from local dev to production endpoint

View App Details

Command:

teams app view <appId> --json

Use case: Check current bot configuration, verify settings

List All Apps

Command:

teams app list

Use case: See all Teams apps you've created


5. Error Recovery

Cannot Install App (Sideloading Disabled)

Symptom: Install link shows "Permission denied", "Custom apps are blocked", or similar message

Cause: Tenant administrator has disabled custom app upload (sideloading)

Solution:

  1. Contact your tenant administrator
  2. Request they enable custom app upload
  3. Reference documentation: https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/prepare-your-o365-tenant#enable-custom-teams-apps-and-configure-custom-app-upload-settings

Admin steps: Admin must enable "Allow interaction with custom apps" in Teams admin center.

"This app cannot be found" Error

Symptom: Install link shows "This app cannot be found", "App not found", or "We couldn't find this app" when trying to install

Cause: The app was created in a different Microsoft 365 tenant than where you're trying to install it

Common scenario: App was created in the Microsoft 365 Developer Program tenant (https://developer.microsoft.com/en-us/microsoft-365/dev-program) but you're trying to install it in your work/organization tenant

Solution:

  1. Open Teams in the same tenant where you created the app
  2. If using M365 Developer Program, sign into Teams with your developer account
  3. Use the install link - it will now work

AUTH_REQUIRED Error

Symptom: Command fails with "Not logged in", "AUTH_REQUIRED", or "authentication required" message

Cause: Not authenticated or authentication token expired

Solution:

  1. Run: teams login
  2. Complete authentication flow
  3. Verify: Run teams status and confirm authenticated
  4. Retry the original command

AUTH_TOKEN_FAILED Error

Symptom: Command fails with "Failed to get token" or "AUTH_TOKEN_FAILED" message

Cause: Token acquisition failed (expired, corrupted, or network issue)

Solution:

  1. Run: teams login again to refresh tokens
  2. Verify: Run teams status shows authenticated
  3. Retry the original command

6. Resources

Building Bot Application Code

This skill covers bot infrastructure only. To build the actual bot code:

Teams SDK (Recommended):

Setting Up Development Tunnels

Microsoft devtunnels (Recommended):

ngrok (Alternative):

Teams App Development Documentation

General Teams app development:

Bot-specific documentation:


Workflow Summary

1. Prerequisites
   ├─ Install CLI: npm install -g <url>
   ├─ Authenticate: teams login
   └─ [OPTIONAL] Prepare endpoint: https://your-domain/api/messages
      (Skip endpoint for proactive-only bots)

2. Create Bot
   ├─ With endpoint: teams app create --name X --endpoint Y --json
   └─ Without endpoint (proactive-only): teams app create --name X --json

3. Handle Output
   ├─ Ask: "Do you have a .env file?" → Get/create path
   ├─ Write credentials to .env (CLIENT_ID, CLIENT_SECRET, TENANT_ID)
   └─ Display install link

4. Verify
   └─ teams app view <teamsAppId> --json

5. Common Operations
   └─ Add/update endpoint: teams app edit <appId> --endpoint <new-url>

6. Troubleshoot
   ├─ Sideload disabled → Admin enables custom app upload
   └─ AUTH_REQUIRED → teams login, retry

Out of Scope

This skill does NOT cover:

  • ❌ Building bot application code (see Teams SDK)
  • ❌ Hosting or deploying bot code (Azure, AWS, etc.)
  • ❌ Setting up devtunnels/ngrok (link provided to docs)
  • ❌ Bot development patterns and best practices
  • ❌ Teams app manifest customization (uses CLI defaults)

For bot code development, start with: https://microsoft.github.io/teams-sdk/welcome

平台分布

Codex

32.55%
按下载量换算27

Claude

31.41%
按下载量换算26

Cursor

18.84%
按下载量换算15

Gemini CLI

8.28%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills