/selise-blocks:blocks-captchafrom selise-blocks
Configures login captcha for SELISE Blocks projects via the blocks CLI. Manages reCAPTCHA, hCaptcha, or built-in bcaptcha providers: list, get, save, enable, disable, and delete configurations. CLI-only, project-scoped.
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.
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. --project applies to CLI commands only, never SDK calls.
A captcha configuration tells blocks-iam whether to demand a captcha on password login, with which provider (recaptcha, hcaptcha, or the built-in bcaptcha), which site key the login page renders, and which generator (EasyCaptchaGenerator or HardCaptchaGenerator). The provider secret is stored server-side; reads return a secretId reference only, never the value, and nothing in the CLI reveals it.
CLI-only, no SDK path. Prerequisite: a project is selected (blocks use <tenantId>); every command runs on an impersonated project token. If login/project state is unknown, run the blocks-bootstrap skill first.
A project may hold several configurations, and more than one may be enabled. blocks-iam enforces exactly one: the first enabled record in id order. Every captcha list, enable and disable output therefore carries activeForLogin — read that field, never assume the record you just enabled is the enforced one.
blocks captcha list --json
# {"activeForLogin": "<id or null>", "configs": [{"id", "isEnable", "provider", "captchaKey", "captchaGenerator", "secretId"}], "totalCount": n}
blocks captcha get <id> --json
activeForLogin: null means login never asks for a captcha.
| Command | Notes |
|---|---|
blocks captcha list | All configurations plus activeForLogin. Read-only. |
blocks captcha get <id> | One configuration; secretId reference, never the secret. Read-only. |
blocks captcha save [<id>] --provider p [--captcha-key k] [--captcha-secret s] [--generator g] --enable|--enable=false | Omit <id> to create, pass it to update. An update reads the stored record and merges, so --captcha-secret alone rotates the secret without disabling the configuration or blanking its site key; --provider is only required on create. Mutating. |
blocks captcha enable <id> / blocks captcha disable <id> | Flip only isEnable; nothing else changes. Mutating. |
blocks captcha delete <id> | Removes the record and retires its stored secret. Mutating. |
blocks captcha save --provider recaptcha --captcha-key <siteKey> --captcha-secret <secret> \
--generator EasyCaptchaGenerator --enable --dry-run --json
blocks captcha save --provider recaptcha --captcha-key <siteKey> --captcha-secret <secret> \
--generator EasyCaptchaGenerator --enable --yes --json
--enable or --enable=false. The server stores an omitted flag as disabled, which would silently create a configuration login never uses; the CLI refuses (captcha_enable_required) until you say which you want.--provider is validated against what blocks-iam can verify: recaptcha, hcaptcha, bcaptcha. The portal offers the first two.--captcha-secret semantics differ between create and update. On create it stores the secret. On update (an <id> is passed) it replaces the stored secret. Omitted or empty, the stored secret is left untouched — so an update that only changes the site key does not need the secret again.--dry-run output ("captchaSecret": "***") and is never echoed back by any command. Pass it from a variable rather than typing it into a prompt or transcript.Update the site key only:
blocks captcha save <id> --provider recaptcha --captcha-key <newSiteKey> --yes --json
blocks captcha enable <id> --dry-run --json # shows activeForLoginAfter before touching anything
blocks captcha enable <id> --yes --json
blocks captcha disable <id> --yes --json
enable/disable read the record and re-save it with only isEnable changed and no secret, so keys and the stored secret are untouched. If another enabled record sorts first, the output's note (also printed to stderr) says so — disable that one to make yours live. A record already in the requested state reports upToDate: true and sends nothing.
blocks captcha delete <id> --dry-run --json # shows whether the record is currently enabled
blocks captcha delete <id> --yes --json
The server retires the stored secret, then removes the configuration. Deleting the enforced configuration stops requiring a captcha at login — the confirmation says so. The configuration cannot be restored; re-create it with save.
--dry-run before --yes — alwayssave, enable, disable and delete follow the standard blocks mutation discipline: --dry-run prints the plan without calling the API; --yes skips the confirmation. Omitting both drops into an interactive prompt that hangs in a non-interactive run.
activeForLogin.captcha save <id> --captcha-secret <new>; nothing in the CLI reveals the stored one.captcha_required and the site key; an invalid answer is captcha_invalid. Those are login-flow responses, not CLI errors.blocks use <tenantId>).captcha save --provider recaptcha --captcha-key ... --captcha-secret ... --enable (dry-run first).captcha list to find activeForLogin, then captcha disable <id>.captcha list --json and check activeForLogin (null, or a record whose keys are wrong).captcha save <id> --provider hcaptcha --captcha-secret <new>.captcha delete <id> (dry-run first).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
25 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-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.npx claudepluginhub selisedigitalplatforms/blocks-skills --plugin selise-blocksOther plugins' skills for the same job