code-quality skillA
code-quality is agent-read markdown (skill) from smixs/code-quality-skill: Quality gate for a repo: one bun script behind git hooks and Claude Code, Codex, Grok, pi, omp, and OpenCode adapters. Blocks test tampering, high CRAP and complexity on changed functions, low diff coverage, new cycles, dead code, clones, secrets, vulnerable dependencies and AI attribution in commits. 12 languages, one .quality.toml per repo. Use when: quality gate, CRAP, complexity, ratchet, baseline, hotspots, dead code, import cycles, wire a repo into the gate, install quality hooks, .quality.
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
# code-quality ## Overview One script, `scripts/quality.ts`, called by every entry point. Only deterministic checks decide the exit code. Old debt lives in a baseline and does not block; a new finding on a changed line does. Jev (a classifier) and other reviewers write notes only. | entry point | when | what runs | time | |---|---|---|---| | `pre-commit` | `git commit` | `check --staged` on the staged change | 10-20 s | | `commit-msg` | `git commit` | AI attribution, glossary words in the message | < 1 s | | `pre-push` | `git push` | tamper per pushed commit, tests touched by name and by import, diff coverage, Gitleaks, OSV audit | up to 1 min | | agent Stop | the agent ends a turn | `check` against `project.base`; red = one round of fixes | 10-20 s | | manual | before a large push, or to measure | full gate: tests with coverage, mean CRAP, worklist, hotspots | 3-6 min | …
Read the whole file at its exact version.
How to install
mdr add smixs/code-quality-skill/code-quality@git:20260923.fc0e808mdr add smixs/code-quality-skill/code-quality@sha256:f42dc209dcb6955dPin 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.
[](https://markdownregistry.com/a/art_ye362e37m4eecoou)
0 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260923.fc0e808 latest | 2026-09-23 | fc0e808 | 7,874 B | A | view · diff |
| git:20260923.9c05dda | 2026-09-23 | 9c05dda | 8,046 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 (7874 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
smixs/code-quality-skill · 10 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ye362e37m4eecoou GET https://markdownregistry.com/api/v1/resolve?ref=smixs/code-quality-skill/code-quality GET https://markdownregistry.com/api/v1/blob/f42dc209dcb6955d462fead661059f540cad2e934ee283e62eab5f17d03831e2
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.