Skip to main contentteams-api-2-adaptive-cards
Sub-skill of teams-api: 2. Adaptive Cards.
インストールへ移動 Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill teams-api-2-adaptive-cardsコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
このリポジトリの他の Skills
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.
| name | teams-api-2-adaptive-cards |
| description | Sub-skill of teams-api: 2. Adaptive Cards. |
| version | 1.0.0 |
| category | business |
| type | reference |
| scripts_exempt | true |
2. Adaptive Cards
2. Adaptive Cards
from typing import Dict, List, Optional, Any
import json
class AdaptiveCardBuilder:
"""Builder for Adaptive Cards"""
():
.card = {
: ,
: ,
: version,
: [],
: []
}
():
.card[].append({
: ,
: text,
: size,
: weight,
: color,
: wrap
})
():
.card[].append({
: ,
: [
{: k, : v}
k, v facts.items()
]
})
():
.card[].append({
: ,
: columns
})
():
.card[].append({
: ,
: url,
: size,
: alt_text
})
():
.card[].append({
: ,
: title,
: data,
: style
})
():
.card[].append({
: ,
: title,
: url
})
():
.card[].append({
: ,
: title,
: card
})
():
input_element = {
: ,
: ,
: placeholder,
: is_multiline
}
label:
input_element[] = label
.card[].append(input_element)
():
input_element = {
: ,
: ,
: choices,
: is_multi_select,
: style
}
label:
input_element[] = label
.card[].append(input_element)
():
.card[].append({
: ,
: items,
: style
})
() -> :
.card
() -> :
json.dumps(.card, indent=)
() -> :
*Content truncated — see parent skill full reference.*
def
__init__
self, version: str = "1.4"
self
"type"
"AdaptiveCard"
"$schema"
"http://adaptivecards.io/schemas/adaptive-card.json"
"version"
"body"
"actions"
def
add_text_block
self,
text: str,
size: str = "default",
weight: str = "default",
color: str = "default",
wrap: bool = True
"""Add a text block"""
self
"body"
"type"
"TextBlock"
"text"
"size"
"weight"
"color"
"wrap"
return
self
def
add_fact_set
self, facts: Dict[str, str]
"""Add a fact set (key-value pairs)"""
self
"body"
"type"
"FactSet"
"facts"
"title"
"value"
for
in
return
self
def
add_column_set
self, columns: List[Dict]
"""Add a column set for side-by-side content"""
self
"body"
"type"
"ColumnSet"
"columns"
return
self
def
add_image
self,
url: str,
size: str = "auto",
alt_text: str = ""
"""Add an image"""
self
"body"
"type"
"Image"
"url"
"size"
"altText"
return
self
def
add_action_submit
self,
title: str,
data: Dict[str, Any],
style: str = "default"
"""Add a submit action button"""
self
"actions"
"type"
"Action.Submit"
"title"
"data"
"style"
return
self
def
add_action_open_url
self,
title: str,
url: str
"""Add an open URL action"""
self
"actions"
"type"
"Action.OpenUrl"
"title"
"url"
return
self
def
add_action_show_card
self,
title: str,
card: Dict
"""Add a show card action (nested card)"""
self
"actions"
"type"
"Action.ShowCard"
"title"
"card"
return
self
def
add_input_text
self,
id: str,
placeholder: str = "",
is_multiline: bool = False,
label: str = ""
"""Add a text input"""
"type"
"Input.Text"
"id"
id
"placeholder"
"isMultiline"
if
"label"
self
"body"
return
self
def
add_input_choice_set
self,
id: str,
choices: List[Dict[str, str]],
is_multi_select: bool = False,
style: str = "compact",
label: str = ""
"""Add a choice set (dropdown/radio)"""
"type"
"Input.ChoiceSet"
"id"
id
"choices"
"isMultiSelect"
"style"
if
"label"
self
"body"
return
self
def
add_container
self,
items: List[Dict],
style: str = "default"
"""Add a container for grouping elements"""
self
"body"
"type"
"Container"
"items"
"style"
return
self
def
build
self
Dict
"""Build and return the card"""
return
self
def
to_json
self
str
"""Return card as JSON string"""
return
self
2
def
create_deployment_card
app_name: str,
environment: str,
version: str,
status: str,
details: Dict[str, str],
action_url: str
Dict
"""Create a deployment notification card"""
for