From prompt-optimizer
Inspect, set, or reset Claude Code environment variables in settings.json.
How this command is triggered — by the user, by Claude, or both
Slash command
/prompt-optimizer:env [list|reset|set KEY value]The summary Claude sees in its command listing — used to decide when to auto-load this command
# /env — Environment Variable Inspector Manages the `env` block in `~/.claude/settings.json`. ## When run without arguments (`/env`) Read `~/.claude/settings.json` and display the current `env` block as a table: | Variable | Value | Source | |---|---|---| | (each key) | (each value) | settings.json | If the `env` block is empty or missing, say: "No custom environment variables set. All defaults active." ## `/env reset` Remove the entire `env` block from `~/.claude/settings.json`. Confirm: "✅ Env block cleared. All variables reset to defaults. Restart Claude Code for changes to take...
Manages the env block in ~/.claude/settings.json.
/env)Read ~/.claude/settings.json and display the current env block as a table:
| Variable | Value | Source |
|---|---|---|
| (each key) | (each value) | settings.json |
If the env block is empty or missing, say: "No custom environment variables set. All defaults active."
/env resetRemove the entire env block from ~/.claude/settings.json.
Confirm: "✅ Env block cleared. All variables reset to defaults. Restart Claude Code for changes to take effect."
/env set KEY valueMerge {"KEY": "value"} into the env block in ~/.claude/settings.json.
Always merge, never overwrite other keys.
Confirm: "✅ Set KEY=value in settings.json."
/env unset KEYRemove a single key from the env block without touching others.
Confirm: "✅ Removed KEY from settings.json."
env block for confirmation.npx claudepluginhub cristianoaredes/aredes-marketplace --plugin prompt-optimizer