name: get-secret-token
description: Import keys from .secrets to environment variables and convert tokens for other tools/agents. Use this when you need to authenticate with external services (OpenAI, GitHub, Eudic, etc.).
Get Secret Token
This skill helps you manage and use secret tokens stored in /home/shanaae/.shanaae/configs/.secrets. It instructs the agent to load these secrets into the environment and map them to the variable names required by other tools or agents.
Workflow
Read Secrets: The agent should first read the secrets file to identify available keys:
/home/shanaae/.shanaae/configs/.secretsImport to Environment: For any key needed in the current session, the agent must run the
exportcommand in the terminal.Example:
export MY_TOKEN='value_from_file'Token Conversion / Mapping: Different tools require different environment variable names. Use the mapping table below to convert the stored keys (left) to the target environment variables (right) required by specific tools.
Service / Tool Stored Key in .secretsTarget Environment Variable / Argument OpenAI OPENAI_API_KEY_OPENAPI(default)OPENAI_API_KEY_OBSIDIANOPENAI_API_KEY_3OPENAI_API_KEYGitHub GITHUB_TOKEN_MCP(preferred for MCP)GITHUB_TOKEN_REFINEDGITHUB_TOKENGITHUB_PATEudic EUDIC_TOKENEUDIC_TOKENDeepSeek DEEPSEEK_API_KEYDEEPSEEK_API_KEYCloudflare CLOUDFLARE_DNS_TOKENCLOUDFLARE_API_TOKENModelScope MODELSCOPE_API_KEY_OPENCODEMODELSCOPE_API_TOKENTickTick TICKTICK_CLIENT_IDTICKTICK_CLIENT_SECRETTICKTICK_CLIENT_IDTICKTICK_CLIENT_SECRETSiliconFlow SILICONFLOW_API_KEYSILICONFLOW_API_KEYTravily TRAVILY_RECOVER_CODETRAVILY_API_KEY(if applicable)Context7 CONTEXT7_API_KEYCONTEXT7_API_KEYUsage Instructions:
- When a user asks to use a tool (e.g., "Use Eudic to save this word"), check if
EUDIC_TOKENis set. - If not, read
.secrets, findEUDIC_TOKEN, and runexport EUDIC_TOKEN='...'. - If a tool fails due to authentication, verify if the correct environment variable is exported.
- When a user asks to use a tool (e.g., "Use Eudic to save this word"), check if
Notes
- Always use
export VAR='VALUE'with single quotes to avoid issues with special characters (like spaces or symbols in the token). - If multiple keys exist for the same service (e.g., OpenAI), ask the user for clarification or default to the most general one (e.g.,
_OPENAPIor_MCP).