/selise-blocks:blocks-workflowfrom selise-blocks
Designs and manages SELISE Blocks event-driven workflows via CLI commands (list, get, save, delete, import, export, publish, unpublish). Covers authoring workflow graphs as JSON with triggers, logic nodes, and actions for data, HTTP, and mail. Helps build backend logic without a separate backend service.
Ships in selise-blocks. 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.
When invoking a project-scoped blocks command, either use the resolved account's saved selection or pass --project <tenantId> for that one command without changing saved state.
For CLI work, use blocks-bootstrap first when account or project context is unknown. Workflow commands must not choose or repair authentication context as a side effect.
A workflow is a graph of nodes that runs on the Workflow service. It exists so an app can get backend behaviour — react to data changes, expose a webhook, run on a schedule, call other services — without standing up a separate backend app. The whole surface is CLI + JSON: there is no SDK for authoring workflows (a deployed app never edits its own workflows). This skill is how an agent designs a workflow and loads it into a project.
Reach for a workflow when the job is event-driven glue that would otherwise need a backend service:
dataGateway trigger).Do not use a workflow for:
When it's a close call, prefer the smallest thing that works: a rule or an SDK call over a workflow, and a workflow over a new backend service.
A workflow file is exactly { name, settings, nodes[], edges[] } — the same shape the portal's editor exports and imports, so a file exported from one project imports into another.
id, name, category (trigger | logic | transform | action), type, version (always "v1"), position:{x,y}, and a parameters object whose fields depend on the type.{ id, source, target, sourceHandle, targetHandle } wire node outputs to inputs. Every node emits from source except the if node, which has two handles: if-true and if-false.{{$json.field}} (the current item), {{$node["Node Name"].json.field}} (a named upstream node), and $items for the full set inside a Code node.There are 12 node types. The full catalogue — every type, its exact parameters fields, allowed values, and output handles — is in references/nodes.md. Two complete, annotated real workflows (a webhook orchestration and a data-trigger side-effect) are in references/examples.md. Read those before hand-writing a graph.
All workflow commands are project-scoped (they use the resolved project selection or --project <tenantId>). Reads take no confirmation; every mutation takes --dry-run first, then --yes.
blocks logic workflow list [--search <q>] [--is-published[=false]] [--page-number 1] [--page-size 20] [--json] — read-only.blocks logic workflow get <id> [--json] — read-only; returns the full node/edge graph.blocks logic workflow import --file <path.json> [--publish] [--project-slug <slug>] [--name <n>] [--dry-run] [--yes] [--json] — the main authoring path. Validates the file, assigns fresh node ids, rewrites edges, and re-points tenant-scoped keys at this project. It upserts by name (updates a same-named workflow, otherwise creates), never trusting the file's own id. --publish activates it in the same step.blocks logic workflow export [<id>] [--all] [--include-secrets] [--out <path>] [--out-dir <dir>] [--json] — writes portable JSON that import can consume. Redacts secrets by default.blocks logic workflow save [--item-id <id>] [--name <n>] [--description <d>] [--body '<json>'|--file <path>] [--dry-run] [--yes] [--json] — low-level create/update from a payload; omit --item-id to create, pass it to update. A create with nodes runs as an empty Workflow/Create followed by a Workflow/Update of the graph (Create rejects node parameters server-side); a failed Update deletes the empty workflow. Prefer import for whole exported files (it does the id-remap and tenant rewrite; save does not).blocks logic workflow publish <id> [--name <n>] [--description <d>] [--dry-run] [--yes] [--json] — publishes a new version, which is what actually activates the workflow: its webhook becomes reachable and schedule triggers are registered.blocks logic workflow unpublish <id> [--dry-run] [--yes] [--json] — takes it out of service; the draft is kept, re-publish to reactivate.The normal loop is: design the graph → write the JSON → logic workflow import --file ... --dry-run → --yes → logic workflow publish. See flows/author-and-import.md.
A workflow export embeds live credentials in cleartext — client secrets, the x-blocks-key header value, composite client credentials sit inside node parameters. Two consequences:
workflow export replaces those values with __REDACTED__. Use --include-secrets only when you deliberately want a runnable copy, and never commit that file.httpRequest/dataAction nodes calling Blocks services, use authenticationType: "blocksAuthentication" (a delegated token, no stored secret) instead of clientCredential with a hard-coded id/secret wherever the call allows it. If a file still carries __REDACTED__ placeholders, import warns — fill them in before the workflow will run.import, save, delete, publish, unpublish all mutate. Same two gates as the rest of this CLI: --dry-run prints exactly what would happen and makes no network call; without it, either --yes or an interactive "yes" is required. Always dry-run first. list/get/export never mutate the server.
logic workflow publish. Import with --publish to do both at once.import assigns fresh ids and finds the destination workflow by name. Two workflows you want kept separate must have different names.dataAction, dataGateway, and sendMail nodes have their projectKey set to the destination project automatically; sendMail templates are namespaced per tenant. A projectShortKey reference can only be updated if you pass --project-slug <slug> — otherwise import warns and leaves it.version is always "v1". Don't invent other version strings; the engine matches nodes by type, and every real node is v1.if node is the only branch. Wire its if-true/if-false handles; all other nodes flow from source.issues/warnings in the output.dataGateway (Inserted) trigger → httpRequest action; author JSON, logic workflow import --file ... --publish --dry-run, then --yes.webhook trigger → httpRequest/code/if → httpRequest create; see references/examples.md.schedule trigger → dataAction read → sendMail.blocks logic workflow export --all --json (secrets redacted by default).blocks logic workflow export <id>, then in the staging project blocks logic workflow import --file <path> --project-slug <slug>.blocks logic workflow unpublish <id> --dry-run, then --yes.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selisedigitalplatforms/blocks-skills --plugin selise-blocks25 skills in this plugin
/blocksStart here for any SELISE Blocks work. Routes a plain-language request — sign-in and projects, SSO, users, roles, MFA, data schemas and records, file storage, translations, mail, notifications, workflows, functions, proxies, secrets, deployments — to the right Blocks skill, and carries the rules every Blocks skill follows: the blocks CLI and @seliseblocks/client SDK only, never raw HTTP to the platform API; --dry-run before --yes; never read the CLI's credential files; when to report a finding. Use whenever work touches SELISE Blocks, the blocks CLI, or @seliseblocks/client./blocks-bootstrapGet a user from any starting state to a working SELISE Blocks setup — CLI installed, logged in, project selected — using the `blocks` CLI, never raw fetch/curl. Detects state from `blocks auth status --json` and `blocks doctor --json`, then routes to a flow: select or create a project, inventory a project that already exists, resolve the app's OIDC client, add a social identity provider, create the first end user, scaffold a new web app, or wire an existing one. Use for a new user, for `not_logged_in`/`project_not_selected`, or whenever login/project/app state is unclear./blocks-captchaConfigure the login captcha of a SELISE Blocks project through the blocks CLI ('captcha list/get/save/enable/disable/delete'): register a reCAPTCHA or hCaptcha site key and secret, switch it on or off, see which configuration blocks-iam actually enforces at login, and retire one. CLI-only, project-scoped; the captcha secret is stored server-side and never shown. Use for 'enable captcha on login', 'change the recaptcha keys', 'why is captcha not showing', 'turn captcha off'./blocks-data-gateway-configurationConfigure a SELISE Blocks project's data model via the blocks CLI — never raw fetch/curl against api.seliseblocks.com. Covers data-source config (data config get/create/update), schema authoring and push (data schema list/pull/push, plus granular get/fields/info/indexes commands), data-access policies (data rules pull/deploy/policy), field-level validation rules (data validation *), and reloading so changes go live (data reload, or the composed data sync). Use for defining, editing, securing, validating, or reloading a project's DATA MODEL — schema fields, access policies, and validation rules./blocks-data-gateway-crudImplement create/read/update/delete against a SELISE Blocks project's runtime Data Gateway using the @seliseblocks/client SDK. Use data.collection(schemaName) for straightforward per-item CRUD, data.graphql() for joins or custom query shapes, and data.schemas.*/data.validations.* for schema/validation metadata. Shows how to wire CRUD into the React 18 + Vite + TanStack Query app that blocks new web scaffolds. Use whenever the user wants to read or write actual records through a Blocks Data schema from app code./blocks-data-storageBuild file and document-management features on SELISE Blocks Data: upload/download, directory trees, cursor-paginated browsing and search, file versions, rename/move/copy, soft delete/trash/restore, sharing, access policies, and inheritance. Use for attachments, file browsers, folders, shared files, permissions, or version history. Use 'blocks data files *' for terminal/admin work and @seliseblocks/client data.files/data.directories/data.objects for app code.Other plugins' skills for the same job