CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

tessleng/schedule-management

Create and migrate repo-defined Tessl schedules in a project's tessl.json. Turns a plain-language task and cadence into a validated schedules entry, optionally authors its repo-local skill, and moves an existing schedule made in Tessl into version control, keeping its Loop id and history. Needs a Tessl CLI whose tessl loop commands read the Loop API.

1.03x
Quality

98%

Does it follow best practices?

Impact

99%

1.03x

2 of 3 eval scenarios. Add 1 more for a full score.

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

schedules-block.mdskills/schedule-setup/references/

The schedules block in tessl.json

The schedules block is a top-level object in a project's tessl.json. It maps each entry's name to a schedule entry. Each entry declares one recurring launch run: action says what runs, and the fields beside it say when.

{
  "schedules": {
    "<schedule-name>": {
      "action": {
        "skill": "...",
        "environment": "..."
      },
      "schedule": "weekdays at 09:00"
    }
  }
}

Schedule name

  • A lowercase kebab-case slug: a-z, 0-9, single dashes, 1 to 64 chars (pattern ^[a-z0-9]+(?:-[a-z0-9]+)*$).
  • It is the schedule's stable identity, not a display label. The value ends up in refs, so it must survive without escaping.
  • Renaming an entry is a delete-plus-create, never a rename. Pick a durable slug.

Entry fields

The entry is validated strictly: a field name that is not in these lists is a hard error (this catches typos the author would otherwise only notice when the schedule misbehaves). An action field written beside action instead of inside it is refused too.

Beside action, an entry carries only its own timing and label:

FieldTypeNotes
actionobject or stringRequired. What the schedule runs, in one of the forms under The action field.
schedulestring or objectPreferred authoring key. Accepts a supported shorthand string, a raw cron string, or a structured schedule object. The value is interpreted in timezone.
cronstring or objectAlias for schedule. Use it for a raw cron fallback when the shorthand and structured forms cannot express the cadence.
timezonestringOptional, default UTC. IANA timezone the schedule is interpreted in (e.g. America/New_York).
descriptionstringOptional. Human-readable description of the schedule (max 4096 chars).

Use exactly one of schedule or cron, never both. Both forms are compiled to canonical cron before timezone and minimum-interval validation. A shorthand or structured value is easier for humans to review, so prefer schedule for new entries.

Schedule values

The supported shorthand strings are:

FormExample
hourlyhourly
daily at HH:MMdaily at 02:00
weekdays at HH:MMweekdays at 09:00
weekly on DAY at HH:MMweekly on monday at 13:00
monthly on Nth at HH:MMmonthly on 1st at 00:00
every N minutesevery 15 minutes
every N hoursevery 6 hours
every N minutes between HH:MM-HH:MMevery 15 minutes between 09:00-17:00
every N minutes on weekdaysevery 15 minutes on weekdays

For a cadence that does not fit a shorthand, use a structured object. Each field is optional and omitted fields match any value:

{
  "schedule": {
    "minute": [0, 30],
    "hour": 9,
    "day": {"between": [1, 7]},
    "month": ["january", "jun"],
    "weekday": ["mon", "wed", "fri"]
  }
}

Numeric fields (minute, hour, and day) accept a number, a list of numbers, { "every": number }, or { "between": [start, end] }. month and weekday accept numbers, lists, or supported names such as january and monday. Use a raw five-field cron under cron when the structured object cannot express the requested pattern.

The action field

action takes one of three forms:

  • Inline: an object holding the action's fields. The entry is its own Loop. This is the default for a new schedule.
  • A declared action's name: a string such as "action": "nightly-report", naming an action in the manifest's top-level actions block. The schedule is not a Loop of its own: its cron becomes a trigger on that action's Loop.
  • A declared action with overrides: { "use": "nightly-report", ... }. The given fields merge over the declaration key by key, null removes a field other than skill, and inputs merges per input name.

The action fields, written inside action:

FieldTypeDefaultNotes
skillstringnoneRequired in an inline action. The skill to run: a registry ref workspace/plugin[@version][#skill], or a repo-local file:path. Validated server-side at apply time.
environmentstringnoneThe workspace environment name (not its id). The id is workspace-scoped, so a committed file names the environment and the apply step resolves it to an id in the target workspace.
gitobjectfull clone of the Loop default branchHow each fired run fetches the repository: branch (the branch it clones and targets its PR against), depth (commits of history, at least 1; set it only for a skill that does not read history), sparse (the only repository-relative directories checked out). A use override merges it field by field; null removes a field. baseBranch is the deprecated spelling of git.branch.
workdirstringrepo rootSubdirectory of the repo the skill runs in.
agentstringworkspace defaultAgent to run the skill with. Plain string, validated server-side.
modelstringagent defaultModel to run the skill with. Plain string, validated server-side.
effortstringagent defaultReasoning effort: minimal, low, medium, high, xhigh, or max. Which levels an agent offers is checked at apply time.
inputsobjectnoneSkill input values, keyed by the skill's own placeholder names. String values only; keys must be non-empty.
instructionsstringnoneFree-text instructions appended to the skill prompt.

Two schedules that run the same skill can share one declaration:

{
  "actions": {
    "pr-report": { "skill": "file:tiles/pr-report", "environment": "reports" }
  },
  "schedules": {
    "pr-report-nightly": { "action": "pr-report", "cron": "0 2 * * *" },
    "pr-report-weekly": {
      "action": { "use": "pr-report", "instructions": "Cover the last 7 days." },
      "cron": "0 4 * * 1"
    }
  }
}

An older entry that writes the action's fields beside cron, with no action, still runs and is read as the inline action it describes. It names its branch with baseBranch and does not take git; write the entry with action to set git.

There is no file field that pins a commit or tag. Each fire clones the current head of git.branch. When git.branch is omitted, the run uses the linked project's Loop default branch, or the repository default when no project is linked. The project setting reads the repository default at fire time unless it names a branch.

What tessl loop validate does and does not check

validate reports three kinds of result.

File checks, read from the file on disk: the block's shape, each schedule or cron value compiled and validated against its timezone, the minimum 5-minute interval, that every action a schedule names, directly or with use, is declared in the actions block, and the whole actions block and triggers block. A problem in one declaration is reported against that action or trigger (actions.<name>, triggers.<name>); a problem with a block as a whole, such as an actions value that is not an object, is reported as actions block or triggers block.

Linked sync checks: when the file checks pass, the file has a schedules block, you are logged in, and the file's name resolves to a project, validate sends the schedules and actions blocks to that project's schedule validation, which saves nothing. A schedule it refuses, for any reason including a workspace with no free cron slot, is reported against that schedule and fails validate. Could not run repository schedule sync checks. also fails it, and does not say whether the request failed to arrive or the API rejected it. When you are not logged in or the file names no project Tessl can find, the checks are skipped with a warning.

Warnings: advisory notes, such as the workspace's current cron count against its cap, an environment it cannot find, or a registry skill it cannot check. They do not fail validate.

validate exits non-zero when any file check or linked sync check fails, so it works as a CI check. A manifest with none of the three blocks is valid.

When the linked sync checks run, they refuse a schedule whose registry skill is not found, whose named environment is not in the workspace or gives no GitHub token, or whose agent and model the organization cannot run. When they are skipped, none of that is checked.

Either way, validate does not settle whether a free active cron slot is still left when the sync runs, or anything that changes in the workspace between validate and the sync. So a file that passes validate can still be rejected when applied. A clean validate means the file is well-formed, not that the schedule will fire.

Example with optional fields

{
  "schedules": {
    "weekly-dependency-digest": {
      "action": {
        "skill": "tessleng/dependency-digest",
        "environment": "dependency-digest",
        "agent": "claude",
        "model": "claude-sonnet-4-6"
      },
      "schedule": "weekly on monday at 13:00",
      "timezone": "UTC",
      "description": "Weekly dependency digest, Mondays 13:00 UTC"
    }
  }
}

README.md

tile.json