validate-config

Validate diffyscan config files against TypedDict schema definitions.

142|19|Updated Apr 22, 2023
One-click install
npx skills add https://github.com/lidofinance/diffyscan --skill validate-config-lidofinance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-config
Source: https://github.com/lidofinance/diffyscan/tree/main/.claude/skills/validate-config
Command: npx skills add https://github.com/lidofinance/diffyscan --skill validate-config-lidofinance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validate the diffyscan config file at $ARGUMENTS (or ask for the path if not provided). Read the config file using the Read tool and use the TypedDict definitions in diffyscan/utils/custom_types.py as the schema reference.

Core Features & Use Cases

  • Uses the Config TypedDict in diffyscan/utils/custom_types.py to enforce required fields such as contracts, network, explorer_hostname, and github_repo, and optional fields like dependencies, explorer_token_env_var, explorer_chain_id, bytecode_comparison, fail_on_bytecode_comparison_error, and source_comparison.
  • Detects YAML hex coercion issues and reports keys or values that are not valid hex representations when YAML autos-convertes strings to integers.
  • Provides guidance on address format best practices and explains how runtime checks occur during verification.
  • Returns a structured report with errors and warnings to guide fixes before running verification.

Quick Start

Provide the path to your config file and run the validation command to receive a structured report.