/outsystems-ai-skills:outsystems-timersfrom outsystems-ai-skills
Recognizes when an OutSystems story needs a timer (scheduled, batch, or long-running work), decides the type and placement, and guides design with patterns for batching, checkpoints, and error handling.
Ships in outsystems-ai-skills. 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.
Read when SKILL.md points to them.
A timer is a background job: it runs on a schedule or when woken, takes no inputs, and finds its work in the data. Decide whether a story needs one, where it goes and what it must have.
Flow diagrams: reference/patterns.md. Checkpoint entity, configuration and the plan block: reference/setup.md. Layout follows outsystems-action-flows; bulk actions follow outsystems-crud-conventions and outsystems-advanced-sql.
| The story says | Answer |
|---|---|
| "Every day / night / hour", "on the 1st", "X days after …", "send reminders / reports" | Recurrent timer |
| "Import / sync / recalculate" many records, work too long to wait for | On demand: the screen saves a request and wakes the timer |
| "Clean up / archive / purge" old data | Recurrent timer calling a bulk _CS action |
| "Migrate / fix / backfill" existing data once | One-off timer in Timer Engine |
| "When a record is created or changes status, do X" for that record | Not a timer: the action that changes it, or a process (BPT / Light process in O11) if it must be asynchronous |
| A small, fast change triggered by a user | Not a timer: a normal server action |
Volume decides the design: if the story doesn't say how much data, ask or state the assumption in the plan.
| Kind | Module |
|---|---|
| Recurrent or on demand | The domain's _BL (default) |
| Recurrent, driving complex calculations or report generation | The domain's _Eng |
| One-off (migration, data fix, backfill) | Timer Engine app (module TimerEngine) |
| Same change on many rows | <Entity>_<Verb>All in _CS (one Advanced SQL node), called by the timer. No For Each |
Timer Engine: a single-module app for all of the factory's temporary timers. Nothing references it; it references only public _BL, _CS or _Eng actions. One timer per job. When the job is done and confirmed in every environment, delete the timer and the references only it used.
Checkpoint and kill switch: reuse first.
getDataModel) for Timer…, Job…, Batch… entities or attributes like LastProcessedId, IsEnabled.TimerControl_CS with a TimerCheckpoint entity (reference/setup.md) and wait for the go-ahead.One entity serves every long-running timer. Below, TimerCheckpoint means that entity.
| Volume | Design |
|---|---|
| Small and bounded (bootstrap, a few hundred rows) | Simple flow: fetch, process, log |
| Can grow with the data | Long-running pattern: every feature below |
| Same change on many rows | Bulk pattern: the timer loops over batches of a _CS bulk action |
| Feature | Rule |
|---|---|
| Time limit | First node TimeLimit = AddMinutes(CurrDateTime(), 15) (timeout minus 5 min). After each record: HasTimeLeft → continue; otherwise Wake<TimerName> and end |
| Batches | Max. Records 100–1,000, sorted by Id, Id > LastProcessedId (or a status that processing changes) |
| Commit per record | CommitTransaction after each record or small group |
| Checkpoint | LastProcessedId updated in the same transaction as the record, before the commit; a recurrent full scan resets it to 0 when done |
| Kill switch | IsEnabled read at the start and before every batch; False → log, LastRunStatus = Stopped, end |
| No-progress guard | A batch with no record processed successfully → log an error, LastRunStatus = Failed, end without waking |
| Bad records | Per-record handler: log with the Id, mark the record failed so the filter skips it, commit, continue |
| Logging | Start and end of each run: found, processed, failed, duration, how it ended |
Configure schedule (heavy timers outside business hours), priority and timeout: reference/setup.md.
SendInvoiceReminder. Timer: Timer + that name (TimerSendInvoiceReminder, woken with WakeTimerSendInvoiceReminder). TimerCheckpoint.TimerName = the action's name. The timer's action only calls the server action.Wake<TimerName> and returns. The timer picks up pending requests. Never run long work inside the user's request.When a story needs a timer, add a "Timer" block to the plan (kind, schedule, module, volume, features, checkpoint entity, calls) before building: template in reference/setup.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
outsystems, background-jobs, scheduled-tasks, batch-processing
npx claudepluginhub maiurnarendra/outsystems-ai-skills --plugin outsystems-ai-skills13 skills in this plugin
/outsystems-action-flowsStandards for OutSystems action logic (Server, Client and Service Actions) - singular action names and Get actions in _BL, flow layout (top to bottom, True down, False right, For Each Cycle to the right, straight connectors, Dummy routing), If/Assign/Switch labels, Is/Has Booleans, built-in functions and list actions before loops and JavaScript, descriptions, comments and exceptions. Use when creating, editing or reviewing any OutSystems action logic./outsystems-advanced-sqlFormatting, indentation and safety standards for OutSystems Advanced SQL nodes - uppercase clauses on the left, tab-indented fields, leading commas, explicit INNER JOIN, CamelCase aliases, {Entity}.[Attribute] syntax, parameters and Expand Inline safety. Use when writing, formatting or reviewing SQL inside an OutSystems SQL node./outsystems-architectureOutSystems architecture design rules based on the 3-layer Architecture Canvas (End-user, Core, Foundation) and allowed dependency directions. Use when designing a new OutSystems application, adding a dependency between modules, splitting or merging modules, or reviewing an architecture for violations./outsystems-code-reviewReview the OutSystems code changed for a work item on two independent axes - Standards (the team's naming, layout, CRUD, SQL and architecture rules) and Spec (does it do what the user story or bug asks, no more and no less). Reads modules live from Service Studio through the Service Studio MCP, never edits them, and returns one report with a verdict. Use when the user asks to code-review a work item, user story, bug or set of OutSystems actions before testing or deployment./outsystems-crud-conventionsOutSystems entities and _CS actions - entity and attribute naming (CamelCase, singular, A_B only for many-to-many, Is/Has Booleans), Public and Expose Read Only, static entities, <Entity>_CreateOrUpdate (Source/Id) and <Entity>_Delete wrappers, and specific or bulk actions such as <Entity>_UpdateStatusAll. Use when creating or renaming entities or attributes, or writing actions in a _CS module./outsystems-data-modelDesign OutSystems entities before they are built. Interviews the developer one question at a time (business terms, owning _CS module, static vs regular entity, relationships and many-to-many, delete rules, attributes, indexes, volume, sensitive data), checks the terms against a project glossary and the existing data model, and writes an entity proposal with the decisions and their reasons. Use when the user wants to design, model or plan new entities or a data model for an OutSystems feature, before creating them.