/selise-blocks:blocksfrom selise-blocks
Routes SELISE Blocks requests to the right skill and enforces platform rules: blocks CLI and @seliseblocks/client SDK only, dry-run before apply.
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.
None: SKILL.md is the whole skill.
Plugin version: 1.0.0. This skill routes; the skill it routes to owns the flow. Don't duplicate a skill's steps from memory.
Never expect the user to name a skill. There is no /skill invocation, no slash command, no menu. Users describe what they want in plain language — "let users upload a profile picture", "why does login redirect back to the login page", "add German translations" — and you map that to the right skill and execute it.
skills/ in the blocks-skills repo.The routing table exists so you can decide unaided. Treat a request that names no skill as the normal case, because it is.
blocks-bootstrap.SKILL.md (see Loading a skill below).The blocks CLI is required for terminal/admin work:
npm install -g @seliseblocks/cli-os@latest
blocks --version
Do not install it automatically. If blocks --version fails, ask first. The SDK for app code is npm install @seliseblocks/client@latest.
Read-only probe when state is unknown:
blocks --version
blocks auth status --json
blocks doctor --json
If blocks is missing, stop the probe and ask before installing. Don't claim bootstrap is runnable until the CLI exists.
Never guess a command or a flag — ask the CLI. blocks help <command> prints one command's exact positionals, flags, scope, and whether it mutates; blocks help <family> lists a family; blocks --help --json lists every command. Read that before running anything unfamiliar, and prefer it over any command spelling you remember, including one from this file. Set BLOCKS_STRICT_FLAGS=1 in scripted runs so an unrecognized flag hard-fails instead of being warned and ignored.
Skills are files, not a CLI command. They reach an agent one of two ways, and a given repo uses one, not both — with both, the agent sees every skill twice:
selise-blocks plugin installs every skill, and the agent lists and loads them by name like any other plugin skill.BOOTSTRAP.md). Skills live on disk as .agents/skills/<name>/SKILL.md, the cross-agent location most coding agents read natively. An agent that only reads its own directory (Claude Code reads .claude/skills/, Qwen Code reads .qwen/skills/) finds the same set through a pointer stub there whose body sends you to the .agents copy. Read the .agents copy directly.There is no blocks skill list/show/add command, and the CLI package does not bundle the skill tree. Don't reach for those commands, and don't treat their absence as a broken install.
If a skill named in the routing table isn't installed, the fix is to update the plugin, or re-run the vendoring runbook (BOOTSTRAP.md in the blocks-skills repo) — not to fetch the file ad hoc or write a replacement from memory. The published catalog is skills/ in the blocks-skills repo; read from there only to confirm a name, never as a substitute for installing.
fetch/curl against api.seliseblocks.com. Use the blocks CLI or the @seliseblocks/client SDK. Every skill states which surface it uses. Bypassing them with raw HTTP is the failure mode these skills exist to prevent. The one sanctioned raw curl is the anonymous report endpoint at seliseblocks.com/api/reports (see Report what you find), which is not the platform API.opt-in or the user asked for that report, and never put anything identifying or secret in one. The rules are in Report what you find below.--dry-run before --yes on every mutating CLI command. Get human confirmation before destructive or cloud-mutating operations.blocks commands. To repair broken state use blocks login, blocks auth remove <account>, blocks projects list --json, blocks use <tenantId>.blocks projects create accepts the Blocks terms on the user's behalf (isAcceptBlocksTerms, isUseBlocksExclusively). Never run it without explicit consent to that, and never to "try something" — it provisions real cloud tenancy. Run --dry-run --json first, then --yes only after approval. It creates exactly one app in the dev environment; further environments are portal-only.blocks secrets get and friends exist for operating the store, not for printing values into a conversation or a file the user did not ask for. Never work around a missing capability with raw HTTP.When something in Blocks does not behave as documented, cannot do what you need, or took real effort to figure out, it is worth a report to the Blocks team: a bug, a quirk, a limitation, a learning, or a suggestion. Reports are anonymous, need no account, and go to https://seliseblocks.com/api/reports — a website endpoint, not the platform API, so the raw-HTTP rule above does not apply to it.
Whether you may send one on your own is the user's choice, recorded once at bootstrap in .agents/skills/.blocks-reporting. Read that file before deciding:
reporting= | What you do |
|---|---|
opt-in | File a report whenever you hit something worth reporting, without asking each time. Tell the user what you sent and the id that came back. |
opt-out, or the file is missing | Never send anything on your own initiative. You may still say that something looks worth reporting and offer to file it. |
A plugin install has no such file until the user asks for one, so it starts as opt-out. Turning reporting on writes .agents/skills/.blocks-reporting in the repo the same way.
Two things hold regardless of the setting:
reporting=opt-in and reporting=opt-out — and confirm what it now says. Nothing else needs to change; the file is the whole preference.Read https://seliseblocks.com/api/reports once per session; it explains every field and what the answers mean.
In a temp directory (mktemp -d), not the repo, write blocks-report.md starting from https://seliseblocks.com/api/reports/template. Fill in cli (blocks --version), sdk (the installed @seliseblocks/client version, if used), agent (the harness, never a person), model, and platform. For skills, use name@<version>. Skills carry no version of their own: when vendored, use the first seven characters of commit (skills_commit in an older stamp) from .agents/skills/.blocks-skills-source; when installed as a plugin, use plugin-<version> with the plugin version stated in the blocks skill. Set security: true when the finding is a security risk. Say what was run, what came back, what was expected, and how to reproduce it.
Read the file back for anything listed under What never goes in a report, then validate and send:
curl -fsS -X POST https://seliseblocks.com/api/reports/validate -H "Content-Type: text/markdown" --data-binary @blocks-report.md
curl -fsS -X POST https://seliseblocks.com/api/reports -H "Content-Type: text/markdown" --data-binary @blocks-report.md
Fix anything validate returns as an error before sending. A 201 means it is recorded; tell the user the id from the answer. On 429 wait for Retry-After; on 503 keep the file and retry later rather than dropping the report.
Nothing that identifies a person or grants access: no names, emails, tokens, secrets, cookies, or paths under a home directory. Trim logs to the relevant lines and read them for leaks before sending — the endpoint strips some of this as a safety net, but you are the guard, not it. Tenant ids and project keys are public and fine. Keep the user's application code and business data out unless a minimal excerpt is needed to reproduce the finding, and strip anything identifying from that excerpt too.
Surface: CLI = terminal/admin, project-scoped · SDK = @seliseblocks/client in app code · Both = each surface covers part of the job.
| Skill | Use when | Surface |
|---|---|---|
blocks-bootstrap | New user, or not_logged_in / project_not_selected. Detects state via blocks auth status --json / doctor --json, closes install/login/project gaps, resolves the app OIDC client, scaffolds with blocks new web, and runs blocks init inside the app dir only when the work needs project-local Blocks files. Run before any other skill when state is unknown. | CLI |
| Skill | Use when | Surface |
|---|---|---|
blocks-data-gateway-configuration | Defining, editing, securing, validating, or reloading the data model — schema fields, access policies, validation rules. data config/schema/rules/validation/reload, or the composed data sync. | CLI |
blocks-data-gateway-crud | Reading or writing actual records through a Data schema from app code. data.collection(name) for per-item CRUD, data.graphql() for joins/custom shapes. | SDK |
blocks-data-storage | File and document features: upload/download, directory trees, paginated browse/search, versions, rename/move/copy, trash/restore, sharing, ACLs, inheritance. | Both |
blocks-storage-configuration | Choosing/rotating which provider backs the file tree (Azure Blob, S3-compatible, local/SFTP) — hosts, credentials, region/endpoint, strategy. Not file operations. | CLI |
| Skill | Use when | Surface |
|---|---|---|
blocks-iam-account | The signed-in user's own account: activation, forgot/reset/change password, logout(-all), profile bootstrap (iam.me/updateMe), signup, login-options discovery. | SDK |
blocks-iam-users | Managing other users: invite, edit, activate/deactivate, list/search, grant/revoke roles and org access. | Both |
blocks-iam-access-control | RBAC. Two facets: read-only feature-gating by the current user's roles/permissions (common, safe), and creating/editing role & permission definitions (sensitive, human-confirmed only). | Both |
blocks-iam-organizations | Multi-tenant workspaces: org switcher, switching active org context (SDK-only), public signup policy, and — human-confirmed — creating/editing orgs and signup config. | Both |
blocks-iam-mfa | Self-service MFA for the signed-in user (TOTP enroll/verify, OTP, method switch, disable, backup codes) plus tenant-wide MFA policy admin. Not admin-forcing MFA onto another user. | Both |
blocks-iam-sso-oidc-configuration | Enabling SSO: register an OIDC client and identity provider. Portal remains a valid alternative, especially for federated providers (Google/Azure/Okta). Not blocks login — that's the CLI's own login. | CLI |
blocks-iam-sso-oidc-implementation | Extending or debugging the hosted login flow the scaffold already ships: redirectToProvider → /login/callback → session, AuthProvider, RequireAuth guards, token refresh, redirect loops, sessions that don't stick. | SDK |
blocks-captcha | Login CAPTCHA for the project: register a reCAPTCHA or hCaptcha site key and secret, enable/disable, list and inspect configs via captcha list/get/save/enable/disable/delete. Not the frontend widget itself. | CLI |
| Skill | Use when | Surface |
|---|---|---|
blocks-localization-configuration | Authoring translations: local i18n JSON dictionaries, validate/push/pull, languages and modules, glossary terms, AI translation suggestions. | CLI |
blocks-localization-implementation | Consuming translations at runtime: language/module discovery, loading dictionaries, t() lookup, a language switcher that reloads and re-renders. | SDK |
| Skill | Use when | Surface |
|---|---|---|
blocks-mail | Transactional email — mail.send()/sendToAny() from app code, or administering SMTP/inbound config, templates, and mailbox history. | Both |
blocks-notifier | Sending real-time/offline notifications and managing a user's own notification inbox (notify, list, unread, mark-read). | Both |
blocks-notification | Configuring tenant notification channels — a different backing service from notifier, and not for sending. No SDK path exists. | CLI |
| Skill | Use when | Surface |
|---|---|---|
blocks-workflow | Event-driven backend logic without a separate backend: react to Data Gateway inserts/updates/deletes, expose a webhook, run on a schedule, call external APIs. Authors the workflow graph as JSON and loads it with logic workflow import/export/save/publish/unpublish. No SDK path. | CLI |
blocks-functions | Custom backend code: a Node handler the platform runs on demand. Write index.js, then logic function save/test/deploy (plus runs, logs, replay); call it from app code with blocksClient.logic.functions.call()/invoke() or from a workflow function step. Triggers (methods, Public vs Token, sync vs async), variables and {{secret.<id>}} references. | Both |
blocks-proxy | Calling a third-party API without exposing its URL or keys: configure a proxy with logic proxy * (routes, {{$VAR.name}} secret headers, access, timeout/retry/breaker, rate limit, OpenAPI import, versions, request logs), then call it with blocksClient.logic.proxy.request(). | Both |
| Skill | Use when | Surface |
|---|---|---|
blocks-release-deployment | Triggering and inspecting Release builds/deploys: release deploy, release status, builds get/list. Triggers a configured pipeline only — no artifact upload. | CLI |
blocks-secrets | The project secret store: create named secrets from a value, file or dotenv, rotate, lock/unlock, delete/restore, access checks and audit via secrets *. Values are never echoed back. | CLI |
| Skill | Use when | Surface |
|---|---|---|
blocks-frontend-local-https | Running a scaffolded app over HTTPS on its real project domain — required for hosted login, since plain HTTP and localhost never receive the session cookie. Covers npm run cert, trusting the cert, the hosts entry, and "SSO cookie not set" / Vite "Blocked request" errors. | Scaffold |
blocks-iam-account / blocks-iam-users / blocks-iam-access-control. Pick by whose record changes.notifier sends, notification configures. Different services.blocks-workflow only when the logic must run server-side on an event, webhook, or schedule.blocks-proxy; code you write (validation, computation, several calls, a webhook handler) is blocks-functions; a multi-step graph started by a data event or schedule is blocks-workflow, which can call both as steps.blocks-data-storage operates on files; blocks-storage-configuration chooses the provider underneath.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
25 skills in this plugin
/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./blocks-frontend-local-httpsRun a scaffolded (`blocks new web`) Blocks app locally over HTTPS on its real project domain — required for hosted IAM login, since plain HTTP or localhost never gets the session cookie. The scaffold already automates cert generation (npm run cert, no OpenSSL needed) and HTTPS serving via vite.config.ts. Covers running that flow, trusting the cert, the hosts-file entry, and troubleshooting. Use when running a scaffolded app over HTTPS, hitting 'SSO cookie not set' / Vite 'Blocked request' errors, trusting the dev cert, or asking why local login redirects back but doesn't stay signed in.npx claudepluginhub selisedigitalplatforms/blocks-skills --plugin selise-blocksOther plugins' skills for the same job