feat: migrate skills review desk to astro

This commit is contained in:
Marcos Paulo
2026-09-05 16:54:37 +00:00
parent 107e429fb9
commit 71e4775573
66 changed files with 8184 additions and 96 deletions
@@ -0,0 +1,26 @@
---
name: lunch-time
description: Log the start of the lunch break at the Long Day Factory. Records lunchTime with the current timestamp in ~/long-day-factory.json. Use when the user says they are going to lunch / "lunch time".
---
# lunch-time
Records when the user leaves for lunch. Lunch is time served — it gets subtracted
from the 4-hour sentence when `am-i-free` does the math.
## Steps
1. Run:
```bash
bash "$CLAUDE_SKILL_DIR/lunch.sh"
```
Fallback path: `~/.claude/skills/lunch-time/lunch.sh`.
2. The script creates `~/long-day-factory.json` if missing and sets `lunchTime`
to now. If it warns that `startTime` is not set, pass that along — the user
may have forgotten to run `long-day-start`.
3. Reply with light humor: bread-and-water break, the parole hearing, etc.
Include the timestamp.
@@ -0,0 +1,19 @@
#!/bin/bash
# Log start of lunch break.
set -euo pipefail
F="$HOME/long-day-factory.json"
TS="$(python3 -c 'import datetime;print(datetime.datetime.now().astimezone().isoformat(timespec="seconds"))')"
if [ ! -f "$F" ]; then
printf '{\n "startTime": null,\n "lunchTime": null,\n "backToWork": null\n}\n' > "$F"
fi
tmp="$(mktemp)"
jq --arg ts "$TS" '.lunchTime = $ts' "$F" > "$tmp" && mv "$tmp" "$F"
echo "Lunch break started at $TS"
if [ "$(jq -r '.startTime' "$F")" = "null" ]; then
echo "WARNING: startTime is not set — did you skip long-day-start this morning?"
fi