agentsclimarketplace

Foundry project init

Skill dor-rondel/agent-skills-mcp/resources/solidity/foundry-project-init

Use this skill when initializing a brand new EVM Solidity smart contract project using Foundry from scratch. Covers forge setup, structure scaffolding, and configuring the exact path-filtered GitHub Actions CI workflow.From its SKILL.md

Install
npx -y skills add dor-rondel/agent-skills-mcp --skill foundry-project-init

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 6 commands, including `mkdir smart-contract && cd smart-contract` and 5 more.

SKILL.md

2.7 KB, 547 tokens by cl100k_base, as published. Nobody here has run it

Foundry Smart Contract Project Initialization & CI Setup

This skill provides the end-to-end setup script to bootstrap a clean, secure Solidity development workspace utilizing Foundry (forge) along with an automated GitHub Actions CI pipeline.

🏃‍♂️ Step-by-Step Initialization Workflow

1. Initialize the Foundry Template

Create your root repository folder and initialize the default Foundry workspace structure natively:

mkdir smart-contract && cd smart-contract
forge init --vscode

2. Scaffold Hidden & Automation Paths

Ensure all required configuration and CI directories exist before writing template files:

mkdir -p .github/workflows

3. Establish GitHub Actions CI Workflow

Inject your strict, path-filtered continuous integration pipeline. This workflow optimizes runner performance by only executing on actual configuration or contract source code alterations in .github/workflows/ci.yml

name: CI

    permissions: {}

    on:
      push:
        paths:
          - 'contracts/**'
          - 'script/**'
          - 'foundry.toml'
      pull_request:
        paths:
          - 'contracts/**'
          - 'script/**'
          - 'foundry.toml'
      workflow_dispatch:

    jobs:
      check:
        name: Foundry project
        runs-on: ubuntu-latest
        permissions:
          contents: read
        steps:
          - uses: actions/checkout@v6
            with:
              persist-credentials: false
              submodules: recursive

          - name: Install Foundry
            uses: foundry-rs/foundry-toolchain@v1

          - name: Show Forge version
            run: forge --version

          - name: Run Forge fmt
            run: forge fmt --check

          - name: Run Forge build
            run: forge build --sizes

          - name: Run Forge tests
            run: forge test -vvv

🛠️ Baseline Verification & Sanity Run

Always execute the verification pipeline locally directly after bootstrapping to ensure your compiler settings (foundry.toml), mappings, and initial test files compile flawlessly before publishing upstream:

  1. Format Check: Validate that style layouts are structurally compliant:
forge fmt --check
  1. Build Verification: Compile contracts and ensure sizes don't breach the EIP-170 limit:
forge build --sizes
  1. Test Execution: Run the baseline suite with verbose execution logging:
forge test -vvv

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.