/flow-skills:secrets-managementfrom flow-skills
Get, put, list, and delete secrets in the local OS-keychain-backed Fused secrets store (keyed by ~/.openfused/secrets.json as the keychain account; no file is written). Use when managing Fused secrets through live UDFs.
Ships in flow-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The local secrets store exposed as live UDFs. Reads and writes the same
OS-keychain store as LocalSecretsBackend (~/.openfused/secrets.json, or the
path named by OPENFUSED_SECRETS_FILE — used as the keychain account key) — so
this surface, the fused secrets CLI, and the in-sandbox get_secret shim
all share one live store. An agent drives these UDFs over the local execution
layer started with fused dev serve.
Four UDFs over the local OS-keychain secrets store: list (names), get (reveal a
value), put (create/update), delete (remove). Local backend only.
The split is: read via SQL ({{list}}, {{get}}), write via UDF
(put, delete). Both endpoints are addressed with
?workspace=_core&project=secrets-management.
Start the local execution layer. fused dev serve binds a loopback server,
prints ONE JSON handshake line, then runs in the foreground:
fused dev serve
{"origin": "http://127.0.0.1:<port>", "port": <port>, "token": "<token>", "pid": <pid>}
# Export the origin + token from that handshake line:
ORIGIN=http://127.0.0.1:<port>
TOKEN=<token>
# Read — POST to the SQL endpoint
curl -s -X POST "$ORIGIN/api/exec/sql?t=$TOKEN&workspace=_core&project=secrets-management" \
-d '{"sql": "SELECT * FROM {{list}}"}'
curl -s -X POST "$ORIGIN/api/exec/sql?t=$TOKEN&workspace=_core&project=secrets-management" \
-d '{"sql": "SELECT * FROM {{get?name='\''openfused-token'\''}}"}'
# Write — POST to the UDF endpoint
curl -s -X POST "$ORIGIN/api/exec/udf?t=$TOKEN&workspace=_core&project=secrets-management" \
-d '{"udf": "put", "overrides": {"name": "openfused-token", "value": "s3cr3t"}}'
curl -s -X POST "$ORIGIN/api/exec/udf?t=$TOKEN&workspace=_core&project=secrets-management" \
-d '{"udf": "delete", "overrides": {"name": "openfused-token"}}'
Response shape: {"data": <result>, "error": null} on success;
{"data": null, "error": "<message>"} on failure.
Store path resolution, highest precedence first:
secrets_file parameter on any operation (e.g. get(name="x", secrets_file="/path/to/secrets.json")) — use this to run the skill standalone against your own store, no environment setup required.$OPENFUSED_SECRETS_FILE env var when set.~/.openfused/secrets.json (default).Unlike the task-management UDFs — stdlib-only over a plain-JSON file — this store
lives in the OS keychain. The keychain item's coordinates are
service=<service>, account=<resolved store path>. The value is a JSON
name → value map stored directly in the keychain item — no on-disk file.
The keychain service name is likewise resolvable per operation via the optional
service param (precedence over $OPENFUSED_KEYRING_SERVICE, default "openfused"),
so two standalone uses on one machine can keep separate namespaces. Both secrets_file
and service default to today's values when omitted, so existing callers are unaffected.
Each UDF therefore depends on keyring and inlines the exact keychain-access logic
of the local secrets backend. Keeping that logic identical is the interop
contract: a value written by put must be readable by LocalSecretsBackend.get_secret,
and vice-versa.
Keychain access prompt (interop note). The materialized
_corevenv interpreter is a different binary than the one that started the MCP server; macOS may raise a per-binary access prompt the first time it reads the keychain item. Grant access when prompted. If the venv binary is denied access or the run is headless, the operation raises aRuntimeError(there is no key-file fallback).
All parameters arrive as strings. Empty string is the zero value. Missing-secret
reads/deletes return {"ok": false, "error": "not found"}.
list(prefix: str = "") -> list[dict]
Returns [{"name": <name>}, ...] sorted by name, optionally filtered by prefix.
Names only — never values (mirrors the app's list adapter). Deliberate divergence
from LocalSecretsBackend.list_secrets, which also returns arn.
SQL shorthand: SELECT * FROM {{list}}.
get(name: str = "") -> dict
Reveals one secret as {"name", "value"}; missing → the not-found ack. Returns
cleartext through the response envelope (accepted for this surface).
put(name: str = "", value: str = "") -> dict
Creates or overwrites a secret; always writes encrypted. Returns
{"name", "arn"} (store path as arn). No function_prefix gate (AWS-only).
delete(name: str = "") -> dict
Removes a secret; returns {"deleted": <name>} or the not-found ack. Ungated
(mirrors the app's --yes delete route).
sql-table widgetThe list UDF is enough to render the secret inventory as a table — no other UI.
A saved sql-table widget reads through {{_core.secrets-management.list}}, so a
single JSON-UI node gives you a sortable / filterable grid of secret names.
It is backed by list, never get — the widget shows names only and never
puts a cleartext value on the rendered surface. There is no widget seam for the
write ops (put/delete); mutate through the UDF endpoint directly.
The config is part of this _core project's source, which is cloned at runtime
from the external _core git repo (no longer bundled in the wheel) into
~/.openfused/core/. It materializes alongside the UDFs at
~/.openfused/core/secrets-management/widgets/secrets_table.json, so it is
available on first run with no authoring step — open it with:
fused widget open ~/.openfused/core/secrets-management/widgets/secrets_table.json
The shipped config:
{
"type": "sql-table",
"props": {
"title": "Secrets",
"sql": "SELECT name FROM {{_core.secrets-management.list}} ORDER BY name",
"sortable": true,
"filterable": true
}
}
Where it resolves. The
{{_core.*}}cross-project ref needs an_coreresolve context, which today means the flow app's dev serve (fused dev serve). The deployed-serve bundle has no_coreresolve context, so a public URL is not supported for this widget.
scripts/
├── pyproject.toml # deps: duckdb/pandas/pyarrow (SQL resolver) + keyring (store)
├── list/ {main.py, spec.md}
├── get/ {main.py, spec.md}
├── put/ {main.py, spec.md}
└── delete/ {main.py, spec.md}
Source lives in the external _core git repo (cloned at runtime to
~/.openfused/core/secrets-management/, read-only) — no longer bundled in the wheel.
The local-backend venv materializes at
~/.openfused/core/secrets-management/scripts/.venv on first startup. Adding a new op
= add scripts/<name>/{main.py,spec.md}.
_store_path, _load, _save, …)
are duplicated in every main.py — no cross-UDF imports in the sandbox. Keep every
copy identical to the others and to the local secrets backend.openfused.* (the exec sandbox shadows the package with a
shim that exposes only get_secret); reach the store directly via the inlined
keychain helpers._save calls keyring.set_password directly (no on-disk file write) to stay
byte-identical to the backend's writer.list read UDF is pinned cache_max_age = "0s" in openfused.toml, so the
secret inventory is always read live from the keychain — never a memoized snapshot.
Do not override this to a non-zero value.secrets_file param, else OPENFUSED_SECRETS_FILE,
else the default; the keychain service name resolves from the per-call service param,
else OPENFUSED_KEYRING_SERVICE, else "openfused".openfused.toml (opens in a new tab)scripts/delete/main.py (opens in a new tab)scripts/delete/spec.md (opens in a new tab)scripts/get/main.py (opens in a new tab)scripts/get/spec.md (opens in a new tab)scripts/list/main.py (opens in a new tab)scripts/list/spec.md (opens in a new tab)scripts/put/main.py (opens in a new tab)scripts/put/spec.md (opens in a new tab)scripts/pyproject.toml (opens in a new tab)scripts/tests/conftest.py (opens in a new tab)scripts/tests/test_main.py (opens in a new tab)scripts/uv.lock (opens in a new tab)widgets/secrets_table.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (fusedio/flow-skills) — no native marketplace selected
npx claudepluginhub p/fusedio-flow-skills6 skills in this plugin
/agents-managementCreate, read, update, delete, clone, and reset entries in the Fused App agent roster (~/.openfused/app/agents/). Use when managing the Fused agent roster./artifact-chat-managementRead and write the durable per-artifact chat store (records + per-chat NDJSON transcripts) in the Fused App store. The cross-agent-visible system of record for artifact chats — the strictly read-only conversation attached to a widget / UDF / reference / project asset. Use when inspecting or persisting artifact-chat state, or — from ANY agent — to learn what users have asked about an artifact./feedback-managementRead AND write interaction cards — the typed, idempotent, resolvable HITL decisions an agent posts into a task thread — in the Fused App state store (~/.openfused/app/state.json) through live UDFs. The system of record for interaction cards. Use when working with Fused interaction cards, the inbox decision feed, or the app's feedback state./run-managementRead and write agent run records (and read per-run transcripts) in the Fused App store. The durable system of record for runs. Use when inspecting or persisting Fused agent run state — status, costs, prompts, transcripts./task-managementRead, create, assign, and re-status tasks in the Fused App task store (~/.openfused/app/state.json) through live UDFs, and render the standalone task-board widget. Use when working with Fused tasks, the kanban/task board, or the app's task state.