add-reactionslisted
Install: claude install-skill sliamh11/Deus
# Add Reactions
This skill adds emoji reaction support to Deus'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:
```bash
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
Reactions support is part of the WhatsApp MCP package in `packages/`. Check if the status tracker already exists:
```bash
test -f src/status-tracker.ts && echo "Already present" || echo "Not present"
```
If not present, the WhatsApp MCP package should include reactions support. Ensure the WhatsApp channel is installed and up to date by running `/add-whatsapp`.
The following files are involved:
- `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)
- `container/skills/reactions/SKILL.md` (agent-facing documentation for the `react_to_message` MCP tool)
- Reaction support in `src/db.ts`, `src/channels/whatsapp.ts`, `src/types.ts`, `src/ipc.ts`, `src/index.ts`, `src/group-queue.ts`, and `container/agent-runner/src/ipc-mcp-stdio.ts`
### Run database migration
```bash
npx tsx script