CtrlK
BlogDocsLog inGet started
Tessl Logo

hardhat-deploy-migration

Comprehensive guide for migrating projects from hardhat-deploy v1 to v2, including dependency updates, configuration restructuring, deploy script conversion, test updates, and troubleshooting

76

5.26x
Quality

65%

Does it follow best practices?

Impact

100%

5.26x

Average score across 3 eval scenarios

SecuritybySnyk

Advisory

Suggest reviewing before use

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/hardhat-deploy-migration/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

62%

Modernize Deploy Scripts for Token Registry Project

Deploy script conversion to v2 pattern

Criteria
Without context
With context

deployScript wrapper

20%

100%

env parameter

50%

100%

namedAccounts via env

25%

100%

account: not from:

100%

100%

artifact: parameter present

0%

100%

No log/autoMine params

100%

100%

Tags in second arg

0%

100%

viem not ethers

0%

100%

deployViaProxy for proxy

0%

100%

env.tags.live not hre.network.live

25%

100%

.js extensions on local imports

100%

100%

rocketh/deploy.js import

37%

100%

100%

100%

Upgrade Project Infrastructure for New Deployment Toolchain

Project configuration restructuring for v2

Criteria
Without context
With context

type:module in package.json

0%

100%

hardhat v3 version

0%

100%

rocketh packages present

0%

100%

v1 packages removed

0%

100%

viem dependency

0%

100%

plugins array in config

0%

100%

HardhatDeploy default import

0%

100%

namedAccounts removed from config

0%

100%

solidity profiles format

0%

100%

network helpers from hardhat-deploy

0%

100%

rocketh/config.ts created

0%

100%

rocketh/deploy.ts created

0%

100%

rocketh/environment.ts created

0%

100%

tsconfig module:node16

0%

100%

100%

81%

Rewrite Contract Tests for Updated Toolchain

Test file migration to v2 patterns

Criteria
Without context
With context

node:test runner

0%

100%

earl assertions

0%

100%

loadAndExecuteDeploymentsFromFiles

20%

100%

network.connect() usage

0%

100%

networkHelpers.loadFixture

0%

100%

env.get with ABI type

22%

100%

ABI types from generated

0%

100%

env.execute for writes

40%

100%

env.unnamedAccounts

0%

100%

BigInt literals in args

0%

100%

.js on local imports

57%

100%

No ethers.getContract

100%

100%

Repository
wighawag/hardhat-deploy
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.