agentleFS
shinzoxDshinzoxD/knackbox/skills/coding/secrets-management/SKILL.md

secrets-management

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Handle secrets safely in apps and infrastructure without committing

  • Reads credentials

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use secure-code-review, api-security and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Robotti-ioSkill

    secure-code-review

    Repeatable process for an application security code review that produces prioritized findings and fix guidance.

    Also in 3 projects that use this

  • jefflesterSkill

    api-security

    API security best practices and common vulnerability prevention. Enforces security checks for authentication, input validation, SQL injection, XSS, and OWASP Top 10 vulnerabilities. Use when building or modifying APIs.

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 4 projects that use this

  • ElasticSkill

    accessibility

    Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.

    Also in 4 projects that use this

  • Svenja-devSkill

    e2e-testing

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 4

    Distinctive

    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
  1. Distinctive:

    No secrets in git, logs, client bundles, or screenshots.

    line 21
  2. Distinctive:

    Prefer OIDC/workload identity over long-lived static keys when possible.

    line 25
  3. Distinctive:

    Never ask the user to paste live production secrets into chat if avoidable.

    line 58
  4. Distinctive:

    Mobile apps: no long-lived master secrets in binaries.

    line 66

“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “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

Secrets Management

Secrets are credentials that grant power. Minimize sprawl, never commit them, prefer short-lived credentials, and plan rotation.

Principles

  1. No secrets in git, logs, client bundles, or screenshots.
  2. Inject at runtime from a secret manager or sealed CI store.
  3. Least privilege and per-environment secrets.
  4. Rotation and revocation paths tested.
  5. Prefer OIDC/workload identity over long-lived static keys when possible.

Workflow

  1. Inventory secret types (DB, API, TLS, signing).
  2. Choose storage (cloud SM, k8s secrets + encryption, CI OIDC).
  3. Access patterns for apps, humans, and automation.
  4. Local dev: .env gitignored + sample .env.example without values.
  5. Leak response: rotate, audit logs, invalidate.

Output format

## Secrets plan

### Inventory
…

### Storage & injection
…

### CI/CD
…

### Rotation
…

### Anti-patterns to remove
…

Rules

  1. Never ask the user to paste live production secrets into chat if avoidable; use placeholders.
  2. Distinguish public client IDs from private client secrets.
  3. Encrypt-at-rest is not enough if authz is wide open.
  4. Document break-glass carefully.
  5. Redact in examples always.

Edge cases

  • Mobile apps: no long-lived master secrets in binaries.
  • Webhooks: signing secrets rotation dual-key window.
  • Multi-tenant: per-tenant secret isolation.

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.