code-quality-check

Execute ESLint, TypeScript, npm audit, and unused dependency checks.

1|1|Updated Jun 28, 2025
One-click install
npx skills add https://github.com/DarkMonkDev/WitchCityRope --skill code-quality-check-darkmonkdev
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: code-quality-check
Source: https://github.com/DarkMonkDev/WitchCityRope/tree/main/.claude/skills/code-quality-check
Command: npx skills add https://github.com/DarkMonkDev/WitchCityRope --skill code-quality-check-darkmonkdev

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill requires npm, npx, eslint, tsc, depcheck, git, and includes scripts (resource) components.

What problem does it solve?

Poor code quality, unaddressed TypeScript errors, and undetected security vulnerabilities introduce bugs, increase technical debt, and compromise application stability and security.

Core Features & Use Cases

  • Full Code Scan: Runs comprehensive validation including ESLint for code style, TypeScript for type checking, npm audit for security vulnerabilities, and depcheck for unused dependencies.
  • Flexible Modes: Supports a quick mode (skips TypeScript and security for speed), checking only changed files, or a full codebase scan.
  • Actionable Reporting: Provides clear output on critical errors and warnings, with suggestions for auto-fixing where possible.
  • Use Case: Before creating a pull request for the 'event-registration' feature, run this Skill to ensure your code is free of critical errors, adheres to style guides, and has no high-severity security vulnerabilities.

Quick Start

Run a quick code quality check on all changed files.

Frequently Asked Questions about code-quality-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run ESLint and TypeScript checks automatically in my CI/CD pipeline?โ–ผ

Code quality checks execute ESLint for style validation, TypeScript noEmit for type errors, npm audit for security vulnerabilities, and depcheck for unused dependencies in a single workflow. Use this Skill in pre-commit hooks or pull request reviews to catch issues before merging, with options for full-repo scans or changed-files-only checks.

Can I check only the files I changed instead of scanning the entire codebase?โ–ผ

Yes, the --changed-only option runs validation exclusively on modified files, speeding up feedback loops in pull requests. This mode runs ESLint, TypeScript, npm audit, and dependency checks on changed files only while maintaining the same exit codes and colorized output.

What's the best way to fix ESLint violations and security issues automatically?โ–ผ

The --fix option auto-corrects fixable ESLint violations. Run the Skill with --fix to apply corrections, then review the changes before committing. For security vulnerabilities detected by npm audit, review the output and update dependencies; for unused dependencies flagged by depcheck, remove them manually.

How do TypeScript type checking and security audits fit into a code quality workflow?โ–ผ

TypeScript validation catches type errors early, npm audit detects security vulnerabilities in dependencies, and unused dependency detection reduces supply-chain risk and bundle bloat. Together they provide comprehensive quality assurance beyond style checking, preventing bugs, security gaps, and technical debt.

Does the quick mode skip important checks when I need fast feedback?โ–ผ

The --quick option skips TypeScript validation and security audits to prioritize speed, running only ESLint for immediate style feedback. Use it for rapid iteration during development; run full checks before pulling or pushing to catch type errors and vulnerabilities.

Why would unused dependency detection matter in a TypeScript project?โ–ผ

Depcheck identifies dependencies listed in package.json but not imported in code, reducing bundle size, supply-chain attack surface, and maintenance overhead. Removing unused dependencies prevents stale packages from introducing vulnerabilities and keeps your project dependency graph clean.