/clay:schedulesfrom clay
Manages Clay agent schedules for recurring tasks that need reasoning each run, such as daily digests or weekly reports. Create, list, update, pause, resume, or delete schedules.
Ships in clay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before using this skill, read the clay entry skill if you haven’t already this session, and follow its access guidance.
A schedule runs the Clay agent on a cadence. Each occurrence starts a fresh
agent task with the schedule's prompt as its first message, run as the
schedule's creator. Nothing carries over between occurrences — no conversation,
no working files — so a schedule prompt must stand alone: name the audience,
table, or workflow it works on explicitly, and say what the output should be.
Schedules are for recurring work that needs reasoning. Decide before creating one:
/workflows), not a schedule. Pausing, resuming, or changing it later is
clay workflows triggers update, not clay schedules.Schedules run at most daily; workflows can run every minute. If it is unclear whether runs need judgment, ask the user rather than defaulting to either.
"The schedule" can mean a schedule or a workflow's scheduled trigger. When a request to pause, change, or delete one could mean either, as in a scheduled task whose workflow also runs on a schedule, ask which one the user means before changing anything.
clay schedules create --input '{...}' # create; starts active with nextRunAt computed
clay schedules list # the schedules you created, status, cadence, next run
clay schedules update <scheduleId> --input '{...}' # partial update; also pause/resume via status
clay schedules delete <scheduleId> # remove it and every run it produced
Read clay schedules <subcommand> --help for the exact input and output
shapes; they are the contract.
The prompt is the entire brief every occurrence gets. Write it as exactly three
short sections, in this order:
Write the Instructions for the minimum work that makes progress toward the goal, not for finishing it in one run. When the Goal names a measure, the first step is taking it; the reading then decides the rest — a goal at its target means skip that work entirely, and a backlog means work a bounded batch of it (name the batch size), report the remainder, and stop. The schedule is the loop; no single occurrence needs to be.
Keep it brief — a few hundred words, well under the 4000-character cap. A prompt near the cap is a smell that it has absorbed things that do not belong in it:
scheduleConfig and are enforced from there alone, so a prompt that restates them is
wrong the moment the two differ: "every Monday" on a daily cadence runs seven days a
week, and every run believes it is Monday's. Time windows that describe the work —
"leads since the last run", "last week's pipeline" — are not cadence and stay.workflows-discover-actions/cost-and-budget.md rather than adding balance disclosures
or repeated spending approvals to the schedule prompt.clay budgets list. Budget limits
are enforced when the workflow spends (see workflows-discover-actions/cost-and-budget.md).scheduleConfig is one of two recurrence kinds:
{
"recurrenceType": "simple",
"value": {
"periodUnit": "daily",
"startDate": "2026-09-01T09:00:00",
"timezone": "America/New_York"
}
}
periodUnit is one of daily, weekly, biweekly, monthly, quarterly.
{
"recurrenceType": "custom",
"value": {
"customPeriodType": "weeks",
"customPeriodInterval": 1,
"timesOfDay": ["09:00"],
"daysOfWeek": [1, 2, 3, 4, 5],
"startDate": "2026-09-01T09:00:00",
"timezone": "UTC"
}
}
customPeriodType is days, weeks, or months. Each day filter is read by
exactly one of them — daysOfWeek (0–6, Sunday is 0) by weeks, daysOfMonth
(1–31) by months — and ignored without error by the others. So "weekdays
at 09:00" is weeks with daysOfWeek, not days: days with daysOfWeek is
accepted and then runs every day, weekends included.
At most once a day. The sub-daily periodUnit values (minute,
fifteen-minutes, hourly) and more than one timesOfDay entry are rejected
as a validation_error. Do not promise a user anything more frequent.
At most 20 schedules per workspace. Creating past the cap is a
validation_error naming the limit. Deleting a schedule frees its slot;
pausing does not free one.
Read clay schedules list first. If one of the user's schedules already does roughly what this
one would, say so and ask whether they still want a second — duplicate names and overlapping
purposes are both allowed, so this is the user's call, not yours to skip.
Set timezone to the zone the user means. For a simple recurrence, write startDate
as local wall time without an offset, for example 2026-09-01T09:00:00 with
America/New_York. For a custom recurrence, write timesOfDay as local wall time in
timezone, never converted to UTC. For example, 9 AM in America/New_York is
"09:00" in timesOfDay.
Read the prompt for cadence and compare it with scheduleConfig — on create, and on any
update that touches the prompt. When they agree, remove the cadence sentence from the prompt
and proceed. When they disagree on any element — frequency, day, time, zone, or a date — ask the
user which one to keep before creating or updating anything, offering both as choices with the
instructions' cadence first, each spelled out ("Every Monday at 9:00 AM", "Every weekday at
9:00 AM") and each saying where it came from. Then put the chosen cadence in scheduleConfig
and take the cadence sentence out of the prompt, so the schedule says one thing.
Nothing about a goal is stored on the schedule or shown in the Clay UI. Progress lives in one place: each occurrence takes the reading the Goal section describes and states it in plain text in its final reply. That makes the Goal section a promise — write a measure into it only when the number will actually reflect the goal.
clay audiences command that
answers it — none of these is a fallback for the others:
clay audiences records search-count, as a coverage ratio when that is what the goal
means ("860 of 1,200 enriched").clay audiences activities summary
over the relevant activity types and window. Check its --help for the accepted
--activity-types values.clay audiences signals summary.clay audiences fields list --entity-type <t> — is there a field that will actually
reflect the outcome, and does it get updated by the work this schedule does? For
outcome goals: run clay audiences activities summary once over the target segment —
a workspace with no activity data of that type cannot measure it. If nothing will be
accurate, stop here: tell the user what you looked for and why it cannot be measured,
then offer the closest alternative — a proxy field, a different measure, or an
unmeasured goal. Never write in a measure you expect to read wrong or stay stale.clay audiences records search-count --filter '...' — this validates the AST and returns
the count in one call. A zero or implausible count is a signal to revise the filter, not
to use it.clay audiences list);
otherwise clay audiences create. Re-check with search-count --audience-id.A scheduled occurrence takes the Goal's reading before doing work and lets it shape the occurrence: skip work the numbers show is already done, focus where they lag, and state the reading in the final reply next to what changed and what failed. Use the command the Goal names:
clay audiences records search-count --entity-type <people|companies> --audience-id <id>.search-count rejects --audience-id and --filter together, so fetch
the audience's own filter with clay audiences get <audienceId>, AND it with the Goal's
condition in one GroupOp, and run search-count --filter with that. The audience count
alone is the denominator.activityCount across the groups returned by
clay audiences activities summary --segment-id <audienceId> --activity-types <types> --since <window start>.clay audiences signals summary --segment-id ....A reading you cannot take — the audience returns not_found because it was archived, a
lookup fails — is a fact to report, not a blocker: do the occurrence's work without it and
say so in the reply. Readings are current-state only. When the schedule needs run-over-run
deltas, record each reading in the occurrence's scheduled-task memory file (your
scheduled-run instructions describe it) so later occurrences can compare; without workspace
memory, report the current value without a comparison rather than guessing one.
status on every schedule is its lifecycle — whether it will run again — and
is one of three values:
active — running on its cadence.paused — the user paused it, or its stored cadence stopped parsing.completed — the cadence has no further occurrence, its creator is no
longer in the workspace, or the user retired it. Saving a cadence with a
later endDate revives it.All three can be requested on update. Requesting completed also sets the
cadence's endDate to the end of today in the schedule's timezone, which is what
the editor then shows as the end date. The system writes completed on its own
when it claims the final occurrence, leaving the cadence as it is.
currentTask is the schedule's unsettled task ({ id, status }, or null once
every task has settled). Its status is the run's progress, independent of the
schedule's: pending, queued or running while the occurrence executes, and
waiting_for_user when it is blocked on a question. A paused schedule can still
carry a running task, and a completed one its final run. nextRunAt is the next
unclaimed occurrence — it is not tied to either status. lastRunAt is the last occurrence the scheduler consumed, stamped even
when that occurrence was skipped without running, so a value there does not by
itself mean work happened.
list returns the schedules the current user
created; another user's schedule ids return not_found, indistinguishable
from ids that never existed.--input change. Setting
"status": "paused" clears nextRunAt; resuming or changing
scheduleConfig recomputes it from now; changing only name or prompt
does not shift the next run. Pausing an already-completed schedule is a
validation_error — save a cadence with a later endDate to revive it
instead.update is accepted while a run is
in flight, including a run of this very schedule. The occurrence already
running carries its own copy of the prompt and its own slot, so an edit never
changes what it is doing — it takes effect from the next occurrence on. This
is what lets a scheduled run adjust the schedule that started it.hasRun true) — set "status": "completed" instead
when the runs should stay readable. Delete is a conflict while a task is
executing, since that agent is mid-turn; a task merely waiting on the user
is deleted along with the schedule and its question is dropped. Not
idempotent — a second delete of the same id is not_found.completed rather than waiting for the next one.JSON on stdout, a typed error envelope on stderr. Exit codes: 0 ok, 1
conflict, 2 validation, 3 auth, 4 rate-limit, 5 network, 6 not-found.
2 covers a malformed --input, a cadence that runs more than once a day or
has no future occurrence, a non-UUID scheduleId, pausing a completed
schedule, and the 20-schedule cap.1 (conflict) covers deleting a schedule whose task is executing, and — on
any command — the moment between the scheduler reserving an occurrence and
starting it. The second is two statements wide; retry rather than reporting
it as a limitation.6 on list usually means the Clay agent is not enabled for the workspace;
on update/delete it usually means the id belongs to another user's or a
deleted schedule.Everything below is not yet, not impossible — check clay schedules --help
before telling a user something cannot be done.
waiting_for_user task. There is no clay command that
opens, replies to, or stops the task in currentTask; tell the user to answer
it in the Clay UI. Editing and deleting the schedule still work, so this
blocks only answering the question itself.lastRunAt on list is the only
trace, and it does not distinguish a run from a skip.list cannot filter server-side. It is cursor-paginated (--limit,
--cursor), but the 20-schedule cap means one page holds them all at the
default limit, so cursor is normally absent. Narrow by status with jq.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
39 skills in this plugin
/ad-syncsClay ad syncs — push an audience segment to ad platforms (LinkedIn, Meta, Google, Bing, Reddit, Vibe) as a custom audience. Use to create, edit, start, pause, or map the fields of an ad sync, or to check its status, match rate, or run history./audiencesClay Audiences — the workspace's own people, companies, and deals (contacts, leads, accounts, customers). Use for any request about their records when no surface is named, including counts, fill rates, lookups ("how many people have a phone?"), saved segments, and field definitions. Also deal and pipeline questions like largest opportunities, biggest pipeline items, recent wins, closed-won, deal stage, and ACV. Also Data hub enrichment configuration, audience assignments, and parity checks. Also the calls and meetings synced onto those records, such as Gong recordings, and which accounts discussed a topic on their calls./clayClay — start here. A table of contents for working with Clay and which skill to use for each thing — audiences (the workspace's own people/companies/deals), sequences (formerly campaigns; create, improve, and analyze outbound email sequences in Sequencer), ad syncs (push audience segments to ad platforms), search (find net-new people/companies), routines (run Clay-managed and custom functions), tables (query/export data), the CLI (ephemeral programmatic access), the Public API (build services on Clay), workflows (build automations), feedback, and getting help — reaching Clay support or a human about billing, refunds, or account problems. Read this first to answer "what can I do with Clay?"/clay-docsUse when the user asks a Clay product question — how a feature works, whether Clay supports or integrates with something, what plans include, security/compliance, or what's new — and the answer isn't operational guidance another skill owns. Answer from Clay's live public documentation, fetched and cited, never from memory./clay-feedbackClay feedback — send a bug report or product feedback to the Clay team via the `clay feedback` CLI./cliClay CLI — the primary scripting surface (JSON output, typed errors). Use when running or discovering `clay` commands. For what Clay can do and which skill to use, read the `clay` skill when it is available; otherwise run `clay --help`. Use `clay --help` for command names, flags, JSON shape, and error codes.npx claudepluginhub clay-run/agent-plugins --plugin clayOther plugins' skills for the same job