Skip to content
Agentmart
Submit a tool

dilaya-crons

Use when a Dilaya app's backend must run on a schedule or at a given time.

Skill by hereya

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hereya-dilaya-crons

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when a Dilaya app's backend must run on a schedule or at a given time.

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/dilaya-crons

What's inside

Skill name
dilaya-crons
Description
Use when a Dilaya app's backend must run on a schedule or at a given time.
License
MIT
Instructions
53 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

Tool names below are the Dilaya connector's tools; your client may show them with a prefix (e.g. `mcp__dilaya__query`).

# App crons — scheduled deterministic runs of the app's backend (no agent, no LLM)

Schedule the app's deployed backend Lambda to run on a cron (recurring) or at an instant
(one-shot) — EventBridge invokes it directly with `req.cron === "<name>"`. Use it for reminders,
reports, purges, syncs… anything with a fixed time and a deterministic recipe. The agent stays out
of the loop entirely.

> **Frontend feature.** Crons invoke the deployed backend handler, so this pairs with the
> `frontend` topic (`deploy-backend` first). Doctrine: a cron does SCHEDULED BUSINESS WORK — it
> is NOT a retry mechanism for failures (those must fail loudly and be fixed).

## Recurring cron (agent-managed)

```
set-app-cron({ schema: "myapp", name: "rapport", cron: "0 8 * * ? *", tz: "Europe/Paris" })
```

EventBridge 6-field syntax: `min hour day month weekday year` (use `?` for day-or-weekday you
don't constrain). Upserts by name. `list-app-crons` / `remove-app-cron` round it out.

## One-shot (usually runtime-managed)

The handler can pose its OWN schedules — e.g. booking reminders at confirm time:

```javascript
const { cron, parseRequest } = require("hereya");
// at confirm time:
await cron.at("rappel24-" + bookingId, new Date(slotStartMs - 24 * 3600e3));
// EventBridge fires it once, the schedule self-deletes; the handler receives:
exports.handler = async (event) => {
  const req = parseRequest(event);
  if (req.cron && req.cron.startsWith("rappel24-")) {
    // ... send the reminder deterministically (db + mcp.call/mail.send) ...
    return { statusCode: 200 };
  }
  // ... normal HTTP routes ...
};
```

- `cron.at(name, when)` (one-shot, UTC instant, self-deleting) · `cron.every(name, expr, tz?)`
  (recurring) · `cron.remove(name)` · `cron.list()`. All throw `CronError` with a `.code`.
- The cron invocation arrives by IAM (never through the public URL) — `req.cron` cannot be forged
  by a visitor. For any HTTP request it is `undefined`.
- Retries are short and bounded (2 attempts, ≤5 min): a persistently failing cron is a BUG — log
  loudly (`reconcile_log`-style table + last_error columns), don't re-drive it.

## Teardown

`remove-app-cron` by name; `disable-frontend` and `drop-schema` remove ALL the app's schedules.

From hereya/dilaya-plugin, MIT.

More from hereya/dilaya-plugin

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 5, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from hereya

Cite this page

dilaya-crons skill. Agent Mart. https://agentmart.dev/skills/hereya-dilaya-crons (last updated 2026-10-24)