К основному содержанию
скилл CX Codex

schedule · orwa-mahmoud — скилл для Claude Code: расписание запуска

Скилл schedule для Claude Code печатает конфигурацию для запуска смены по расписанию. Он проверяет рабочее пространство и очередь задач перед генерацией настроек планировщика.

MIT ★ 571 обновлён 2026-11-16

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add orwa-mahmoud/nightshift --skill schedule -a claude-code
Открыть на GitHub

Что делает schedule

Скилл проверяет настройки рабочего пространства Nightshift, список задач и разрешения агента, затем печатает конфигурацию для запуска смены в заданное время. Время задаётся в локальном часовом поясе в формате HH:MM; для Codex команда генерации также принимает команду запуска агента.

Перед генерацией нужны настроенное рабочее пространство Nightshift и задачи в $NS/punch-list.md: пустая очередь приведёт к запуску без работы. Скилл ничего не регистрирует и не устанавливает — напечатанную команду запускает владелец. Журнал смены сохраняется в $NS/run/scheduled.log.

Какие задачи решает

  • сформировать конфигурацию запуска смены по времени
  • проверить очередь задач перед расписанием
  • выявить отсутствие разрешений для фонового запуска
  • посмотреть зарегистрированные задания или команду их удаления

Примеры запросов агенту

  • Подготовь запуск смены Nightshift каждый день в 22:30 по местному времени.
  • Проверь рабочее пространство и выведи конфигурацию для запуска в 06:15.
  • Покажи зарегистрированное задание Nightshift и команду для его удаления.

Как установить schedule

1Через Skills CLI (Vercel)

npx skills add orwa-mahmoud/nightshift --skill schedule -a claude-code

2Вручную: положить файлы

~/.claude/skills/schedule/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/schedule/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о schedule

Как установить schedule в Claude Code?

Выполни npx skills add orwa-mahmoud/nightshift --skill schedule -a claude-code. Файл скилла появится по пути ~/.claude/skills/schedule/SKILL.md.

Что делает schedule?

Проверяет рабочее пространство Nightshift, задачи и разрешения, затем печатает конфигурацию планировщика для запуска смены в заданное время. Само задание не регистрирует.

Нужно ли отдельно регистрировать расписание?

Да. Владелец запускает команду, которую печатает генератор; скилл ничего не устанавливает и не регистрирует.

Исходный текст

SKILL.md · MIT
---
name: schedule
description: Print the launchd, cron or Task Scheduler config that starts a shift at a fixed time; registers nothing.
license: MIT
metadata:
  internal: true
---

Get the host-opened project ready to start on a clock, then hand the owner the config. Work through
these in order; each one is a check the owner would otherwise discover at 4am.

Resolve the installed plugin root to an absolute `$NIGHTSHIFT_PLUGIN_ROOT` — `${CLAUDE_PLUGIN_ROOT}`
on Claude Code, `$PLUGIN_ROOT` on Codex when set, otherwise the absolute path this skill was
attached from (`skills/schedule/SKILL.md`). Run every command below through
`"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns"` — native Windows: `& "$NIGHTSHIFT_PLUGIN_ROOT\runtime\windows\ns.ps1"`
in the PowerShell tool, same verbs — which resolves the host and the workspace; `ns help` lists the
verbs, and `ns bind` prints the six resolved facts (`TASK_ROOT`, `NIGHTSHIFT_WORKSPACE`, `NS`,
`NIGHTSHIFT_PLUGIN_ROOT`, `HOST`, `SOURCE`); `$NS` below is that `NS`. Never a bare relative path: the working
directory persists between calls. Each `$NS/...` path below is where the current layout keeps that file;
`ns path <key>` prints where this workspace keeps it, and `ns path --list` names every key.

## 1. Is there a site at all?

No `$NS/` — stop and point at Setup (`/nightshift:setup` on Claude Code, or ask Nightshift
to set up on Codex). Nothing below is meaningful without it.

Read `$NS/run/work-mode`. Artifact mode is a persistent folder, not a Git repository; the scheduled
agent still starts in that work target. A malformed mode or a scratch work target is a refuse —
fix it with Setup before installing a job. In artifact mode, refuse to print or install a job when `$NS/receipts` exists but is not a usable directory.
If `$NS/run/work-mode` is missing and Setup would propose artifact, refuse to print or install a job; a scheduled start will refuse to arm.
If the work target cannot be resolved, refuse to print or install a job; a scheduled start will refuse to arm.

## 2. Is there work queued?

A scheduled start works the punch list it finds and **promotes nothing** — parked work orders and
drafting-table entries stay exactly where they are. So an empty `## Items` means the scheduled run
does nothing at all, and this is the moment to fix that, not 4am.

Count the open `- [ ]` in `$NS/punch-list.md`:

- **Items present** — say what they are in one line and carry on.
- **None** — say so plainly and offer the ways to fix it: compose a shift now with
 Hunt (answer **later**, not **now** — a shift started here defeats scheduling it), cut an
 ordinary draft from `$NS/staging/drafting-table.md`, cut a `Status: proposed` import with
 `"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" import-issues --promote …`, or write an
 item by hand. Then re-check. Never schedule an empty list without saying it will do nothing.

A parked work order is not queued work. If one exists, say so: it must be moved into the punch list
before the scheduled time, because start will not promote it.

## 3. Will the permissions hold?

A scheduled run is headless and cannot answer a prompt. On Claude Code, if neither
`$TASK_ROOT/.claude/settings.local.json` nor `$TASK_ROOT/.claude/settings.json` grants
frictionless permissions, warn
once. On Codex the grant travels in the command itself: pass the owner's Codex launch command, as
the Codex host page (`$NIGHTSHIFT_PLUGIN_ROOT/skills/nightshift/references/hosts/codex.md`)
spells it, through `--agent`. The generator's preflight warns when a Codex command carries no
headless grant, and a Codex entry generated without one will stall on the first tool that asks.
Setup offers the fix.

## 4. Confirm the queued work is unarmed

Open `- [ ]` Items do not activate the clock-out gate by themselves. `.shift-armed` does, and
scheduling must not create it: the work stays queued until the scheduled Start preflight clears
stale markers and arms the shift.

If `$NS/run/.shift-armed` already exists, stop here. This workspace has an active or stale shift,
not merely queued work. Report that state and point the owner to Status (`/nightshift:status` on
Claude Code, or ask Nightshift for status on Codex); do not tell them to create a STOP marker just
to schedule the list. Continue only after the existing shift has been ended or its stale state has
been diagnosed.

## 5. Print the config

Ask for the time if the owner has not given one — 24-hour `HH:MM`, local — then run the generator
and show its output as it comes:

```bash
"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" schedule --preflight
"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" schedule --at <HH:MM>
# Codex projects add: --agent '<the Codex launch command from references/hosts/codex.md>'
# Linux user timers:  --target systemd
```

`--preflight` / `-Preflight` checks the agent binary, permissions, resolved workspace, rules, queued work,
generated paths, and scheduler syntax for Claude Code and Codex. It installs nothing, writes
nothing under LaunchAgents, and does not enable, start, or register an entry. `--list` shows what
is already registered for this project; `--remove` prints the command that unregisters it. The
generator refuses to hand over a second entry where one exists — two scheduled starts on one punch
list is two agents on one shift.

**Install nothing.** The owner runs the command it prints, or does not.

## 6. Close

Say where the run's output will land (`$NS/run/scheduled.log`), and
mention once that the same generator runs from a terminal with no session —
`ns schedule` is plain shell and spends no model tokens, which is
what makes it reachable on a day this command is not. On native Windows the equivalent is
; it likewise spends no model tokens and
registers nothing. The README carries the full offline note.

© orwa-mahmoud · MIT · orwa-mahmoud/nightshift

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →

Сначала — schedule от других авторов.

schedule SethGammon Ставит повторяющиеся и разовые задачи по cron: по умолчанию пишет запись в Task Scheduler или Unix cron, а не расходует квоту routine-запусков. CX Codex +1 ★ 937звёзд репо crontap-schedule-http-job Crontap Скилл crontap-schedule-http-job позволяет настраивать регулярные вызовы HTTP-эндпоинтов, вебхуков и облачных функций через Crontap с предпросмотром расписания cron или естественного языка. CX Codex +1 1 300установок daily-update Ar9av Скилл daily-update обновляет Obsidian-вики: проверяет свежесть источников, синхронизирует индекс и hot.md, а также настраивает ежедневный запуск. CX Codex +1 2 400установок scheduler jshchnz Ставит задачи на таймер через launchd, crontab или Task Scheduler. Принимает фразы вроде «завтра утром» или «каждый понедельник» и регистрирует их в планировщике ОС. CX Codex +1 574установок cron-schedule ruvnet Скилл cron-schedule для Claude Code запускает фоновые задачи по расписанию через CronCreate в активной сессии. Он выполняет аудит кода, собирает карту проекта и обновляет тесты. CX Codex +1 903установок recipe-schedule-recurring-event официальный googleworkspace Скилл recipe-schedule-recurring-event для Google Workspace в Claude Code создаёт повторяющиеся события в Google Calendar с автоматической рассылкой приглашений. Работает во всех платформах AI-кодинга. CX Codex +1 31 300установок claude-5h-window-spread Digital-Process-Tools Скилл claude-5h-window-spread считает ваши рабочие часы и ставит тихие пинги, чтобы нагрузка разошлась по нескольким 5-часовым окнам Claude Pro/Max. ★ 8звёзд репо

Из того же набора17

Весь набор →
stop Скилл stop для Claude Code приостанавливает смену Nightshift и оставляет незавершённые задачи открытыми. Запускает безопасное завершение смены по команде остановить работу. CX Codex +1 ★ 571звёзд репо status Скилл status для Claude Code показывает статус смены в проекте. Он запускает проверки только для чтения и не начинает работу. CX Codex +1 ★ 571звёзд репо start Скилл start для Claude Code запускает смену Nightshift по текущему списку задач. Если список пуст, он показывает подготовленные планы и черновики для выбора. CX Codex +1 ★ 571звёзд репо setup Скилл setup для Claude Code настраивает Nightshift в проекте и предлагает выбрать проверки качества максимум за четыре вопроса. Он создаёт .nightshift/, сохраняет выбранный режим работы и не включает проверки без согласия владельца. CX Codex +1 ★ 571звёзд репо reset Скилл reset для Claude Code сбрасывает повреждённое или запутанное состояние выполнения проекта. Удаляет временные маркеры и дедлайн, сохраняя рабочие файлы и историю. CX Codex +1 ★ 571звёзд репо quality Скилл quality для Claude Code собирает задачи по качеству кода в одну смену. Он включается по запросу на проверки, тесты, доступность, документацию или безопасность. CX Codex +1 ★ 571звёзд репо purge Скилл purge для Claude Code удаляет состояние Nightshift в проекте. Перед запуском он показывает путь .nightshift/ и ждёт подтверждения владельца. CX Codex +1 ★ 571звёзд репо plan Скилл plan для Claude Code открывает комнату планирования и помогает обсудить устройство проекта и будущую работу. Код не меняется, пока владелец намеренно не выйдет из комнаты. CX Codex +1 ★ 571звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой