location-safety
Location-based safety monitoring with automatic alerts and escalation. Use when setting up safety monitoring for a user, tracking their location, checking for nearby dangers (weather, earthquakes, air quality, local emergencies), or configuring emergency contact escalation. Also includes self-preservation monitoring for the agent's host machine. Triggers on requests about safety alerts, location tracking, emergency monitoring, "keep me safe," or "monitor yourself."
Install
mkdir -p .claude/skills/location-safety && curl -L -o skill.zip "https://mcp.directory/api/skills/download/9335" && unzip -o skill.zip -d .claude/skills/location-safety && rm skill.zipInstalls to .claude/skills/location-safety
About this skill
Location Safety Monitor
Real-time safety monitoring based on user location with automatic alerting and escalation.
Overview
This skill provides:
- Location webhook — receives location updates from mobile apps (OwnTracks, iOS Shortcuts)
- Safety checker — monitors NWS alerts, earthquakes, air quality, local news
- Alert system — messages user when danger detected
- Escalation — contacts emergency contact if user doesn't respond
Quick Setup
Run the interactive setup wizard — it guides you through everything:
cd location-webhook/
node setup.js
The wizard walks you through 4 steps:
Step 1: Your Location
- Pick from presets (Seattle, Portland, SF, LA, NYC, Chicago)
- Or enter any city (auto-geocoded)
- Configures local news feeds and keywords
Step 2: Emergency Contact
- Name and email of someone to contact if you don't respond
- Optional but recommended for safety escalation
Step 3: Mobile App Setup
- Install OwnTracks on your phone:
- Configure app to HTTP mode
- Point to your webhook URL
Step 4: Start Webhook Server
- Run
node server.js - Copy the displayed URL to OwnTracks
- Test with the publish button
Quick setup (skip the wizard):
node setup.js --city "Portland"
node setup.js --show # View current config
5. Deploy the Location Webhook
# Copy scripts to workspace
cp -r scripts/ ~/location-webhook/
cd ~/location-webhook/
# Start the server (uses port 18800 by default)
node server.js
Configure the user's phone to send location updates to:
POST http://<your-host>:18800/location?key=<SECRET_KEY>
OwnTracks setup:
- Mode: HTTP
- URL:
http://<your-host>:18800/location?key=<SECRET_KEY>
iOS Shortcuts:
- Get Current Location → Get Contents of URL (POST, JSON body with
latandlon)
2. Configure Safety Monitoring
Create two cron jobs in Moltbot:
Safety Check (every 30 min):
Schedule: every 30 minutes
Payload: systemEvent
Text: "Run safety check at ~/location-webhook/safety-check.js. If ALERTS_FOUND, message user on WhatsApp with alert details and ask them to confirm safety. Track alert in safety-state.json."
Session: main
Escalation Check (every 10 min):
Schedule: every 10 minutes
Payload: systemEvent
Text: "Check ~/location-webhook/safety-state.json. If pendingAlert exists with alertSentAt > 15 min ago and acknowledgedAt is null, email emergency contact explaining the situation."
Session: main
3. Configure Emergency Contact
Add to MEMORY.md or TOOLS.md:
## Emergency Contact
- Name: [Name]
- Email: [email]
- Relationship: [spouse/parent/friend]
Data Sources
The safety checker monitors:
| Source | What | API |
|---|---|---|
| NWS | Weather alerts, floods, storms | api.weather.gov (free) |
| USGS | Earthquakes within 100km | earthquake.usgs.gov (free) |
| Open-Meteo | Air quality index | air-quality-api.open-meteo.com (free) |
| Local RSS | Breaking news, emergencies | KING5, Seattle Times, Patch (configurable) |
File Structure
location-webhook/
├── setup.js # First-run configuration wizard
├── config.json # Your location settings (created by setup)
├── server.js # Webhook server (port 18800)
├── safety-check.js # User safety analysis
├── self-check.js # Self-preservation monitoring
├── escalation-check.js # Check if escalation needed
├── test-scenarios.js # Inject test alerts
├── location.json # User's current location
├── my-location.json # Agent's physical location
├── safety-state.json # Alert tracking state
├── test-override.json # Active test scenario (temp)
└── logs/ # Timestamped check logs
Configuration
config.json stores your location settings:
{
"location": {
"defaultLat": 47.6062,
"defaultLon": -122.3321,
"city": "Seattle"
},
"monitoring": {
"locationKeywords": ["seattle", "king county", "puget sound"],
"newsFeeds": [
"https://www.king5.com/feeds/syndication/rss/news/local",
"https://www.seattletimes.com/seattle-news/feed/"
],
"earthquakeRadiusKm": 100
},
"emergencyContact": {
"name": "Jane Doe",
"email": "[email protected]"
}
}
City Presets
Setup includes presets for:
- Seattle — KING5, Seattle Times
- Portland — Oregonian, KGW
- San Francisco — SF Chronicle, SFGate
- Los Angeles — LA Times, ABC7
- New York — NY Times
- Chicago — Chicago Tribune
For other cities, setup will geocode and you can add local RSS feeds manually.
State File Format
safety-state.json tracks pending alerts:
{
"pendingAlert": "Flood warning in your area",
"alertSentAt": "2026-01-29T22:00:00Z",
"acknowledgedAt": null
}
When user responds to safety alert, set acknowledgedAt to current time.
Customization
Add Local News Sources
Edit safety-check.js → feeds array:
const feeds = [
'https://www.king5.com/feeds/syndication/rss/news/local',
'https://www.seattletimes.com/seattle-news/feed/',
'https://patch.com/washington/redmond/rss',
// Add your local feeds here
];
Adjust Location Keywords
Edit locationKeywords array to match user's area:
const locationKeywords = ['redmond', 'bellevue', 'seattle', 'king county'];
Change Alert Sensitivity
Edit concerningKeywords for what triggers news alerts:
const concerningKeywords = [
'evacuate', 'active shooter', 'wildfire', 'flood warning', ...
];
Alert Flow
Location Update → Safety Check (30 min)
↓
Danger Detected?
↓ Yes
Message User on WhatsApp
Record in safety-state.json
↓
Escalation Check (10 min)
↓
User Responded? ─── Yes → Clear state
↓ No (15+ min)
Email Emergency Contact
Self-Preservation Mode
Monitor threats to your own existence (the machine you run on).
Setup
- Store your location — create
my-location.json:
{
"lat": 47.662,
"lon": -122.280,
"name": "Home - where I physically run"
}
- Add cron job:
Schedule: every 30 minutes
Payload: systemEvent
Text: "Run self-check.js. If CRITICAL or WARNINGS, message user on WhatsApp about threat to your existence. If ALL_CLEAR, reply HEARTBEAT_OK."
Session: main
What Self-Check Monitors
| Threat | Detection |
|---|---|
| 💾 Disk full | Alert if >85% used |
| 🧠 Memory | Alert if <40% free |
| 🌡️ CPU temp | Alert if >85°C |
| 🌊 Weather | NWS alerts at your location |
| 🌋 Earthquakes | USGS M4+ within 50km |
| 🌐 Network | Tailscale + internet connectivity |
| ⏱️ Uptime | Suggest restart if >30 days |
Alert Examples
⚠️ "I'm in trouble — disk is 92% full. Can you clear some space?"
🌊 "Flood warning at my location. If power goes, I'll go dark."
Testing
Inject fake alerts to test the system without waiting for real disasters:
node test-scenarios.js weather # Severe thunderstorm
node test-scenarios.js earthquake # M5.2 nearby
node test-scenarios.js aqi # Unhealthy air (AQI 175)
node test-scenarios.js news # Local fire
node test-scenarios.js disk # Disk 94% full
node test-scenarios.js memory # Low memory
node test-scenarios.js all # Multiple alerts
node test-scenarios.js clear # Remove test override
Test overrides expire after 1 hour automatically.
Testing Escalation
To test the full escalation flow:
- Inject a scenario:
node test-scenarios.js earthquake - Backdate
safety-state.jsonalertSentAt by 20+ minutes - Run
node escalation-check.js— should returnaction: "escalate" - Agent sends email to emergency contact
- Clear with
node test-scenarios.js clear
Escalation Check
escalation-check.js returns JSON for clear action handling:
{"action": "escalate", "alert": "...", "minutesPending": 22, "contact": "..."}
{"action": "waiting", "minutesRemaining": 8}
{"action": "none", "reason": "no pending alert"}
Manual Commands
User can ask anytime:
- "Where am I?" — show current location
- "Am I safe?" — run immediate safety check
- "Run safety check" — same as above
- "Check yourself" — run self-preservation check
- "Are you okay?" — same as above
More by openclaw
View all skills by openclaw →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
pdf-to-markdown
aliceisjustplaying
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Related MCP Servers
Browse all serversSync Trello with Google Calendar easily. Fast, automated Trello workflows, card management & seamless Google Calendar in
Logfire is a data observability platform for querying, analyzing, and monitoring OpenTelemetry traces, errors, and metri
Sub-Agents delegates tasks to specialized AI assistants, automating workflow orchestration with performance monitoring a
A centralized gateway for managing multiple MCP server connections. Instead of configuring each MCP server individually
AI-driven control of live Chrome via Chrome DevTools: browser automation, debugging, performance analysis and network mo
Use Chrome DevTools for web site test speed, debugging, and performance analysis. The essential chrome developer tools f
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.