Add Secret banner
edjchapman edjchapman

Add Secret

Development community

Description

--- description: Walk the user through encrypting a new (or rotated) secret into the chezmoi source. argument-hint: <path-to-plaintext-file-in-$HOME> --- The user wants to add or rotate a secret at `$ARGUMENTS`. Steps: 1. Confirm the path exists in `$HOME` and is readable. If not, ask for the correct path. 2. **Read** the file just enough to confirm it looks like a secrets file (e.g., `.zshrc.local`, AWS config, an env file). Do not print its contents back to the user. If it doesn't look like

Installation

Installs to ~/.claude/commands/edjchapman-dotfiles-add-secret.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/edjchapman/Dotfiles/HEAD/.claude/commands/add-secret.md -o ~/.claude/commands/edjchapman-dotfiles-add-secret.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository