Add Setting Env
This skill adds a specified environment variable to the conversation context, allowing for dynamic and personalized interactions.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add add-setting-env npx -- -y @trustedskills/add-setting-env
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"add-setting-env": {
"command": "npx",
"args": [
"-y",
"@trustedskills/add-setting-env"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill, add-setting-env, allows AI agents to configure environment variables. It can set these variables directly or use a provided file containing key-value pairs. This is useful for providing sensitive information or customizing the agent's behavior without hardcoding values into its core logic.
When to use it
- Securely pass API keys: Instead of embedding API keys in code, use this skill to load them from an environment variable.
- Configure database connections: Set connection strings and credentials via environment variables for different environments (development, testing, production).
- Customize agent behavior: Adjust parameters like temperature or maximum tokens by setting environment variables that the agent can access.
- Manage sensitive information: Keep secrets separate from code to improve security and simplify updates.
Key capabilities
- Setting environment variables directly.
- Loading environment variables from a file.
- Provides a secure method for managing configuration data.
Example prompts
- "Set the
API_KEYenvironment variable to 'your_api_key'." - "Load environment variables from the file
/path/to/my_env_file.txt." - "Configure the database connection using environment variables."
Tips & gotchas
The agent needs appropriate permissions to read files if loading from a file path. Ensure that the specified file exists and is accessible by the AI agent's execution environment.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.