hf.check-test-counterpart

Check new Python files for missing test counterparts.

5|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/T-rav/hydraflow --skill hf-check-test-counterpart
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hf.check-test-counterpart
Source: https://github.com/T-rav/hydraflow/tree/main/.codex/skills/hf.check-test-counterpart
Command: npx skills add https://github.com/T-rav/hydraflow --skill hf-check-test-counterpart

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This hook nudges developers when creating new Python source files that do not have a test counterpart, helping maintain test coverage without blocking progress.

Core Features & Use Cases

  • Nudges on missing test counterparts for new Python files, guiding developers to add corresponding tests.
  • Non-blocking reminders: it only prints a reminder and never blocks code creation.
  • Supports common Python layouts: detects typical test locations (tests/ directory and test_*.py naming) and ignores init.py, migrations, and non-Python files.

Quick Start

Create a new Python file and let the skill remind you to add a test counterpart if one does not exist.

Frequently Asked Questions about hf.check-test-counterpart

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

FAQPage Schema
How do I get reminded to add Python test files when creating new source code?

This Skill nudges you to add Python tests by checking newly created Python source files for missing test counterparts. It prints a non-blocking reminder during code creation without halting your development progress.

Does the missing test reminder block code creation in Python projects?

No, the missing test reminder is strictly non-blocking and only prints a prompt when a test counterpart is absent. It validates file types and ignores existing tests, allowing code creation to proceed without interruption.

What Python file types does the test counterpart check ignore?

The check ignores __init__.py files, migration files, and non-Python paths. It validates new Python source files and skips existing tests to accurately detect when a test counterpart is missing.

How does the test counterpart nudge detect existing tests in common Python layouts?

The nudge detects existing tests by validating typical Python project layouts, specifically checking for a tests/ directory and the test_*.py file naming pattern. It skips these paths so only missing counterparts trigger the reminder.

Can I use this test counterpart reminder during early Python development stages?

Yes, you can use this reminder during early Python development because it operates during code creation to catch missing tests. It validates new files on the fly and prints a nudge if no test counterpart exists.

What is the best way to maintain test coverage for new Python files without blocking progress?

The best way to maintain test coverage without blocking progress is using a non-blocking nudge that validates new Python files for missing test counterparts. It prints a reminder without interrupting code creation.