AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Secrets With Git Crypt

skill-derailed-dash-dazbo-agent-skills-secrets-with-git-crypt · by derailed-dash

Use when managing encryption and decryption of secrets (like .env or *.tfvars) using git-crypt. Helps install git-crypt, initialize/unlock repositories, and maintain parallel unencrypted/encrypted file copies securely.

— No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-derailed-dash-dazbo-agent-skills-secrets-with-git-crypt

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ● Environment & secrets Used
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-derailed-dash-dazbo-agent-skills-secrets-with-git-crypt)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Secrets With Git Crypt? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Secrets Management with Git-Crypt

This skill provides a secure, structured workflow for managing repository secrets (e.g. .env, *.tfvars, sec.json) using git-crypt. It guides the agent to ensure sensitive credentials are never checked in as plaintext, instead maintaining parallel encrypted .enc versions checked into Git.

Table of Contents

  • [Triggers](#triggers)
  • [Prerequisites](#prerequisites)
  • [Secrets Setup and Sync Workflow](#secrets-setup-and-sync-workflow)
  • [Command Reference](#command-reference)
  • [Verification Loop](#verification-loop)

Triggers

This skill MUST trigger whenever:

  • The user mentions git-crypt, encryption, decryption, or secrets management.
  • The user requests to store sensitive files (like .env, .tfvars, keyfiles) in the repository.
  • The user attempts to commit or push files that should be encrypted (e.g. .env, *.tfvars, sec.json) to the repository.
  • Cloning an existing repository that contains .enc files (e.g. .env.enc, terraform.tfvars.enc), indicating it was previously protected by git-crypt.
  • Initializing a new repository and setting up local/remote secret configurations.
  • Changing or adding secrets credentials that need to be committed securely.

Prerequisites

  • Host Environment: Unix-like operating system (e.g., Linux, WSL, macOS).
  • Git: A git repository must be initialized in the current project.
  • git-crypt: The git-crypt command-line utility must be installed.
  • If missing, the helper script can attempt installation via sudo apt-get install git-crypt on Debian/Ubuntu systems.
  • Helper Script: Make sure the helper script at skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh is executable (chmod +x).

Secrets Setup and Sync Workflow

Copy this checklist and track your progress:

Secrets Management Progress:
- [ ] Step 1: Verify git-crypt installation
- [ ] Step 2: Initialize or unlock the repository
- [ ] Step 3: Configure tracking and gitignore rules
- [ ] Step 4: Perform file synchronization
- [ ] Step 5: Verify environment security

Step 1: Verify git-crypt installation

Run the status command of the helper script to check if git-crypt is available on the system:

./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh status

If it is not installed, run the installation helper command:

./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh install

Step 2: Initialize or unlock the repository

  • If this is a new repository (or you are setting up git-crypt for the first time):

Decide where the secure key will be stored outside of the repository (e.g., ~/secure-keys/my-project.key). Proactively run: ``bash ./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh init ~/secure-keys/my-project.key `` Ensure the key is NEVER committed to git.

  • If this is a cloned repository containing .enc files:

Ask the user for the local path to the existing key file, and run: ``bash ./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh unlock /path/to/existing.key ``

Step 3: Configure tracking and gitignore rules

Verify that .gitattributes in the root of the project contains the filter declaration:

*.enc filter=git-crypt diff=git-crypt

All unencrypted files (e.g., .env, variables.tfvars) MUST be explicitly added to .gitignore. Running the helper script sync commands automatically appends them, but you must double-check that they are not tracked as plaintext in Git.

Step 4: Perform file synchronization

  • Sync to encrypted versions (before committing changes):

Copy unencrypted local files to their parallel .enc versions:

  • For a specific file:

``bash ./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh sync-to-enc .env ``

  • For all known .enc files in the repository:

``bash ./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh sync-to-enc ``

  • Sync from encrypted versions (after unlocking a cloned repository):

Restore all unencrypted plaintext files from the unlocked .enc versions: ``bash ./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh sync-from-enc ``

Step 5: Verify environment security

Perform the steps in the [Verification Loop](#verification-loop) before concluding your turn to make sure no plaintext secrets have been staged or committed.


Command Reference

The helper script supports the following commands:

| Command | Arguments | Description | | :--- | :--- | :--- | | install | None | Installs git-crypt on Debian/Ubuntu/WSL platforms. | | init | ` | Runs git-crypt init, sets up .gitattributes, and exports key. | | unlock | | Unlocks the repository using the specified key file. | | sync-to-enc | [file] | Syncs unencrypted file(s) to their .enc copies; ensures .gitignore inclusion. | | sync-from-enc| [file] | Syncs/restores .enc copies back to unencrypted files. | | status` | None | Evaluates installation, git-crypt initialization, and file sync states. |


Verification Loop

Before concluding the secrets setup or modifications, the agent MUST execute the following verification steps:

1. Execute Status Check

Run the helper status command:

./skills/secrets-with-git-crypt/scripts/git-crypt-helper.sh status

Ensure all parallel secret files report [OK]. If any say DO NOT MATCH, run the appropriate sync-to-enc or sync-from-enc command.

2. Verify gitignore Integrity

Confirm the unencrypted plain files are NOT tracked by Git. Run:

git ls-files --error-unmatch .env 2>/dev/null
  • If the command returns output (file is tracked): IMMEDIATELY run git rm --cached to remove it from staging while keeping it locally on disk.

3. Verify .gitattributes Structure

Verify that .gitattributes has:

*.enc filter=git-crypt diff=git-crypt

This ensures git-crypt transparently manages all .enc files under Git.

4. Git Crypt Status Check

Verify that git-crypt matches the filter correctly on staged/committed .enc files:

git-crypt status

The output must show that the .enc files are encrypted.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.