Agent skill

Quality Enforcement

by NoobyGains in NoobyGains/godmode

A skill your agent uses when preparing code for commit, PR, or merge - covers linting, type safety, bundle budgets, coverage thresholds, complexity limits, dependency audit, and dead code detection

MITAuto-check passedDevelopment

Install Quality Enforcement

skills CLI
$ npx skills add NoobyGains/godmode --skill quality-enforcement -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install NoobyGains/godmode quality-enforcement --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/NoobyGains/godmode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/quality-enforcement .claude/skills/quality-enforcement && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quality-enforcement
GitHub stars
107
Token cost
~2k tokens
SKILL.md length
805 words
Files
1
Skills in repo
34
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when preparing code for commit, PR, or merge - covers linting, type safety, bundle budgets, coverage thresholds, complexity limits, dependency audit, and dead code detection

  • Preparing code for commit
  • SKILL.md covers Overview, The Prime Directive, When to Use and The Entry Protocol, plus 6 more sections
  • Calls npm and cargo
  • Merge - covers linting

What it does

Quality Enforcement is an agent skill from NoobyGains/godmode. Use when preparing code for commit, PR, or merge - covers linting, type safety, bundle budgets, coverage thresholds, complexity limits, dependency audit, and dead code detection

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Type safety and Linting and formatting. The repository describes itself as: The AI development framework that thinks before it builds. 36 composable skills for Claude Code, Cursor, Codex, and OpenCode. The licence is MIT.

When your agent uses it

  • Preparing code for commit
  • Merge - covers linting
  • Coverage thresholds
  • Complexity limits

Example prompts

  • “/quality-enforcement”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 441103a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quality Enforcement loads about 2k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 805 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from NoobyGains/godmode at commit 441103a, republished under its MIT licence (© NoobyGains). 805 words, ~2,015 tokens.

Download SKILL.mdSave it as .claude/skills/quality-enforcement/SKILL.md (or your agent's skills folder).
name
quality-enforcement
description
Use when preparing code for commit, PR, or merge - covers linting, type safety, bundle budgets, coverage thresholds, complexity limits, dependency audit, and dead code detection

Quality Enforcement

Overview

Quality enforcement is automated, not aspirational. If it can be checked by a machine, it must be.

Core principle: A quality check that is not enforced in CI does not exist.

No exceptions. No workarounds. No shortcuts.

The Prime Directive

NO CODE LANDS WITHOUT ALL QUALITY CHECKS PASSING

If a check fails, fix the code. Never disable the check. Never bypass CI.

When to Use

Always before:

  • Committing code
  • Opening a pull request
  • Merging to trunk
  • Releasing to production

Especially when:

  • "Just suppress the linter this once" (never)
  • "CI is too slow, merge manually" (fix CI, do not skip it)
  • "Type errors but it works at runtime" (fix the types)
  • "Coverage dropped but the critical paths are tested" (restore coverage)

The Entry Protocol

BEFORE any PR or merge:

1. LINT: Zero errors, zero warnings
2. TYPES: Zero type errors (strict mode)
3. TESTS: All passing, coverage meets threshold
4. BUILD: Clean build, no warnings
5. SIZE: Bundle/binary within budget (if applicable)
6. DEPS: No known vulnerabilities (critical/high)
7. COMPLEXITY: No functions exceeding complexity threshold

Any check fails = code is not ready. Fix before advancing.

Quality Check Reference

Check 1: Linting
Standard: Zero errors AND zero warnings
SettingValueRationale
Errors0Non-negotiable
Warnings0Warnings become errors you learn to ignore
Config committedYesConsistent across all contributors
CI enforcedYesLocal overrides are irrelevant

Warnings are tomorrow's errors. Either fix them or adjust the rule. Never tolerate warnings.

Disable a rule? Only if the team explicitly agrees the rule is inappropriate for this project. Document the rationale in the config file. Never disable inline for convenience.

Check 2: Type Safety
Standard: Zero type errors, strict mode enabled

TypeScript:

json
{
  "compilerOptions": {
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "forceConsistentCasingInFileNames": true
  }
}

Python: mypy or pyright with strict mode.

Anti-PatternProblemFix
any typeDisables type checkingUse specific types or generics
// @ts-ignoreConceals real errorsFix the type error
# type: ignoreSame problemFix the type error
Non-strict modeFalse sense of safetyEnable strict from day one

any is a type error you chose not to resolve. Every any weakens the type system for everything it touches.

Check 3: Test Coverage
Standard: Coverage threshold that never decreases
MetricFloorTarget
Line coverage80%90%+
Branch coverage70%85%+
New code coverage90%100% (aspire to)

Coverage thresholds are a ratchet. They increase, never decrease. Configure CI to fail if coverage drops below the current level.

Coverage is necessary but not sufficient. 100% coverage with poor assertions is worse than 70% coverage with rigorous assertions. Coverage checks combine with TDD discipline (godmode:test-first).

Check 4: Build
Standard: Clean build, zero warnings
  • Build must complete successfully
  • Zero compiler/build warnings
  • Output matches expected structure
  • No missing dependencies at build time
Check 5: Bundle Size Budget (Frontend)
Standard: Total bundle size within defined budget
TargetBudgetTool
Initial JS (compressed)<200KBwebpack-bundle-analyzer
CSS<50KBPurgeCSS check
ImagesOptimized, WebP/AVIFimagemin
Total page weight<1MBLighthouse

Set the budget. Enforce in CI. When budget is exceeded, analyze the bundle contents and eliminate or split.

Check 6: Dependency Audit
Standard: Zero critical or high vulnerabilities
LanguageCommandCI Integration
JavaScriptnpm audit --audit-level=highFail on high+
Pythonpip-audit or safety checkFail on high+
Gogovulncheck ./...Fail on any
Rustcargo auditFail on any

Also verify:

  • No unnecessary dependencies (is every dep actually used?)
  • No duplicate dependencies (different versions of same package)
  • Dependencies are maintained (last update within 12 months)
Show full SKILL.md (345 more words)Show less
Check 7: Complexity Metrics
Standard: No function exceeds complexity threshold
MetricThresholdTool
Cyclomatic complexity<10 per functionESLint (complexity rule), radon, gocyclo
Function length<50 linesLinter rules
File length<400 linesLinter rules
Parameters<5 per functionLinter rules

When complexity exceeds threshold: Refactor. Extract functions. Simplify conditionals. Never raise the threshold.

Check 8: Dead Code
Standard: No unused exports, variables, or dependencies
WhatTool
Unused exportsts-prune, knip
Unused dependenciesdepcheck, knip
Unused variablesLinter (no-unused-vars)
Unreachable codeLinter, type checker

Dead code is misleading code. It implies something depends on it. Remove it.

CI Pipeline Template

yaml
# Minimum quality enforcement pipeline
quality-checks:
  steps:
    - name: Lint
      run: npm run lint
    - name: Type Check
      run: npm run typecheck
    - name: Test
      run: npm test -- --coverage
    - name: Coverage Check
      run: check-coverage --threshold 80
    - name: Build
      run: npm run build
    - name: Bundle Size
      run: bundlesize
    - name: Audit
      run: npm audit --audit-level=high

All checks run on every PR. All must pass before merge.

Cognitive Traps

RationalizationTruth
"Just a lint warning, not an error"Warnings you ignore become errors you miss.
"Type error but it works at runtime"Types prevent the runtime error you have not encountered yet.
"Coverage dropped 1%, not a big deal"1% per PR = 50% in a year. Ratchets do not go down.
"Skip CI, I tested locally"Local environments differ from CI. That is why CI exists.
"Bundle grew because we added features"Features should replace or split, not only add.
"Vulnerability is in a dev dependency"Dev deps run in CI. CI has secrets. Still a risk.
"Function is complex but readable"Complexity limits exist because readability is subjective.
"Dead code might be needed later"Git remembers. Delete it. Restore from history if needed.

Guardrails - HALT and Fix

  • Disabling lint rules inline without documented rationale
  • @ts-ignore or # type: ignore without an accompanying issue
  • Coverage threshold lowered in config
  • CI skipped or overridden for merge
  • any types spreading through codebase
  • Bundle size growing without investigation
  • Warnings treated as acceptable
  • Audit failures dismissed because "it's a dev dependency"

All of these mean: The check is broken. Fix the check before writing more code.

Integration

Complements:

  • godmode:test-first — Tests are one check among many
  • godmode:completion-gate — Quality checks are verification evidence
  • godmode:project-bootstrap — Checks configured at project setup
  • godmode:security-protocol — Dependency audit is a security check
  • godmode:performance-tuning — Bundle size is a performance check

The Bottom Line

Every quality check automated in CI. Every check passing before merge. No exceptions.

If a check can be bypassed, it will be bypassed. Make it impossible to bypass.

© NoobyGains, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/quality-enforcement of NoobyGains/godmode.

Open the folder on GitHubat commit 441103a

Compare with similar skills

Quality Enforcement next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quality Enforcement compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quality Enforcement this skillNoobyGains/godmode107—~2kAutomated safety check: PassMIT
Minimizing Ty Ecosystem Changesastral-sh/ruff50k—~4.6kAutomated safety check: PassMIT
Kedro Babysitkedro-org/kedro11k—~4kAutomated safety check: PassCustom licence
Setup Pre Commitfossasia/eventyay-interpretation1.6k12 repos~565Automated safety check: PassApache-2.0
Update Dependenciesalorence/django-modern-rpc111—~1.3kAutomated safety check: PassMIT
Obsidian Plugin Development Guidelinesgapmiss/obsidian-plugin-skill190—~4.5kAutomated safety check: PassMIT

Similar skills

  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Kedro Babysit

    kedro-org/kedro

    Run Kedro's local lint / format / type-check / tests on changed files (uses the project's pre-commit hooks, ruff, mypy, pytest, lint-imports, detect-secrets, Make targets — in the right venv), or…

    11k GitHub stars~4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Setup Pre Commit

    fossasia/eventyay-interpretation

    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo.

    1.6k GitHub starsUsed in 12 repos~565 tokens
    DevelopmentAuto-check passed
  • Update Dependencies

    alorence/django-modern-rpc

    Routine update of all project dependencies — uv itself, uv.lock (all groups), tool versions pinned in GitHub workflows and .pre-commit-config.yaml (uv, ruff, mypy...), and SHA-pinned GitHub Actions.

    111 GitHub stars~1.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Obsidian Plugin Development Guidelines

    gapmiss/obsidian-plugin-skill

    Rules and references for building Obsidian plugins: ESLint rules, TypeScript practices, memory cleanup, API choices, UI standards and the community submission process.

    190 GitHub stars~4.5k tokensUpdated 15 days ago
    DevelopmentAuto-check passed
  • Ha Code Quality

    FutureTense/keymaster

    Standards and commands for linting, code formatting, typing validation (Ruff, MyPy, Codespell, ESLint, Pre-commit/Prek, Tox), and adherence to Home Assistant Python 3.14 standards in Keymaster.

    349 GitHub stars~462 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from NoobyGains/godmode

All 34 skills in this repo
  • Activation

    NoobyGains/godmode

    A skill your agent uses when starting any conversation - establishes how to locate and invoke skills, mandating Skill tool usage before ANY response including clarifying questions

    107 GitHub stars~2.4k tokensUpdated 7 mo ago
    Auto-check passed
  • Agent Messaging

    NoobyGains/godmode

    A skill your agent uses when dispatching subagents, composing prompts for teammates, structuring handoff reports, or managing context boundaries between agents.

    107 GitHub stars~3k tokensUpdated 7 mo ago
    Auto-check passed
  • Codebase Research

    NoobyGains/godmode

    A skill your agent uses when building ANY feature within an existing project - search the current codebase for existing patterns, conventions, similar implementations, and established approaches…

    107 GitHub stars~3.2k tokensUpdated 7 mo ago
    Auto-check: notes
  • Completion Gate

    NoobyGains/godmode

    A skill your agent uses when about to declare work done, fixed, or passing, before committing or opening PRs - demands executing verification commands and reading their output before making any…

    107 GitHub stars~1.6k tokensUpdated 7 mo ago
    Auto-check passed
  • Comprehension Check

    NoobyGains/godmode

    A skill your agent uses when implementing any substantial feature, multi-file modification, or architectural change - produces a plain-language walkthrough of every alteration so the developer can…

    107 GitHub stars~1.5k tokensUpdated 7 mo ago
    Auto-check passed
  • Delegated Execution

    NoobyGains/godmode

    A skill your agent uses when executing implementation plans with independent tasks in the current session

    107 GitHub stars~2.4k tokensUpdated 7 mo ago
    Auto-check passed

Categories

Questions about Quality Enforcement

What does Quality Enforcement do?

A skill your agent uses when preparing code for commit, PR, or merge - covers linting, type safety, bundle budgets, coverage thresholds, complexity limits, dependency audit, and dead code detection. Quality Enforcement is an agent skill from NoobyGains/godmode.

When should I use Quality Enforcement?

Quality Enforcement fits situations like: preparing code for commit; merge - covers linting; coverage thresholds; complexity limits.

How do I install Quality Enforcement in Claude Code?

Run `npx skills add NoobyGains/godmode --skill quality-enforcement -a claude-code`. Or copy the skill folder (skills/quality-enforcement in NoobyGains/godmode) into .claude/skills/quality-enforcement in your project. Claude Code loads it when a task matches its description.

How do I install Quality Enforcement in Codex?

Run `npx skills add NoobyGains/godmode --skill quality-enforcement -a codex`. Or copy the skill folder (skills/quality-enforcement in NoobyGains/godmode) into .agents/skills/quality-enforcement in your project. Codex loads it when a task matches its description.

Can I use Quality Enforcement in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NoobyGains/godmode --skill quality-enforcement -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quality-enforcement, .gemini/skills/quality-enforcement, .github/skills/quality-enforcement and .opencode/skills/quality-enforcement in your project.

What does Quality Enforcement need to run?

Going by SKILL.md and its folder, Quality Enforcement needs the command-line tools its instructions call (npm and cargo). Our summary lists: Python 3.

Does Quality Enforcement access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Quality Enforcement safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Quality Enforcement use?

Quality Enforcement is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Quality Enforcement use?

About 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quality Enforcement?

Skills that share tags, products or a category with Quality Enforcement: Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Kedro Babysit (kedro-org/kedro, 11k stars), Setup Pre Commit (fossasia/eventyay-interpretation, 1.6k stars) and Update Dependencies (alorence/django-modern-rpc, 111 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quality Enforcement?

NoobyGains (a GitHub user) maintains it in NoobyGains/godmode, which has 107 GitHub stars. The repository holds 34 skills in this directory. The repository was last updated on March 9, 2026.

Source: NoobyGains/godmode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.