agentleFS
taljeontaljeon/plzdo/skills/leak-check/SKILL.md

leak-check

Skill9 starsChanged 17 days agoMITView on GitHub

Public-release leak and security preflight workflow. Use when the user says `/유출검수`, `유출검수`, `*/유출검수*`, asks to prepare a project for GitHub/public/portfolio release, or wants to scan for .env/auth/data/token/secret/real email/local path/screenshot leaks before publishing, pushing, committing, or opening a PR.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 12 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill as a public-release gate.

    line 8
  2. Very specific:

    Do not read or print .env, auth stores, browser auth state, cookies, token files, private keys, raw mail, or production database contents …

    line 12
  3. Distinctive:

    Treat GitHub/public release as stricter than normal code review: real names, personal email addresses, meeting links, local absolute paths, …

    line 13
  4. Distinctive:

    Prefer path, metadata, redacted scanners, and tracked-file inventory over opening sensitive files.

    line 14
  5. Distinctive:

    Do not delete files or rewrite git history automatically.

    line 15
  6. Distinctive:

    If the user asks to publish, push, create a PR, or make a portfolio release, run this preflight before staging/pushing unless they …

    line 16
  7. Distinctive:

    Use a supervisor pattern:

    line 22
  8. Very specific:

    Never pass raw .env, token values, cookies, auth state, raw mail, live DB rows, or production screenshots to subagents.

    line 30
  9. Distinctive:

    Prefer path names, finding IDs, redacted scanner output, and file ownership boundaries.

    line 31
  10. Distinctive:

    If a finding implies a leaked real credential, recommend rotation even after code cleanup.

    line 32
  11. Very specific:

    If the installed path differs, resolve this skill directory and run scripts/check_release_leaks.py.

    line 43
  12. Very specific:

    Read repo guidance first: AGENTS.md, CHECKS.md, current task docs, release checklists, and any existing .gitignore or security policy.

    line 54
  13. Distinctive:

    Run the bundled leak scanner and any repo-provided preflight scripts.

    line 55
  14. Distinctive:

    If available, run relevant optional scanners:

    line 57
  15. Distinctive:

    Check release-specific leaks that generic scanners miss: real emails, calendar/meeting URLs, local absolute paths, raw mail fragments, …

    line 63
  16. Distinctive:

    Treat these as high severity for public release:

    line 69
  17. Very specific:

    Read references/security-tools.md when choosing external scanner commands, comparing tool coverage, or explaining why several scanners may …

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Leak Check

Use this skill as a public-release gate. The goal is to prevent accidental exposure of secrets, personal data, operational mail/calendar data, local paths, screenshots, and unsafe repo state before a project is shown on GitHub or in a portfolio.

Operating Rules

  • Do not read or print .env, auth stores, browser auth state, cookies, token files, private keys, raw mail, or production database contents unless the user explicitly asks.
  • Treat GitHub/public release as stricter than normal code review: real names, personal email addresses, meeting links, local absolute paths, screenshots of live tools, and sample data can be blockers even when tests pass.
  • Prefer path, metadata, redacted scanners, and tracked-file inventory over opening sensitive files.
  • Do not delete files or rewrite git history automatically. Report what must change; ask or use the repo's normal cleanup path for destructive remediation.
  • If the user asks to publish, push, create a PR, or make a portfolio release, run this preflight before staging/pushing unless they explicitly waive it.

Subagents

유출검수, /유출검수, and */유출검수* include permission for automatic subagent use unless the user says not to. Keep small repos local; use subagents when the repo is non-trivial, the release target is public, history scanning is needed, or remediation spans several files.

Use a supervisor pattern:

  • Main agent: orchestrates the release gate, runs or chooses scanners, decides blockers, and owns the final publish/no-publish recommendation.
  • inventory as explorer: read-only repo structure, tracked/untracked sensitive paths, .gitignore, release docs, and screenshot/media inventory. No secret contents.
  • security-reviewer as reviewer-style worker: classify findings by public-release risk, false-positive likelihood, credential rotation need, and whether history cleanup is required.
  • tester as tester-style worker: run CHECKS.md, bundled scanner, and installed redacted tools only. Report skipped tools and reasons.
  • remediation-worker as worker: only after the main agent assigns exact files. Do not delete data, rewrite history, or alter credentials without explicit user approval.

Delegation constraints:

  • Never pass raw .env, token values, cookies, auth state, raw mail, live DB rows, or production screenshots to subagents.
  • Prefer path names, finding IDs, redacted scanner output, and file ownership boundaries.
  • If a finding implies a leaked real credential, recommend rotation even after code cleanup.
  • The main agent must re-run the bundled scanner after remediation.

Quick Start

From the target repository:

python3 ~/.claude/skills/leak-check/scripts/check_release_leaks.py --root .

If the installed path differs, resolve this skill directory and run scripts/check_release_leaks.py.

The bundled scanner is intentionally conservative and dependency-free. It reports paths, line numbers, and finding types without printing matched secret values.

Hooks

The optional PlzDo release-gate hook only allows publishing commands in the canonical forms it can check. It does not scan content and does not replace this preflight. Before the first public push of an existing history, or before making a repository public, run this skill on the full history: the scanner checks the working tree, not earlier commits, commit messages or author emails.

Workflow

  1. Identify the release target and exposure level: private PR, public GitHub repo, portfolio screenshot/demo, package publish, or handoff archive.
  2. Read repo guidance first: AGENTS.md, CHECKS.md, current task docs, release checklists, and any existing .gitignore or security policy.
  3. Run the bundled leak scanner and any repo-provided preflight scripts. Keep output redacted in summaries.
  4. Inspect git state with safe metadata: tracked files, untracked sensitive paths, ignored files, large files, and recent changes. Avoid printing sensitive file contents.
  5. If available, run relevant optional scanners:
    • Gitleaks for git history and working tree secret detection.
    • TruffleHog for verified leaked credentials when history depth matters.
    • detect-secrets for baseline-oriented team workflows.
    • git-secrets for commit-hook style AWS/custom prohibited patterns.
    • Semgrep or Secretlint for broader SAST/credential linting when the project stack supports it.
  6. Check release-specific leaks that generic scanners miss: real emails, calendar/meeting URLs, local absolute paths, raw mail fragments, production screenshots, database files, OAuth state, generated reports, and app logs.
  7. Remediate with the smallest safe change: ignore files, replace fixtures with synthetic samples, add templates, redact docs, remove tracked artifacts, rotate exposed credentials, or document required manual cleanup.
  8. Re-run the scanner and relevant checks from CHECKS.md. Final output should list blockers, changed files, skipped checks, and residual risks.

Blocker Categories

Treat these as high severity for public release:

  • .env, .env.*, auth/, playwright/.auth/, browser profiles, OAuth tokens, cookies, session state.
  • data/, .db, .sqlite, production exports, local app caches, raw logs, raw mail/calendar/task dumps.
  • API keys, GitHub tokens, OpenAI keys, AWS keys, Slack/Stripe tokens, private keys, service account JSON, client secrets.
  • Personal email addresses, real candidate/company mail bodies, calendar invite links, Google Meet/Zoom/Teams URLs, phone numbers when not intentionally public.
  • Absolute paths into a user's home folder (macOS, Linux or Windows), machine-specific paths, local-only absolute paths embedded in docs or configs.
  • Screenshots/videos that show real inboxes, calendars, issue trackers, credentials, internal dashboards, customer data, or non-public company names.

Optional References

Read references/security-tools.md when choosing external scanner commands, comparing tool coverage, or explaining why several scanners may be combined.

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.