library-api-design

Installation
SKILL.md

Library API design

This repo is a base library: every contract is inherited downstream. The rules below preserve that inheritability. Most of them are not lint-enforced — they require judgment when adding new contracts.

virtual on overridable functions

Mark every public and internal function virtual — with two specific exceptions:

Alias functions (one function that just forwards to another with no added logic) are NOT virtual. The canonical form is the virtual one. Add a NatSpec NOTE: pointing to it:

Installs
1
GitHub Stars
27.2K
First Seen
Sep 13, 2026
library-api-design — openzeppelin/openzeppelin-contracts