hygiene

Enforce code hygiene checks on staged Git files with ESLint and stylelint.

5|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/malwarebo/nyrve --skill hygiene-malwarebo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hygiene
Source: https://github.com/malwarebo/nyrve/tree/main/.github/skills/hygiene
Command: npx skills add https://github.com/malwarebo/nyrve --skill hygiene-malwarebo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need to maintain high code quality and consistency by automating checks for common coding standards and potential issues before code is committed.

Core Features & Use Cases

  • Pre-commit Hook Enforcement: Automatically runs checks on staged files to prevent non-compliant commits.
  • Code Formatting & Linting: Enforces indentation, quoting rules, and integrates with ESLint and Stylelint.
  • Content Validation: Checks for correct copyright headers and restricts non-ASCII characters.
  • Use Case: Before submitting a feature branch, run the hygiene check to ensure all code adheres to project standards, preventing merge conflicts and maintaining a clean codebase.

Quick Start

Run the hygiene check on your staged files by executing npm run precommit.

Frequently Asked Questions about hygiene

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

FAQPage Schema
How do I enforce code quality and consistency with pre-commit hooks?

Pre-commit hooks enforce code quality by automatically checking staged Git files for formatting, linting, and copyright headers before allowing a commit. This prevents non-compliant code from entering the repository and maintains project standards.

What is the best way to automate ESLint and Stylelint checks before committing?

Automating ESLint and Stylelint checks before committing is best achieved by running a pre-commit script on staged files. This automatically validates JavaScript and CSS syntax, preventing common errors and style violations from being committed.

How do I check for copyright headers and non-ASCII characters in staged files?

To check for copyright headers and non-ASCII characters in staged files, use an automated content validation script. This restricts non-ASCII characters and verifies correct copyright headers are present before a Git commit is finalized.

Does the hygiene pre-commit hook check indentation and string quoting rules?

Yes, the hygiene pre-commit hook checks indentation and string quoting rules. It enforces code formatting standards across all staged files to ensure project-wide coding style consistency and prevent common formatting errors.