steedos-object-triggers

Automate server-side data-change handling for Steedos objects using .trigger.yml triggers.

1.6k|413|Updated Mar 4, 2019
One-click install
npx skills add https://github.com/steedos/steedos-platform --skill steedos-object-triggers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: steedos-object-triggers
Source: https://github.com/steedos/steedos-platform/tree/main/skills/steedos-object-triggers
Command: npx skills add https://github.com/steedos/steedos-platform --skill steedos-object-triggers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Triggers automate server-side actions when data changes occur, enforcing validation, automation, and integration across Steedos objects.

Core Features & Use Cases

  • Server-side triggers defined as .trigger.yml files with inline handler code.
  • Supports all lifecycle hooks (beforeInsert, afterUpdate, etc.), context (ctx.params), and object access via objects API.
  • Use cases include data validation, auto-fill, cascade updates, and external API calls triggered on record changes.

Quick Start

Create a new triggers/ file defining a trigger name and a code handler to run on beforeInsert or afterUpdate.

Frequently Asked Questions about steedos-object-triggers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate server-side data validation in Steedos?

Server-side data validation in Steedos is automated using .trigger.yml files. You define trigger handlers with inline code to run on lifecycle hooks like beforeInsert, enforcing validation rules automatically whenever a record changes.

Can I trigger external API calls when a Steedos object updates?

Yes, you can trigger external API calls on Steedos object updates by defining an afterUpdate trigger. Using .trigger.yml files, your inline handler code executes automatically to send data to external systems whenever the specified lifecycle event occurs.

What Steedos lifecycle hooks are available for object triggers?

Steedos object triggers support all data-change lifecycle hooks, including beforeInsert and afterUpdate. These hooks allow you to intercept record changes at specific stages to perform data validation, auto-fill, cascade updates, or external integrations.

Do I need a specific file structure to create Steedos object triggers?

You need a valid SKILL.md frontmatter and triggers code stored in a triggers/ directory using type: code. You can also use optional directories like scripts/, references/, and assets/ to support your trigger implementation.

What's the best way to auto-fill fields during a Steedos record insertion?

The best way to auto-fill fields during a Steedos record insertion is by using a beforeInsert trigger. You define a .trigger.yml file with inline handler code that accesses context via ctx.params and modifies the object data before it is saved.

Why use server-side triggers instead of client-side scripts for Steedos automation?

Server-side triggers enforce data automation and validation consistently across all access methods. Unlike client-side scripts, .trigger.yml files run directly on the server, ensuring that validation, cascade updates, and external API calls execute reliably regardless of the client.