cadt-testing — chia-blockchain cadt-testing, community, chia-blockchain, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Testing Agents requiring advanced integration testing capabilities with in-memory SQLite and simulator support Climate Action Data Trust

# Core Topics

Chia-Network Chia-Network
[39]
[14]
Updated: 3/1/2026

Agent Capability Analysis

The cadt-testing skill by Chia-Network is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for chia-blockchain.

Ideal Agent Persona

Ideal for Testing Agents requiring advanced integration testing capabilities with in-memory SQLite and simulator support

Core Value

Empowers agents to run parallel integration tests for v1 and v2 using npm commands, leveraging environment variables like CW_PORT and TEST_RUN_ID for isolated databases and ports, and facilitating seamless testing without CADT server, Chia, or datalayer dependencies

Capabilities Granted for cadt-testing

Running integration tests in simulation mode
Testing v1 and v2 in parallel with isolated databases
Debugging test failures using in-memory SQLite

! Prerequisites & Limits

  • Requires node environment
  • Limited to in-memory SQLite with simulator
  • No support for CADT server, Chia, or datalayer in simulation mode
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

cadt-testing

Install cadt-testing, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

CADT Testing

Prefix all commands with fnm use && per the node-environment rule.

Integration Tests (Simulation Mode)

In-memory SQLite with simulator. No CADT server, Chia, or datalayer required.

"Run the integration tests" = run both v1 and v2 in parallel

bash
1npm run test:v1 & 2npm run test:v2 & 3wait

V1 and V2 use different ports (31310 and 31311 via CW_PORT env var) and isolated databases (via TEST_RUN_ID), so they run safely in parallel. Do not use the combined npm test script — it runs all specs in one process, causing v1/v2 interference.

CommandPortTest files
npm run test:v131310tests/integration/**/*.spec.js, tests/resources/**/*.spec.js
npm run test:v231311tests/v2/integration/**/*.spec.js

How they work

  • run-tests.sh generates a unique TEST_RUN_ID, creates isolated SQLite DBs in tests/test-dbs/, cleans up on exit
  • Environment: NODE_ENV=test, USE_SIMULATOR=true, CW_PORT=<port>
  • Port isolation: CW_PORT env var overrides APP.CW_PORT in config-loader.js
  • Timeout: 300s per test

Live API Tests

Run against a real CADT server with actual Chia datalayer.

Prerequisites

  • CADT server running on port 31310
  • Chia node + datalayer running and synced
  • Home organization created
  • Empty database for POST phases (or SKIP_EMPTY_CHECK=true)
  • Config at ~/.chia/mainnet/cadt/config.yaml
  • Optional: MySQL mirror DB for mirror verification

"Run the v2 live API test" = data-short

bash
1npm run test:v2:live:data:short

Runs tests/v2/live-api/data-short.js:

  1. Validate request failures (bad data rejected)
  2. POST all test records, batch commit
  3. Validate child record failures
  4. PUT all records, batch commit
  5. DELETE all records, batch commit

After each commit, verifies records in DB (and optionally MySQL mirror).

All live API commands

CommandPurpose
npm run test:v2:live:data:shortV2 short mode: batch commit per phase
npm run test:v2:live:data:extendedV2 extended mode: commit per endpoint
npm run test:v1:live:data:shortV1 short mode
npm run test:v2:live:organization:createCreate V2 home organization
npm run test:v1:live:organization:createCreate V1 home organization
npm run test:v1:live:organization:upgradeUpgrade V1 org to V2
npm run test:v2:live:organization:deleteDelete V2 organization

Test modes

  • Short (TEST_MODE=short): Batch all POSTs/PUTs/DELETEs with one commit per phase. Faster.
  • Extended (TEST_MODE=extended): Each test file commits individually. More thorough.

Delete Test Data

If user specifies a version, run that version. If unspecified, run both:

bash
1npm run test:v1:delete-test-data 2npm run test:v2:delete-test-data
CommandBehavior
npm run test:v1:delete-test-dataDeletes records with TEST- prefix from V1 projects and units
npm run test:v2:delete-test-dataDeletes all records from 20 V2 data tables (children first)

Both require a running CADT server. Timeout: 600s.

V2 delete flow: clear staging -> GET all -> stage DELETEs -> commit -> wait for staging empty -> verify.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is cadt-testing?

Ideal for Testing Agents requiring advanced integration testing capabilities with in-memory SQLite and simulator support Climate Action Data Trust

How do I install cadt-testing?

Run the command: npx killer-skills add Chia-Network/cadt/cadt-testing. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for cadt-testing?

Key use cases include: Running integration tests in simulation mode, Testing v1 and v2 in parallel with isolated databases, Debugging test failures using in-memory SQLite.

Which IDEs are compatible with cadt-testing?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for cadt-testing?

Requires node environment. Limited to in-memory SQLite with simulator. No support for CADT server, Chia, or datalayer in simulation mode.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Chia-Network/cadt/cadt-testing. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use cadt-testing immediately in the current project.

Related Skills

Looking for an alternative to cadt-testing or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI