agentsclimarketplace

Config management

Skill jagreehal/jagreehal-claude-skills/skills/config-management

Centralizes typed configuration with validated env loading, fail-fast startup, and no scattered process.env reads. Use this skill when adding config, environment variables, feature flags, or startup validation in TypeScript services. Do not use when/for validating untrusted HTTP input at the edge (use validation-boundary) or secrets rotation runbooks.From its SKILL.md

Install
npx -y skills add jagreehal/jagreehal-claude-skills --skill config-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

2.4 KB, as published. Nobody here has run it

Config Management

Critical rules

  • Validate the entire config once at startup. Bad config fails the process before traffic.
  • Never read process.env mid-request. Resolve once; inject typed config through deps.
  • Keep secrets out of the environment: load from a secret manager into memory (preventProcessEnvWrite).
  • No fallback defaults for required values — fail fast.
  • Prefer ephemeral/rotating credentials; scan git history for secrets in CI.
  • Before implementing loaders or tests, read references/examples.md and references/testing.md.

Workflow

  1. Define the config schema (node-env-resolver validators or Zod).
  2. Resolve at startup: non-secrets from env, secrets from secret manager into memory.
  3. Wire typed config into the composition root deps.
  4. Make getConfig(resolvers?) injectable so tests pass mock resolvers — see references/testing.md.
  5. Add TruffleHog/Gitleaks over full history in CI.
  6. Prefer short-lived credentials with refresh where available.

Resources

  • references/examples.md — resolver/Zod loaders, deps injection, secrets, fail-fast. Read when implementing.
  • references/testing.md — env variants, mock resolvers, CI scanning, rationalizations. Read for tests and hardening.

Validation

  • Config validated once at startup; process exits on failure
  • No required value has a silent default
  • Config injected via deps, not re-read from process.env
  • Secrets from secret manager with preventProcessEnvWrite
  • Config type inferred from schema
  • Tests inject mock resolvers/config objects
  • CI secret-scans full git history

Constraints

  • Per-request HTTP input is validation-boundary, not this skill. Dynamic feature-flag evaluation is separate from startup config.
  • Related: validation-boundary, fn-args-deps, strict-typescript, observability.

Keep looking

Skills are one crate of 627,801. 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.