OpenParable
Skip to content
← Back to skills

Extract Test Set

Documents
extract-test-set

Extract Test Set is an Agent Skill for documents published in the tradingstrategy-ai/web3-ethereum-defi repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Extract raw price dataframe for a test case

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/tradingstrategy-ai/web3-ethereum-defi/blob/HEAD/.claude/skills/extract-test-set/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/extract-test-set, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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