update_skill_env
Update environment variables for skills by replacing the entire .env file with new KEY=VALUE pairs, making variables available to all scripts in the skill.
Instructions
Create, update, or replace the .env file for a skill with new environment variables.
This tool manages skill-specific environment variables used by scripts:
PARAMETERS:
skill_name: The name of the skill directory
content: The complete .env file content in KEY=VALUE format
FORMAT: Each line should be: KEY=VALUE Example: API_KEY=sk-abc123def456 DATABASE_URL=postgres://user:pass@localhost:5432/db DEBUG=true TIMEOUT=30
BEHAVIOR:
Replaces the ENTIRE .env file with the content you provide
Creates the .env file if it doesn't exist
Each line should follow KEY=VALUE format (one per line)
Comments starting with # are allowed
Empty lines are allowed
These variables become available to all scripts run in this skill
IMPORTANT:
Values will be stored as plain text, so don't commit sensitive values to git
Use the QUICKSTART.md for instructions on setting up secrets safely
After updating, use read_skill_env to verify keys were set correctly
SECURITY:
Keep .env files in .gitignore to prevent accidental commits of secrets
Use environment variables for all sensitive data (API keys, passwords, tokens)
Never hardcode secrets in scripts
RETURNS: Success message confirming the .env file was updated
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | .env file content | |
skill_name | Yes | Name of the skill |