Home / mrbinnacle / skill-harness · scripts/screens/419/v4_arms/placebo/push-secret-scan/SKILL.md · GitHub

push-secret-scan skillA

push-secret-scan is agent-read markdown (skill) from mrbinnacle/skill-harness: Use before `git push` where the repository holds config files. A `.gitignore` entry does NOT stop `git add -f` (silently accepted); a tracked `.env` publishes its credential to every clone. Scan tracked files first..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# push-secret-scan

This card ships three parts: an explanation of the trap, prevention by an adopter-owned scanner, and the recovery runbook below. It deliberately ships no executable scanner. Enforcement that must fire belongs in the adopter's environment; the card remains the model-invocable reference.

## The trap

A `.gitignore` entry does **not** remove a file that is already tracked, and it does not stop `git add -f`. The ignore rule applies to *untracked* paths only; once a path is in the index, git keeps recording every change to it, and the ignore rule is silently skipped.

When a credential file has been tracked at any point (e.g., a `.env` added before the ignore rule existed), the push sends that credential to every clone of the remote. Any system that trusted the credential is now exposed and must be rotated.

## When this fires

Any of these conditions:

- `git ls-files` lists a path that also matches a `.gitignore` pattern
- The tree contains `.env`, `*.pem`, `*.key`, `id_rsa`, or `credentials.json`
- A `config` or `settings` file assigns a literal to a name ending in `_KEY`, `_TOKEN`, or `_SECRET`
…

Read the whole file at its exact version.

How to install

Latest version
mdr add mrbinnacle/skill-harness/push-secret-scan@git:20260922.d0ff304
Exact content
mdr add mrbinnacle/skill-harness/push-secret-scan@sha256:38edb7b90a3a5d2c

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_q7tpqzc4af3xjgfh.svg)](https://markdownregistry.com/a/art_q7tpqzc4af3xjgfh)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260922.d0ff304 latest2026-09-22 d0ff304 4,672 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4672 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

mrbinnacle/skill-harness · 9 stars · license MIT · pushed 2026-09-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_q7tpqzc4af3xjgfh
GET https://markdownregistry.com/api/v1/resolve?ref=mrbinnacle/skill-harness/push-secret-scan
GET https://markdownregistry.com/api/v1/blob/38edb7b90a3a5d2cb21b07825bf37bb8e261e6fc0c61ce07fce0e28b7c7db0d4

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from mrbinnacle/skill-harness

AGENTS.md agents
mrbinnacle/skill-harness · AGENTS.md
git:20260830.8d1b9fa · audit A · 9 stars
DESIGN.md design
mrbinnacle/skill-harness · DESIGN.md · Compares one task with a skill and without it.
git:20260908.2691596 · audit A · 9 stars
pull-rebase skill
mrbinnacle/skill-harness · scripts/screens/419/v4_arms/full/pull-rebase/SKILL.md · Use before `git pull` where `pull.rebase` may be `true`. `--no-ff` does NOT stop a rebase under `pull.rebase=true`…
git:20260922.d0ff304 · audit A · 9 stars
parse-csv skill
mrbinnacle/skill-harness · scripts/screens/419/v5_arms/placebo/parse-csv/SKILL.md · Use before opening a CSV where a column may hold IDs. Quoting does NOT stop a spreadsheet's number parse (silently…
git:20260923.bd0c453 · audit A · 9 stars
declared-synthetic-positive-control skill
mrbinnacle/skill-harness · tests/fixtures/sers/declared-synthetic-positive-control/SKILL.md · Declared synthetic positive control. Carries one invented fact so a Full-vs-Null contrast has a real effect by…
git:20260830.3bc5dde · audit A · 9 stars

Every file in mrbinnacle/skill-harness

Browse by kind, by grade A, or by owner.