agentsclimarketplace

Secrets management

Skill mkobit/chezmoi-skills/skills/secrets-management

Integrate with password managers (Bitwarden, 1Password, etc.) and manage encrypted files using age or gpg.From its SKILL.md

Install
npx -y skills add mkobit/chezmoi-skills --skill secrets-management

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.5 KB, as published. Nobody here has run it

When you need detailed syntax examples, full function signatures, or backend configurations, scan the references/ directory.

Approaches to secrets

chezmoi supports two strategies for secrets in dotfiles:

  1. Template functions — fetch secrets dynamically at apply time from a password manager or secret store.
  2. Encrypted files — store secrets encrypted in the source repository using age or gpg.

Use template functions when credentials rotate frequently or are managed centrally. Use encrypted files when credentials need to be stored directly in the repository.

Secret templates in config

Password manager functions can be used directly in chezmoi.toml.tmpl:

[data]
  gitSigningKey = {{ onepasswordRead "op://vault/GPG Key/public key" | quote }}

Best practices

  • Store the age identity or gpg private key outside the source repository.
  • Rotate secrets in the password manager rather than modifying chezmoi templates.
  • Consult password-managers.md for 1Password, Bitwarden, Vault, and KeePassXC function signatures and examples.
  • Consult secret-providers.md for pass, gopass, OS keyring, generic CLI tools, and cloud secret functions.
  • Consult encryption.md for age and gpg setup guides and naming patterns.

Keep looking

Skills are one crate of 609,856. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.