Pre-Commit Validation Skill

Validate TypeScript code changes with linting, type checks, tests, PHI scans, and GPG signing.

1|Updated Apr 17, 2025
One-click install
npx skills add https://github.com/WellFitCommunity/WellFit-Community-Daily-Complete --skill pre-commit-validation-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Pre-Commit Validation Skill
Source: https://github.com/WellFitCommunity/WellFit-Community-Daily-Complete/tree/main/.claude/skills/pre-commit
Command: npx skills add https://github.com/WellFitCommunity/WellFit-Community-Daily-Complete --skill pre-commit-validation-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solves? This Skill automatically validates your code changes before they are committed, preventing broken builds, maintaining high code quality standards, and ensuring immediate HIPAA compliance.

Core Features & Use Cases

  • Comprehensive Code Checks: Runs linting for style compliance, type checking for TypeScript correctness, and the full test suite to catch regressions.
  • PHI Security Scan: Automatically scans for potential PHI logging violations in sensitive code, ensuring data privacy from the earliest stage.
  • GPG Signing Verification: Confirms that GPG commit signing is enabled, enhancing the integrity and traceability of your codebase.
  • Use Case: Integrate this skill into your development workflow to run before every commit, ensuring that only high-quality, compliant code makes it into your repository and PRs.

Quick Start

Run the pre-commit validation checks on my staged changes and report any issues that need to be fixed.

Frequently Asked Questions about Pre-Commit Validation Skill

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

FAQPage Schema
How do I prevent broken builds before committing code?

Pre-commit validation runs linting, type checking, tests, and PHI security scans on staged changes before they're committed, catching errors early. This prevents broken builds from entering your repository and ensures code quality standards are met immediately.

Can I validate TypeScript code for HIPAA compliance automatically?

Yes. Pre-commit validation scans TypeScript projects for PHI logging violations and enforces HIPAA compliance checks alongside linting and type checking, ensuring sensitive data handling meets regulatory requirements from the earliest development stage.

What checks does pre-commit validation run on my staged changes?

Pre-commit validation executes linting for style compliance, TypeScript type checking, the full test suite, PHI security scanning, and GPG commit signing verification. It reports failures and only permits commits when all checks pass: zero lint errors, zero type errors, 625+ tests passed, and no PHI violations.

How do I integrate pre-commit validation into my development workflow?

Run pre-commit validation checks before every commit on your staged changes. The skill reports issues that need fixing and ensures only high-quality, compliant code reaches your repository and pull requests.

Do I need GPG signing enabled for pre-commit validation?

Pre-commit validation verifies GPG commit signing is enabled to enhance codebase integrity and traceability. This check confirms signing configuration but is part of the comprehensive validation suite alongside linting, type checking, and tests.

Why should I validate code before committing instead of catching issues in CI/CD?

Pre-commit validation catches broken builds, style violations, type errors, test failures, and PHI compliance issues locally before code reaches your repository, reducing CI/CD cycles, faster feedback, and preventing non-compliant code from entering shared branches.