Skip to content

Build with AI

This guide explains how to use coding agents effectively in Hardhat projects.

LLMs are good at working with Hardhat, but to get the best results install our main Hardhat skill:

Terminal window
npx skills add nomicfoundation/hardhat-skills --skill hardhat

Hardhat projects are extensible and can rely on different plugins, so we also publish skills tailored to specific setups.

If your project is based on hardhat-toolbox-viem, install the corresponding skill:

Terminal window
npx skills add nomicfoundation/hardhat-skills --skill hardhat-toolbox-viem

If your project is based on hardhat-toolbox-mocha-ethers:

Terminal window
npx skills add nomicfoundation/hardhat-skills --skill hardhat-toolbox-mocha-ethers

Hardhat docs are agent-friendly: we offer an llms.txt index, and any docs page is also available as Markdown. Pointing your agent at our docs should just work.