[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F4TJFX6W76XAMG2QNGZH1D":3,"skill-same:01M6F4TJFX6W76XAMG2QNGZH1D":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":23,"linkOnly":24,"markdownContent":25,"markdownBody":26,"frontMatter":27,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M6F4TJFX6W76XAMG2QNGZH1D","mcp-create-adaptive-cards",null,"Skill converted from mcp-create-adaptive-cards.prompt.md","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fgithub\u002Fawesome-copilot\u002Fmcp-create-adaptive-cards\u002FSKILL.md",[],[19,20,21,22],"MCP","create","mcp create adaptive cards","prompt","2026-11-10 10:12:30",false,"---\nname: mcp-create-adaptive-cards\ndescription: 'Skill converted from mcp-create-adaptive-cards.prompt.md'\n---\n\n````prompt\n---\nmode: 'agent'\ntools: ['changes', 'search\u002Fcodebase', 'edit\u002FeditFiles', 'problems']\ndescription: 'Add Adaptive Card response templates to MCP-based API plugins for visual data presentation in Microsoft 365 Copilot'\nmodel: 'gpt-4.1'\ntags: [mcp, adaptive-cards, m365-copilot, api-plugin, response-templates]\n---\n\n# Create Adaptive Cards for MCP Plugins\n\nAdd Adaptive Card response templates to MCP-based API plugins to enhance how data is presented visually in Microsoft 365 Copilot.\n\n## Adaptive Card Types\n\n### Static Response Templates\nUse when API always returns items of the same type and format doesn't change often.\n\nDefine in `response_semantics.static_template` in ai-plugin.json:\n\n```json\n{\n  \"functions\": [\n    {\n      \"name\": \"GetBudgets\",\n      \"description\": \"Returns budget details including name and available funds\",\n      \"capabilities\": {\n        \"response_semantics\": {\n          \"data_path\": \"$\",\n          \"properties\": {\n            \"title\": \"$.name\",\n            \"subtitle\": \"$.availableFunds\"\n          },\n          \"static_template\": {\n            \"type\": \"AdaptiveCard\",\n            \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\",\n            \"version\": \"1.5\",\n            \"body\": [\n              {\n                \"type\": \"Container\",\n                \"$data\": \"${$root}\",\n                \"items\": [\n                  {\n                    \"type\": \"TextBlock\",\n                    \"text\": \"Name: ${if(name, name, 'N\u002FA')}\",\n                    \"wrap\": true\n                  },\n                  {\n                    \"type\": \"TextBlock\",\n                    \"text\": \"Available funds: ${if(availableFunds, formatNumber(availableFunds, 2), 'N\u002FA')}\",\n                    \"wrap\": true\n                  }\n                ]\n              }\n            ]\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n### Dynamic Response Templates\nUse when API returns multiple types and each item needs a different template.\n\n**ai-plugin.json configuration:**\n```json\n{\n  \"name\": \"GetTransactions\",\n  \"description\": \"Returns transaction details with dynamic templates\",\n  \"capabilities\": {\n    \"response_semantics\": {\n      \"data_path\": \"$.transactions\",\n      \"properties\": {\n        \"template_selector\": \"$.displayTemplate\"\n      }\n    }\n  }\n}\n```\n\n**API Response with Embedded Templates:**\n```json\n{\n  \"transactions\": [\n    {\n      \"budgetName\": \"Fourth Coffee lobby renovation\",\n      \"amount\": -2000,\n      \"description\": \"Property survey for permit application\",\n      \"expenseCategory\": \"permits\",\n      \"displayTemplate\": \"$.templates.debit\"\n    },\n    {\n      \"budgetName\": \"Fourth Coffee lobby renovation\",\n      \"amount\": 5000,\n      \"description\": \"Additional funds to cover cost overruns\",\n      \"expenseCategory\": null,\n      \"displayTemplate\": \"$.templates.credit\"\n    }\n  ],\n  \"templates\": {\n    \"debit\": {\n      \"type\": \"AdaptiveCard\",\n      \"version\": \"1.5\",\n      \"body\": [\n        {\n          \"type\": \"TextBlock\",\n          \"size\": \"medium\",\n          \"weight\": \"bolder\",\n          \"color\": \"attention\",\n          \"text\": \"Debit\"\n        },\n        {\n          \"type\": \"FactSet\",\n          \"facts\": [\n            {\n              \"title\": \"Budget\",\n              \"value\": \"${budgetName}\"\n            },\n            {\n              \"title\": \"Amount\",\n              \"value\": \"${formatNumber(amount, 2)}\"\n            },\n            {\n              \"title\": \"Category\",\n              \"value\": \"${if(expenseCategory, expenseCategory, 'N\u002FA')}\"\n            },\n            {\n              \"title\": \"Description\",\n              \"value\": \"${if(description, description, 'N\u002FA')}\"\n            }\n          ]\n        }\n      ],\n      \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\"\n    },\n    \"credit\": {\n      \"type\": \"AdaptiveCard\",\n      \"version\": \"1.5\",\n      \"body\": [\n        {\n          \"type\": \"TextBlock\",\n          \"size\": \"medium\",\n          \"weight\": \"bolder\",\n          \"color\": \"good\",\n          \"text\": \"Credit\"\n        },\n        {\n          \"type\": \"FactSet\",\n          \"facts\": [\n            {\n              \"title\": \"Budget\",\n              \"value\": \"${budgetName}\"\n            },\n            {\n              \"title\": \"Amount\",\n              \"value\": \"${formatNumber(amount, 2)}\"\n            },\n            {\n              \"title\": \"Description\",\n              \"value\": \"${if(description, description, 'N\u002FA')}\"\n            }\n          ]\n        }\n      ],\n      \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\"\n    }\n  }\n}\n```\n\n### Combined Static and Dynamic Templates\nUse static template as default when item doesn't have template_selector or when value doesn't resolve.\n\n```json\n{\n  \"capabilities\": {\n    \"response_semantics\": {\n      \"data_path\": \"$.items\",\n      \"properties\": {\n        \"title\": \"$.name\",\n        \"template_selector\": \"$.templateId\"\n      },\n      \"static_template\": {\n        \"type\": \"AdaptiveCard\",\n        \"version\": \"1.5\",\n        \"body\": [\n          {\n            \"type\": \"TextBlock\",\n            \"text\": \"Default: ${name}\",\n            \"wrap\": true\n          }\n        ]\n      }\n    }\n  }\n}\n```\n\n## Response Semantics Properties\n\n### data_path\nJSONPath query indicating where data resides in API response:\n```json\n\"data_path\": \"$\"           \u002F\u002F Root of response\n\"data_path\": \"$.results\"   \u002F\u002F In results property\n\"data_path\": \"$.data.items\"\u002F\u002F Nested path\n```\n\n### properties\nMap response fields for Copilot citations:\n```json\n\"properties\": {\n  \"title\": \"$.name\",            \u002F\u002F Citation title\n  \"subtitle\": \"$.description\",  \u002F\u002F Citation subtitle\n  \"url\": \"$.link\"               \u002F\u002F Citation link\n}\n```\n\n### template_selector\nProperty on each item indicating which template to use:\n```json\n\"template_selector\": \"$.displayTemplate\"\n```\n\n## Adaptive Card Template Language\n\n### Conditional Rendering\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"${if(field, field, 'N\u002FA')}\"  \u002F\u002F Show field or 'N\u002FA'\n}\n```\n\n### Number Formatting\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"${formatNumber(amount, 2)}\"  \u002F\u002F Two decimal places\n}\n```\n\n### Data Binding\n```json\n{\n  \"type\": \"Container\",\n  \"$data\": \"${$root}\",  \u002F\u002F Break to root context\n  \"items\": [ ... ]\n}\n```\n\n### Conditional Display\n```json\n{\n  \"type\": \"Image\",\n  \"url\": \"${imageUrl}\",\n  \"$when\": \"${imageUrl != null}\"  \u002F\u002F Only show if imageUrl exists\n}\n```\n\n## Card Elements\n\n### TextBlock\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"Text content\",\n  \"size\": \"medium\",      \u002F\u002F small, default, medium, large, extraLarge\n  \"weight\": \"bolder\",    \u002F\u002F lighter, default, bolder\n  \"color\": \"attention\",  \u002F\u002F default, dark, light, accent, good, warning, attention\n  \"wrap\": true\n}\n```\n\n### FactSet\n```json\n{\n  \"type\": \"FactSet\",\n  \"facts\": [\n    {\n      \"title\": \"Label\",\n      \"value\": \"Value\"\n    }\n  ]\n}\n```\n\n### Image\n```json\n{\n  \"type\": \"Image\",\n  \"url\": \"https:\u002F\u002Fexample.com\u002Fimage.png\",\n  \"size\": \"medium\",  \u002F\u002F auto, stretch, small, medium, large\n  \"style\": \"default\" \u002F\u002F default, person\n}\n```\n\n### Container\n```json\n{\n  \"type\": \"Container\",\n  \"$data\": \"${items}\",  \u002F\u002F Iterate over array\n  \"items\": [\n    {\n      \"type\": \"TextBlock\",\n      \"text\": \"${name}\"\n    }\n  ]\n}\n```\n\n### ColumnSet\n```json\n{\n  \"type\": \"ColumnSet\",\n  \"columns\": [\n    {\n      \"type\": \"Column\",\n      \"width\": \"auto\",\n      \"items\": [ ... ]\n    },\n    {\n      \"type\": \"Column\",\n      \"width\": \"stretch\",\n      \"items\": [ ... ]\n    }\n  ]\n}\n```\n\n### Actions\n```json\n{\n  \"type\": \"Action.OpenUrl\",\n  \"title\": \"View Details\",\n  \"url\": \"https:\u002F\u002Fexample.com\u002Fitem\u002F${id}\"\n}\n```\n\n## Responsive Design Best Practices\n\n### Single-Column Layouts\n- Use single columns for narrow viewports\n- Avoid multi-column layouts when possible\n- Ensure cards work at minimum viewport width\n\n### Flexible Widths\n- Don't assign fixed widths to elements\n- Use \"auto\" or \"stretch\" for width properties\n- Allow elements to resize with viewport\n- Fixed widths OK for icons\u002Favatars only\n\n### Text and Images\n- Avoid placing text and images in same row\n- Exception: Small icons or avatars\n- Use \"wrap\": true for text content\n- Test at various viewport widths\n\n### Test Across Hubs\nValidate cards in:\n- Teams (desktop and mobile)\n- Word\n- PowerPoint\n- Various viewport widths (contract\u002Fexpand UI)\n\n## Complete Example\n\n**ai-plugin.json:**\n```json\n{\n  \"functions\": [\n    {\n      \"name\": \"SearchProjects\",\n      \"description\": \"Search for projects with status and details\",\n      \"capabilities\": {\n        \"response_semantics\": {\n          \"data_path\": \"$.projects\",\n          \"properties\": {\n            \"title\": \"$.name\",\n            \"subtitle\": \"$.status\",\n            \"url\": \"$.projectUrl\"\n          },\n          \"static_template\": {\n            \"type\": \"AdaptiveCard\",\n            \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\",\n            \"version\": \"1.5\",\n            \"body\": [\n              {\n                \"type\": \"Container\",\n                \"$data\": \"${$root}\",\n                \"items\": [\n                  {\n                    \"type\": \"TextBlock\",\n                    \"size\": \"medium\",\n                    \"weight\": \"bolder\",\n                    \"text\": \"${if(name, name, 'Untitled Project')}\",\n                    \"wrap\": true\n                  },\n                  {\n                    \"type\": \"FactSet\",\n                    \"facts\": [\n                      {\n                        \"title\": \"Status\",\n                        \"value\": \"${status}\"\n                      },\n                      {\n                        \"title\": \"Owner\",\n                        \"value\": \"${if(owner, owner, 'Unassigned')}\"\n                      },\n                      {\n                        \"title\": \"Due Date\",\n                        \"value\": \"${if(dueDate, dueDate, 'Not set')}\"\n                      },\n                      {\n                        \"title\": \"Budget\",\n                        \"value\": \"${if(budget, formatNumber(budget, 2), 'N\u002FA')}\"\n                      }\n                    ]\n                  },\n                  {\n                    \"type\": \"TextBlock\",\n                    \"text\": \"${if(description, description, 'No description')}\",\n                    \"wrap\": true,\n                    \"separator\": true\n                  }\n                ]\n              }\n            ],\n            \"actions\": [\n              {\n                \"type\": \"Action.OpenUrl\",\n                \"title\": \"View Project\",\n                \"url\": \"${projectUrl}\"\n              }\n            ]\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n## Workflow\n\nAsk the user:\n1. What type of data does the API return?\n2. Are all items the same type (static) or different types (dynamic)?\n3. What fields should appear in the card?\n4. Should there be actions (e.g., \"View Details\")?\n5. Are there multiple states or categories requiring different templates?\n\nThen generate:\n- Appropriate response_semantics configuration\n- Static template, dynamic templates, or both\n- Proper data binding with conditional rendering\n- Responsive single-column layout\n- Test scenarios for validation\n\n## Resources\n\n- [Adaptive Card Designer](https:\u002F\u002Fadaptivecards.microsoft.com\u002Fdesigner) - Visual design tool\n- [Adaptive Card Schema](https:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json) - Full schema reference\n- [Template Language](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fadaptive-cards\u002Ftemplating\u002Flanguage) - Binding syntax guide\n- [JSONPath](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc9535) - Path query syntax\n\n## Common Patterns\n\n### List with Images\n```json\n{\n  \"type\": \"Container\",\n  \"$data\": \"${items}\",\n  \"items\": [\n    {\n      \"type\": \"ColumnSet\",\n      \"columns\": [\n        {\n          \"type\": \"Column\",\n          \"width\": \"auto\",\n          \"items\": [\n            {\n              \"type\": \"Image\",\n              \"url\": \"${thumbnailUrl}\",\n              \"size\": \"small\",\n              \"$when\": \"${thumbnailUrl != null}\"\n            }\n          ]\n        },\n        {\n          \"type\": \"Column\",\n          \"width\": \"stretch\",\n          \"items\": [\n            {\n              \"type\": \"TextBlock\",\n              \"text\": \"${title}\",\n              \"weight\": \"bolder\",\n              \"wrap\": true\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n```\n\n### Status Indicators\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"${status}\",\n  \"color\": \"${if(status == 'Completed', 'good', if(status == 'In Progress', 'attention', 'default'))}\"\n}\n```\n\n### Currency Formatting\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"$${formatNumber(amount, 2)}\"\n}\n```\n\n````\n\n","````prompt\n---\nmode: 'agent'\ntools: ['changes', 'search\u002Fcodebase', 'edit\u002FeditFiles', 'problems']\ndescription: 'Add Adaptive Card response templates to MCP-based API plugins for visual data presentation in Microsoft 365 Copilot'\nmodel: 'gpt-4.1'\ntags: [mcp, adaptive-cards, m365-copilot, api-plugin, response-templates]\n---\n\n# Create Adaptive Cards for MCP Plugins\n\nAdd Adaptive Card response templates to MCP-based API plugins to enhance how data is presented visually in Microsoft 365 Copilot.\n\n## Adaptive Card Types\n\n### Static Response Templates\nUse when API always returns items of the same type and format doesn't change often.\n\nDefine in `response_semantics.static_template` in ai-plugin.json:\n\n```json\n{\n  \"functions\": [\n    {\n      \"name\": \"GetBudgets\",\n      \"description\": \"Returns budget details including name and available funds\",\n      \"capabilities\": {\n        \"response_semantics\": {\n          \"data_path\": \"$\",\n          \"properties\": {\n            \"title\": \"$.name\",\n            \"subtitle\": \"$.availableFunds\"\n          },\n          \"static_template\": {\n            \"type\": \"AdaptiveCard\",\n            \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\",\n            \"version\": \"1.5\",\n            \"body\": [\n              {\n                \"type\": \"Container\",\n                \"$data\": \"${$root}\",\n                \"items\": [\n                  {\n                    \"type\": \"TextBlock\",\n                    \"text\": \"Name: ${if(name, name, 'N\u002FA')}\",\n                    \"wrap\": true\n                  },\n                  {\n                    \"type\": \"TextBlock\",\n                    \"text\": \"Available funds: ${if(availableFunds, formatNumber(availableFunds, 2), 'N\u002FA')}\",\n                    \"wrap\": true\n                  }\n                ]\n              }\n            ]\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n### Dynamic Response Templates\nUse when API returns multiple types and each item needs a different template.\n\n**ai-plugin.json configuration:**\n```json\n{\n  \"name\": \"GetTransactions\",\n  \"description\": \"Returns transaction details with dynamic templates\",\n  \"capabilities\": {\n    \"response_semantics\": {\n      \"data_path\": \"$.transactions\",\n      \"properties\": {\n        \"template_selector\": \"$.displayTemplate\"\n      }\n    }\n  }\n}\n```\n\n**API Response with Embedded Templates:**\n```json\n{\n  \"transactions\": [\n    {\n      \"budgetName\": \"Fourth Coffee lobby renovation\",\n      \"amount\": -2000,\n      \"description\": \"Property survey for permit application\",\n      \"expenseCategory\": \"permits\",\n      \"displayTemplate\": \"$.templates.debit\"\n    },\n    {\n      \"budgetName\": \"Fourth Coffee lobby renovation\",\n      \"amount\": 5000,\n      \"description\": \"Additional funds to cover cost overruns\",\n      \"expenseCategory\": null,\n      \"displayTemplate\": \"$.templates.credit\"\n    }\n  ],\n  \"templates\": {\n    \"debit\": {\n      \"type\": \"AdaptiveCard\",\n      \"version\": \"1.5\",\n      \"body\": [\n        {\n          \"type\": \"TextBlock\",\n          \"size\": \"medium\",\n          \"weight\": \"bolder\",\n          \"color\": \"attention\",\n          \"text\": \"Debit\"\n        },\n        {\n          \"type\": \"FactSet\",\n          \"facts\": [\n            {\n              \"title\": \"Budget\",\n              \"value\": \"${budgetName}\"\n            },\n            {\n              \"title\": \"Amount\",\n              \"value\": \"${formatNumber(amount, 2)}\"\n            },\n            {\n              \"title\": \"Category\",\n              \"value\": \"${if(expenseCategory, expenseCategory, 'N\u002FA')}\"\n            },\n            {\n              \"title\": \"Description\",\n              \"value\": \"${if(description, description, 'N\u002FA')}\"\n            }\n          ]\n        }\n      ],\n      \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\"\n    },\n    \"credit\": {\n      \"type\": \"AdaptiveCard\",\n      \"version\": \"1.5\",\n      \"body\": [\n        {\n          \"type\": \"TextBlock\",\n          \"size\": \"medium\",\n          \"weight\": \"bolder\",\n          \"color\": \"good\",\n          \"text\": \"Credit\"\n        },\n        {\n          \"type\": \"FactSet\",\n          \"facts\": [\n            {\n              \"title\": \"Budget\",\n              \"value\": \"${budgetName}\"\n            },\n            {\n              \"title\": \"Amount\",\n              \"value\": \"${formatNumber(amount, 2)}\"\n            },\n            {\n              \"title\": \"Description\",\n              \"value\": \"${if(description, description, 'N\u002FA')}\"\n            }\n          ]\n        }\n      ],\n      \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\"\n    }\n  }\n}\n```\n\n### Combined Static and Dynamic Templates\nUse static template as default when item doesn't have template_selector or when value doesn't resolve.\n\n```json\n{\n  \"capabilities\": {\n    \"response_semantics\": {\n      \"data_path\": \"$.items\",\n      \"properties\": {\n        \"title\": \"$.name\",\n        \"template_selector\": \"$.templateId\"\n      },\n      \"static_template\": {\n        \"type\": \"AdaptiveCard\",\n        \"version\": \"1.5\",\n        \"body\": [\n          {\n            \"type\": \"TextBlock\",\n            \"text\": \"Default: ${name}\",\n            \"wrap\": true\n          }\n        ]\n      }\n    }\n  }\n}\n```\n\n## Response Semantics Properties\n\n### data_path\nJSONPath query indicating where data resides in API response:\n```json\n\"data_path\": \"$\"           \u002F\u002F Root of response\n\"data_path\": \"$.results\"   \u002F\u002F In results property\n\"data_path\": \"$.data.items\"\u002F\u002F Nested path\n```\n\n### properties\nMap response fields for Copilot citations:\n```json\n\"properties\": {\n  \"title\": \"$.name\",            \u002F\u002F Citation title\n  \"subtitle\": \"$.description\",  \u002F\u002F Citation subtitle\n  \"url\": \"$.link\"               \u002F\u002F Citation link\n}\n```\n\n### template_selector\nProperty on each item indicating which template to use:\n```json\n\"template_selector\": \"$.displayTemplate\"\n```\n\n## Adaptive Card Template Language\n\n### Conditional Rendering\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"${if(field, field, 'N\u002FA')}\"  \u002F\u002F Show field or 'N\u002FA'\n}\n```\n\n### Number Formatting\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"${formatNumber(amount, 2)}\"  \u002F\u002F Two decimal places\n}\n```\n\n### Data Binding\n```json\n{\n  \"type\": \"Container\",\n  \"$data\": \"${$root}\",  \u002F\u002F Break to root context\n  \"items\": [ ... ]\n}\n```\n\n### Conditional Display\n```json\n{\n  \"type\": \"Image\",\n  \"url\": \"${imageUrl}\",\n  \"$when\": \"${imageUrl != null}\"  \u002F\u002F Only show if imageUrl exists\n}\n```\n\n## Card Elements\n\n### TextBlock\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"Text content\",\n  \"size\": \"medium\",      \u002F\u002F small, default, medium, large, extraLarge\n  \"weight\": \"bolder\",    \u002F\u002F lighter, default, bolder\n  \"color\": \"attention\",  \u002F\u002F default, dark, light, accent, good, warning, attention\n  \"wrap\": true\n}\n```\n\n### FactSet\n```json\n{\n  \"type\": \"FactSet\",\n  \"facts\": [\n    {\n      \"title\": \"Label\",\n      \"value\": \"Value\"\n    }\n  ]\n}\n```\n\n### Image\n```json\n{\n  \"type\": \"Image\",\n  \"url\": \"https:\u002F\u002Fexample.com\u002Fimage.png\",\n  \"size\": \"medium\",  \u002F\u002F auto, stretch, small, medium, large\n  \"style\": \"default\" \u002F\u002F default, person\n}\n```\n\n### Container\n```json\n{\n  \"type\": \"Container\",\n  \"$data\": \"${items}\",  \u002F\u002F Iterate over array\n  \"items\": [\n    {\n      \"type\": \"TextBlock\",\n      \"text\": \"${name}\"\n    }\n  ]\n}\n```\n\n### ColumnSet\n```json\n{\n  \"type\": \"ColumnSet\",\n  \"columns\": [\n    {\n      \"type\": \"Column\",\n      \"width\": \"auto\",\n      \"items\": [ ... ]\n    },\n    {\n      \"type\": \"Column\",\n      \"width\": \"stretch\",\n      \"items\": [ ... ]\n    }\n  ]\n}\n```\n\n### Actions\n```json\n{\n  \"type\": \"Action.OpenUrl\",\n  \"title\": \"View Details\",\n  \"url\": \"https:\u002F\u002Fexample.com\u002Fitem\u002F${id}\"\n}\n```\n\n## Responsive Design Best Practices\n\n### Single-Column Layouts\n- Use single columns for narrow viewports\n- Avoid multi-column layouts when possible\n- Ensure cards work at minimum viewport width\n\n### Flexible Widths\n- Don't assign fixed widths to elements\n- Use \"auto\" or \"stretch\" for width properties\n- Allow elements to resize with viewport\n- Fixed widths OK for icons\u002Favatars only\n\n### Text and Images\n- Avoid placing text and images in same row\n- Exception: Small icons or avatars\n- Use \"wrap\": true for text content\n- Test at various viewport widths\n\n### Test Across Hubs\nValidate cards in:\n- Teams (desktop and mobile)\n- Word\n- PowerPoint\n- Various viewport widths (contract\u002Fexpand UI)\n\n## Complete Example\n\n**ai-plugin.json:**\n```json\n{\n  \"functions\": [\n    {\n      \"name\": \"SearchProjects\",\n      \"description\": \"Search for projects with status and details\",\n      \"capabilities\": {\n        \"response_semantics\": {\n          \"data_path\": \"$.projects\",\n          \"properties\": {\n            \"title\": \"$.name\",\n            \"subtitle\": \"$.status\",\n            \"url\": \"$.projectUrl\"\n          },\n          \"static_template\": {\n            \"type\": \"AdaptiveCard\",\n            \"$schema\": \"http:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json\",\n            \"version\": \"1.5\",\n            \"body\": [\n              {\n                \"type\": \"Container\",\n                \"$data\": \"${$root}\",\n                \"items\": [\n                  {\n                    \"type\": \"TextBlock\",\n                    \"size\": \"medium\",\n                    \"weight\": \"bolder\",\n                    \"text\": \"${if(name, name, 'Untitled Project')}\",\n                    \"wrap\": true\n                  },\n                  {\n                    \"type\": \"FactSet\",\n                    \"facts\": [\n                      {\n                        \"title\": \"Status\",\n                        \"value\": \"${status}\"\n                      },\n                      {\n                        \"title\": \"Owner\",\n                        \"value\": \"${if(owner, owner, 'Unassigned')}\"\n                      },\n                      {\n                        \"title\": \"Due Date\",\n                        \"value\": \"${if(dueDate, dueDate, 'Not set')}\"\n                      },\n                      {\n                        \"title\": \"Budget\",\n                        \"value\": \"${if(budget, formatNumber(budget, 2), 'N\u002FA')}\"\n                      }\n                    ]\n                  },\n                  {\n                    \"type\": \"TextBlock\",\n                    \"text\": \"${if(description, description, 'No description')}\",\n                    \"wrap\": true,\n                    \"separator\": true\n                  }\n                ]\n              }\n            ],\n            \"actions\": [\n              {\n                \"type\": \"Action.OpenUrl\",\n                \"title\": \"View Project\",\n                \"url\": \"${projectUrl}\"\n              }\n            ]\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n## Workflow\n\nAsk the user:\n1. What type of data does the API return?\n2. Are all items the same type (static) or different types (dynamic)?\n3. What fields should appear in the card?\n4. Should there be actions (e.g., \"View Details\")?\n5. Are there multiple states or categories requiring different templates?\n\nThen generate:\n- Appropriate response_semantics configuration\n- Static template, dynamic templates, or both\n- Proper data binding with conditional rendering\n- Responsive single-column layout\n- Test scenarios for validation\n\n## Resources\n\n- [Adaptive Card Designer](https:\u002F\u002Fadaptivecards.microsoft.com\u002Fdesigner) - Visual design tool\n- [Adaptive Card Schema](https:\u002F\u002Fadaptivecards.io\u002Fschemas\u002Fadaptive-card.json) - Full schema reference\n- [Template Language](https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fadaptive-cards\u002Ftemplating\u002Flanguage) - Binding syntax guide\n- [JSONPath](https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc9535) - Path query syntax\n\n## Common Patterns\n\n### List with Images\n```json\n{\n  \"type\": \"Container\",\n  \"$data\": \"${items}\",\n  \"items\": [\n    {\n      \"type\": \"ColumnSet\",\n      \"columns\": [\n        {\n          \"type\": \"Column\",\n          \"width\": \"auto\",\n          \"items\": [\n            {\n              \"type\": \"Image\",\n              \"url\": \"${thumbnailUrl}\",\n              \"size\": \"small\",\n              \"$when\": \"${thumbnailUrl != null}\"\n            }\n          ]\n        },\n        {\n          \"type\": \"Column\",\n          \"width\": \"stretch\",\n          \"items\": [\n            {\n              \"type\": \"TextBlock\",\n              \"text\": \"${title}\",\n              \"weight\": \"bolder\",\n              \"wrap\": true\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n```\n\n### Status Indicators\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"${status}\",\n  \"color\": \"${if(status == 'Completed', 'good', if(status == 'In Progress', 'attention', 'default'))}\"\n}\n```\n\n### Currency Formatting\n```json\n{\n  \"type\": \"TextBlock\",\n  \"text\": \"$${formatNumber(amount, 2)}\"\n}\n```\n\n````\n\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fgithub\u002Fawesome-copilot\u002Fmcp-create-adaptive-cards",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill mcp-create-adaptive-cards",{"tool":43,"command":44},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill mcp-create-adaptive-cards",{"tool":46,"command":47},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill mcp-create-adaptive-cards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fgithub\u002Fawesome-copilot\u002Fmcp-create-adaptive-cards\u002FSKILL.md",true,[],[52,61,69,78,84,90],{"skillNo":53,"name":54,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":23},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[58,59,60],"model","model hierarchy","model hierarchy skill",{"skillNo":62,"name":63,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":23},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[19,67,68],"zoom","zoom mcp",{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":23},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[75,76,77,67],"sdk","zoom apps sdk","apps",{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":23},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[80],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":23},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[86],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":23},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[92]]