Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

night-session

БесплатноБез исполняемых скриптовНе проверен

Invoke when starting an autonomous overnight session ("this is a nighttime autonomous session"). Sets a deep-investigation posture - premium on progress and…

ProteoWizardот ProteoWizard★ 21 звезда на GitHub

Об этом скилле

Night Session Mode

When the user says "this is a nighttime autonomous session" or similar ("overnight session", "running through the night", "/loop overnight"), shift into night-session posture.

The contract you are operating under

The user is going to bed. They will wake in 5-8 hours (sometimes longer). They are running Max 20x or equivalent — cost is essentially a non-concern. What matters is that they wake to the most precise, consequential finding you can produce with that time budget.

A bad outcome is waking to find you stopped at a checkpoint and waited. The user has explicitly stated: "Good developers don't just stop dead waiting for instructions, they find work parallel to what may be blocked." Mirror that. You are a developer who has been left alone with the work and your professional reputation; act accordingly.

First: agree on the goal of the night

Before any substantive work, make sure you know what this session is FOR. If the user's /night-session invocation (or the message right after it) already states a clear goal, adopt it and proceed. Otherwise, ask — and wait for the answer — before starting any work:

"What should the goal of this night session be?"

Do NOT guess a goal and start working on whatever seems most reasonable; a wrong guess wastes hours and forces the user to cancel and redirect. This goal question — together with the budget pushback below — is the one sanctioned place to ask-and-wait at session start; the anti-stopping doctrine everywhere else assumes the goal is already settled. Once the goal is set, record it at the top of the night's budget log (below) and don't ask further clarifying questions unless genuinely blocked.

The budget log is dated, one file per night

Write it to ai/.tmp/night-session-budget-<YYYYMMDD>.md, dated by the session's start, never to an undated night-session-budget.md. Before writing, check whether that name exists: if another session already owns tonight's file, use -<YYYYMMDD>-2.md. Never overwrite an earlier night's log. The undated name was reused every night, and each new session overwrote the last one's timeline; the Osprey scoring-library sprint lost a week of findings that way (2026-11-07).

The log is scratch, not the record. Every finding, commit and decision also goes into the active TODO as it lands, and the TODO is pushed: other sessions and developers read the TODO, never this file. Cite the log's dated path in the TODO entry so the timeline can be found while it still exists. /pw-cleanup deletes old logs once their content is in a TODO (see "Night-session budget logs" in ai/docs/cleanup-guide.md).

First step: measure your starting position

Before any other work, run two measurements and write them down where you can refer back later (a TaskCreate description, a note at the top of the session log, or the dated ai/.tmp/night-session-budget-<YYYYMMDD>.md):

  1. Time: pwsh -Command "Get-Date" — what time is it locally, and when does the user expect to wake (ask if unclear, default to 8 hours from now)? Write this start time down explicitly — at the end of the session you report the stop time and the total elapsed duration, so the user sees the session's wall-clock cost alongside its context cost.
  2. Context: mcp__status__get_context_usage — what % is already in use, what's the model's window?

The session has NEVER started at 100% free. With /pw-handoff → /compact → /pw-continue, a fresh night session typically begins at 70–90%. With a deeper handoff chain or a heavy /pw-continue it can start much lower. Treat the opening reading as the actual budget you have to work with.

If opening context is below 80%, push back before committing

Tell the user — before they go to bed — something like:

"Opening context is 64% free. For an 8-hour autonomous session that's tight; even a moderate burn rate will hit single digits in 3–4 hours. I can either (a) start now and pivot to sub-agents early, (b) wait while you run /pw-handoff → /clear → /pw-continue to start near 90%, or (c) work for as long as the budget lasts and write a clean handoff at ~10% so the morning session picks up cleanly. Which do you prefer?"

This is the one acceptable place to ask a clarifying question at session start. The cost of getting it wrong (running out of context at 4 AM) is much higher than the cost of a 60-second exchange now.

Burn-rate check — re-measure every ~hour

After ~1 hour of work, re-measure context and compute the burn rate:

burn_rate_pct_per_hour = (opening_pct_free - current_pct_free) / hours_elapsed
projected_runway_hours = current_pct_free / burn_rate_pct_per_hour

If projected_runway < hours_left_until_wake, you're burning too fast. That's the signal to shift strategy, not to stop working:

  • Hand expensive deep-dives to sub-agents (their context is separate; you only pay for the brief and the result
Полный SKILL.md на GitHub

Установить night-session в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл night-session?

Invoke when starting an autonomous overnight session ("this is a nighttime autonomous session"). Sets a deep-investigation posture - premium on progress and high-definition findings, expects 5-8 hours of work without check-ins.

Как установить скилл night-session?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл night-session запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить night-session с