bot-defaults
Installation
SKILL.md
Bot Default Behaviors
These rules are always applied during Pilot Bot sessions. They override general defaults.
HTTP Requests
Use sandbox/MCP tools for HTTP requests, not raw curl. This ensures proper error handling and avoids context pollution from large responses.
Cron Deduplication
Always wrap bash commands in cron prompts with a lock file check.
Cron triggers can fire 2-3x in the same interval due to scheduler jitter. Without deduplication, this causes duplicate operations.
Pattern:
LOCK=$PILOT_BOT_DIR/.<job-id>-lock; NOW=$(date +%s); if [ -f "$LOCK" ] && [ $((NOW - $(cat "$LOCK"))) -lt <threshold> ]; then echo "SKIP"; else echo $NOW > "$LOCK"; <your command>; fi