/selise-blocks:blocks-secretsfrom selise-blocks
Manage a SELISE Blocks project secret store via the blocks CLI: create, rotate, lock, soft-delete, set access, and read audit trails without exposing values.
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.
This skill covers the project's secret store: one record per named secret, with a status (active, locked, deleted), an optional access list (user ids and roles allowed to read the value), a rotation history and a full audit trail.
The CLI never shows a secret value. There is no command that prints one: get, list and audit return metadata only, dry-run output redacts values, and the only way a value enters the store is through set, set-many or rotate. If the user needs to read a value, that happens in the Blocks portal, not through the CLI or an agent.
CLI-only, no SDK path. There is no @seliseblocks/client namespace for the secret store. 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.
| Command | Notes |
|---|---|
blocks secrets list [--search s] [--status active|locked|deleted] [--include-deleted] [--organization-id id] [--page n] [--page-size n] | Metadata pages {data, totalCount}. Never a value. Read-only. |
blocks secrets get <secretId> | Metadata of one secret, including access and canReadValue. Read-only. |
blocks secrets set <name> --value-file p | --value-env NAME | --value text [--description] [--user-ids a,b] [--roles a,b] | Always creates and returns {secretId}. Mutating. |
blocks secrets set-many --env-file <dotenv> [--description] | One secret per KEY=value line, named after the key; returns {secretIds: {name: id}}. Mutating. |
blocks secrets update <secretId> [--name] [--description] | Metadata only. Mutating. |
blocks secrets rotate <secretId> --value-file p | --value-env NAME | --value text | Replaces the value in place; id, access list and audit stay. Mutating. |
blocks secrets lock|unlock <secretId> | Locked secrets refuse value reads and rotation. Mutating. |
blocks secrets delete|restore <secretId> | Delete is soft; restore undoes it. Mutating. |
blocks secrets access <secretId> [--user-ids a,b] [--roles a,b] [--merge] [--clear] | Who may read the value. Replaces by default; --merge adds; --clear removes the restriction. Mutating. |
blocks secrets audit [<secretId>] [--action a] [--actor-user-id id] [--from iso] [--to iso] [--page] [--page-size] | Every set, read, rotation, lock, delete, access change and denial, with actor and outcome. Read-only. |
Every secret the CLI creates is of the default type; there is no flag to choose another.
set and rotate take the value from exactly one source. Prefer the first two:
printf '%s' "$API_KEY" > ./key.txt
blocks secrets set stripe-api-key --value-file ./key.txt --description "Stripe live key" --dry-run --json
blocks secrets set stripe-api-key --value-file ./key.txt --description "Stripe live key" --yes --json
# -> {"secretId": "..."} keep this id: it is how every other command addresses the secret
blocks secrets set stripe-api-key --value-env STRIPE_KEY --yes --json # value read from the environment
blocks secrets rotate <secretId> --value-file ./new-key.txt --yes --json # same id, new value
--value <text> works but lands in shell history and process listings; use it only when the other two are impossible. Dry-run output redacts the value ("value": "***"). Do not read the file or the variable back yourself — the point of the file/env sources is that the value never has to appear in a transcript.
set never updates. Names are not unique, so calling set twice with the same name creates two secrets. To change an existing secret's value use rotate; for its name or description use update. When the user says "update the secret", ask which they mean if it is not obvious — or check secrets list --search <name> first to see whether one already exists.
Bulk from a dotenv file:
blocks secrets set-many --env-file ./service.env --dry-run --json # names + count, values redacted
blocks secrets set-many --env-file ./service.env --yes --json # {"secretIds": {"DB_PASSWORD": "...", ...}}
blocks secrets access <secretId> --roles admin,devops --yes --json # REPLACE the list with these roles
blocks secrets access <secretId> --user-ids <userId> --merge --yes --json # ADD to whatever is there
blocks secrets access <secretId> --clear --yes --json # remove the per-secret restriction
The server replaces the list on every call, which is why the CLI defaults to replace and makes --merge explicit. Check the current list with secrets get (its access field) before replacing. The access list governs who may read the value in the portal or from services; it changes nothing about the CLI, which never reads values.
--dry-run before --yes — alwaysEvery mutating command follows the standard blocks discipline: --dry-run prints the request (values redacted) without calling the API; --yes skips the confirmation prompt. Omitting both drops into an interactive "Type 'yes' to continue" prompt, which hangs in a non-interactive run — always pass one or the other.
secrets delete keeps the vault value and marks the record deleted; secrets list --include-deleted still shows it and secrets restore brings it back. There is no hard delete from the CLI.unlock; rotate on a locked secret fails with 409 invalid_state.blocks use <tenantId>).secrets set <name> --value-file ... (dry-run first, keep the returned secretId).secrets list --search, then secrets rotate <id> --value-file ....secrets get <id> and read access.secrets access <id> --roles devops --merge.secrets audit <id> --from <iso> --to <iso>.secrets set-many --env-file .env (dry-run first).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