/kagura-cli:secretfrom kagura-cli
Store and retrieve zero-knowledge secrets with the `kagura secret` CLI — age recipient encryption, local decrypt (memory-cloud never sees plaintext). Use for keygen/enroll, put/get, grant/revoke/rotate, owner-only delete, exec-with-injected-env, and audit verification.
Ships in kagura-cli. 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.
Drive the kagura secret command group: secrets are encrypted to recipients'
age/X25519 public keys and decrypted locally, so memory-cloud only ever
stores armored ciphertext. Thin wrapper around the installed kagura CLI.
kagura --version; if missing → uv tool install 'kagura-memory[secret]'
(or pip install 'kagura-memory[secret]'), then stop. The [secret] extra
is required — it pulls in pyrage (age crypto) and keyring (key custody).kagura auth status;
if not authed, run the auth skill first.kagura secret keygen creates an age keypair, stores
the private key in the OS keychain, and registers the public key (it lands
pending until a workspace owner approves it).kagura secret keygen --label laptop # enroll: keypair → keychain, register pubkey
kagura secret approve <pubkey-id> # owner: approve a pending key (verify fingerprint OOB)
kagura secret put db-prod < secret.txt # store; value from stdin/--from-file (never argv)
kagura secret get db-prod | your-tool # fetch + local decrypt (see guardrails below)
kagura secret exec --as DATABASE_URL=db-prod -- ./server # inject into a child env, no disk/scrollback
kagura secret grant db-prod --to <pubkey-id> # re-encrypt to the expanded recipient set
kagura secret revoke db-prod --to <pubkey-id># revoke a grant — then rotate
kagura secret rotate db-prod # encrypt a NEW value to the remaining recipients
kagura secret list # secret metadata (never the values)
kagura secret delete db-prod # owner-only hard delete (cleanup, not invalidation — rotate first; needs memory-cloud 0.41.0+)
kagura secret audit-verify # verify the tamper-evident audit chain
get refuses to print to
a terminal by design — keep it piped or write to a file (-o FILE, mode 0600).
Do not pass --reveal on the user's behalf.ps/shell-history leak): always pipe
it to put/rotate via stdin or --from-file.keygen prints only the public key +
fingerprint — relay those, never any AGE-SECRET-KEY... material.revoke, run kagura secret rotate and regenerate the
upstream provider credential to actually contain a leak.kagura secret delete is owner-only cleanup:
it removes the stored ciphertext + all versions + grants, but does not
un-share a value a recipient already fetched, nor rotate the live upstream
credential. Confirm with the user before deleting, and steer them to rotate the
upstream credential first, then delete — never delete on their behalf
without that warning.keygen/approve, surface the fingerprint so the user can verify it
out-of-band (TOFU) before trusting the key.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/authManage Kagura Memory authentication — log in (OAuth device flow), check status, refresh tokens, and list or switch profiles. Use when the user wants to sign in to Kagura, see which account/workspace is active, or manage multiple profiles./doctorDiagnose the local Kagura Memory CLI setup (install, auth, MCP wiring). Use before other kagura skills, or whenever a kagura command reports a blocked or misconfigured environment./filesUpload, list, delete, and get download URLs for files in Kagura Memory's file storage (sha256 integrity-bound; an upload can optionally be bound to an owning context for access control). Use when the user wants to attach or manage raw files in their workspace.npx claudepluginhub kagura-ai/kagura-memory-python-sdk --plugin kagura-cli