noslop-commit-gate

noslop-commit-gate is a skill for Claude Code, Codex from 45ck/skill-harness. It costs 30 tokens per session (649 once invoked), scanned A, original, MIT.

A pre-commit quality check for repositories protected by noslop. A pre-commit check runs before a Git commit to catch quality problems and unsafe weakening of configuration.

In plain words
What is it for?
Run it with the fast tier before committing. If it fails, fix the reported issue and run the check again instead of bypassing it.
Why use it?
It finds lint, formatting, spelling, and similar failures early, while preventing changes that lower selected quality thresholds or disable protections.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/45ck/skill-harness/noslop-commit-gate
Any agent
npx skills add 45ck/skill-harness --skill noslop-commit-gate
Clone the repo
git clone --depth 1 https://github.com/45ck/skill-harness

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for noslop-commit-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/45ck/skill-harness/noslop-commit-gate.svg)](https://agentmods.dev/skills/45ck/skill-harness/noslop-commit-gate)
Your own site
<a href="https://agentmods.dev/skills/45ck/skill-harness/noslop-commit-gate"><img src="https://agentmods.dev/badge/skills/45ck/skill-harness/noslop-commit-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.00649
Opus 5 $0.00015 $0.00324
Sonnet 5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 4d ago against content hash 4a3ce4996a46, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

noslop-commit-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packs/noslop-skills/skills/noslop-commit-gate/SKILL.md · 61 lines

What it actually says

Use this skill before every git commit in a noslop-protected repository.

Gate command:

noslop check --tier=fast

Run this before staging the final commit. The pre-commit hook runs it automatically, but running it manually first surfaces failures early.

If the gate fails:

  • read the failure output and fix the reported issue (lint error, format violation, spell error)
  • never use git commit --no-verify — the Claude Code guardrails block this for AI agents and it defeats the purpose of the gate
  • never disable lint rules to make the gate pass; fix the underlying issue
  • after fixing, re-run noslop check --tier=fast to confirm the gate is green before committing

Content-aware config protection — Tier 1:

The pre-commit hook checks quality gate config files for weakening patterns. Strengthening changes pass through automatically.

Config Blocked (weakening) Allowed (strengthening)
eslint.config.mjs Adding 'off' rules, eslint-disable, net removal of 'error' rules New rules, tighter limits
vitest.config.ts Lowering coverage thresholds, removing thresholds Raising thresholds
tsconfig*.json Adding strict: false, net removal of strict flags New strict flags
.dependency-cruiser.cjs Net removal of name: rules, severity downgrade to warn/info/off New forbidden rules
knip.json Expanding ignore/ignoreDependencies, ignoreExportsUsedInFile New entry points

Enforcement file protection — Tier 2a:

Files in .githooks/, .claude/hooks/, and AGENTS.md are the enforcement mechanism itself. The hook only blocks:

  • removal of quality commands (npm run ci, npm run test, noslop check, etc.)
  • net removal of exit 1 lines
  • net removal of set -e lines

Additive changes (new jobs, new checks, new schedules) pass through.

CI and config file protection — Tier 2b:

Files in .github/workflows/ and .claude/settings.json are fully checked:

  • removal of quality commands
  • addition of bypass patterns (continue-on-error: true, --no-verify, [skip ci], SKIP_CI, skip-checks)
  • net removal of exit 1

Lines containing deny, block, or "Bash are excluded from bypass detection to avoid false positives on enforcement logic.

Avoid:

  • using --no-verify under any circumstance
  • adding eslint-disable comments to silence lint failures
  • downgrading config severity to pass the gate
  • editing .githooks/, .claude/, or .github/workflows/ to remove gate commands
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 61 lines · 30 tokens per session scan A 4a3ce4996a46

Subscribe to this mod's changes

noslop-commit-gate is a skill published in the GitHub repository 45ck/skill-harness (15 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 649 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

git-workflow

This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team…

Galaxy-Dawn/claude-scholar · 64 tokens

daily-paper-generator

Use when the user asks to generate daily paper digests on a general topic. This skill supports both arXiv and bioRxiv (or either one), then produces structured Chinese/English summaries for selected papers.

Galaxy-Dawn/claude-scholar · 47 tokens

codex-autoresearch

Run autonomous, measurable experiments in a Git repository: change one hypothesis, verify a numeric metric, keep improvements, and revert failures. Use when the user wants Codex to keep iterating toward a numeric target in the foreground or as a detached background run. Do not use for ordinary one-shot coding…

leo-lilinxiao/codex-autoresearch · 80 tokens

map-wayfind

Decision-frontier wayfinding: build and work a durable map of open design decisions BEFORE planning, for large or foggy efforts where /map-plan would force premature decomposition. Use when a task is too big or too vague to decompose — many unknowns, tangled decisions, or "I'm not even sure what to build yet" — and…

azalio/map-framework · 182 tokens

map-fast

Minimal workflow for small, low-risk changes — no planning, no learning.

azalio/map-framework · 17 tokens

clipboard

Copy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted", "copy rich text".

CodeAlive-AI/ai-driven-development · 36 tokens