agentleFS
leanEthereumleanEthereum/leanSpec/.claude/skills/spec-diff/SKILL.md

spec-diff

Skill143 starsChanged 2 months agoMITView on GitHub

Show what changed in leanSpec between devnet versions or HEAD

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. Xindaan/claude-skills★ 1same name
    2. dnjstjs/claude-skills★ 0same name
    3. K-log/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository10 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Excluded: Test framework infrastructure (packages/testing/, consensus_testing/), unit tests (tests/), interop tests (tests/interop/), …

    line 14
  2. Very specific:

    Look up commit hashes from VERSIONS.md in the repo root.

    line 29
  3. Distinctive:

    If one argument: compare that version → HEAD

    line 33
  4. Distinctive:

    If two arguments: compare first → second

    line 34
  5. Distinctive:

    If a version is not found in VERSIONS.md, report the available versions and abort.

    line 37
  6. Very specific:

    After the spec component sections, include a Test Vectors section covering changes to consensus test fixtures (tests/consensus/).

    line 93
  7. Distinctive:

    Keep descriptions concise.

    line 128

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/spec-diff - Spec Changelog Between Versions

Show what changed in the spec code (src/lean_spec/) and consensus test vectors (tests/consensus/) between two devnet versions (or HEAD).

Scope: Protocol-level spec types, functions, containers, forkchoice logic, and the test fixtures that generate cross-client test vectors.

Excluded: Test framework infrastructure (packages/testing/, consensus_testing/), unit tests (tests/), interop tests (tests/interop/), documentation (docs/), CI/tooling configs, and the node implementation layer (networking, sync, storage, node runner).

Usage

  • /spec-diff devnet3 - Changes from devnet 3 to HEAD
  • /spec-diff devnet2 devnet3 - Changes from devnet 2 to devnet 3
  • /spec-diff devnet0 devnet3 - Full changelog across multiple devnets

Steps

1. Resolve version commits

Look up commit hashes from VERSIONS.md in the repo root. It contains a table mapping version names (e.g. "Devnet 3") to commit hashes.

Parse the argument(s):

  • If one argument: compare that version → HEAD
  • If two arguments: compare first → second
  • Match case-insensitively and flexibly (e.g. devnet3, Devnet 3, d3 should all resolve to the same entry)

If a version is not found in VERSIONS.md, report the available versions and abort.

2. Get changed files

Run both commands:

git diff --name-only <from-commit> <to-commit> -- src/lean_spec/
git diff --name-only <from-commit> <to-commit> -- tests/consensus/

Filter to .py files only.

3. Analyze spec changes

For each changed spec file (src/lean_spec/), run:

git diff <from-commit> <to-commit> -- <file>

Categorize each item as:

  • New - functions/types/modules that didn't exist in the from-version
  • Modified - functions/types whose signature or body changed (includes renames)
  • Removed - functions/types that were deleted

For modified items, briefly describe what changed (e.g. "added deadline parameter", "changed return type from bool to Optional[bool]").

Detecting renames: A rename+change appears in the diff as a removal in one place and an addition in another. Before classifying something as [Removed] + [New], check whether the removed item has a corresponding new item with a similar name, similar parameters, or similar objective. If so, report it as a single [Modified] entry: old_name() → renamed to new_name(), with a description of what else changed. Common rename patterns: prefix/suffix changes (gossip_ → attestation_), class extraction (function → Class.method), split (one_func → two_funcs).

4. Analyze test vector changes

For each changed consensus test file (tests/consensus/), run:

git diff <from-commit> <to-commit> -- <file>

Summarize changes to test vectors grouped by test category (fork choice, SSZ, signature verification, etc.). Focus on:

  • New test cases added
  • Tests whose scenarios changed (e.g. "blocks now carry explicit attestations instead of relying on auto-collection")
  • Tests removed
  • Behavioral changes in what's being tested (e.g. "fork weight now based on attestations not block count")

5. Output report

Group changes by component (logical area of the spec), not by file path. Within each component, prefix each item with [New], [Modified], or [Removed].

After the spec component sections, include a Test Vectors section covering changes to consensus test fixtures (tests/consensus/).

## Spec changes: Devnet 3 → HEAD

### Block Envelope

- [New] `SignedBlock` — replaces `SignedBlockWithAttestation`
- [Removed] `BlockWithAttestation` — no longer needed

### State Transition

- [Modified] `State` — added `deposit_index` field (Uint64)

### Test Vectors

**Fork Choice** (5 files, +770 -407 lines)
- [Modified] Tests now use explicit attestations — weight from attestations not block count
- [Removed] `test_auto_collect_proposer_attestations` — auto-collection removed

**SSZ Containers** (2 files)
- [Modified] `Validator` tests — dual pubkeys

### Summary
- X spec files, Z test files changed
- Brief description of core design changes

Guidelines:

  • Group spec changes by logical component (e.g. "Block Envelope", "Validator Model", "Aggregation", "Forkchoice Store"), not by file path.
  • Each item is a bullet prefixed with [New], [Modified], or [Removed].
  • The Test Vectors section groups by test category (fork choice, SSZ, signature verification, state transition, etc.) with file counts and line stats.
  • Keep descriptions concise. The goal is to give implementation teams a clear picture of what they need to update, not a line-by-line diff.
  • End with a Summary section highlighting core design changes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.