edjchapman

Add Secret — Development skill for Claude Code

Development community

Walk the user through encrypting a new (or rotated) secret into the chezmoi source.

How to install Add Secret

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.

What Add Secret does


description: Walk the user through encrypting a new (or rotated) secret into the chezmoi source. argument-hint:

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

Alternatives in Development

  • Implementation Plan — You are tasked with creating detailed implementation plans through an interactive, iterative process 10k ★
  • JWT Scan — JWT attack toolkit (offline) — alg:none forgery, RS256→HS256 algorithm confusion, weak-secret crack, static cl 4.5k ★
  • Memory Gc — Inspect or rotate the autopilot ledger JSONL files (findings.jsonl, negatives.jsonl) 3.8k ★

Full documentation available on GitHub

View Source Repository