Авторский курс Елизаровой НаталииAuthor's course by Nataliia Elizarova
Модуль 15 · Урок 15-28Module 15 · Lesson 15-28

Своя команда (навык) и запуск по расписаниюYour own command (skill) and scheduled runs

В уроке 15-27 вы сделали отчёт одной кнопкой. Теперь — два шага дальше: навык, чтобы весь порядок работы с отчётом запускался одной командой /monthly-report, и расписание, чтобы отчёт собирался сам. Плюс где расписание работает, а где нет.

In lesson 15-27 you built a one-click report. Now two steps further: a skill, so the whole report routine runs with one command /monthly-report, and a schedule, so the report builds itself. Plus where scheduling works and where it doesn't.

⏱ 15 минут⏱ 15 minutes 🎮 Тренажёр «Какое расписание?»🎮 Drill: "Which schedule?" ✅ Тест из 5 вопросов✅ A 5-question quiz 🔎 Проверено: ноябрь 2026🔎 Checked: November 2026

После урока вы сможетеAfter this lesson you will be able to

  • создать свой навык в Claude Code и вызвать его командой;
  • попросить Claude написать навык за вас;
  • выбрать расписание: облако, приложение на компьютере или Планировщик Windows;
  • проверить, готова ли задача к автоматическому запуску.
  • create your own skill in Claude Code and invoke it as a command;
  • ask Claude to write the skill for you;
  • choose a schedule: cloud, the desktop app, or Windows Task Scheduler;
  • check whether a task is ready to run automatically.
1

Словарик из пяти словA five-word glossary

Навык (skill)Skillпапка с файлом SKILL.md: инструкция «как мы делаем X»; вызывается командой /имяa folder with a SKILL.md file: instructions for "how we do X"; invoked as /name
SKILL.mdтекст навыка: сверху имя и описание, ниже шаги своими словамиthe skill text: name and description on top, steps in plain words below
Задача по расписаниюScheduled taskзапрос, который Claude сам запускает в заданное времяa request Claude starts on its own at a set time
Планировщик WindowsWindows Task Schedulerвстроенная программа Windows: запускает .bat по времени, без Claudea built-in Windows program: runs a .bat on a timer, without Claude
Хук (hook)Hookкоманда, которая срабатывает всегда при событии в Claude Code — например, когда он ждёт вашего ответаa command that always fires on a Claude Code event — e.g. when it is waiting for your reply
2

На пальцах: регламент и будильникIn plain words: a procedure and an alarm clock

📋 Навык = регламент в папке📋 Skill = a procedure in a folder

Раньше вы каждый месяц писали Claude: «запусти скрипт, сверь итог, напиши комментарий, положи файл туда». Теперь это записано один раз, а вы пишете /monthly-report.

Every month you used to write to Claude: "run the script, reconcile the total, write a comment, put the file there." Now it is written once and you type /monthly-report.

⏰ Расписание = будильник⏰ Schedule = an alarm clock

Будильник звонит сам, но только если он включён. Расписание тоже: где-то оно работает при закрытом ноутбуке, где-то — только пока компьютер не спит.

An alarm rings by itself, but only if it is switched on. Same with a schedule: some run with the laptop closed, others only while the computer is awake.

Главная мысльKey idea Автоматизируют только то, что уже стабильно работает руками. Навык закрепляет порядок, расписание убирает ваш запуск — но проверка результата остаётся за человеком. Automate only what already works reliably by hand. A skill fixes the routine, a schedule removes your manual start — but checking the result stays with a person.
3

Навык изнутри: где лежит и как вызываетсяInside a skill: where it lives and how it is invoked

ГдеWhereПутьPathКому виденWho sees it
ПроектProject.claude/skills/<имя>/SKILL.mdвсем, кто работает в этой папке проекта — команда получает его вместе с папкойeveryone working in this project folder — the team gets it with the folder
Лично выJust you~/.claude/skills/<имя>/SKILL.mdвам, во всех проектах на этом компьютереyou, in all projects on this computer

Два способа вызвать: напрямую — набрать /monthly-report; или Claude сам подтянет навык, если ваш запрос подходит под его описание. Чтобы навык запускался только вашей командой, в шапке пишут disable-model-invocation: true — для отчётов это правильно: такое не должно запускаться «само по догадке».

Two ways to invoke: directly — type /monthly-report; or Claude loads the skill itself when your request matches its description. To make the skill run only on your command, put disable-model-invocation: true in the header — right for reports: they shouldn't start "on a guess".

.claude/skills/monthly-report/ ├── SKILL.md ← инструкция (обязательно)← instructions (required) └── checks.md ← список проверок (по желанию)← list of checks (optional)
Имя — латиницейName in Latin letters Имя навыка становится и командой, и именем папки. Латиница через дефис (monthly-report) надёжнее всего: так же, как .bat в уроке 15-27, лучше без кириллицы. Сам текст инструкции пишите по-русски. The skill name becomes both the command and the folder name. Latin letters with hyphens (monthly-report) are safest — like the .bat in lesson 15-27, better without Cyrillic. Write the instructions themselves in Russian.
4

Готовый навык «месячный отчёт»A ready "monthly report" skill

Навык для отдела финансов «Долины напитков». Он запускает скрипт из урока 15-27, сверяет итог и пишет короткую выжимку. Скопируйте и поменяйте имена файлов под себя.

A skill for the Valley Beverages finance team. It runs the script from lesson 15-27, reconciles the total and writes a short summary. Copy it and change the file names to yours.

SKILL.md для копированияSKILL.md to copy
---
name: monthly-report
description: Собрать месячный отчёт план/факт по филиалам, сверить итог и написать выжимку для директора.
disable-model-invocation: true
---
Порядок работы:
1. Проверь, что в папке input лежат 3 выгрузки за прошлый месяц. Если какой-то нет — остановись и скажи мне.
2. Запусти RUN_report.bat. Исходные файлы не меняй.
3. Сверь итог: сумма факта в отчёте = сумме факта в трёх выгрузках. Покажи обе цифры.
4. Если расхождение больше 0 — не продолжай, опиши, где оно.
5. Напиши выжимку на 5 строк: итог план/факт в тысячах литров, отклонение в %, 3 статьи с наибольшим отклонением.
6. Сохрани выжимку в output/summary_ГГГГ-ММ.md.
Если что-то непонятно — спроси меня.
---
name: monthly-report
description: Build the monthly plan/actual report by branch, reconcile the total and write a summary for the director.
disable-model-invocation: true
---
Routine:
1. Check that the input folder has 3 exports for last month. If one is missing, stop and tell me.
2. Run RUN_report.bat. Do not change source files.
3. Reconcile: actual total in the report = actual total of the three exports. Show both numbers.
4. If the difference is above 0, stop and describe where it is.
5. Write a 5-line summary: plan/actual total in thousand litres, variance in %, 3 lines with the largest variance.
6. Save the summary to output/summary_YYYY-MM.md.
If anything is unclear, ask me.
Как это читатьHow to read it Между --- — шапка: name = команда, description = когда навык нужен, disable-model-invocation = только по вашей команде. Ниже — шаги, как вы объяснили бы новичку. Главное в навыке — шаги «остановись, если…»: они не дают отчёту уйти с ошибкой. Between the --- lines is the header: name = the command, description = when the skill is needed, disable-model-invocation = only on your command. Below are the steps, as you'd explain to a newcomer. The key part is the "stop if…" steps: they keep a broken report from going out.
5

Пусть навык напишет сам ClaudeLet Claude write the skill

Сделайте задачу один раз вместе с Claude Code в обычном разговоре. Когда всё получилось — попросите упаковать это в навык:

Do the task once with Claude Code in a normal conversation. When it works, ask it to package it as a skill:

Запрос для копированияRequest to copy

Мы только что собрали месячный отчёт. Упакуй весь порядок работы в навык проекта: .claude/skills/monthly-report/SKILL.md. Имя латиницей, запуск только моей командой (disable-model-invocation: true). Шаги — как мы делали, плюс проверки «остановись и скажи мне, если…» для каждого места, где может быть ошибка. Исходные файлы не менять. Покажи мне текст навыка до сохранения.

We have just built the monthly report. Package the whole routine as a project skill: .claude/skills/monthly-report/SKILL.md. Latin name, invoked only by my command (disable-model-invocation: true). Steps as we did them, plus "stop and tell me if…" checks at every point where an error is possible. Do not change source files. Show me the skill text before saving.

Сделать рукамиDo it by handОдин полный прогон с Claude, с правкамиOne full run with Claude, with fixes
УпаковатьPackageЗапрос выше — Claude пишет SKILL.mdThe request above — Claude writes SKILL.md
ПрочитатьReadВы проверяете шаги и «остановись, если…»You check the steps and the "stop if…" lines
ПроверитьTestНовый чат → /monthly-report → сверка с эталономNew chat → /monthly-report → reconcile with the reference
6

Три способа запускать по расписаниюThree ways to run on a schedule

ОблакоCloud

Облачная задачаCloud task

Работает на серверах Anthropic, даже когда ноутбук выключен. Ваших файлов на диске не видит — только репозиторий и подключённые коннекторы. Команда /schedule или claude.ai/code/routines. Не чаще раза в час. Пока исследовательская версия.

Runs on Anthropic's servers even when your laptop is off. Doesn't see files on your disk — only a repository and connected connectors. Command /schedule or claude.ai/code/routines. At most hourly. Still a research preview.

КомпьютерComputer

Задача в приложенииDesktop app task

Приложение Claude, вкладка Code → Scheduled. Видит ваши папки. Работает, только пока приложение открыто и компьютер не спит. Пропустил время — один догоняющий запуск после пробуждения.

Claude app, Code tab → Scheduled. Sees your folders. Runs only while the app is open and the computer is awake. Missed the time — one catch-up run after wake.

WindowsWindows

Планировщик WindowsWindows Task Scheduler

Запускает ваш RUN_report.bat по времени. Claude не участвует: скрипт делает то же самое каждый раз. Самый предсказуемый вариант для готового отчёта.

Runs your RUN_report.bat on a timer. Claude isn't involved: the script does the same thing every time. The most predictable option for a finished report.

ОблакоCloudПриложениеDesktop appПланировщик WindowsTask Scheduler
Ноутбук выключенLaptop offработаетrunsнетnoнетno
Файлы на диске / в OneDriveFiles on disk / OneDriveне видитcan't seeвидитseesвидитsees
Claude думает при запускеClaude thinks at run timeдаyesдаyesнет, только скриптno, script only
Подходит дляGood forсводка из почты и Teams через коннекторыa summary from mail and Teams via connectorsотчёт с проверками и выжимкой Claudea report with checks and a Claude summaryночной пересчёт готовым скриптомa nightly rebuild with a finished script
Ловушка ручного режимаThe manual-mode trap Если задача в приложении стоит в режиме с подтверждениями и ей нужно новое разрешение — запуск встанет и будет ждать вас. Поэтому после создания нажмите Run now, ответьте на все запросы «всегда разрешать» — дальше запуски пойдут без остановок. If a desktop task runs in a mode with approvals and needs a new permission, the run stalls and waits for you. So after creating it, click Run now, answer each prompt with "always allow" — later runs go without stops.

Задачу в приложении можно создать и словами в любом разговоре: «каждый понедельник в 9:00 запускай /monthly-report». Названия кнопок могут отличаться — в старых версиях раздел называется Routines.

You can also create a desktop task in words in any session: "every Monday at 9:00 run /monthly-report". Button names may differ — in older versions the section is called Routines.

7

Тренажёр: какое расписание?Drill: which schedule?

Для каждой задачи выберите подходящий способ.

Choose the right option for each task.

8

Как узнать, что ночной запуск прошёлHow to know the night run went fine

Приём из практики: в конце скрипта — короткое сообщение вам: «Отчёт собран, факт 104 520, отклонение −3,2 %» или «Упал на шаге 3: нет файла Каменска». Канал — рабочая почта или мессенджер. Утром вы видите итог, не открывая ноутбук. Попросите Claude Code дописать это в скрипт.

A practice trick: at the end of the script — a short message to you: "Report built, actual 104,520, variance −3.2%" or "Failed at step 3: no Kamensk file". Channel — work e-mail or a messenger. In the morning you see the result without opening the laptop. Ask Claude Code to add this to the script.

Пароли и токены — не в файлыPasswords and tokens — not in files Ключ бота или пароль почты не пишут в скрипт, .bat или SKILL.md: эти файлы читают коллеги и Claude. Храните их в защищённом хранилище учётных данных — пусть IT подскажет, где у вас принято. A bot key or mail password never goes into the script, .bat or SKILL.md: colleagues and Claude read these files. Keep them in a protected credential store — ask IT where it's done at your company.

Хуки — для продвинутых. Хук — команда, которую Claude Code запускает всегда при событии: например, уведомление на рабочий стол, когда Claude ждёт вашего ответа, или запрет правок в папке с исходниками. В отличие от CLAUDE.md, хук не «просьба», а правило, которое срабатывает без исключений. Настраиваются через /hooks; на старте курса без них можно обойтись.

Hooks are for advanced users. A hook is a command Claude Code runs every time an event happens: e.g. a desktop notification when Claude is waiting for you, or blocking edits in the source folder. Unlike CLAUDE.md, a hook is not a "request" but a rule that fires without exceptions. Set up via /hooks; at the start of the course you can do without them.

9

Практика: три заданияPractice: three tasks

Задание 1. Навык.Task 1. A skill. В папке отчёта из урока 15-27 попросите Claude упаковать порядок работы в навык (запрос из раздела 5). Прочитайте SKILL.md: есть ли «остановись, если…»? In the report folder from lesson 15-27, ask Claude to package the routine as a skill (request from section 5). Read SKILL.md: are there "stop if…" lines?
Задание 2. Проверка.Task 2. A test. Новый чат → /monthly-report. Сверьте итог с эталоном прошлого месяца. Уберите один файл из input — остановился ли навык? New chat → /monthly-report. Reconcile the total with last month's reference. Remove one file from input — did the skill stop?
Задание 3. Расписание на пробу.Task 3. A trial schedule. Создайте задачу в приложении в режиме Manual (запуск только кнопкой Run now). Запустите, ответьте на запросы разрешений. Ставить по времени — когда два-три запуска подряд прошли чисто. Create a desktop task with the Manual schedule (runs only via Run now). Run it, answer the permission prompts. Put it on a timer only after two or three clean runs in a row.
10

Частые ошибкиCommon mistakes

ОшибкаMistakeКак правильноDo this instead
Ставят на расписание то, что ещё ни разу не прошло чистоScheduling something that never ran cleanlyСначала 2–3 ручных запуска со сверкойFirst 2–3 manual runs with reconciliation
Облачная задача должна читать файл из OneDrive на ноутбукеA cloud task expected to read a file from OneDrive on the laptopОблако ваш диск не видит — нужна задача в приложении или ПланировщикThe cloud can't see your disk — use a desktop task or Task Scheduler
Задача в приложении «не сработала» ночьюThe desktop task "didn't fire" at nightКомпьютер спал. Включите «не давать уснуть» или ставьте на рабочие часыThe computer slept. Turn on keep-awake or schedule within working hours
В навыке нет шагов «остановись, если…»The skill has no "stop if…" stepsНа каждое место, где возможна ошибка, — проверка и стопA check and a stop at every point where an error is possible
Пароль от почты прямо в скриптеThe mail password right in the scriptТолько в защищённом хранилище учётных данныхOnly in a protected credential store
Результат никто не читаетNobody reads the resultНазначьте человека и уведомление с итогомAssign a person and a summary notification
11

Перед автоматизацией: отметьте галочкойBefore automating: tick it off

12

Проверьте себяCheck yourself

13

ШпаргалкаCheat sheet

Навык проектаProject skill.claude/skills/имя/SKILL.md — для всей команды.claude/skills/name/SKILL.md — for the whole team
Личный навыкPersonal skill~/.claude/skills/имя/SKILL.md — только для вас~/.claude/skills/name/SKILL.md — just for you
Только по командеCommand onlydisable-model-invocation: truedisable-model-invocation: true
Облачная задачаCloud task/schedule; ноутбук не нужен, диск не видит/schedule; no laptop needed, can't see disk
Задача в приложенииDesktop taskCode → Scheduled; видит папки, нужен включённый компьютерCode → Scheduled; sees folders, needs the computer on
Планировщик WindowsTask Schedulerзапускает .bat; без Claude, каждый раз одинаковоruns the .bat; no Claude, the same every time
ХукHook/hooks; правило, которое срабатывает всегда/hooks; a rule that always fires
Итог урокаLesson summary Навык записывает ваш порядок работы один раз и запускается командой — с проверками «остановись, если…». Расписание бывает трёх видов: облако работает без ноутбука, но не видит диск; задача в приложении видит папки, но требует включённый компьютер; Планировщик Windows просто запускает готовый .bat. Автоматизируйте только то, что уже стабильно работает руками, и назначьте человека, который читает результат. A skill records your routine once and runs as a command — with "stop if…" checks. Scheduling comes in three kinds: cloud runs without the laptop but can't see the disk; a desktop task sees folders but needs the computer on; Windows Task Scheduler just runs a finished .bat. Automate only what already works reliably by hand, and assign a person who reads the result.
Made on
Tilda