用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill teams-api-azure-devops-pipeline-integration命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Write outbound email and external messages in Vamsee Achanta's voice — a subtle offer to help, never bold or rash claims. Load before drafting ANY email, LinkedIn/Collide reply, proposal note, or outreach sent under his name.
Save/publish analysis or computation results from ANY ecosystem repo to Hugging Face as a queryable, viewer-renderable dataset. Use when the user wants to "save results to hugging face", "publish dataset to HF", "hugging face data saving", "save analysis results", "hf dataset", "make results queryable", or "render via datasets-server API". Reshapes nested results into flat parquet tables, writes a dataset card with a viewer `configs:` block and provenance, applies license/public-vs-private routing, enforces a domain data-quality gate (faithful-to-source != correct), publishes to `aceengineer/<repo>-<projection>`, and verifies via the datasets-server API.
Clone, create, fork, configure, and manage GitHub repositories. Manage remotes, secrets, releases, and workflows. Works with gh CLI or falls back to git + GitHub REST API via curl.
基于 SOC 职业分类
正在显示 SKILL.md
| name | teams-api-azure-devops-pipeline-integration |
| description | Sub-skill of teams-api: Azure DevOps Pipeline Integration (+1). |
| version | 1.0.0 |
| category | business |
| type | reference |
| scripts_exempt | true |
# azure-pipelines.yml
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: Build
jobs:
- job: BuildJob
steps:
- script: echo "Building..."
- task: PowerShell@2
displayName: 'Notify Teams - Build Started'
inputs:
targetType: 'inline'
script: |
$webhook = "$(TEAMS_WEBHOOK_URL)"
$body = @{
"@type" = "MessageCard"
"@context" = "http://schema.org/extensions"
"themeColor" = "FFCC00"
"summary" = "Build Started"
"sections" = @(
@{
"activityTitle" = "Build Started: $(Build.DefinitionName)"
"facts" = @(
@{ "name" = "Branch"; "value" = "$(Build.SourceBranchName)" }
@{ "name" = "Commit"; "value" = "$(Build.SourceVersion)" }
@{ "name" = "Build ID"; "value" = "$(Build.BuildId)" }
)
}
)
} | ConvertTo-Json -Depth 10
Invoke-RestMethod -Uri $webhook -Method Post -Body $body -ContentType 'application/json'
- stage: Deploy
dependsOn: Build
jobs:
- deployment: DeployJob
environment: 'production'
strategy:
runOnce:
deploy:
steps:
- script: echo "Deploying..."
- task: PowerShell@2
displayName: 'Notify Teams - Deployment Complete'
inputs:
targetType: 'inline'
script: |
$webhook = "$(TEAMS_WEBHOOK_URL)"
$body = @{
"@type" = "MessageCard"
"themeColor" = "00FF00"
"summary" = "Deployment Complete"
"sections" = @(
@{
"activityTitle" = "Deployment Complete"
"facts" = @(
@{ "name" = "Environment"; "value" = "Production" }
@{ "name" = "Version"; "value" = "$(Build.BuildNumber)" }
)
"potentialAction" = @(
@{
"@type" = "OpenUri"
"name" = "View Release"
"targets" = @(@{ "os" = "default"; "uri" = "$(System.TeamFoundationCollectionUri)/$(System.TeamProject)/_release?releaseId=$(Release.ReleaseId)" })
}
)
}
)
} | ConvertTo-Json -Depth 10
Invoke-RestMethod -Uri $webhook -Method Post -Body $body -ContentType 'application/json'
# main.py
# ABOUTME: FastAPI endpoint for Teams bot
# ABOUTME: Handles bot messages and card actions
from fastapi import FastAPI, Request, Response
from botbuilder.core import TurnContext
from botbuilder.integration.aiohttp import CloudAdapter, ConfigurationBotFrameworkAuthentication
from botbuilder.schema import Activity
from bot import TeamsBot
import os
# Configuration
class DefaultConfig:
PORT = 3978
APP_ID = os.environ.get("MICROSOFT_APP_ID", "")
APP_PASSWORD = os.environ.get("MICROSOFT_APP_PASSWORD", "")
CONFIG = DefaultConfig()
# Create adapter
SETTINGS = ConfigurationBotFrameworkAuthentication(CONFIG)
ADAPTER = CloudAdapter(SETTINGS)
# Create bot
CONVERSATION_REFERENCES = {}
BOT = TeamsBot(CONVERSATION_REFERENCES)
# Error handler
async def on_error(context: TurnContext, error: Exception):
print(f"Bot error: {error}")
await context.send_activity("Sorry, an error occurred.")
ADAPTER.on_turn_error = on_error
# FastAPI app
app = FastAPI()
@app.post("/api/messages")
async def messages(request: Request) -> Response:
"""Main bot messaging endpoint"""
request.headers.get(, ):
Response(status_code=)
body = request.json()
activity = Activity().deserialize(body)
auth_header = request.headers.get(, )
response = ADAPTER.process_activity(auth_header, activity, BOT.on_turn)
response:
Response(
content=response.body,
status_code=response.status
)
Response(status_code=)
():
{: }
__name__ == :
uvicorn
uvicorn.run(app, host=, port=CONFIG.PORT)