secleak-check

Run or install repository security leak checks using BetterLeaks and Trivy. Use this for scanning leaked keys, vulnerable dependencies, and misconfigurations, or when adding key-leak protections, adding BetterLeaks, adding forbidden-path hooks, or running secleak-check before release.

Last repository push
GitHub Stars
141
Forks
17
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "secleak-check" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5838088907f7d2842e7b31ddaa6eb6a056b54347b3996f093ddb3b131a585013. Verify the upstream source and version against https://github.com/instructa/agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Run or install repository security leak checks using BetterLeaks and Trivy. Use this for scanning leaked keys, vulnerable dependencies, and misconfigurations, or when adding key-leak protections, adding BetterLeaks, adding forbidden-path hooks, or running secleak-check before release.

0 Downloads

Introduction source: third_party · instructa · 0.0.1 Reference

SkillPi interpretation

Tasks
Run or install repo security leak checks with BetterLeaks and Trivy. Use when asked to scan for leaked secrets, vulnerable dependencies, misconfigurations, add secret-leak guardrails, add BetterLeaks, add forbidden-path hooks, or run secleak-check before release.
Software, accounts and paid services
When asked to harden a repo against secret leaks: 1. Inventory existing `.betterleaks.toml`, `.gitleaks.toml`, secret-scan workflows, Dependabot, and hook tooling. 2. Add `.forbidden-paths.regex` and a staged-file hook. 3. Add `.betterleaks.toml` with path-based filters only for fixtures. 4. Add repo-local `scripts/secleak-check.sh` only when the repo wants a first-class local script. 5. Add CI secret scanning and Dependabot when GitHub Actions are in scope. 6. Update `.gitignore` for runtime dirs, env files, credentials, keys, and infra state. Templates live in `references/guardrails.md`; small examples live in `references/examples.md`.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: secleak-check
description: Run or install repo security leak checks with BetterLeaks and Trivy. Use when asked to scan for leaked secrets, vulnerable dependencies, misconfigurations, add secret-leak guardrails, add BetterLeaks, add forbidden-path hooks, or run secleak-check before release.

Secleak Check

Workflow

  1. Confirm cwd and repo root.
  2. For a scan request, run the bundled script from this skill, not a target-repo script.
  3. For a setup request, add repo-local guardrails from references/guardrails.md.
  4. Quote exact failing tool output, but never print raw secret values.
  5. If the bundled script is unavailable, use the manual fallback commands below.

Bundled command

Resolve scripts/secleak-check.sh relative to this SKILL.md.

Common installed path:

/Users/kregenrek/.agents/skills/secleak-check/scripts/secleak-check.sh

Manual fallback

betterleaks git --no-banner --redact=100 .
trivy fs --scanners vuln,secret,misconfig --exit-code 1 .

Prefer .betterleaks.toml when present. If only .gitleaks.toml exists, pass --config .gitleaks.toml; BetterLeaks supports it for compatibility.

Reporting

  • betterleaks findings are blockers until verified false-positive or remediated.
  • For historical leaks, report file, line, commit, rule, and fingerprint only.
  • trivy dependency vulnerabilities should be summarized by severity and top fixed versions.
  • Misconfig findings inside node_modules are dependency artifact noise unless that file is built or shipped by the repo.

Guardrail setup

When asked to harden a repo against secret leaks:

  1. Inventory existing .betterleaks.toml, .gitleaks.toml, secret-scan workflows, Dependabot, and hook tooling.
  2. Add .forbidden-paths.regex and a staged-file hook.
  3. Add .betterleaks.toml with path-based filters only for fixtures.
  4. Add repo-local scripts/secleak-check.sh only when the repo wants a first-class local script.
  5. Add CI secret scanning and Dependabot when GitHub Actions are in scope.
  6. Update .gitignore for runtime dirs, env files, credentials, keys, and infra state.

Templates live in references/guardrails.md; small examples live in references/examples.md.

Version history

  1. v1.0.0 GitHub ↗
    Original release notes

    First Agent Plugins v1 release of `regenrek.agentic-engineer-core`. - portable root `plugin.json` - six fully validated Agent Skills - provider compilation verified for Codex, Claude Code, and Cursor - no legacy `.plugin/plugin.json` or `x-agentrig` metadata Bundle SHA-256: `eae83ad0d813ec89bf4e2bb0128c8e7cb09c888e54d1ef661bd184147b884664`

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value90/100

Highlights

  • 提供代码仓库安全泄露检查功能,解决开发安全领域的核心痛点
  • 支持 BetterLeaks 和 Trivy 双重扫描,覆盖密钥泄露、依赖漏洞、配置错误等关键场景
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包括扫描泄露、添加防护措施、运行检查等多种场景
  • 边界清晰,变体覆盖合理,不易误触或漏触
Structure and Standards95/100

Highlights

  • 文档结构清晰,包含完整的工作流、命令示例、报告规范和防护设置
  • 步骤划分明确,有出口条件和端到端示例,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常情况
  • 提供脚本不可用时的手动回退方案,不可逆操作有确认机制
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 46

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

When asked to harden a repo against secret leaks: 1. Inventory existing `.betterleaks.toml`, `.gitleaks.toml`, secret-scan workflows, Dependabot, and hook tooling. 2. Add `.forbidden-paths.regex` and a staged-file hook. 3. Add `.betterleaks.toml` with path-based filters only for fixtures. 4. Add repo-local `scripts/secleak-check.sh` only when the repo wants a first-class local script. 5. Add CI secret scanning and Dependabot when GitHub Actions are in scope. 6. Update `.gitignore` for runtime dirs, env files, credentials, keys, and infra state. Templates live in `references/guardrails.md`; small examples live in `references/examples.md`.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.