Skip to content

nanocoai/nanoclaw / .claude/skills/add-whatsapp

add-whatsapp

Verified

Add WhatsApp channel via native Baileys adapter. Direct connection — no Chat SDK bridge. Uses QR code or pairing code for authentication.

FileKindSize
REMOVE.mdmarkdown1.8 KB
SKILL.mdskill md27.3 KB
apply-fixtures.jsonconfig1.9 KB
scripts/wa-qr-browser.tsscript7.8 KB

apply-fixtures.json

View on GitHub
{
  "notes": "Conformance fixtures for scripts/skill-conformance.test.ts — shaped fake values only, never real credentials. Three scenarios cover all four number_mode/shared_confirm guard values, both auth methods, and both when:mode= legs. The echo stubs answer the mode/platform_id/owner_handle captures; stepFields feed the QR / pairing-code step's terminal block (capture:bot_phone=PHONE); the 'test(n)' stub answers the engage_pattern capture on the shared leg.",
  "scenarios": [
    {
      "name": "shared-qr",
      "inputs": {
        "number_mode": "shared",
        "shared_confirm": "continue",
        "auth_method": "qr",
        "agent_name": "Nano",
        "selfchat_engage": "mention"
      },
      "exec": [
        { "match": "echo shared", "stdout": "shared" },
        { "match": "test(n)", "stdout": "^@Nano\\b" },
        { "match": "@s.whatsapp.net", "stdout": "15550001111@s.whatsapp.net" }
      ],
      "stepFields": { "PHONE": "15550001111" }
    },
    {
      "name": "dedicated-pairing-code",
      "inputs": {
        "number_mode": "dedicated",
        "auth_method": "pairing-code",
        "phone": "15550001111",
        "chat_phone": "15559998888",
        "agent_name": "Nano"
      },
      "exec": [
        { "match": "echo dedicated", "stdout": "dedicated" },
        { "match": "@s.whatsapp.net", "stdout": "15559998888@s.whatsapp.net" }
      ],
      "stepFields": { "PHONE": "15550001111" }
    },
    {
      "name": "shared-bails-to-dedicated",
      "inputs": {
        "number_mode": "shared",
        "shared_confirm": "dedicated",
        "auth_method": "qr",
        "chat_phone": "15559998888",
        "agent_name": "Nano"
      },
      "exec": [
        { "match": "echo dedicated", "stdout": "dedicated" },
        { "match": "@s.whatsapp.net", "stdout": "15559998888@s.whatsapp.net" }
      ],
      "stepFields": { "PHONE": "15550001111" }
    }
  ]
}
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 323kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 323kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 323kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 323kUpdated Claude CodeCodexVerifiedInstall