Secret safety

From aiyufan3/TrumanWrld · View interactive version

Secret safety is an AI agent skill from the GitHub repository aiyufan3/TrumanWrld. Ensure zero leakage of sensitive credentials, personally identifiable information, or local tokens when modifying the project, executing code, and generating logs.

How to use this skill

Skill file

Skill: Secret Safety & Redaction

Purpose

Ensure zero leakage of sensitive credentials, personally identifiable information, or local tokens when modifying the project, executing code, and generating logs.

When to Use

Required Inputs

Expected Outputs

Constraints

Step-by-Step Execution

  1. Identify all fields categorized as secrets (e.g., ends with _KEY, _SECRET, TOKEN).
  2. Pass the unredacted object to src/utils/secrets.ts#redact() before passing it into logger.info() or logger.error().
  3. If creating example configs, exclusively write your_value_here as placeholders in .example files.
  4. Verify by attempting a dry-run log and observing the console output.

Failure Modes

Validation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.