framework-detection

Detect Foundry, Hardhat, or hybrid Solidity frameworks in a project directory.

2|1|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/MolcajeteAI/plugin --skill framework-detection-molcajeteai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framework-detection
Source: https://github.com/MolcajeteAI/plugin/tree/main/deprecated/tech-stacks/solidity/skills/framework-detection
Command: npx skills add https://github.com/MolcajeteAI/plugin --skill framework-detection-molcajeteai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automatically identifies the Solidity development framework (Foundry, Hardhat, or Hybrid) in a project, ensuring that subsequent development tasks use the correct tools and commands.

Core Features & Use Cases

  • Automatic Framework Detection: Identifies Foundry, Hardhat, or a hybrid setup by checking for configuration files.
  • Workflow Adaptation: Adjusts compilation, testing, and deployment commands based on the detected framework.
  • Use Case: When starting a new Solidity task, this skill ensures you're using forge test for Foundry projects or npx hardhat test for Hardhat projects, preventing command errors and streamlining development.

Quick Start

Use the framework-detection skill to determine the Solidity development framework for the current project.

Frequently Asked Questions about framework-detection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect if a Solidity project uses Foundry or Hardhat?

Solidity framework detection identifies Foundry or Hardhat by checking for specific configuration files in a project directory, ensuring subsequent development workflows use the correct compilation and testing commands.

How does Solidity framework detection adapt development workflows?

Solidity framework detection adapts development workflows by adjusting compilation, testing, and deployment commands based on the detected framework, such as mapping Foundry projects to forge test and Hardhat to npx hardhat test.

Can I use this to detect a hybrid Foundry and Hardhat setup?

Yes, framework detection identifies hybrid setups containing both Foundry and Hardhat configurations, and recommends a specific strategy for tool selection to streamline subsequent development tasks.

Why does my smart contract deployment fail with unknown framework errors?

Smart contract deployment fails when using incorrect framework commands, but framework detection prevents these errors by automatically verifying project configurations and mapping them to the correct deployment commands.

What is the best way to automate Solidity tool selection in a development workflow?

Automating Solidity tool selection is best handled by framework detection, which scans the project directory to identify the active framework and dynamically adapts the workflow commands for compilation and testing.