[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FRSPE0PAWFYP9G7MZAEYSA":3,"skill-same:01M6FRSPE0PAWFYP9G7MZAEYSA":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M6FRSPE0PAWFYP9G7MZAEYSA","creating-inline-actions",null,"Interactive button-based UI for XMTP agents following XIP-67. Use when creating menus, confirmation dialogs, selection options, or any button-based interaction. Triggers on inline actions, buttons, menus, or ActionBuilder.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhumanagent\u002Fxmtp-agent\u002Fcreating-inline-actions\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"actions","creating inline actions","ui","confirmation","interactive","use","selection","options","triggers","interaction","2026-11-10 10:12:30",false,"---\nname: creating-inline-actions\ndescription: Interactive button-based UI for XMTP agents following XIP-67. Use when creating menus, confirmation dialogs, selection options, or any button-based interaction. Triggers on inline actions, buttons, menus, or ActionBuilder.\nlicense: MIT\nmetadata:\n  author: xmtp\n  version: \"1.0.0\"\n---\n\n# XMTP inline actions\n\nInteractive button-based UI for XMTP agents following the XIP-67 specification. Users can tap buttons instead of typing commands.\n\n## When to apply\n\nReference these guidelines when:\n- Creating interactive button menus\n- Building confirmation dialogs\n- Implementing selection options\n- Setting up multi-menu navigation\n- Handling action callbacks\n\n## Rule categories by priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | ActionBuilder | CRITICAL | `builder-` |\n| 2 | Helpers | HIGH | `helpers-` |\n| 3 | App Config | MEDIUM | `config-` |\n| 4 | Validators | MEDIUM | `validators-` |\n\n## Quick reference\n\n### ActionBuilder (CRITICAL)\n- `builder-create` - Create action menus with ActionBuilder\n- `builder-send` - Send actions to conversation\n\n### Helpers (HIGH)\n- `helpers-confirmation` - Send confirmation dialogs\n- `helpers-selection` - Send selection menus\n- `helpers-navigation` - Show navigation options\n\n### App Config (MEDIUM)\n- `config-menus` - Configure multi-menu applications\n- `config-initialize` - Initialize app from config\n\n### Validators (MEDIUM)\n- `validators-inbox-id` - Validate inbox ID format\n- `validators-ethereum-address` - Validate Ethereum address\n\n## Quick start\n\n```typescript\n\u002F\u002F 1. Add middleware to handle intent messages\nagent.use(inlineActionsMiddleware);\n\n\u002F\u002F 2. Register action handlers\nregisterAction(\"my-action\", async (ctx) => {\n  await ctx.conversation.sendText(\"Action executed!\");\n});\n\n\u002F\u002F 3. Send interactive buttons\nawait ActionBuilder.create(\"my-menu\", \"Choose an option:\")\n  .add(\"my-action\", \"Click Me\")\n  .add(\"other-action\", \"Cancel\")\n  .send(ctx);\n```\n\n## Implementation snippets\n\n**Action registry and handler:**\n\n```typescript\nimport type { AgentMiddleware, MessageContext } from \"@xmtp\u002Fagent-sdk\";\nimport type { Intent } from \"@xmtp\u002Fnode-sdk\";\n\ntype ActionHandler = (ctx: MessageContext) => Promise\u003Cvoid>;\nconst actionHandlers = new Map\u003Cstring, ActionHandler>();\n\nconst registerAction = (id: string, handler: ActionHandler) => {\n  actionHandlers.set(id, handler);\n};\n```\n\n**Inline actions middleware:**\n\n```typescript\nconst inlineActionsMiddleware: AgentMiddleware = async (ctx, next) => {\n  if (ctx.message.contentType?.typeId === \"intent\") {\n    const intent = ctx.message.content as Intent;\n    const handler = actionHandlers.get(intent.actionId);\n    if (handler) await handler(ctx);\n    else await ctx.conversation.sendText(`Unknown action: ${intent.actionId}`);\n    return;\n  }\n  await next();\n};\n```\n\n**ActionBuilder class:**\n\n```typescript\nimport { ActionStyle } from \"@xmtp\u002Fnode-sdk\";\n\nclass ActionBuilder {\n  private actions: { id: string; label: string; style?: ActionStyle }[] = [];\n  constructor(private id: string, private description: string) {}\n  \n  static create(id: string, description: string) {\n    return new ActionBuilder(id, description);\n  }\n  \n  add(id: string, label: string, style?: ActionStyle) {\n    this.actions.push({ id, label, style });\n    return this;\n  }\n  \n  async send(ctx: MessageContext) {\n    await ctx.conversation.sendActions({\n      id: this.id,\n      description: this.description,\n      actions: this.actions,\n    });\n  }\n}\n```\n\n**Confirmation helper:**\n\n```typescript\nconst sendConfirmation = async (\n  ctx: MessageContext, message: string,\n  onYes: ActionHandler, onNo?: ActionHandler\n) => {\n  const ts = Date.now();\n  registerAction(`yes-${ts}`, onYes);\n  registerAction(`no-${ts}`, onNo || (async (c) => c.conversation.sendText(\"Cancelled\")));\n  await ActionBuilder.create(`confirm-${ts}`, message)\n    .add(`yes-${ts}`, \"Yes\").add(`no-${ts}`, \"No\", ActionStyle.Danger).send(ctx);\n};\n```\n\n## How to use\n\nRead individual rule files for detailed explanations:\n\n```\nrules\u002Fbuilder-create.md\nrules\u002Fhelpers-confirmation.md\nrules\u002Fconfig-menus.md\n```\n\n","# XMTP inline actions\n\nInteractive button-based UI for XMTP agents following the XIP-67 specification. Users can tap buttons instead of typing commands.\n\n## When to apply\n\nReference these guidelines when:\n- Creating interactive button menus\n- Building confirmation dialogs\n- Implementing selection options\n- Setting up multi-menu navigation\n- Handling action callbacks\n\n## Rule categories by priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | ActionBuilder | CRITICAL | `builder-` |\n| 2 | Helpers | HIGH | `helpers-` |\n| 3 | App Config | MEDIUM | `config-` |\n| 4 | Validators | MEDIUM | `validators-` |\n\n## Quick reference\n\n### ActionBuilder (CRITICAL)\n- `builder-create` - Create action menus with ActionBuilder\n- `builder-send` - Send actions to conversation\n\n### Helpers (HIGH)\n- `helpers-confirmation` - Send confirmation dialogs\n- `helpers-selection` - Send selection menus\n- `helpers-navigation` - Show navigation options\n\n### App Config (MEDIUM)\n- `config-menus` - Configure multi-menu applications\n- `config-initialize` - Initialize app from config\n\n### Validators (MEDIUM)\n- `validators-inbox-id` - Validate inbox ID format\n- `validators-ethereum-address` - Validate Ethereum address\n\n## Quick start\n\n```typescript\n\u002F\u002F 1. Add middleware to handle intent messages\nagent.use(inlineActionsMiddleware);\n\n\u002F\u002F 2. Register action handlers\nregisterAction(\"my-action\", async (ctx) => {\n  await ctx.conversation.sendText(\"Action executed!\");\n});\n\n\u002F\u002F 3. Send interactive buttons\nawait ActionBuilder.create(\"my-menu\", \"Choose an option:\")\n  .add(\"my-action\", \"Click Me\")\n  .add(\"other-action\", \"Cancel\")\n  .send(ctx);\n```\n\n## Implementation snippets\n\n**Action registry and handler:**\n\n```typescript\nimport type { AgentMiddleware, MessageContext } from \"@xmtp\u002Fagent-sdk\";\nimport type { Intent } from \"@xmtp\u002Fnode-sdk\";\n\ntype ActionHandler = (ctx: MessageContext) => Promise\u003Cvoid>;\nconst actionHandlers = new Map\u003Cstring, ActionHandler>();\n\nconst registerAction = (id: string, handler: ActionHandler) => {\n  actionHandlers.set(id, handler);\n};\n```\n\n**Inline actions middleware:**\n\n```typescript\nconst inlineActionsMiddleware: AgentMiddleware = async (ctx, next) => {\n  if (ctx.message.contentType?.typeId === \"intent\") {\n    const intent = ctx.message.content as Intent;\n    const handler = actionHandlers.get(intent.actionId);\n    if (handler) await handler(ctx);\n    else await ctx.conversation.sendText(`Unknown action: ${intent.actionId}`);\n    return;\n  }\n  await next();\n};\n```\n\n**ActionBuilder class:**\n\n```typescript\nimport { ActionStyle } from \"@xmtp\u002Fnode-sdk\";\n\nclass ActionBuilder {\n  private actions: { id: string; label: string; style?: ActionStyle }[] = [];\n  constructor(private id: string, private description: string) {}\n  \n  static create(id: string, description: string) {\n    return new ActionBuilder(id, description);\n  }\n  \n  add(id: string, label: string, style?: ActionStyle) {\n    this.actions.push({ id, label, style });\n    return this;\n  }\n  \n  async send(ctx: MessageContext) {\n    await ctx.conversation.sendActions({\n      id: this.id,\n      description: this.description,\n      actions: this.actions,\n    });\n  }\n}\n```\n\n**Confirmation helper:**\n\n```typescript\nconst sendConfirmation = async (\n  ctx: MessageContext, message: string,\n  onYes: ActionHandler, onNo?: ActionHandler\n) => {\n  const ts = Date.now();\n  registerAction(`yes-${ts}`, onYes);\n  registerAction(`no-${ts}`, onNo || (async (c) => c.conversation.sendText(\"Cancelled\")));\n  await ActionBuilder.create(`confirm-${ts}`, message)\n    .add(`yes-${ts}`, \"Yes\").add(`no-${ts}`, \"No\", ActionStyle.Danger).send(ctx);\n};\n```\n\n## How to use\n\nRead individual rule files for detailed explanations:\n\n```\nrules\u002Fbuilder-create.md\nrules\u002Fhelpers-confirmation.md\nrules\u002Fconfig-menus.md\n```\n\n",{"name":5,"license":14,"metadata":33,"description":7},{"author":34,"version":35},"xmtp","1.0.0","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fhumanagent\u002Fxmtp-agent\u002Fcreating-inline-actions",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add kbarbel640-del\u002Fskills --skill creating-inline-actions",{"tool":49,"command":50},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill creating-inline-actions",{"tool":52,"command":53},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill creating-inline-actions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhumanagent\u002Fxmtp-agent\u002Fcreating-inline-actions\u002FSKILL.md",true,[57,63,67,71],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"rules\u002Fbuilder-create.md","REFERENCE","参考文档",1187,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhumanagent\u002Fxmtp-agent\u002Fcreating-inline-actions\u002Frules\u002Fbuilder-create.md",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"rules\u002Fconfig-menus.md",1498,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhumanagent\u002Fxmtp-agent\u002Fcreating-inline-actions\u002Frules\u002Fconfig-menus.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"rules\u002Fhelpers-confirmation.md",947,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhumanagent\u002Fxmtp-agent\u002Fcreating-inline-actions\u002Frules\u002Fhelpers-confirmation.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"rules\u002Fhelpers-selection.md",1114,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fhumanagent\u002Fxmtp-agent\u002Fcreating-inline-actions\u002Frules\u002Fhelpers-selection.md",[76,102,125,143,148,168],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":28},"01M6G8J55967D6281ACMKAKTEQ","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\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":28},"01M6G8J0PKPAYVET6BWE8W4C26","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\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[109,85,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,90,23],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":28},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[132,133,134,135,136,137,138,86,139,123,23,140,85,141,142],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":144,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":28},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[135,134,133,132,142,137,138,86,136,123,23,139,140,85,141],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":28},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[155,156,157,158,159,160,161,162,163,164,165,166,167],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":28},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[175,176,177,178,86,179,180,36,181,140,182,183,184,185,18,99,186,187,188],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","state","governance","github"]