AgentSkillsCN

secrets

利用 secrets CLI 检索或管理各类密钥。适用于访问已存储的凭据、API 密钥或其他敏感数据时使用。

SKILL.md
--- frontmatter
name: secrets
description: Retrieve or manage secrets using the secrets CLI. Use when accessing stored credentials, API keys, or other sensitive data.
allowed-tools: Bash(secrets *)

Secrets Management

Use the secrets CLI to access credentials securely.

Commands

CommandDescription
secrets get <name>Retrieve secret (copies to clipboard)
secrets get <name> --printPrint to stdout (for scripts)
secrets get <name> --networkForce fetch from GCP Secret Manager
secrets get <name> --read-throughCheck local first, fall back to network
secrets store <name> <value>Store a secret locally
secrets store <name> --networkStore in GCP Secret Manager
secrets listList local secrets
secrets list --allList from both local and network

Common Secrets

  • hestia-hass-api-access - Home Assistant API token
  • ntfy-basic-auth-password - ntfy.sh authentication
  • EXA_API_KEY - Exa search API

Usage with HTTPie

bash
http -A bearer -a "$(secrets get hestia-hass-api-access --print)" \
  GET http://hestia.local/hass/api/states

Important

  • Use --print for scripts (default copies to clipboard)
  • Use --ignore-stdin with HTTPie to avoid hangs
  • Never log or print secret values directly
  • Handle missing secrets gracefully

Task

$ARGUMENTS