[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69A3XKF07DMZ67WX67CMFM8":3,"skill-same:01M69A3XKF07DMZ67WX67CMFM8":60},{"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":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M69A3XKF07DMZ67WX67CMFM8","add-matrix",null,"Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.","microsoft\u002Famplifier-app-nanoclaw","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69A31J3GTKVZDZZVPRQWWR5",5,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-matrix\u002FSKILL.md",[],[19,20,21],"add matrix","sdk","chat sdk","2026-11-10 10:12:30",false,"---\nname: add-matrix\ndescription: Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.\n---\n\n# Add Matrix Channel\n\nAdds Matrix support via the Chat SDK bridge.\n\n## Install\n\nNanoClaw doesn't ship channels in trunk. This skill copies the Matrix adapter in from the `channels` branch.\n\n### Pre-flight (idempotent)\n\nSkip to **Credentials** if all of these are already in place:\n\n- `src\u002Fchannels\u002Fmatrix.ts` exists\n- `src\u002Fchannels\u002Findex.ts` contains `import '.\u002Fmatrix.js';`\n- `@beeper\u002Fchat-adapter-matrix` is listed in `package.json` dependencies\n\nOtherwise continue. Every step below is safe to re-run.\n\n### 1. Fetch the channels branch\n\n```bash\ngit fetch origin channels\n```\n\n### 2. Copy the adapter\n\n```bash\ngit show origin\u002Fchannels:src\u002Fchannels\u002Fmatrix.ts > src\u002Fchannels\u002Fmatrix.ts\n```\n\n### 3. Append the self-registration import\n\nAppend to `src\u002Fchannels\u002Findex.ts` (skip if the line is already present):\n\n```typescript\nimport '.\u002Fmatrix.js';\n```\n\n### 4. Install the adapter package (pinned)\n\n```bash\npnpm install @beeper\u002Fchat-adapter-matrix@0.2.0\n```\n\n### 5. Patch matrix-js-sdk ESM imports\n\nThe adapter's published dist references `matrix-js-sdk\u002Flib\u002F...` without `.js`\nextensions, which fails under Node 22 strict ESM resolution. Add the missing\nextensions (idempotent — safe to re-run):\n\n```bash\nnode -e '\n  const fs = require(\"fs\"), path = require(\"path\");\n  const root = \"node_modules\u002F.pnpm\";\n  const dir = fs.readdirSync(root).find(d => d.startsWith(\"@beeper+chat-adapter-matrix@\"));\n  if (!dir) { console.log(\"Matrix adapter not installed\"); process.exit(0); }\n  const f = path.join(root, dir, \"node_modules\u002F@beeper\u002Fchat-adapter-matrix\u002Fdist\u002Findex.js\");\n  fs.writeFileSync(f, fs.readFileSync(f, \"utf8\").replace(\n    \u002Ffrom \"(matrix-js-sdk\\\u002Flib\\\u002F[^\"]+?)(?\u003C!\\.js)\"\u002Fg, \"from \\\"$1.js\\\"\"\n  ));\n  console.log(\"Patched\", f);\n'\n```\n\nRe-run this after every `pnpm install` that touches the adapter.\n\n### 6. Build\n\n```bash\npnpm run build\n```\n\n## Credentials\n\nThe bot needs its own Matrix account — separate from the user's account. This is required because Matrix cannot send DMs to yourself.\n\n### Create a bot account\n\n1. Open [app.element.io](https:\u002F\u002Fapp.element.io) in a private\u002Fincognito window (or sign out first)\n2. Register a new account for the bot (e.g. `andybot` on matrix.org)\n3. Note the bot's user ID (e.g. `@andybot:matrix.org`)\n\n### Choose an auth method\n\n**Option A: Username + Password (simpler)**\n\nNo extra steps — just use the bot account's credentials directly. The adapter logs in automatically.\n\n```bash\nMATRIX_BASE_URL=https:\u002F\u002Fmatrix.org\nMATRIX_USERNAME=andybot\nMATRIX_PASSWORD=your-bot-password\nMATRIX_USER_ID=@andybot:matrix.org\nMATRIX_BOT_USERNAME=Andy\n```\n\n**Option B: Access Token (recommended for production)**\n\nGet an access token from Element: sign into the bot account → **Settings** > **Help & About** > **Access Token** (under Advanced). Or via API:\n\n```bash\ncurl -XPOST 'https:\u002F\u002Fmatrix.org\u002F_matrix\u002Fclient\u002Fr0\u002Flogin' \\\n  -d '{\"type\":\"m.login.password\",\"user\":\"andybot\",\"password\":\"...\"}'\n```\n\n```bash\nMATRIX_BASE_URL=https:\u002F\u002Fmatrix.org\nMATRIX_ACCESS_TOKEN=your-access-token\nMATRIX_USER_ID=@andybot:matrix.org\nMATRIX_BOT_USERNAME=Andy\n```\n\n### Optional settings\n\n```bash\nMATRIX_INVITE_AUTOJOIN=true                    # Auto-accept room invites (default: true)\nMATRIX_INVITE_AUTOJOIN_ALLOWLIST=@you:matrix.org  # Only accept invites from these users\nMATRIX_RECOVERY_KEY=your-recovery-key          # Enable E2EE cross-signing\nMATRIX_DEVICE_ID=NANOCLAW01                    # Stable device ID across restarts\n```\n\n### Configure environment\n\nAdd the chosen env vars to `.env`, then sync:\n\n```bash\nmkdir -p data\u002Fenv && cp .env data\u002Fenv\u002Fenv\n```\n\n## Next Steps\n\nIf you're in the middle of `\u002Fsetup`, return to the setup flow now.\n\nOtherwise, run `\u002Fmanage-channels` to wire this channel to an agent group.\n\n## Channel Info\n\n- **type**: `matrix`\n- **terminology**: Matrix has \"rooms.\" A room can be a group chat or a direct message. Rooms have internal IDs (like `!abc123:matrix.org`) and optional aliases (like `#general:matrix.org`).\n- **how-to-find-id**: For DMs, use the bot's `openDM` to resolve the room automatically. For group rooms, in Element click the room name > Settings > Advanced — the \"Internal room ID\" is the platform ID (starts with `!`). Or use a room alias like `#general:matrix.org`.\n- **supports-threads**: partial (some clients support threads, but not all — treat as no for reliability)\n- **typical-use**: Interactive chat — rooms or direct messages. Requires a separate bot account (the agent cannot DM users from their own account).\n- **default-isolation**: Same agent group for rooms where you're the primary user. Separate agent group for rooms with different communities or sensitive contexts.\n","# Add Matrix Channel\n\nAdds Matrix support via the Chat SDK bridge.\n\n## Install\n\nNanoClaw doesn't ship channels in trunk. This skill copies the Matrix adapter in from the `channels` branch.\n\n### Pre-flight (idempotent)\n\nSkip to **Credentials** if all of these are already in place:\n\n- `src\u002Fchannels\u002Fmatrix.ts` exists\n- `src\u002Fchannels\u002Findex.ts` contains `import '.\u002Fmatrix.js';`\n- `@beeper\u002Fchat-adapter-matrix` is listed in `package.json` dependencies\n\nOtherwise continue. Every step below is safe to re-run.\n\n### 1. Fetch the channels branch\n\n```bash\ngit fetch origin channels\n```\n\n### 2. Copy the adapter\n\n```bash\ngit show origin\u002Fchannels:src\u002Fchannels\u002Fmatrix.ts > src\u002Fchannels\u002Fmatrix.ts\n```\n\n### 3. Append the self-registration import\n\nAppend to `src\u002Fchannels\u002Findex.ts` (skip if the line is already present):\n\n```typescript\nimport '.\u002Fmatrix.js';\n```\n\n### 4. Install the adapter package (pinned)\n\n```bash\npnpm install @beeper\u002Fchat-adapter-matrix@0.2.0\n```\n\n### 5. Patch matrix-js-sdk ESM imports\n\nThe adapter's published dist references `matrix-js-sdk\u002Flib\u002F...` without `.js`\nextensions, which fails under Node 22 strict ESM resolution. Add the missing\nextensions (idempotent — safe to re-run):\n\n```bash\nnode -e '\n  const fs = require(\"fs\"), path = require(\"path\");\n  const root = \"node_modules\u002F.pnpm\";\n  const dir = fs.readdirSync(root).find(d => d.startsWith(\"@beeper+chat-adapter-matrix@\"));\n  if (!dir) { console.log(\"Matrix adapter not installed\"); process.exit(0); }\n  const f = path.join(root, dir, \"node_modules\u002F@beeper\u002Fchat-adapter-matrix\u002Fdist\u002Findex.js\");\n  fs.writeFileSync(f, fs.readFileSync(f, \"utf8\").replace(\n    \u002Ffrom \"(matrix-js-sdk\\\u002Flib\\\u002F[^\"]+?)(?\u003C!\\.js)\"\u002Fg, \"from \\\"$1.js\\\"\"\n  ));\n  console.log(\"Patched\", f);\n'\n```\n\nRe-run this after every `pnpm install` that touches the adapter.\n\n### 6. Build\n\n```bash\npnpm run build\n```\n\n## Credentials\n\nThe bot needs its own Matrix account — separate from the user's account. This is required because Matrix cannot send DMs to yourself.\n\n### Create a bot account\n\n1. Open [app.element.io](https:\u002F\u002Fapp.element.io) in a private\u002Fincognito window (or sign out first)\n2. Register a new account for the bot (e.g. `andybot` on matrix.org)\n3. Note the bot's user ID (e.g. `@andybot:matrix.org`)\n\n### Choose an auth method\n\n**Option A: Username + Password (simpler)**\n\nNo extra steps — just use the bot account's credentials directly. The adapter logs in automatically.\n\n```bash\nMATRIX_BASE_URL=https:\u002F\u002Fmatrix.org\nMATRIX_USERNAME=andybot\nMATRIX_PASSWORD=your-bot-password\nMATRIX_USER_ID=@andybot:matrix.org\nMATRIX_BOT_USERNAME=Andy\n```\n\n**Option B: Access Token (recommended for production)**\n\nGet an access token from Element: sign into the bot account → **Settings** > **Help & About** > **Access Token** (under Advanced). Or via API:\n\n```bash\ncurl -XPOST 'https:\u002F\u002Fmatrix.org\u002F_matrix\u002Fclient\u002Fr0\u002Flogin' \\\n  -d '{\"type\":\"m.login.password\",\"user\":\"andybot\",\"password\":\"...\"}'\n```\n\n```bash\nMATRIX_BASE_URL=https:\u002F\u002Fmatrix.org\nMATRIX_ACCESS_TOKEN=your-access-token\nMATRIX_USER_ID=@andybot:matrix.org\nMATRIX_BOT_USERNAME=Andy\n```\n\n### Optional settings\n\n```bash\nMATRIX_INVITE_AUTOJOIN=true                    # Auto-accept room invites (default: true)\nMATRIX_INVITE_AUTOJOIN_ALLOWLIST=@you:matrix.org  # Only accept invites from these users\nMATRIX_RECOVERY_KEY=your-recovery-key          # Enable E2EE cross-signing\nMATRIX_DEVICE_ID=NANOCLAW01                    # Stable device ID across restarts\n```\n\n### Configure environment\n\nAdd the chosen env vars to `.env`, then sync:\n\n```bash\nmkdir -p data\u002Fenv && cp .env data\u002Fenv\u002Fenv\n```\n\n## Next Steps\n\nIf you're in the middle of `\u002Fsetup`, return to the setup flow now.\n\nOtherwise, run `\u002Fmanage-channels` to wire this channel to an agent group.\n\n## Channel Info\n\n- **type**: `matrix`\n- **terminology**: Matrix has \"rooms.\" A room can be a group chat or a direct message. Rooms have internal IDs (like `!abc123:matrix.org`) and optional aliases (like `#general:matrix.org`).\n- **how-to-find-id**: For DMs, use the bot's `openDM` to resolve the room automatically. For group rooms, in Element click the room name > Settings > Advanced — the \"Internal room ID\" is the platform ID (starts with `!`). Or use a room alias like `#general:matrix.org`.\n- **supports-threads**: partial (some clients support threads, but not all — treat as no for reliability)\n- **typical-use**: Interactive chat — rooms or direct messages. Requires a separate bot account (the agent cannot DM users from their own account).\n- **default-isolation**: Same agent group for rooms where you're the primary user. Separate agent group for rooms with different communities or sensitive contexts.\n",{"name":5,"description":7},"main","85a2d934766d21e4696ac1b00157179f28bca9e3",".claude\u002Fskills\u002Fadd-matrix",2,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-10-30 04:24:16",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add microsoft\u002Famplifier-app-nanoclaw --skill add-matrix",{"tool":42,"command":43},"bunx","bunx skills add microsoft\u002Famplifier-app-nanoclaw --skill add-matrix",{"tool":45,"command":46},"pnpm","pnpm dlx skills add microsoft\u002Famplifier-app-nanoclaw --skill add-matrix","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-matrix\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"REMOVE.md","REFERENCE","参考文档",265,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-matrix\u002FREMOVE.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"VERIFY.md",122,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-matrix\u002FVERIFY.md",[61,70,77,88,102,115],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":22},"01M69A6E27JZN10H82TZ2GMC3A","whatsapp-formatting","Format messages for WhatsApp, including mentions that render as real WhatsApp tags. Use when responding in a WhatsApp conversation (platform_id \u002F chatJid ends with @s.whatsapp.net or @g.us).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fwhatsapp-formatting\u002FSKILL.md",[],[68,69],"whatsapp","whatsapp formatting",{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":22},"01M69A6CGJ968RNVGYTRSWZKWB","welcome","Introduce yourself to a newly connected channel. Triggered automatically when a channel is first wired. Send a friendly greeting and brief overview of what you can do.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fwelcome\u002FSKILL.md",[],[72],{"skillNo":78,"name":79,"nameZh":6,"description":80,"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":22},"01M69A6ADX690STSN63WKRD37K","vercel-cli","Deploy apps to Vercel. Use when asked to deploy, ship, or publish a web application, or manage Vercel projects, domains, and environment variables.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fvercel-cli\u002FSKILL.md",[],[84,85,86,87],"cli","vercel cli","web","deploy",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":99,"publishedAt":22},"01M69A68WJ94V4MXGXGK9T0QG7","slack-formatting","Format messages for Slack using mrkdwn syntax. Use when responding to Slack channels (folder starts with \"slack_\" or JID contains slack identifiers).","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fslack-formatting\u002FSKILL.md",[94],{"categoryNo":95,"categoryName":96,"taxonomyType":97,"taxonomyTypeDesc":98},"01JBSEEDCAT000000000000005","邮件与沟通","SCENARIO","使用场景",[100,101],"slack","slack formatting",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":111,"publishedAt":22},"01M69A673Z17TDXK3DBC5YJFM7","self-customize","Customize your own agent — add capabilities, install packages, add MCP servers, edit code or CLAUDE.md. Use when the user asks you to add a feature, install a tool, or modify how you work. For non-trivial code changes, delegate to a builder agent via create_agent.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fself-customize\u002FSKILL.md",[108],{"categoryNo":109,"categoryName":110,"taxonomyType":97,"taxonomyTypeDesc":98},"01JBSEEDCAT000000000000023","Skill与智能体开发",[112,113,114],"customize","self customize","MCP",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":122,"publishedAt":22},"01M69A657JFNEG45Z1Y05BVK5R","onecli-gateway","OneCLI Gateway: transparent HTTPS proxy that injects stored credentials into outbound calls. You MUST use this skill when the user asks you to read emails, check calendar, access GitHub repos, create issues, check Stripe payments, or interact with ANY external service or API. Do NOT use browser extensions or OAuth CLI tools. Make HTTP requests directly; the gateway injects credentials automatically.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fonecli-gateway\u002FSKILL.md",[121],{"categoryNo":109,"categoryName":110,"taxonomyType":97,"taxonomyTypeDesc":98},[123,84,124,125],"onecli gateway","github","repos"]