analyzing-weights

Official

Detect weight diffs and flag regressions.

AuthorMoonsong-Labs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Analyzes git diffs of Substrate weight files to flag significant regressions in ref_time, min_execution_time, and DB reads, helping maintain benchmark stability.

Core Features & Use Cases

  • Parse per-function weight blocks from unified diffs and extract base_ref, base_proof, min_execution_time, per-variable ref/proof multipliers, and DB reads.
  • Generate multi-section reports with base ref_time changes, per-variable multiplier changes, minimum execution time shifts, and a per-runtime summary across moonbase, moonbeam, and moonriver.
  • Use during benchmark updates and PR reviews to surface regressions and guide safe weight updates.

Quick Start

Pipe the git diff of weight files into the analyzer to generate a detailed report.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: analyzing-weights
Download link: https://github.com/Moonsong-Labs/knowledge-work-plugins/archive/main.zip#analyzing-weights

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.