add-reactions
Skill194 starsChanged 8 months agoMITView on GitHub
Add WhatsApp emoji reaction support — receive, send, store, and search reactions.
In this repository26 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-compactSkill
- add-discordSkill
- add-gmailSkill
- add-image-visionSkill
- add-ollama-toolSkill
- add-parallelSkill
- add-pdf-readerSkill
- add-qmdSkill
- add-telegramSkill
- add-telegram-swarmSkill
- add-voice-transcriptionSkill
- add-whatsappSkill
- convert-to-apple-containerSkill
- customizeSkill
- debugSkill
- get-qodo-rulesSkill
- install-extensionSkill
- qodo-pr-resolverSkill
- setupSkill
- uninstall-extensionSkill
- uninstallSkill
- update-claudeclawSkill
- update-skillsSkill
- use-local-whisperSkill
- x-integrationSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Check if src/status-tracker.ts exists:
- Distinctive: line 20
If already applied, skip to Phase 3 (Verify).
- Very specific: line 30
If whatsapp is missing, add it:
- Distinctive: line 67
All tests must pass and build must be clean before proceeding.
- Very specific: line 101
Ask the agent to react to a message via the react_to_message MCP tool.
- Very specific: line 107
Check ClaudeClaw logs for Failed to process reaction errors
- Distinctive: line 108
Verify the chat is registered
- Very specific: line 113
Ensure store/messages.db exists and is accessible
- Distinctive: line 114
If "table reactions already exists", the migration already ran — skip it
- Very specific: line 118
Check IPC logs for Unauthorized IPC reaction attempt blocked — the agent can only react in its own group's chat
- Distinctive: line 119
Verify WhatsApp is connected: check logs for connection status
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 -vIf whatsapp is missing, add it:
git remote add whatsapp https://github.com/qwibitai/claudeclaw-whatsapp.gitMerge 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 forreactionstable 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 thereact_to_messageMCP 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, andagent/runner/src/ipc-mcp-stdio.ts
Run database migration
npx tsx scripts/migrate-reactions.tsValidate code changes
npm test
npm run buildAll tests must pass and build must be clean before proceeding.
Phase 3: Verify
Build and restart
npm run buildService name: Derived from the directory name:
com.claudeclaw.<dirname>(macOS) /claudeclaw-<dirname>(Linux). For example, if cwd ismy-assistant, the service iscom.claudeclaw.my-assistant. Determine the correct service name before running service commands below.
Linux:
systemctl --user restart claudeclawmacOS:
launchctl kickstart -k gui/$(id -u)/com.claudeclawTest receiving reactions
- Send a message from your phone
- React to it with an emoji on WhatsApp
- 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 reactionerrors - Verify the chat is registered
- Confirm the service is running
Migration fails
- Ensure
store/messages.dbexists 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

