skel/.pi/skills/adaptive-cards-authoring/SKILL.md
Author Adaptive Cards for the current PiClaw web environment. Use when you need a prompt pattern, supported payload shape, or reusable card templates for structured web interactions.
npx skillsauth add rcarmo/piclaw adaptive-cards-authoringInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when you want to:
This skill is written for the current PiClaw web runtime in this workspace.
content_blocksAction.SubmitAction.OpenUrlactivecompletedcancelledfailedsend_adaptive_card exists for agent-owned Adaptive Card posting in the web UIDo not rely on these as first-class flows unless you are explicitly extending core support:
Action.ShowCardAction.ToggleVisibilityUse an Adaptive Card only when it is materially better than markdown.
Good fits:
Avoid cards when:
Emit cards as a normal message with a matching content fallback plus a content_blocks entry like:
{
"type": "adaptive_card",
"card_id": "approval-123",
"schema_version": "1.5",
"state": "active",
"fallback_text": "Approval requested.",
"payload": {
"type": "AdaptiveCard",
"version": "1.5",
"body": [
{ "type": "TextBlock", "text": "Approval requested", "weight": "Bolder", "size": "Medium" }
],
"actions": [
{ "type": "Action.Submit", "title": "Approve", "data": { "decision": "approve" } }
]
}
}
schema_version at 1.5 unless you have a specific reason otherwise.content and fallback_text concise and human-readable.TextBlock, FactSet, Input.*, ChoiceSet, and Toggle primitives.Action.Submit for structured decisions; use Action.OpenUrl for external links.When you want the agent to emit a card intentionally, use a prompt like this:
Use an Adaptive Card for this response because the interaction is structured and web-only.
Constraints:
- Target the current PiClaw web runtime
- Emit a concise human-readable fallback message plus one adaptive_card content block
- Use schema_version 1.5
- Only use supported actions: Action.Submit and/or Action.OpenUrl
- Keep the card visually simple and compact
- Keep submission payloads small and explicit
- Do not use Action.ShowCard or unsupported card refresh/auth features
- If a card would be worse than markdown, say so and return markdown instead
Task:
<describe the approval / choice / form interaction>
If you need more determinism, ask for both the prose fallback and the exact block:
Generate:
1. a concise fallback message string
2. exactly one PiClaw adaptive_card content block JSON object
Requirements:
- card_id should be stable and descriptive
- fallback_text should match the fallback message closely
- state should start as active
- payload.version should be 1.5
- only supported actions
- keep the body compact and readable in a narrow web pane
Read and reuse the examples in:
templates.mdThese templates are tailored to the current PiClaw runtime rather than generic Adaptive Cards marketing examples.
If you are writing code that emits a card in PiClaw itself:
send_adaptive_cardcontent_blocksmessages tool with action: "post", type: "agent" when you explicitly need itPrefer asking for one of these card classes explicitly:
approval-cardchoice-cardlink-cardstatus-cardkeep-active-form-cardadaptive_card content block for PiClawdocumentation
Resolve Teams or SharePoint document links to canonical metadata.
development
Search the web via SearXNG and optionally convert result pages to Markdown.
development
Search via SearXNG, fetch top results, and return quick summaries plus markdown.
testing
Fetch a user's recent tweets (tweets, replies, retweets) using Playwright + Nitter fallbacks and produce compact JSON/Markdown summaries.