Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Pilot Bot default behaviors — always applied during bot sessions
.claude/skills/majiayu000-bot-defaults/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -31% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 397% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -74% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -44% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -39% | 0% |
These rules are always applied during Pilot Bot sessions. They override general defaults.
Use sandbox/MCP tools for HTTP requests, not raw curl. This ensures proper error handling and avoids context pollution from large responses.
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:
bashLOCK=$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
Threshold = ~75% of the cron interval in seconds:
| Interval | Threshold | |----------|-----------| | */5 * * * * (5 min) | 225s | | */10 * * * * (10 min) | 450s | | */30 * * * * (30 min) | 1350s | | 0 * * * * (hourly) | 2700s |
In the cron prompt, add: "If output is SKIP, stop here and do nothing."
/bot-channel-task)Use /bot-jobs to manage scheduled tasks programmatically. Users should not need to edit JOBS.yaml directly — the skill handles reading, writing, and cron sync.
Other measured skills in the registry, with their headline benchmark lift.