deferred-task-execution — скилл для Claude Code: установка и обзор
Скилл deferred-task-execution для Claude Code откладывает запуск команд на заданный интервал или точное время. Запускает тесты или деплой позже.
Apache-2.0 ★ 173 обновлён 2026-10-24
npx skills add sammcj/agentic-coding --skill deferred-task-execution -a claude-codeЧто делает deferred-task-execution
Скилл разбирает относительные интервалы вроде 30m или 2h30m, а также точное время суток вида 14:30 или 3pm. Если указанное время на сегодня уже прошло, таймер перенесёт запуск на следующий день.
Под капотом запускается фоновый bash-скрипт wait-until.sh. Агент запускает процесс в фоне, сохраняет идентификатор задачи и спокойно ждёт системного оповещения о завершении работы таймера. Если планы изменились, ожидание прерывается вызовом TaskStop с полученным ID.
Сессия Claude Code обязана оставаться открытой всё время ожидания. Если закрыть терминал, фоновый таймер завершится и отложенное действие сорвётся. Часовой пояс по умолчанию задан переменной USER_TZ внутри скрипта как Australia/Melbourne.
Какие задачи решает
- запустить сборку или тесты через заданный промежуток времени
- отложить выполнение скрипта на определённый час
- перенести тяжеловесную задачу на следующий день
- остановить запланированный запуск по идентификатору процесса
Примеры запросов агенту
- Запусти npm test через 45m
- Выполни миграцию базы данных ровно в 23:00
- Отмени отложенную фоновую задачу
Как установить deferred-task-execution
1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill deferred-task-execution -a claude-code2Вручную: положить файлы
~/.claude/skills/deferred-task-execution/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/deferred-task-execution/
1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill deferred-task-execution -a codex2Вручную: положить файлы
.agents/skills/deferred-task-execution/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill deferred-task-execution -a cursor2Вручную: положить файлы
.cursor/skills/deferred-task-execution/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sammcj/agentic-coding Skills/deferred-task-execution/SKILL.md2Вручную: положить файлы
.github/skills/deferred-task-execution/SKILL.md1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill deferred-task-execution -a gemini-cli2Командой платформы
gemini skills install https://github.com/sammcj/agentic-coding --path Skills/deferred-task-executionВручную: положить файлы
.devin/skills/deferred-task-execution/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о deferred-task-execution
Как установить deferred-task-execution в Claude Code?
Выполните в терминале команду npx skills add sammcj/agentic-coding --skill deferred-task-execution -a claude-code.
Что делает скилл deferred-task-execution?
Он преобразует пожелание пользователя в аргумент таймера и держит фоновый процесс, пока не наступит время выполнить задачу.
Сработает ли отложенное действие, если закрыть терминал?
Нет, сессия агента должна оставаться активной всё время ожидания.
Исходный текст
SKILL.md · Apache-2.0
--- name: deferred-task-execution description: Delays execution of a task until a specified time or after a duration. Use when the user asks to run something later, in X minutes/hours, at a specific time, schedule a command, or defer work to a future point. allowed-tools: [Bash, Read, TaskStop] --- # Deferred Task Execution Delays agent work until a user-specified time using a background timer script, then proceeds with the deferred task. ## Script Location `~/.claude/skills/deferred-task-execution/scripts/wait-until.sh` ## Supported Input Formats The script accepts one argument in either format: **Duration** - relative delay from now: - `30s`, `5m`, `1h`, `90m`, `2h30m`, `1h15m30s` **Clock time** - specific time of day: - `14:30`, `9:00`, `3pm`, `3:30pm` - If the time has already passed today, it waits until that time tomorrow ## Workflow ### Step 1: Confirm the user's intent Confirm what task to perform and when. Parse their natural language into a wait-until argument: | User says | Argument | |-----------|----------| | "in 30 minutes" | `30m` | | "in an hour" | `1h` | | "in 2 and a half hours" | `2h30m` | | "at 3pm" | `3pm` | | "at 14:30" | `14:30` | | "at half past 9" | `9:30am` | The script self-handles timezone via the `USER_TZ` variable defined at the top of `wait-until.sh` (defaults to `Australia/Melbourne`). Clock-time arguments are interpreted in that zone regardless of host TZ. Don't ask the user about timezones unless they mention travelling. Tell the user exactly what will happen and when the timer will fire. Ask them to confirm before starting. ### Step 2: Launch the timer in background Run the wait script using Bash with `run_in_background: true`: ``` ~/.claude/skills/deferred-task-execution/scripts/wait-until.sh <argument> ``` Note the task ID from the response -- you need it to cancel. ### Step 3: Wait for the timer Background Bash notifies you when the script exits. Wait for that notification; don't poll. ### Step 4: Execute the deferred task Once the output contains "Timer complete. Proceed with deferred task.", carry out whatever work the user requested. ## Important Notes - The agent session must remain open for the timer to work. If the user closes the session, the deferred task will not execute. Warn the user about this. - For very long waits (multiple hours), remind the user that the session needs to stay active. - If the user asks to cancel, use `TaskStop` with the background task ID. - Always tell the user the calculated wake time so they know when to expect the action.
© sammcj · Apache-2.0 · sammcj/agentic-coding