preparing-tests

Automate creation and verification of test data, validators, and checkers for competitive programming problems.

Updated Jul 29, 2026
One-click install
npx skills add https://github.com/LLaammTTeerr/competitive-programming --skill preparing-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preparing-tests
Source: https://github.com/LLaammTTeerr/competitive-programming/tree/main/skills/preparing-tests
Command: npx skills add https://github.com/LLaammTTeerr/competitive-programming --skill preparing-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill solves the challenge of creating high-quality, reliable test suites for competitive programming problems by ensuring that generators, validators, and checkers are correctly implemented and synchronized with problem constraints.

Core Features & Use Cases

  • Contract Enforcement: Automatically generates header files from problem constraints to ensure validators and generators never drift from the source of truth.
  • Test Suite Validation: Provides a structured pipeline to verify that every declared bound is reached and that the test suite is legally compliant with problem specifications.
  • Use Case: When setting a new problem, use this skill to build a validator that strictly enforces subtask constraints and to generate a diverse set of test cases—ranging from random to adversarial—that fully cover the problem's complexity.

Quick Start

Use the preparing-tests skill to generate the constraints header and validate the test suite for the problem located in the current directory.

Frequently Asked Questions about preparing-tests

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

FAQPage Schema
How do I generate validators and checkers for competitive programming tests?

You can generate validators and checkers by using this skill to automatically create header files from problem constraints. This ensures your generators and validators stay synchronized with the original problem specifications, maintaining consistency across the suite.

What is the best way to enforce subtask constraints in competitive programming problem setting?

The best way to enforce subtask constraints is by building a validator that strictly checks problem specifications against the source of truth. This skill automates contract enforcement, verifying that every declared bound is reached and that the test suite is legally compliant with subtask rules.

Does competitive programming test generation require testlib to validate problem constraints?

Yes, this skill requires testlib to maintain consistency between problem statements and test data contracts. It integrates testlib with Python tools to support generator development, subtask-specific validation, and reachability analysis for problem constraints.

How do I verify that my test suite reaches all declared bounds for a competitive programming problem?

To verify that your test suite reaches all declared bounds, run the skill's structured validation pipeline. It performs reachability analysis for problem constraints to ensure every declared bound is reached and that the test suite is legally compliant with the problem specifications.

Can I use this approach to generate adversarial test cases for competitive programming algorithms?

Yes, you can use this skill to generate a diverse set of test cases ranging from random to adversarial. When setting a new problem, it helps build a validator that strictly enforces subtask constraints while fully covering the problem's complexity with varied test data.