Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 31, 2025

This PR adds a comprehensive .github/copilot-instructions.md file that provides detailed instructions for GitHub Copilot coding agents working in this Hardhat smart contract project.

Key Features

Exhaustively Validated Commands: All instructions have been tested and validated in the current environment, including timing measurements and failure scenarios.

Environment-Specific Guidance: Documents the specific limitations of this environment, including:

  • Network restrictions that prevent Solidity compiler downloads
  • Node.js version warnings (20.19.4 vs recommended 22.10.0+)
  • Dependency conflicts requiring --legacy-peer-deps flag

Working Commands (All < 1 second):

  • npm install --legacy-peer-deps (4 seconds, REQUIRED)
  • npx hardhat --version, npx hardhat clean
  • npx hardhat flatten contracts/SEQToken.sol and contracts/SEQICO.sol

Explicit Failure Documentation: Clearly identifies commands that will fail due to network restrictions:

  • npx hardhat compile - Cannot download compiler
  • npx hardhat test, npx hardhat run scripts/deploy.js - Require compilation

Alternative Validation Workflows: Since builds/tests cannot run, provides comprehensive manual validation strategies using:

  • Contract flattening for dependency verification
  • Static code analysis approaches
  • Manual code review guidelines

Imperative Tone: Instructions use commanding language ("Run this command", "DO NOT attempt") as specified, with "NEVER CANCEL" warnings and explicit timeout guidance.

The instructions enable effective development work within the constraints of this environment while clearly documenting what works and what doesn't, preventing wasted time on commands that will fail.

Fixes #6.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • binaries.soliditylang.org
    • Triggering command: node /home/REDACTED/work/scripts-deploy.js/scripts-deploy.js/node_modules/.bin/hardhat compile (dns block)
    • Triggering command: node /home/REDACTED/work/scripts-deploy.js/scripts-deploy.js/node_modules/.bin/hardhat test (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@sonnyquinn24 sonnyquinn24 marked this pull request as ready for review August 31, 2025 09:02
@Copilot Copilot AI review requested due to automatic review settings August 31, 2025 09:02
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonnyquinn24 sonnyquinn24 merged commit ac73bb0 into main Aug 31, 2025
1 check passed
Copy link
Owner

@sonnyquinn24 sonnyquinn24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

@Copilot Copilot AI changed the title [WIP] ✨ Set up Copilot instructions Add comprehensive GitHub Copilot instructions for smart contract development workflow Aug 31, 2025
@Copilot Copilot AI requested a review from sonnyquinn24 August 31, 2025 09:13
Copilot finished work on behalf of sonnyquinn24 August 31, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Set up Copilot instructions

2 participants