Extracts raw price data for isolated unit tests, generating associated parquet files and test modules.

Install

mkdir -p .claude/skills/extract-test-set && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4363" && unzip -o skill.zip -d .claude/skills/extract-test-set && rm skill.zip

Installs to .claude/skills/extract-test-set

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Extract raw price dataframe for a test case
43 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Generate Pytest test modules
  • Isolate raw price data for specific vaults
  • Create companion parquet files
  • Link blockchain explorer metadata to tests

How it works

Runs an ad-hoc script against a central price database to extract a slice of time-series data into a schema-ready format.

Inputs & outputs

You give it
Blockchain explorer link, test case name, chain ID
You get back
Pytest script and parquet price file

When to use extract-test-set

  • Creating vault price tests
  • Extracting test data for simulations
  • Generating price parquet files

About this skill

Extract test set from raw prices

This is a skill to extract price data from the raw prices for an isolated unit test.

Inputs

  1. Smart contract address and a blockchain as a blockchain explorer link
  2. Test case name

Relevant files

Seek metadata and Parquet information here:

Ad-hoc script

Create an ad-hoc Python script that reads

Script inputs

  • chain id (numeric) - address tuple
  • test case name

Scripts

  • Extracts the price series from DEFAULT_UNCLEANED_PRICE_DATABASE

Script outputs

  • Pytest test module with a single test case
  • Related Parquet file containing price data only for this vault

Write test case

Then the script creates test_xxx file, stores metadata there inline and creates corresponding test_xxx_price.parquet file for the test case to read.

  • Include only a single test function, do not generate excessive tests

Run the script

  • After running the script, run the generated test case

When not to use it

  • General data analysis
  • Large-scale backtesting across multiple chains

Prerequisites

Access to vault databasePython development environment

Limitations

  • Requires database connectivity
  • Limited to predefined price sources

How it compares

It eliminates manual data trimming and boilerplate creation by generating specialized test fixtures directly from production state.

Compared to similar skills

extract-test-set side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
extract-test-set (this skill)16moNo flagsIntermediate
senior-data-engineer217moReviewAdvanced
hugging-face-datasets16moReviewIntermediate
bsl-model-builder08moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry