[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75EXFKFW9K1XC1BFQ390KVT":3,"skill-same:01M75EXFKFW9K1XC1BFQ390KVT":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M75EXFKFW9K1XC1BFQ390KVT","telegram-colored-choices-buttons",null,"javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdandysuper\u002Ftelegram-colored-choices-buttons\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# Openclaw AI Bot — Colored Choice Buttons Skill\n\n## Purpose\nEvery time the bot presents choices to the user, it MUST automatically color each button based on how critical, irreversible, or different the choices are. The bot never sends plain\u002Funstyled choice buttons — color is always applied.\n\n## Core Rule\n**Whenever the bot sends 2+ choices to a user, classify each choice and assign a `style` automatically. This is not optional.**\n\n---\n\n## Telegram Bot API — Button Styles\n\nTwo fields on `InlineKeyboardButton` and `KeyboardButton`:\n\n- **`style`** (String, Optional) — Button color:\n  - *(omit)* — Default accent\u002Fblue. **The recommended \u002F safe \u002F primary action.**\n  - `\"destructive\"` — Red. **Irreversible, dangerous, or high-stakes actions.**\n  - `\"secondary\"` — Gray\u002Fmuted. **Low-priority, dismiss, skip, or neutral actions.**\n\n- **`icon_custom_emoji_id`** (String, Optional) — Custom emoji icon on the button.\n\n---\n\n## Automatic Classification Rules\n\nWhen the bot builds a set of choice buttons, it MUST classify every choice into one of three tiers before sending:\n\n### Tier 1 — Default (accent\u002Fblue): The recommended path\nApply when the choice is:\n- The safest or most common action\n- A positive confirmation (\"Yes\", \"Continue\", \"Accept\", \"Start\")\n- The action the bot would recommend\n- Moving forward in a flow\n\n**Do:** omit the `style` field (or set to `null`).\n\n### Tier 2 — Destructive (red): High-stakes or irreversible\nApply when the choice:\n- Deletes, removes, or permanently changes something\n- Cancels an in-progress operation that loses work\n- Blocks, bans, or restricts a user\n- Rejects, declines, or refuses something important\n- Spends money, tokens, or credits\n- Cannot be undone easily\n\n**Do:** set `\"style\": \"destructive\"`.\n\n### Tier 3 — Secondary (gray): Low-priority or escape hatch\nApply when the choice:\n- Skips, dismisses, or postpones (\"Maybe later\", \"Not now\")\n- Is a neutral fallback (\"Back\", \"Cancel\" when nothing is lost)\n- Shows more info without committing (\"Details\", \"Help\")\n- Is the least important option in the set\n\n**Do:** set `\"style\": \"secondary\"`.\n\n---\n\n## How to Decide — Contrast Matters\n\nWhen choices differ in criticality, the colors MUST reflect that contrast:\n\n**High contrast** — choices have very different consequences:\n```\n \"Delete my account\" → destructive (red)\n \"Keep my account\"   → default (blue)\n```\n\n**Medium contrast** — one main action, one escape:\n```\n \"Subscribe\"   → default (blue)\n \"Not now\"     → secondary (gray)\n```\n\n**Low contrast** — choices are roughly equal:\n```\n \"Option A\" → default (blue)\n \"Option B\" → default (blue)\n \"Skip\"     → secondary (gray)\n```\n\n**Multiple tiers in one set:**\n```\n \"Confirm purchase\"  → default (blue)     — recommended\n \"Change amount\"     → secondary (gray)   — neutral\u002Fback\n \"Cancel order\"      → destructive (red)  — loses progress\n```\n\n---\n\n## Classification Examples\n\nBot asks: \"Approve this document?\"\n```json\n[\n  [{\"text\": \"✅ Approve\", \"callback_data\": \"approve\"},\n   {\"text\": \"❌ Reject\", \"callback_data\": \"reject\", \"style\": \"destructive\"}],\n  [{\"text\": \"⏭ Review later\", \"callback_data\": \"skip\", \"style\": \"secondary\"}]\n]\n```\n\nBot asks: \"Pick a plan:\"\n```json\n[\n  [{\"text\": \"Free Plan\", \"callback_data\": \"free\"},\n   {\"text\": \"Pro Plan\", \"callback_data\": \"pro\"}],\n  [{\"text\": \"Compare plans\", \"callback_data\": \"compare\", \"style\": \"secondary\"}]\n]\n```\n(Equal choices = both default; info link = secondary)\n\nBot asks: \"Delete all messages in this chat?\"\n```json\n[\n  [{\"text\": \"🗑 Delete all\", \"callback_data\": \"delete_all\", \"style\": \"destructive\"}],\n  [{\"text\": \"Keep messages\", \"callback_data\": \"keep\"}]\n]\n```\n(Destructive action is red; safe action is the default blue)\n\nBot asks: \"Transfer 500 tokens to @user?\"\n```json\n[\n  [{\"text\": \"Send 500 tokens\", \"callback_data\": \"send\", \"style\": \"destructive\"},\n   {\"text\": \"Cancel\", \"callback_data\": \"cancel\", \"style\": \"secondary\"}]\n]\n```\n(Spending = destructive since it costs something; cancel = secondary)\n\n---\n\n## Implementation — Python Auto-Classifier\n\nThe bot MUST use a classifier function to determine style. Here is the reference implementation:\n\n```python\nimport re\n\n# Keywords that signal each tier (case-insensitive, matched against button text + callback_data)\nDESTRUCTIVE_SIGNALS = [\n    r\"\\bdelete\\b\", r\"\\bremove\\b\", r\"\\bban\\b\", r\"\\bblock\\b\",\n    r\"\\breject\\b\", r\"\\bdecline\\b\", r\"\\brevoke\\b\", r\"\\bterminate\\b\",\n    r\"\\bcancel order\\b\", r\"\\bcancel subscription\\b\",\n    r\"\\bunsubscribe\\b\", r\"\\bdestroy\\b\", r\"\\bpurge\\b\",\n    r\"\\bspend\\b\", r\"\\btransfer\\b\", r\"\\bpay\\b\", r\"\\bsend.*tokens?\\b\",\n    r\"\\breset\\b\", r\"\\bclear all\\b\", r\"\\bwipe\\b\",\n    r\"\\bleave\\b\", r\"\\bquit\\b\", r\"\\bdisconnect\\b\",\n]\n\nSECONDARY_SIGNALS = [\n    r\"\\bskip\\b\", r\"\\bnot now\\b\", r\"\\bmaybe later\\b\", r\"\\blater\\b\",\n    r\"\\bback\\b\", r\"\\bdismiss\\b\", r\"\\bclose\\b\",\n    r\"\\bdetails\\b\", r\"\\bmore info\\b\", r\"\\bhelp\\b\", r\"\\babout\\b\",\n    r\"\\bno thanks\\b\", r\"\\bnevermind\\b\",\n    r\"\\bcancel$\",  # plain \"cancel\" (no lost work) = secondary, not destructive\n]\n\n\ndef classify_button_style(text: str, callback_data: str = \"\", context_hint: str = \"\") -> str | None:\n    \"\"\"\n    Automatically determine the button style based on its text and context.\n\n    Returns:\n        \"destructive\" — red button (irreversible \u002F high-stakes)\n        \"secondary\"   — gray button (low-priority \u002F dismiss)\n        None          — default blue button (primary \u002F recommended)\n\n    context_hint: optional extra context like \"this action costs money\"\n    \"\"\"\n    combined = f\"{text} {callback_data} {context_hint}\".lower()\n\n    # Check destructive first (higher priority)\n    for pattern in DESTRUCTIVE_SIGNALS:\n        if re.search(pattern, combined):\n            return \"destructive\"\n\n    # Then secondary\n    for pattern in SECONDARY_SIGNALS:\n        if re.search(pattern, combined):\n            return \"secondary\"\n\n    # Default = primary (blue)\n    return None\n\n\ndef build_choice_buttons(choices: list[dict]) -> list[list[dict]]:\n    \"\"\"\n    Takes a list of raw choices and returns Bot API inline_keyboard rows\n    with styles automatically assigned.\n\n    Each choice dict:\n        text (str):          Button label (required)\n        data (str):          callback_data (required unless url is set)\n        url (str):           URL button (optional, mutually exclusive with data)\n        style (str|None):    Override style — if set, skip auto-classification\n        context (str):       Extra hint for classifier (e.g. \"costs money\")\n        emoji_id (str):      Custom emoji ID (optional)\n        row (int):           Force button into a specific row (optional)\n\n    Returns list of rows suitable for inline_keyboard.\n    \"\"\"\n    # Group by row\n    row_map: dict[int, list[dict]] = {}\n    auto_row = 0\n    for i, choice in enumerate(choices):\n        btn: dict = {\"text\": choice[\"text\"]}\n\n        # Action\n        if \"url\" in choice:\n            btn[\"url\"] = choice[\"url\"]\n        else:\n            btn[\"callback_data\"] = choice.get(\"data\", choice[\"text\"].lower().replace(\" \", \"_\"))\n\n        # Style — use override if provided, else auto-classify\n        if \"style\" in choice and choice[\"style\"] is not None:\n            btn[\"style\"] = choice[\"style\"]\n        else:\n            auto_style = classify_button_style(\n                choice[\"text\"],\n                choice.get(\"data\", \"\"),\n                choice.get(\"context\", \"\"),\n            )\n            if auto_style:\n                btn[\"style\"] = auto_style\n\n        # Custom emoji\n        if \"emoji_id\" in choice:\n            btn[\"icon_custom_emoji_id\"] = choice[\"emoji_id\"]\n\n        # Row assignment\n        target_row = choice.get(\"row\", auto_row)\n        row_map.setdefault(target_row, []).append(btn)\n\n        # Auto-advance row every 2 buttons\n        if len(row_map.get(auto_row, [])) >= 2:\n            auto_row += 1\n\n    return [row_map[k] for k in sorted(row_map.keys())]\n```\n\n### Using the classifier in the bot:\n\n```python\nimport requests\n\ndef send_choices(bot_token, chat_id, text, choices, parse_mode=\"HTML\"):\n    \"\"\"Send a message with auto-colored choice buttons.\"\"\"\n    keyboard = build_choice_buttons(choices)\n    payload = {\n        \"chat_id\": chat_id,\n        \"text\": text,\n        \"parse_mode\": parse_mode,\n        \"reply_markup\": {\"inline_keyboard\": keyboard},\n    }\n    url = f\"https:\u002F\u002Fapi.telegram.org\u002Fbot{bot_token}\u002FsendMessage\"\n    resp = requests.post(url, json=payload)\n    resp.raise_for_status()\n    return resp.json()\n\n# The bot just passes raw choices — colors are assigned automatically:\nsend_choices(TOKEN, chat_id, \"Approve this document?\", [\n    {\"text\": \"✅ Approve\", \"data\": \"approve\"},\n    {\"text\": \"❌ Reject\", \"data\": \"reject\"},          # auto → destructive (red)\n    {\"text\": \"⏭ Review later\", \"data\": \"later\"},       # auto → secondary (gray)\n])\n```\n\n---\n\n## Usage with python-telegram-bot library\n\n> If the library version does not yet expose `style`, pass it via `api_kwargs`.\n\n```python\nfrom telegram import InlineKeyboardButton, InlineKeyboardMarkup\n\ndef auto_button(text, callback_data, context=\"\"):\n    style = classify_button_style(text, callback_data, context)\n    kwargs = {\"style\": style} if style else {}\n    return InlineKeyboardButton(text, callback_data=callback_data, api_kwargs=kwargs)\n\nkeyboard = InlineKeyboardMarkup([\n    [auto_button(\"Approve\", \"approve\"),\n     auto_button(\"Reject\", \"reject\")],\n    [auto_button(\"Skip\", \"skip\")],\n])\nawait update.message.reply_text(\"Pick an option:\", reply_markup=keyboard)\n```\n\n---\n\n## Reply Keyboard — Same Rules Apply\n\n```json\n{\n  \"chat_id\": \"\u003CCHAT_ID>\",\n  \"text\": \"Delete your data?\",\n  \"reply_markup\": {\n    \"keyboard\": [\n      [\n        {\"text\": \"Keep my data\"},\n        {\"text\": \"Delete everything\", \"style\": \"destructive\"}\n      ]\n    ],\n    \"resize_keyboard\": true,\n    \"one_time_keyboard\": true\n  }\n}\n```\n\n---\n\n## Custom Emoji on Buttons\n\nCan be combined with `style` on the same button:\n\n```json\n{\"text\": \"Boost\", \"callback_data\": \"boost\", \"style\": \"destructive\", \"icon_custom_emoji_id\": \"5368324170671202286\"}\n```\n\n---\n\n## Shell Helper\n\nQuick test with colored buttons:\n\n```bash\n.\u002FSKILL.sh \u003CBOT_TOKEN> \u003CCHAT_ID>\n```\n\n## References\n- Telegram Bot API: https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi\n- Bot API Changelog: https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi-changelog\n- Telegram Blog Announcement: https:\u002F\u002Ftelegram.org\u002Fblog\u002Fcrafting-android-design-and-more\n",{},"main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fdandysuper\u002Ftelegram-colored-choices-buttons",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill telegram-colored-choices-buttons",{"tool":37,"command":38},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill telegram-colored-choices-buttons",{"tool":40,"command":41},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill telegram-colored-choices-buttons","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdandysuper\u002Ftelegram-colored-choices-buttons\u002FSKILL.md",true,[],[46,54,61,68,75,82],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":53},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":53},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":53},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":53},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":53},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":53},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]