sync-env

sync-env is a command for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 0 tokens per session (296 once invoked), scanned A, original, Apache-2.0.

An environment-variable synchronization command that checks which configuration values the code and environment files require across development, staging, and production.

In plain words
What is it for?
Use it to find missing or obsolete variables, update .env.example, check naming and .gitignore rules, and document the configuration inventory.
Why use it?
It keeps environments from drifting apart while avoiding the unsafe practice of copying secret values between them.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the env-sync plugin — 2 commands shipped together

Good fit Use it to find missing or obsolete variables, update .env.example, check naming and .gitignore rules, and document the configuration inventory.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/sync-env
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,598 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install env-sync, the plugin that ships this one along with the rest of its 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-env

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/sync-env.svg)](https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/sync-env)
Your own site
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/sync-env"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/sync-env.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00296
Opus 5 $0.00000 $0.00148
Sonnet 5 $0.00000 $0.00059
Haiku 4.5 $0.00000 $0.00030

Measured 5d ago against content hash fedaf66b4bd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sync-env scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/env-sync/commands/sync-env.md · 29 lines

What it actually says

/sync-env - Sync Environment Variables

Synchronize environment variables across development, staging, and production.

Steps

  1. Read the current .env file and .env.example for the project
  2. Identify all environment variables used in the codebase (process.env, os.environ)
  3. Compare variables across environments: development, staging, production
  4. Identify missing variables in each environment
  5. Identify variables present in code but missing from all .env files
  6. Detect variables in .env files that are no longer used in code
  7. Verify variable naming conventions are consistent (UPPER_SNAKE_CASE)
  8. Check for sensitive variables that should use secrets management
  9. Generate an updated .env.example with all required variables and descriptions
  10. Sync missing variables to target environments (with placeholder values for secrets)
  11. Report: variables added, removed, mismatched across environments
  12. Update documentation with the current environment variable inventory

Rules

  • Never copy secret values between environments; use placeholders
  • Always update .env.example when adding new variables
  • Do not commit .env files to version control; verify .gitignore includes them
  • Flag variables with default values that look like real credentials
  • Group related variables together in .env files (database, API keys, feature flags)
  • Validate variable values against expected formats (URLs, numbers, booleans)
  • Include comments in .env.example explaining each variable's purpose
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 29 lines · 0 tokens per session scan A fedaf66b4bd9

Subscribe to this mod's changes

sync-env is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,598 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 296 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.