generate-vectors

Generate compressed JSON test vectors for valid TRANSACTION_GRAPH paths.

20|Updated Sep 17, 2024
One-click install
npx skills add https://github.com/genlayerlabs/genlayer-fee-distribution-simulator --skill generate-vectors
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-vectors
Source: https://github.com/genlayerlabs/genlayer-fee-distribution-simulator/tree/main/.claude/skills/generate-vectors
Command: npx skills add https://github.com/genlayerlabs/genlayer-fee-distribution-simulator --skill generate-vectors

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate compressed JSON test vectors for all valid paths in the TRANSACTION_GRAPH, enabling exhaustive validation of path generation and vector outputs.

Core Features & Use Cases

  • Generates test vectors for every valid path up to a configurable maximum length.
  • Supports optional variant expansion and quick-mode testing to accelerate validation.
  • Outputs are organized as compressed JSON files suitable for external verification and replay.

Quick Start

Generate test vectors for all paths up to the default maximum length using the default settings.

Frequently Asked Questions about generate-vectors

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

FAQPage Schema
How do I generate JSON test vectors for every valid path in a transaction graph?

To generate JSON test vectors for every valid path in a transaction graph, use the CLI pipeline to identify paths, apply a maximum length, and output compressed JSON files per path for external validators.

What is a compressed test vector and when do I need it for path validation?

A compressed test vector is a compact JSON file representing a specific valid path in a transaction graph. You need it when performing exhaustive validation or replaying path scenarios using external verification tools.

How can I limit the maximum path length when generating test vectors for a large transaction graph?

You can limit the maximum path length by passing a specific flag to the CLI. This restricts the generated test vectors to short or long path scenarios, preventing excessive output during validation.

Does this test vector generator support quick-mode testing for sampling a subset of paths?

Yes, the test vector generator supports a quick-mode option. This feature samples a subset of valid paths rather than generating the full exhaustive set, accelerating the validation process.

Can I expand test vector variants to cover different path scenarios automatically?

Yes, you can apply optional variant expansion via CLI flags. This automatically generates expanded test vectors to cover both short and long path scenarios for more thorough validation.

What's the best way to organize JSON test vector outputs for external validators?

The best way to organize JSON test vector outputs is to use the CLI flag specifying an output location. The pipeline produces per-path compressed JSON files that external validators can directly consume.