agentleFS
sivaprasadreddysivaprasadreddy/sivalabs-agent-skills/skills/configuration-and-secrets/SKILL.md

configuration-and-secrets

Skill198 starsChanged 5 days agoMITView on GitHub

Manage application configuration, environment separation, secrets, feature flags, and operational settings safely across development, test, and production.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 14 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use when adding configuration, credentials, feature flags, environment-specific behavior, or deployment settings.

    line 12
  2. Distinctive:

    Keep environment-specific values outside source code where practical.

    line 16
  3. Distinctive:

    Treat secrets differently from ordinary configuration.

    line 17
  4. Distinctive:

    Never commit credentials, private keys, access tokens, or production connection strings.

    line 18
  5. Distinctive:

    Use an approved secret manager or protected deployment secret store.

    line 19
  6. Distinctive:

    Avoid configuration sprawl and duplicated sources of truth.

    line 23
  7. Distinctive:

    Keep feature flags temporary unless they are intentionally part of product configuration.

    line 25
  8. Distinctive:

    Document required values and safe examples.

    line 34
  9. Distinctive:

    Verify startup behavior for missing, malformed, and invalid configuration.

    line 35
  10. Distinctive:

    Do not expose secrets in logs, diagnostics, crash reports, client-side bundles, or error messages.

    line 38
  11. Distinctive:

    Do not use a secret as a feature flag or ordinary configuration value.

    line 39
  12. Distinctive:

    Avoid copying production secrets into developer machines or test environments.

    line 41
  13. Distinctive:

    Ensure backups and exported configuration do not leak credentials.

    line 42
  14. Distinctive:

    Do not invent actual secret values.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Configuration and Secrets

Purpose

Make runtime configuration predictable, secure, validated, and manageable across environments.

When to use

Use when adding configuration, credentials, feature flags, environment-specific behavior, or deployment settings.

Principles

  • Separate deploy-time configuration from application code.
  • Keep environment-specific values outside source code where practical.
  • Treat secrets differently from ordinary configuration.
  • Never commit credentials, private keys, access tokens, or production connection strings.
  • Use an approved secret manager or protected deployment secret store.
  • Apply least privilege and rotate credentials with a defined process.
  • Validate required configuration at startup and fail clearly when invalid.
  • Define safe defaults; avoid insecure fallback values.
  • Avoid configuration sprawl and duplicated sources of truth.
  • Make configuration changes auditable and reversible.
  • Keep feature flags temporary unless they are intentionally part of product configuration.

Workflow

  1. Inventory configuration values and classify each as non-sensitive, sensitive, or environment-specific.
  2. Define the authoritative source for each value.
  3. Establish naming, typing, validation, and precedence conventions.
  4. Provide safe local development and test configuration without production secrets.
  5. Inject secrets at runtime through controlled mechanisms.
  6. Define rotation, revocation, and incident response for credentials.
  7. Document required values and safe examples.
  8. Verify startup behavior for missing, malformed, and invalid configuration.

Security expectations

  • Do not expose secrets in logs, diagnostics, crash reports, client-side bundles, or error messages.
  • Do not use a secret as a feature flag or ordinary configuration value.
  • Restrict who and what can read each secret.
  • Avoid copying production secrets into developer machines or test environments.
  • Ensure backups and exported configuration do not leak credentials.
  • Rotate compromised or overexposed credentials promptly.

Review checklist

  • Is each value stored in the right place?
  • Are secrets separated from ordinary configuration?
  • Are required values validated?
  • Are defaults safe?
  • Are environment differences explicit and minimal?
  • Can credentials be rotated without code changes?
  • Are configuration changes traceable?

Do not invent actual secret values. Use clearly marked placeholders in examples.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.