To write a buildpack, we follow the Buildpack Specification(opens in a new tab), which defines the contract between buildpacks and the lifecycle.