Toolverse
All skills

interface-lint

by Layr-Labs

Format and lint Solidity interface files following EigenLayer conventions. Use when the user asks to format an interface, add documentation to an interface, or create a new interface. Ensures proper organization with Errors/Events/Types sub-interfaces.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
Layr-Labs
Category
Backend

About this skill

Format and lint Solidity interface files following EigenLayer conventions. Use when the user asks to format an interface, add documentation to an interface, or create a new interface. Ensures proper organization with Errors/Events/Types sub-interfaces.

How to use

  1. Zainstaluj skill interface-lint w swoim projekcie Solidity opartym na EigenLayer, dodając go do konfiguracji Claude/Copilot.
  2. Przygotuj plik interfejsu Solidity lub poproś Claude o utworzenie nowego interfejsu dla wybranego kontraktu.
  3. Poproś skill o sformatowanie interfejsu — skill automatycznie utworzy cztery podinterfejsy w poprawnej kolejności: I{ContractName}Errors, I{ContractName}Types, I{ContractName}Events i I{ContractName}.
  4. Dla każdego błędu w interfejsie Errors skill wygeneruje kod błędu za pomocą polecenia cast sig (np. cast sig "InvalidOperatorSet()") i doda dokumentację @notice oraz @dev z kodem.
  5. Sprawdź wygenerowany kod — interfejsy powinny być prawidłowo odziedziczone: Events dziedziczy Types, główny interfejs dziedziczy Errors i Events.
  6. Jeśli potrzebujesz dodać dokumentację do istniejącego interfejsu lub zmienić jego strukturę, poproś skill o aktualizację — narzędzie dostosuje plik do standardów EigenLayer.

Related skills