Toolverse
All skills

output-validation

by benchflow-ai

Local self-check of instructions and mask outputs (format/range/consistency) without using GT.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Testing
Views
1

About this skill

Local self-check of instructions and mask outputs (format/range/consistency) without using GT.

How to use

  1. Przygotuj trzy pliki: wideo źródłowe, plik JSON z instrukcjami przedziałów ramek (klucze w formacie "start-end") oraz plik NPZ z maskami. Upewnij się, że struktura NPZ zawiera klucze dla każdej ramki w formacie f_{i}data, f{i}indices i f{i}_indptr.

  2. Zainstaluj wymagane biblioteki: json, numpy i opencv-python (cv2). Umiejętność dostarcza szablon kodu w Pythonie — dostosuj ścieżki do swoich plików wideo, instrukcji i masek.

  3. Uruchom skrypt walidacyjny. Kod automatycznie wczyta metadane wideo (liczbę ramek, wysokość, szerokość) i przeanalizuje strukturę plików wyjściowych.

  4. Zweryfikuj format kluczy JSON — każdy klucz musi być parą liczb całkowitych oddzielonych myślnikiem, gdzie początek ≤ koniec, a wartości muszą być listami niepustych stringów z dozwolonych etykiet.

  5. Sprawdź pokrycie ramek: maksymalny indeks ramki nie może przekroczyć liczby ramek w wideo minus jeden, a liczba ramek w NPZ musi odpowiadać liczbie próbkowanych ramek bez luk.

  6. Potwierdź integralność CSR — każda ramka powinna mieć poprawną strukturę rzadkiej macierzy z indptr o długości H+1 (gdzie H to wysokość wideo) i wszystkimi indeksami w zakresie [0, W). Po przejściu wszystkich kontroli możesz bezpiecznie przekazać dane do dalszego przetwarzania.

Related skills

backtesting-frameworks

by wshobson

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

Testing
12105

go-dev-guidelines

by jumppad-labs

This skill should be used when writing, refactoring, or testing Go code. It provides idiomatic Go development patterns, TDD-based workflows, project structure conventions, and testing best practices using testify/require and mockery. Activate this skill when creating new Go

Testing
1190

vitest

by antfu

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

Testing
1236

code-reviewer

by google-gemini

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

Testing
1248

dependency-upgrade

by wshobson

Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.

Testing
17138

test-cases

by cexll

This skill should be used when generating comprehensive test cases from PRD documents or user requirements. Triggers when users request test case generation, QA planning, test scenario creation, or need structured test documentation. Produces detailed test cases covering

Testing
2862