neversight/learn-skills.dev/objectstack-automation
Claude Code and agent skill by neversight/learn-skills.dev
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Design ObjectStack automation — Flows (visual logic), Workflows (declarative rules), Triggers, Approvals, scheduled jobs, and webhooks. Use when the user is adding `*.flow.ts` / `*.workflow.ts`, wiring an event-driven rule, or modelling an approval chain. Do not use for data lifecycle hooks at the object layer (see objectstack-data) or for kernel / plugin events (see objectstack-platform). CEL expressions in flow conditions / workflow predicates: load objectstack-formula alongside.
Install
npx vskill@latest install neversight/learn-skills.dev/objectstack-automationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as neversight/learn-skills.dev/objectstack-automation.
Automation Design — ObjectStack Automation Protocol
Expert instructions for designing business automation using the ObjectStack specification. This skill covers Flows (visual logic orchestration), Workflows (state machines & approvals), Triggers (event-driven automation), and ETL pipelines.
When to Use This Skill
- You are building a visual flow (auto-launched, screen, or scheduled).
- You need a state machine or approval process for a business object.
- You are setting up event-driven triggers (record create/update/delete).
- You need scheduled automation (daily reports, data cleanup).
- You are designing an ETL pipeline for data synchronisation.
Predicates and conditions are CEL. Everycondition/guard/entryCondition/ filtervaluein this skill is an Expressionenvelope evaluated by@objectstack/formula. Use theP\...\`` andcel\...\`tagged templates from@objectstack/spec`. See theobjectstack-formula skill for the full CEL contract, stdlib(now(),today(),daysFromNow(n),isBlank(v),coalesce(v, fb)),and the legacy → CEL translation table.
Flows — Visual Logic Orchestration
A Flow is a directed graph of nodes that execute sequentially or in parallel. Flows are the primary automation building block in ObjectStack.
Flow Types
| Type | When to Use | |
|---|---|---|
autolaunched | Runs without user interaction — triggered by events, APIs, or other flows | |
screen | Interactive — presents UI screens to the user (wizards, forms) | |
schedule | Runs on a cron schedule (daily cleanup, weekly reports) | |
record_change | Fires automatically on record create/update/delete (bind via the start node's triggerType) | |
api | Invoked explicitly via the API / engine.execute() |
Flow Node Types
Flows are built from 19 node types:
Control Flow
| Node | Purpose | |
|---|---|---|
start | Entry point — every flow has exactly one | |
end | Exit point — can have multiple (early exit, error exit) | |
decision | Conditional branching (if/else/switch) | |
loop | Iterate over a collection | |
parallel_gateway | Fork execution into parallel branches | |
join_gateway | Synchronise parallel branches back together | |
wait | Pause execution until a condition or time elapses | |
boundary_event | Attach to another node — fires on timeout or error | |
subflow | Invoke another flow (reusable composition) |
Data Operations
| Node | Purpose | |
|---|---|---|
assignment | Set variable values | |
create_record | Insert a new record | |
update_record | Modify existing records | |
delete_record | Remove records | |
query_record | Fetch records with filters |
External Integration
| Node | Purpose | |
|---|---|---|
http_request | Call an external HTTP API | |
connector_action | Invoke a pre-built integration connector | |
script | Execute custom JavaScript/TypeScript logic | |
screen | Display a UI form to the user (screen flows only) |
Human Decision
| Node | Purpose | |
|---|---|---|
approval | Route a record for human sign-off — suspends the run until a decision, then continues down the approve / reject branch (contributed by plugin-approvals) |
Flow Variables
Every flow defines input/output variables:
Flow Example — Auto-Escalate Overdue Cases
Nodes connect via `edges`, not a `next` property. The engine traversesflow.edges({ source, target }); a barenext:on a node is ignored.update_recordselects rows with `filter` and writes with `fields`(a single call updates every matching row — no per-row loop needed).
State Machines & Approvals
A record's state machine locks the legal transitions of its status field so that automation — increasingly AI-generated — cannot drive a record into an illegal state.
State Machine — a state_machine validation rule (ADR-0020)
Since ADR-0020 there is no `workflow` metadata type and no object.stateMachines map. A record state machine is one `state_machine` validation rule in the object's validations array: a flat field + { from: [allowedTo] } transition table. It is enforced on the write path — an update whose field moves to a state not listed for the current state is rejected with the rule's message. A from state mapped to [] is a declared dead-end.
Notes:
- One rule per field. Parallel lifecycles (e.g.
status+payment_status)
are N separate state_machine rules, one per field.
- Conditional transitions / side effects are NOT part of the machine. A
guard is expressed as a sibling script / conditional validation rule; "do something when the state changes" is a record-triggered Flow (ADR-0019) — see the migrated high-value-deal / stale-opportunity flows in examples/app-crm.
- Introspection:
GET /metadata/objects/:name/state/:field?from=:state
returns the legal next states so UIs/agents can read the transition table instead of hard-coding it (next: null when no FSM governs the field).
- Predicate conditions in sibling rules evaluate against the merged record in
the `record.<field>` CEL scope (bare field names do not resolve).
Approvals (Flow Nodes)
Since ADR-0019 there is no standalone approval-process type. An approval is authored as an Approval node (type: 'approval') on an ordinary flow — the run suspends when it reaches the node and resumes down the node's approve / reject out-edge once a decision is recorded. Multi-step review is just successive Approval nodes wired together on the canvas, so the whole review is one diagram a reviewer (or AI) can read end-to-end.
The old process-level concepts re-home onto the flow graph + node config — seethe re-home table below. The approval state (sys_approval_request/sys_approval_action, the record lock, the status mirror, approverresolution) is unchanged and still owned byplugin-approvals.
Re-homing the old process model
If you've seen the pre-ADR-0019 ApprovalProcess.create({...}) shape, every concept maps onto the flow:
| Old process concept | Now | |
|---|---|---|
steps: [...] (linear list) | successive Approval nodes joined by edges | |
entryCriteria (process or step) | a condition on the edge entering the node | |
onApprove / onReject actions | downstream nodes wired to the approve / reject out-edge | |
rejectionBehavior: 'back_to_previous' | a back-edge to an earlier node | |
rejectionBehavior: 'reject_process' | the reject edge routed to an end node | |
approvers / behavior / lockRecord / approvalStatusField / escalation | the Approval node's config (ApprovalNodeConfigSchema) |
There is no approvals: [...] stack collection anymore — approval flows live in your normal flows: [...].
Recording a decision
A decision is recorded through ApprovalService.decide() (or the REST routes POST /api/v1/approvals/requests/:id/approve | /reject). That finalizes the sys_approval_request and resumes the suspended run down the matching branch — you never resume the flow by hand.
Approver Types
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/skills-md/objectstack-ai/framework/objectstack-automation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neversight/learn-skills.dev/objectstack-automation)