Agent Skillssbusso/claudeclaw › add-reactions

add-reactions

GitHub

为 WhatsApp 频道添加 Emoji 表情回复支持,涵盖接收、发送、存储及查询功能。通过 Git 合并分支、执行数据库迁移并验证服务运行状态,实现完整的消息生命周期交互。

skills/add-reactions/SKILL.md sbusso/claudeclaw

Trigger Scenarios

需要为应用添加 WhatsApp 表情回复功能 部署或更新 ClaudeClaw 的 WhatsApp 集成特性

Install

npx skills add sbusso/claudeclaw --skill add-reactions -g -y
More Options

Use without installing

npx skills use sbusso/claudeclaw@add-reactions

指定 Agent (Claude Code)

npx skills add sbusso/claudeclaw --skill add-reactions -a claude-code -g -y

安装 repo 全部 skill

npx skills add sbusso/claudeclaw --all -g -y

预览 repo 内 skill

npx skills add sbusso/claudeclaw --list

SKILL.md

Frontmatter
{
    "name": "add-reactions",
    "description": "Add WhatsApp emoji reaction support — receive, send, store, and search reactions."
}

Add Reactions

This skill adds emoji reaction support to ClaudeClaw's WhatsApp channel: receive and store reactions, send reactions from the container agent via MCP tool, and query reaction history from SQLite.

Phase 1: Pre-flight

Check if already applied

Check if src/status-tracker.ts exists:

test -f src/status-tracker.ts && echo "Already applied" || echo "Not applied"

If already applied, skip to Phase 3 (Verify).

Phase 2: Apply Code Changes

Ensure WhatsApp fork remote

git remote -v

If whatsapp is missing, add it:

git remote add whatsapp https://github.com/qwibitai/claudeclaw-whatsapp.git

Merge the skill branch

git fetch whatsapp skill/reactions
git merge whatsapp/skill/reactions || {
  git checkout --theirs package-lock.json
  git add package-lock.json
  git merge --continue
}

This adds:

  • scripts/migrate-reactions.ts (database migration for reactions table with composite PK and indexes)
  • src/status-tracker.ts (forward-only emoji state machine for message lifecycle signaling, with persistence and retry)
  • src/status-tracker.test.ts (unit tests for StatusTracker)
  • agent/skills/reactions/SKILL.md (agent-facing documentation for the react_to_message MCP tool)
  • Reaction support in src/orchestrator/db.ts, src/channels/whatsapp.ts, src/orchestrator/types.ts, src/orchestrator/ipc.ts, src/index.ts, src/group-queue.ts, and agent/runner/src/ipc-mcp-stdio.ts

Run database migration

npx tsx scripts/migrate-reactions.ts

Validate code changes

npm test
npm run build

All tests must pass and build must be clean before proceeding.

Phase 3: Verify

Build and restart

npm run build

Service name: Derived from the directory name: com.claudeclaw.<dirname> (macOS) / claudeclaw-<dirname> (Linux). For example, if cwd is my-assistant, the service is com.claudeclaw.my-assistant. Determine the correct service name before running service commands below.

Linux:

systemctl --user restart claudeclaw

macOS:

launchctl kickstart -k gui/$(id -u)/com.claudeclaw

Test receiving reactions

  1. Send a message from your phone
  2. React to it with an emoji on WhatsApp
  3. Check the database:
sqlite3 store/messages.db "SELECT * FROM reactions ORDER BY timestamp DESC LIMIT 5;"

Test sending reactions

Ask the agent to react to a message via the react_to_message MCP tool. Check your phone — the reaction should appear on the message.

Troubleshooting

Reactions not appearing in database

  • Check ClaudeClaw logs for Failed to process reaction errors
  • Verify the chat is registered
  • Confirm the service is running

Migration fails

  • Ensure store/messages.db exists and is accessible
  • If "table reactions already exists", the migration already ran — skip it

Agent can't send reactions

  • Check IPC logs for Unauthorized IPC reaction attempt blocked — the agent can only react in its own group's chat
  • Verify WhatsApp is connected: check logs for connection status

Version History

  • 1395af4 Current 2026-07-25 07:02

Same Skill Collection

agent/skills/agent-browser/SKILL.md
skills/add-compact/SKILL.md
skills/add-discord/SKILL.md
skills/add-gmail/SKILL.md
skills/add-image-vision/SKILL.md
skills/add-ollama-tool/SKILL.md
skills/add-pdf-reader/SKILL.md
skills/add-qmd/SKILL.md
skills/add-telegram-swarm/SKILL.md
skills/add-telegram/SKILL.md
skills/add-voice-transcription/SKILL.md
skills/add-whatsapp/SKILL.md
skills/convert-to-apple-container/SKILL.md
skills/customize/SKILL.md
skills/debug/SKILL.md
skills/get-qodo-rules/SKILL.md
skills/install-extension/SKILL.md
skills/qodo-pr-resolver/SKILL.md
skills/setup/SKILL.md
skills/uninstall/SKILL.md
skills/update-claudeclaw/SKILL.md
skills/update-skills/SKILL.md
skills/use-local-whisper/SKILL.md
skills/x-integration/SKILL.md
skills/uninstall-extension/SKILL.md

Metadata

Files
0
Version
1395af4
Hash
effd0a17
Indexed
2026-07-25 07:02

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 05:54
浙ICP备14020137号-1 $mapa de visitantes$