writing-checks SKILL.md skillA
writing-checks from wangchangxin0809/cc-repo-harness is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add wangchangxin0809/cc-repo-harness/writing-checks@git:20260903.c1a383cPins git:20260903.c1a383c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- wangchangxin0809/cc-repo-harness
- Path
shared/skills/writing-checks/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260903.c1a383c, committed Sep 3, 2026
- First version recorded
- Aug 31, 2026
- Size
- 12,503 bytes
- Repository stars
- 5
- License
- MIT
Enforce a convention with machinery instead of prose: PreToolUse guards that refuse an action before it runs, gates that judge the worktree in CI, selftests that prove a check can turn red, layering tests. Use when a written rule keeps being violated, when adding any lint or CI step, when asked to protect a branch or stop a destructive command, or when a check exists that nobody has seen fail.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Guards and gates Governs: shared/scripts/guards/, shared/scripts/gates/ Two mechanisms, one discipline. A **guard** reads one proposed action before it runs and may block it. A **gate** reads the worktree at CI time and may fail the build. Everything below applies to both, because the failure modes are the same. | | Guard | Gate | |---|---|---| | Sees | one tool call, as JSON on stdin | the whole tree | | Cost | every matching call | once per run | | Use when | the action is irreversible | the state is detectable | | Failure | exit 2, stderr goes to the model | non-zero, output goes to a human | ## A guard is a speed bump, not a boundary Say this out loud before writing one, because the rest of this skill reads like a promise it cannot keep. A guard matches the *text* of a proposed command: ``` git push origin main | tail -5 BLOCKED B=push; git $B origin main | tail -5 allowed ``` It also fails open on purpose — a broken guard must not become an unbypassable wall — so its coverage is best-effort in two independent directions. That is the right trade for what a guard is actually for: catching the thing you were about …
Read the whole file at its exact version.
How to install
mdr add wangchangxin0809/cc-repo-harness/writing-checks@sha256:1090068d9a82f028The line at the top of this page pins the label git:20260903.c1a383c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_dr5caoc2orlnv2x6)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 31, 2026 and Sep 3, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260903.c1a383c latest | 2026-09-03 | c1a383c | 12,503 B | A | view · diff |
| git:20260902.801d609 | 2026-09-02 | 801d609 | 12,636 B | A | view · diff |
| git:20260902.653e3d0 | 2026-09-02 | 653e3d0 | 12,631 B | A | view · diff |
| git:20260901.a1c3abe | 2026-09-01 | a1c3abe | 12,358 B | A | view · diff |
| git:20260831.21be719 | 2026-08-31 | 21be719 | 12,314 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (12503 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
wangchangxin0809/cc-repo-harness · 5 stars · license MIT · pushed 2026-10-30 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_dr5caoc2orlnv2x6 GET https://markdownregistry.com/api/v1/resolve?ref=wangchangxin0809/cc-repo-harness/writing-checks GET https://markdownregistry.com/api/v1/blob/1090068d9a82f02861457a5fd25557bcb71c0e9ad14fcb649d2f05c86126c4bb
Your AI assistant 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.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.