microsoft/powertoys/add-adaptive-card-form

Claude Code and agent skill by microsoft/powertoys

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Create form-based UI for your Command Palette extension using Adaptive Cards. Use when asked to add forms, user input fields, toggle switches, text inputs, dropdown menus, data entry, surveys, configuration dialogs, or interactive content pages, or to show charts, graphs, gauges, sparklines, progress bars, badges, or live dashboards. Supports the Adaptive Cards Designer for visual form building.

Install

npx vskill@latest install microsoft/powertoys/add-adaptive-card-form

SKILL.md

The same SKILL.md was published earlier as microsoft/powertoys/add-adaptive-card-form.

Add Forms with Adaptive Cards

Create interactive forms in your Command Palette extension using Adaptive Cards. Forms allow you to collect user input through text fields, toggles, dropdowns, and other controls.

When to Use This Skill

  • Adding a form to collect user input (name, settings, feedback)
  • Creating interactive configuration dialogs
  • Building data entry interfaces
  • Adding toggle switches or dropdown menus
  • Displaying complex layouts beyond simple lists
  • Showing charts, gauges, progress, or a live dashboard

Prerequisites

Quick Start

Step 1: Create a ContentPage with FormContent

Create a new file in your Pages/ directory:

csharp
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
using System.Text.Json.Nodes;
namespace YourExtension;
internal sealed partial class MyFormPage : ContentPage
{
private readonly MyForm _form = new();
public MyFormPage()
{
Name = "Open";
Title = "My Form";
Icon = new IconInfo("\uECA5");
}
public override IContent[] GetContent() => [_form];
}
internal sealed partial class MyForm : FormContent
{
public MyForm()
{
TemplateJson = """
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.6",
"body": [
{
"type": "Input.Text",
"label": "Name",
"id": "Name",
"isRequired": true,
"errorMessage": "Name is required",
"placeholder": "Enter your name"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
""";
}
public override CommandResult SubmitForm(string payload)
{
var formInput = JsonNode.Parse(payload)?.AsObject();
if (formInput == null)
{
return CommandResult.GoHome();
}
var name = formInput["Name"]?.ToString() ?? "Unknown";
return CommandResult.ShowToast($"Hello, {name}!");
}
}
Step 2: Register the Page

In your CommandsProvider, add the form page:

csharp
_commands = [
new CommandItem(new MyFormPage()) { Title = "My Form" },
];
Step 3: Deploy and Test
  1. Deploy your extension
  2. In Command Palette, run Reload
  3. Navigate to your form and submit it

Key Concepts

TemplateJson

The JSON layout of your form (from Adaptive Cards schema). Design it at https://adaptivecards.io/designer/

DataJson (Optional)

Dynamic data binding using ${...} placeholders in your TemplateJson:

csharp
TemplateJson = """{ "body": [{ "type": "TextBlock", "text": "${title}" }] }""";
DataJson = """{ "title": "Dynamic Title" }""";
SubmitForm

Called when the user submits. Parse payload as JSON to read input values by their id.

Mixing Content Types

You can combine forms with markdown on the same page:

csharp
public override IContent[] GetContent() => [
new MarkdownContent("# Instructions\nFill out the form below."),
_form,
];

Common Form Patterns

See form-patterns.md for template JSON for common form types.

Charts and Visuals

Command Palette renders Chart.Line, Chart.Gauge, Chart.Donut, Chart.Pie, the bar charts, ProgressBar, Badge, and Icon natively, and containers accept roundedCorners and showBorder for dashboard tiles. Update DataJson to update charts in place. See charts-and-visuals.md for properties, colors, and examples, and always give these elements a fallback for hosts that don't support them.

Documentation

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 3 Jul 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
135,973
Repository forks
8,187
7-day trend score
59

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/powertoys/add-adaptive-card-form/badge)](https://verified-skill.com/skills/microsoft/powertoys/add-adaptive-card-form)

Something wrong with this skill or its page? Tell us.