test-and-commit

Coordinate unit tests, selective Playwright E2E tests, linting, and coverage before commit.

30|3|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/enbyaugust/zacs-claude-skills --skill test-and-commit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-and-commit
Source: https://github.com/enbyaugust/zacs-claude-skills/tree/main/skills/test-and-commit
Command: npx skills add https://github.com/enbyaugust/zacs-claude-skills --skill test-and-commit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill coordinates a deterministic, phase-driven testing workflow that validates changes before they are committed.

Core Features & Use Cases

  • Phase-driven testing: Runs unit tests, identifies relevant E2E tests, fixes failing tests, and evaluates coverage.
  • Selective E2E orchestration: Maps changed files to targeted Playwright tests to optimize feedback loops.
  • Quality gates & documentation: Enforces linting, optional test writing, and documentation synchronization before commit.

Quick Start

npm run test:unit -- --run git diff --name-only HEAD

Frequently Asked Questions about test-and-commit

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

FAQPage Schema
How do I automate unit tests and linting before a git commit?

To automate unit tests and linting before a git commit, you can use a phase-driven workflow that runs test commands, evaluates coverage, and enforces linting as quality gates. This ensures only passing changes are committed.

What is the best way to run selective E2E tests for changed files?

Running selective E2E tests for changed files involves mapping the changed files to targeted Playwright tests. This selective orchestration optimizes feedback loops by executing only the relevant end-to-end tests.

How does a phase-driven testing workflow validate code changes?

A phase-driven testing workflow validates code changes by enforcing sequential quality gates. It runs unit tests, fixes failures, assesses coverage, and synchronizes documentation before allowing a commit.

Can I enforce documentation synchronization during the testing workflow?

Yes, you can enforce documentation synchronization during the testing workflow. The process includes documentation checks as a final quality gate before committing changes to ensure docs remain updated.

Do I need to write tests manually in a pre-commit testing workflow?

No, you do not always need to write tests manually in a pre-commit testing workflow. The process supports optional test writing to automatically generate missing tests alongside linting and coverage evaluation.

Why should I use quality gates for committing code changes?

Using quality gates for committing code changes prevents failing code from entering the repository. It enforces linting, coverage assessment, and test validation to ensure deterministic, reliable commits.