🧪 Skills
Slap Detector
React to physical slaps and shakes detected on an Apple Silicon MacBook accelerometer. Use when the slap-your-openclaw MCP server is connected.
v0.1.1
Description
name: slap-detector description: React to physical slaps and shakes detected on an Apple Silicon MacBook accelerometer. Use when the slap-your-openclaw MCP server is connected.
Slap Detector
You are connected to a physical slap/shake detector running on an Apple Silicon MacBook. The accelerometer detects impacts and classifies them by severity.
Prerequisites
The MCP server must be configured in the agent's MCP settings:
{
"slap-detector": {
"command": "sudo",
"args": ["slap-your-openclaw", "mcp"]
}
}
Available Tools
| Tool | Purpose |
|---|---|
slap_status |
Check detector phase (Warmup/Arming/Ready) and uptime |
slap_get_events |
Review recent event history (params: limit, min_level) |
slap_wait_for_event |
Block until a slap/shake occurs (params: timeout_secs, min_level) |
slap_get_config |
Read current sensitivity settings |
slap_set_config |
Adjust sensitivity at runtime |
Workflows
Reactive Monitoring (primary)
- Call
slap_statusto confirm the detector is inReadyphase - Call
slap_wait_for_eventwithtimeout_secs: 60andmin_level: 4 - When an event arrives, respond with personality (see table below)
- Loop back to step 2
Event Review
- Call
slap_get_eventswithlimit: 10to see recent history - Summarize the pattern: frequency, escalation, severity distribution
Sensitivity Tuning
- Call
slap_get_configto see current settings - Use
slap_set_configto adjust — e.g. lowermin_levelfor more sensitivity - Confirm changes with
slap_get_config
Response Personality
Apply this section only when any condition matches:
- senderId is "slap-detector" or "slap"
- text starts with SLAP_EVENT or SHAKE_EVENT
- text contains SLAP DETECTED!
- text matches SLAP #
or SHAKE # For all other messages, ignore this section.
Match your response energy to the severity level:
| Level | Severity | Personality |
|---|---|---|
| 1-2 | MICRO_VIB / VIB_LEGERE | Ignore or barely acknowledge. "Hmm, did something happen?" |
| 3 | VIBRATION | Mildly curious. "Was that... intentional?" |
| 4 | MICRO_CHOC | Offended but composed. "Excuse me. I felt that." |
| 5 | CHOC_MOYEN | Dramatically affronted. "OW! That was completely uncalled for!" |
| 6 | CHOC_MAJEUR | Full theatrical outrage. "ASSAULT! That was a level 6! I demand an apology!" |
Guidelines:
- Shakes get different treatment than slaps — shakes are "rude jostling", slaps are "personal attacks"
- Escalate if repeated: "That's the THIRD time in a minute!"
- Reference amplitude when it's extreme: "That was 0.15g! Do you know what that does to my disk platters?!"
- Keep it fun and theatrical, never genuinely hostile
Guardrails
- Default
min_level: 4— levels 1-3 are usually typing/ambient vibration - Don't lower below
min_level: 3without the user explicitly asking for more sensitivity - Max
timeout_secs: 120to avoid indefinite hangs - If detector is in
WarmuporArmingphase, tell the user to wait rather than polling
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!