time-of-day — скилл для Claude Code: когда вы продуктивнее
Разбирает сессии и события по часам суток и дням недели, показывает пики активности и провалы. Пригодится, когда планируете график глубокой работы.
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill time-of-day -a claude-codeЧто делает time-of-day
Скилл берёт список сессий, события внутри них и дневные тренды аналитики, а затем раскладывает всё по 24 часовым и 7 дневным корзинам. В отчёте — текстовые столбики вроде 09:00 ████████ 24, таблицы с процентом завершённых сессий, средней стоимостью и доминирующей моделью по каждому дню.
Отдельно считаются часы, где сессий много, и часы, где они реально доводятся до конца с длинными ходами. Это разные вещи, и скилл их не смешивает. Провалы подкрепляются таймингом ошибок и компакций из событий.
На вход можно подать пустое значение, окно вроде «последние 30 дней» или путь проекта, чтобы сузить выборку до одного cwd. Сессии без started_at или нужных метаданных в расчёт не идут, их число указывается отдельно. Деньги скилл выводит в USD с четырьмя знаками после точки, длительности переводит из миллисекунд в минуты.
Какие задачи решает
- понять, в какие часы сессии чаще доходят до конца
- отделить загруженные часы от по-настоящему результативных
- сопоставить ошибки и компакции с временем суток
- выбрать блок для глубокой работы и блок для мелких задач
- сравнить дни недели по стоимости и доминирующей модели
Примеры запросов агенту
- Покажи активность по часам за последние 30 дней
- Разбери паттерн по дням недели для проекта
~/work/api - Где у меня провальные окна по ошибкам и компакциям?
Как установить time-of-day
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill time-of-day -a claude-code2Вручную: положить файлы
~/.claude/skills/time-of-day/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/time-of-day/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill time-of-day -a codex2Вручную: положить файлы
.agents/skills/time-of-day/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill time-of-day -a cursor2Вручную: положить файлы
.cursor/skills/time-of-day/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install hoangsonww/Claude-Code-Agent-Monitor time-of-day2Вручную: положить файлы
.github/skills/time-of-day/SKILL.md1Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill time-of-day -a gemini-cli2Командой платформы
gemini skills install https://github.com/hoangsonww/Claude-Code-Agent-Monitor --path plugins/ccam-productivity/skills/time-of-dayВручную: положить файлы
.devin/skills/time-of-day/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill time-of-day -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о time-of-day
Как установить time-of-day в Claude Code?
Выполните npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill time-of-day -a claude-code, после чего файл скилла окажется по пути ~/.claude/skills/time-of-day/SKILL.md.
Что делает time-of-day?
Считает сессии и события по часам и дням недели, находит окна с высокой отдачей и окна, где работа идёт рвано, и предлагает, какие блоки отдать под глубокую работу.
Какие данные нужны скиллу?
Он опирается на список сессий, события конкретной сессии и дневные тренды аналитики. Сессии без started_at или метаданных о ходах в корзины не попадают.
Исходный текст
SKILL.md · MIT
--- name: time-of-day description: > Discover when you are most active and most productive with Claude Code by bucketing sessions and events into hour-of-day and day-of-week bins from their timestamps, then flagging peak versus low-output windows. Uses the session list, per-session events, and analytics daily trends. Use when planning a schedule or deciding when to do deep work versus lighter tasks. --- # Time of Day Profile activity and productivity across the hours of the day and days of the week. ## Input The user provides: **$ARGUMENTS** This may be: - empty or "all" (default: all available sessions) - a window like "last 30 days" or "last 90 days" to limit the analysis - a project path to scope the analysis to one `cwd` ## Data Sources | Endpoint | Returns | |----------|---------| | `GET /api/sessions?limit=500` | Sessions with `started_at`, `ended_at`, `status`, `cwd`, `cost`, and `metadata` (turn_count, total_turn_duration_ms) — primary source for hour/weekday bucketing | | `GET /api/events?session_id=X` | Events with `timestamp` and `event_type` (PreToolUse, PostToolUse, Stop, Compaction, APIError, etc.) — finer-grained activity within sessions and error timing | | `GET /api/analytics` | `daily_sessions` / `daily_events` (365d) and `sessions_by_status` for trend context and completion baselines | ## Report Sections ### 1. Activity by Hour of Day Bucket sessions (by `started_at`) and events (by `timestamp`) into 24 hourly bins. Show a text bar chart of session and event counts per hour. Identify the busiest hours by raw volume. ### 2. Productivity by Hour of Day For each hour bin, compute completion rate (`completed / total` sessions started in that hour) and average sustained turn time (`total_turn_duration_ms / turn_count`, ms → minutes). Distinguish "active" hours (high volume) from "productive" hours (high completion + sustained turns). ### 3. Day-of-Week Pattern Bucket the same metrics into 7 weekday bins. Table: weekday, sessions, completion rate, avg cost, dominant model. ### 4. Peak vs. Low-Output Windows - **Peak windows:** hours/days with high completion rate and long sustained turns. - **Low-output windows:** hours/days with high abandonment/error/Compaction rates or fragmented short turns. Pull error timing from `/api/events` event types (APIError, Compaction) to corroborate. ### 5. Schedule Recommendation Suggest which hour/weekday blocks to reserve for deep work and which to use for lighter or shallower tasks, grounded in the buckets above. ## Output - Markdown with text-based bar charts (e.g., `09:00 ████████ 24`) for the hourly and weekday distributions. - Tables for the hour and weekday metrics; ▲ / ▼ for above/below the overall mean. - Currency in USD to 4 decimals; durations in minutes (convert from ms). - Cite only numbers from the API. State how many sessions/events were bucketed and exclude sessions missing `started_at` or the focus metadata, noting the count.
© hoangsonww · MIT · hoangsonww/Claude-Code-Agent-Monitor