code-quality-standards

Configures Vitest testing, Git hooks, and GitHub Actions CI quality gates for projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/phrazzld/claude-config --skill code-quality-standards-phrazzld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality-standards
Source: https://github.com/phrazzld/claude-config/tree/main/skills/code-quality-standards
Command: npx skills add https://github.com/phrazzld/claude-config --skill code-quality-standards-phrazzld

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Inconsistent testing, poor coverage, and manual quality checks lead to regressions, bugs, and slow development cycles. This Skill provides a robust framework for automated code quality, ensuring reliability and maintainability.

Core Features & Use Cases

  • Vitest & Coverage Philosophy: Guides effective testing at module boundaries, focusing on meaningful coverage over arbitrary percentages.
  • Git Hooks Integration: Automates pre-commit and pre-push checks (linting, formatting, type-checking, full test suite) for immediate feedback.
  • CI/CD with GitHub Actions: Defines required checks (lint, type-check, test, build, coverage) for every pull request, enforcing quality gates.
  • Use Case: When setting up a new project, activate this Skill to automatically configure Vitest, git hooks, and GitHub Actions, ensuring a high baseline of code quality from day one.

Quick Start

Apply the code-quality-standards skill to suggest a CI/CD pipeline for a new TypeScript project using GitHub Actions.

Frequently Asked Questions about code-quality-standards

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

FAQPage Schema
How do I set up automated code quality checks in my GitHub Actions workflow?

GitHub Actions workflows enforce code quality by running linting, type-checking, testing, and coverage gates on every pull request. Define required checks in your CI pipeline to catch issues before merge, ensuring consistent standards across your codebase.

What's the best way to configure Vitest for meaningful test coverage?

Vitest coverage focuses on testing at module boundaries rather than hitting arbitrary percentages. Define coverage thresholds that reflect actual risk, measure what matters for reliability, and use patch coverage to enforce quality on changed code only.

How do I automate code quality checks before committing code?

Git hooks run pre-commit and pre-push checks automatically, catching linting, formatting, type, and test failures instantly without manual intervention. This immediate feedback prevents low-quality code from entering version control.

Can I enforce code quality standards across multiple projects?

Yes. Git hooks, GitHub Actions, and Vitest coverage configuration apply consistently across projects by standardizing your quality gates—linting, type-checking, testing, and build—ensuring uniform baseline standards.

What happens if code fails quality checks in a pull request?

Failed quality gates block merges until issues resolve. GitHub Actions surfaces lint errors, type mismatches, test failures, and coverage gaps in pull request checks, forcing fixes before code reaches the main branch.

Do I need to run the full test suite on every commit?

Pre-commit hooks typically run fast checks (linting, formatting, type-checking), while pre-push hooks or CI run the full test suite. This staged approach catches obvious problems early and reserves heavy testing for the CI pipeline.