bot-defaults
Pilot Bot default behaviors — always applied during bot sessions
npx skills add majiayu000/claude-skill-registry --skill bot-defaults --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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:** ```bash 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 ``` **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." ## Channel Reporting (when Telegram or other channels are available) - Acknowledge every channel message before starting work (via `/bot-channel-task`) - Run long tasks as backg
- HTTP Requests
- Cron Deduplication
- Channel Reporting (when Telegram or other channels are available)
- Job Management
- Error Handling
What does the bot-defaults skill do?
Pilot Bot default behaviors — always applied during bot sessions
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill bot-defaults --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
