agentsclimarketplace

Quality gate

Skill iwritec0de/app-dev/skills/quality-gate

Full-stack Next.js development plugin for Claude Code

Install
npx -y skills add iwritec0de/app-dev --skill quality-gate

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

This skill should be used when the user asks to "run a quality gate", "check code quality", "run lint checks", "run pre-push security scan", "check for dead code", or mentions "quality gate", "quality check", "lint check", "run checks", "code quality", "pre-push scan", "security scan". Provides automated JavaScript/TypeScript code quality enforcement including type checking, linting, formatting, dead code detection, type coverage, circular dependency detection, tests, and security scanning before git push.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.9 KB, as published. Nobody here has run it

Quality Gate

Automated quality enforcement with two hooks:

Stop Hook — Code Quality

Fires on every session stop. Runs JavaScript/TypeScript checks on changed files:

CheckToolSeverity
Typestsc --noEmitBLOCK
LinteslintBLOCK on errors, WARN on warnings
Formatprettier --checkWARN
TestsjestBLOCK
Dead codeknip (unused exports, deps, files)WARN
Type coveragetype-coverage (>80% threshold)WARN
Circular depsmadge --circularWARN
TODO/FIXMEgrep scannerWARN

Behavior:

  • Missing required tools (tsc, eslint, prettier, jest) = FAIL with install command
  • Missing optional tools (knip, type-coverage, madge) = WARN with install suggestion
  • Retry limiter: allows stop after 3 consecutive failures

PreToolUse Hook — Security Scan

Intercepts git push commands. Runs 4 scanners in sequence:

  1. semgrep — SAST scan on changed files with --config=auto

    • Critical/High findings = BLOCK push
    • Medium findings = WARN
    • Claude should auto-fix findings before retrying
  2. gitleaks — scans commits being pushed for leaked secrets

    • Any secret found = BLOCK push
  3. trivy — filesystem vulnerability, secret, and misconfig scan

    • Critical vulns = BLOCK push
    • High vulns = WARN
  4. SonarQube (optional) — checks quality gate status if configured

    • Requires SONARQUBE_URL and SONARQUBE_TOKEN env vars, plus sonar-project.properties
    • Skipped silently if SONARQUBE_TOKEN is not set
    • Failed quality gate = BLOCK push

Configuration

Env VarDefaultPurpose
CLAUDE_QUALITY_GATE1Enable/disable quality gate
CLAUDE_QUALITY_GATE_MAX_RETRIES3Max retry attempts before allowing stop
SONARQUBE_URLhttps://sonarqube.internalSonarQube server URL
SONARQUBE_TOKEN(none)SonarQube auth token
CLAUDE_NOTIFY_DISCORD0Send Discord notifications
DISCORD_WEBHOOK_URL(none)Discord webhook for notifications

Commands

  • /quality run — Run checks manually
  • /quality status — View gate status and recent results
  • /quality config — See active checks and tool availability

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.