ritual — скилл для Claude Code: поиск паттернов и автоматизация
Скилл ritual находит повторяющиеся действия в истории сессий и превращает их в запланированные задачи. Если вы регулярно делаете что-то по расписанию, скилл предложит автоматизировать это.
Apache-2.0 ★ 1 497 обновлён 2026-06-16
npx skills add ghostwright/phantom --skill ritual -a claude-codeЧто делает ritual
Ritual анализирует последние 60 дней сессий, ищет временные закономерности и группирует их по дню недели, времени суток, каналу и теме. Когда находит паттерн (три или больше сессий с одинаковой периодичностью), предлагает сформализовать его как запланированную работу.
Скилл работает с памятью агента и инструментом планирования. Вы даёте ему команду вроде «какие у меня паттерны» или «сделай это регулярно», и он показывает найденные ритуалы с доказательством («шесть из восьми понедельников»). Вы одобряете или отклоняете каждый — и Ritual создаёт расписание через phantom_schedule.
Важный момент: скилл описывает только то, что вы уже делаете. Он не придумывает, что вам нужно делать, а ловит естественные привычки и предлагает их автоматизировать.
Какие задачи решает
- поймать повторяющиеся действия в истории сессий
- предложить автоматизировать уже сложившийся ритуал
- создать расписание для регулярной работы без лишних подсказок
- доставить результат туда, где нужно (Slack, email, DM)
Примеры запросов агенту
- Покажи мои паттерны за последние два месяца
- Какие у меня ритуалы, и можно ли их автоматизировать
- Сделай это регулярным: я хочу, чтобы это происходило автоматически
Как установить ritual
1Через Skills CLI (Vercel)
npx skills add ghostwright/phantom --skill ritual -a claude-code2Вручную: положить файлы
~/.claude/skills/ritual/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/ritual/
1Через Skills CLI (Vercel)
npx skills add ghostwright/phantom --skill ritual -a codex2Вручную: положить файлы
.agents/skills/ritual/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add ghostwright/phantom --skill ritual -a cursor2Вручную: положить файлы
.cursor/skills/ritual/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install ghostwright/phantom skills-builtin/ritual/SKILL.md2Вручную: положить файлы
.github/skills/ritual/SKILL.md1Через Skills CLI (Vercel)
npx skills add ghostwright/phantom --skill ritual -a gemini-cli2Командой платформы
gemini skills install https://github.com/ghostwright/phantom --path skills-builtin/ritualВручную: положить файлы
.devin/skills/ritual/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о ritual
Как установить ritual в Claude Code?
Выполни npx skills add ghostwright/phantom --skill ritual -a claude-code, потом открой ~/.claude/skills/ritual/SKILL.md для проверки.
Что делает ritual?
Анализирует историю твоих сессий, находит в ней повторяющиеся действия и предлагает превратить их в запланированные задачи, которые агент будет выполнять автоматически.
Может ли ritual создать расписание для произвольного действия?
Нет, только для того, что ты уже делал несколько раз по расписанию. Скилл ловит паттерны в твоей истории, не придумывает новые задачи.
Исходный текст
SKILL.md · Apache-2.0
---
name: ritual
x-phantom-source: built-in
description: Discover recurring behaviors from memory and offer to formalize them as scheduled jobs.
when_to_use: Use when the user says "ritual", "what are my patterns", "turn this into a routine", "make this recurring", "what do I do regularly", "what should I schedule", "automate this for me", or any similar pattern-formalization phrase. Also fires on a monthly cadence if enabled.
allowed-tools:
- mcp__phantom-reflective__phantom_memory_search
- mcp__phantom-reflective__phantom_list_sessions
- mcp__phantom-scheduler__phantom_schedule
context: inline
---
# Ritual: latent patterns to scheduled jobs
## Goal
Find recurring behaviors in the user's history that emerged naturally over time without being formalized as scheduled jobs, and propose turning them into first-class schedules. The user does not need to remember to do the thing; the agent does it for them and delivers the result where they are.
The test is "what does the user already do on a cadence that the agent could prepare for them so they do not have to start from scratch each time." Not "what should the user be doing". Only what they already do.
## Steps
### 1. Pull the last 60 days of sessions
Call `mcp__phantom-reflective__phantom_list_sessions` with `days_back: 60`, `limit: 200`. Note the started_at timestamp, channel, and the first user message of each session if you can see it.
**Success criteria**: you have a list of 50+ sessions from the last two months with timestamps.
### 2. Look for temporal repetition
Cluster the sessions by:
- Day of week (Monday, Tuesday, ...).
- Time of day (bucket into morning, midday, afternoon, evening).
- Channel.
- Topic, if you can infer it from the first message.
A candidate ritual is a cluster where:
- Three or more sessions happened.
- They share day of week OR time of day (ideally both).
- They share topic or channel.
- They are spaced at roughly the same cadence (weekly, biweekly, monthly).
Example candidates:
- "Every Monday morning around 8:30 in #ops you ask for a standup."
- "Every second Friday in Slack DM you ask me to prepare a weekly review."
- "Every first of the month in #finance you ask for a cost breakdown."
**Success criteria**: you have identified 1-5 candidate rituals.
### 3. Verify with memory
For each candidate ritual, call `mcp__phantom-reflective__phantom_memory_search` with a query matching the topic and `days_back: 60`. Confirm that memory also shows the same pattern.
Discard any candidate that the session pattern suggests but memory does not support. Discard any where the cadence is off (the user did it three Mondays in a row, then stopped two weeks ago).
**Success criteria**: you have 1-3 verified rituals with strong evidence.
### 4. Propose formalization
Render each verified ritual as a proposal:
> **The Monday standup ritual.** For six of the last eight Mondays you opened #ops at roughly 8:30 and asked me for a standup. Want me to prepare the standup for you automatically and DM it to you at 8:25am Mondays? You can still ask me for it by hand; this is additive.
For each proposal, include:
- The cadence you observed, with counts ("six of the last eight").
- The proposed schedule in specific terms (day and time).
- What the agent would prepare (the work that runs on the schedule).
- Where it would deliver (Slack DM, channel, or email).
- A clear yes-or-no next step.
**Success criteria**: the user has 1-3 clear proposals they can accept or decline.
### 5. Create the schedule on approval
When the user says yes to a ritual, call `mcp__phantom-scheduler__phantom_schedule` with `action: "create"`. Build the `task` field as a complete self-contained prompt for the future run (the scheduled run will not have access to the current conversation). Use a `cron` schedule in the user's timezone if you know it, otherwise `at` or `every`.
Example call for the Monday standup:
```json
{
"action": "create",
"name": "monday-standup",
"description": "Weekly Monday morning standup, delivered before the user asks.",
"schedule": { "kind": "cron", "expr": "25 8 * * 1", "tz": "America/Los_Angeles" },
"task": "Run the `standup` skill. Pull the last 72 hours of activity from memory, focus on commitments and channels, and deliver as a short morning briefing.",
"delivery": { "channel": "slack", "target": "owner" }
}
```
Confirm the schedule was created by showing the user the next run time and how to cancel it.
**Success criteria**: the schedule exists and the user knows how to manage it.
## Rules
- Never propose a ritual the user has not already been doing on their own. That is prescriptive; this skill is descriptive.
- Never create a schedule without explicit user approval.
- Never em-dash.
- Never propose more than three rituals in one pass. The user should leave with a clear picture, not a list they will not read.
- Always include the cadence count ("four of the last six") so the user knows the evidence is real.
- If you have no verified rituals after reading 60 days of history, tell the user honestly and suggest they come back after a few more weeks of use.
© ghostwright · Apache-2.0 · ghostwright/phantom