hot table badges, simplify & batch, scheduled tasks implementation, karpathy tweet

- Add Best Practice badges: Voice Mode, Agent Teams, Simplify & Batch
- Add Implemented badge + implementation doc for Scheduled Tasks (/loop)
- Add Simplify & Batch row to Hot table
- Add AskUserQuestion + ASCII Markdowns to Boris section
- Karpathy: link to tweet instead of GitHub, remove stars, re-sort Others

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Shayan Rais
2026-03-10 15:50:41 +05:00
parent 3bfc0f9241
commit a851cedd71
4 changed files with 66 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

@@ -0,0 +1,60 @@
# Scheduled Tasks Implementation
![Last Updated](https://img.shields.io/badge/Last_Updated-Mar_10%2C_2026-white?style=flat&labelColor=555)
<table width="100%">
<tr>
<td><a href="../">← Back to Claude Code Best Practice</a></td>
<td align="right"><img src="../!/claude-jumping.svg" alt="Claude" width="60" /></td>
</tr>
</table>
---
<a href="#loop-demo"><img src="../!/tags/implemented-hd.svg" alt="Implemented"></a>
The `/loop` skill is used to schedule recurring tasks on a cron interval. Below is a demo of `/loop 1m "tell current time"` — a simple recurring task that fires every minute.
---
## Loop Demo
### 1. Scheduling the Task
<p align="center">
<img src="assets/impl-loop-1.png" alt="/loop 1m tell current time — scheduling and cron setup" width="100%">
</p>
`/loop 1m "tell current time"` parses the interval (`1m` → every 1 minute), creates a cron job, and confirms the schedule. Key notes:
- Cron's minimum granularity is **1 minute**`1m` maps to `*/1 * * * *`
- Recurring tasks **auto-expire after 3 days**
- Jobs are **session-scoped** — they live in memory only and stop when Claude exits
- Cancel anytime with `cron cancel <job-id>`
---
### 2. Loop in Action
<p align="center">
<img src="assets/impl-loop-2.png" alt="Recurring task firing every minute" width="100%">
</p>
The task fires every minute, running `date` and reporting the current time. Each iteration triggers async **UserPromptSubmit** and **Stop** hooks — the same hook system used throughout this repo for sound notifications.
---
## ![How to Use](../!/tags/how-to-use.svg)
```bash
$ claude
> /loop 1m "tell current time"
> /loop 5m /simplify
> /loop 10m "check deploy status"
```
---
## ![How to Implement](../!/tags/how-to-implement.svg)
`/loop` is a built-in Claude Code skill — no setup required. It uses the cron tools (`CronCreate`, `CronList`, `CronDelete`) under the hood to manage recurring schedules.