agentleFS
WanbinyuWanbinyu/ship-guard-skills/skills/secret-redact-before-ai/SKILL.md

secret-redact-before-ai

Skill1 starsChanged 3 months agoMITView on GitHub

Redact secrets and PII before sending text to an AI or committing. Use when pasting logs, env files, traces, or screenshots text, or Chinese "脱敏", "密钥", "token", "别把密码给 AI", "redact". Practical privacy guard for AI coding sessions.

  • Reads credentials

The file

Files
SKILL.md

Secret Redact Before AI

Overview

Scan user-provided or workspace text for credentials and PII; produce a redacted copy safe to paste into models. Prefer block over partial if unsure.

Patterns to flag (non-exhaustive)

  • API keys, tokens, Bearer …, JWT-shaped strings
  • Private keys (BEGIN … PRIVATE KEY)
  • Passwords, connection strings with credentials
  • Cloud keys (AKIA…, etc.), webhook secrets
  • Emails/phones if user asked for PII scrub
  • Internal hostnames/IPs if policy says so

Steps

  1. Identify corpus (paste, file paths, git diff, log snippet).
  2. Scan; list findings with type and location (not full secret values).
  3. Produce redacted text (***REDACTED_TYPE*** placeholders).
  4. Say what still must not be committed (.env, key files).
  5. Optional: suggest .gitignore / gitleaks rules.

Exit criteria

  • Corpus identified
  • Findings listed without echoing full secrets
  • Redacted version provided
  • Commit/chat safety advice given

Anti-patterns

  • Printing full secrets “for confirmation”
  • Claiming “no secrets” without scanning

Output template

## Redaction report
### Findings
| type | where | action |
|------|-------|--------|
### Safe-to-paste text
...
### Do not commit
- ...

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.