Add AI agent skill for Hardhat V2 to V3 migration (issue #8016)#8039
Add AI agent skill for Hardhat V2 to V3 migration (issue #8016)#8039jose-compu wants to merge 13 commits into
Conversation
🦋 Changeset detectedLatest commit: bfb8dc0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Pull request overview
Adds an AI-agent-oriented migration “skill” document to guide upgrading Hardhat v2 projects to Hardhat v3, including core config/test changes and a plugin ecosystem mapping.
Changes:
- Introduces a new
SKILL.mdwith a phased migration checklist (audit → core migration → plugins → tests → tasks → verification). - Provides plugin migration map + examples for v3 declarative plugin/task configuration.
- Adds troubleshooting + quick-reference tables for common v2→v3 differences.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…thub.com/jose-blockchain/hardhat into feature/hardhat-v2-to-v3-migration-skill
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@kanej thanks for you help, I am an external contributor. Does this SKILL.md goes here or somewhere else in another repo or web? |
AI Agent Skill for Hardhat V2 to V3 Migration
Closes #8016
Summary
Adds a
SKILL.mdfile that AI agents (Cursor, Claude Code, Codex, etc.) can use to systematically migrate a Hardhat V2 project to V3.The skill covers:
configVariable(), explicit network connectionshre.network.connect(), updated Chai matchers, network helpers,loadFixturepattern.build(), hooks system replacing subtasks/extendConfig/extendEnvironmentFile placement note
I placed the skill at
skills/hardhat-v2-to-v3-migration/SKILL.mdbut I'm not sure where skills should live in the Hardhat repo structure. Happy to move it wherever the team prefers.Sources
Built from the official migration docs: