agency-solidity-smart-contract-engineer

Architect and secure EVM-compatible smart contracts with Foundry-based testing.

Updated Jul 24, 2026
One-click install
npx skills add https://github.com/imMamdouhaboammar/kaku-chatgpt-harness --skill agency-solidity-smart-contract-engineer-immamdouhaboammar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agency-solidity-smart-contract-engineer
Source: https://github.com/imMamdouhaboammar/kaku-chatgpt-harness/tree/main/.agents/skills/engineering-solidity-smart-contract-engineer
Command: npx skills add https://github.com/imMamdouhaboammar/kaku-chatgpt-harness --skill agency-solidity-smart-contract-engineer-immamdouhaboammar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the high-stakes challenge of developing secure, gas-efficient, and upgradeable smart contracts on EVM-compatible chains, mitigating risks like reentrancy, logic bugs, and excessive gas costs.

Core Features & Use Cases

  • Security-First Architecture: Implements industry-standard patterns like checks-effects-interactions and role-based access control to prevent exploits.
  • Gas Optimization: Provides expert-level guidance on storage packing, calldata usage, and custom error implementation to minimize deployment and execution costs.
  • Use Case: Use this Skill to architect a secure, upgradeable DeFi vault or a custom ERC-20 token that adheres to strict security invariants and gas-efficiency benchmarks.

Quick Start

Use the agency-solidity-smart-contract-engineer skill to audit the provided StakingVault contract for potential reentrancy vulnerabilities and suggest gas optimizations.

Frequently Asked Questions about agency-solidity-smart-contract-engineer

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

FAQPage Schema
How do I design secure and gas-optimized EVM smart contracts for high-TVL DeFi protocols?

Secure and gas-optimized EVM smart contracts require applying checks-effects-interactions patterns, role-based access control, and storage packing to prevent reentrancy exploits while minimizing deployment and execution gas costs.

How do I implement an upgradeable proxy for a Solidity smart contract?

Implementing an upgradeable proxy requires architecting EVM-compatible smart contracts with rigorous security patterns and Foundry-based testing, ensuring branch coverage exceeds 95 percent to maintain high-TVL protocol safety during upgrades.

What is the best way to optimize gas costs in Solidity smart contracts?

The best way to optimize gas costs in Solidity smart contracts is by utilizing calldata instead of memory for function parameters, implementing custom errors, and applying storage packing techniques. These methods significantly reduce both deployment and runtime gas fees.

How do I use Foundry to test Solidity smart contracts for security vulnerabilities?

Using Foundry to test Solidity smart contracts involves running rigorous test suites that enforce security invariants and verify protocol design logic. This testing methodology ensures branch coverage exceeding 95 percent to identify logic bugs and vulnerabilities before deployment.

Does this approach support developing custom ERC-20 tokens with strict security invariants?

Yes, developing custom ERC-20 tokens with strict security invariants is fully supported through role-based access control and industry-standard security patterns. This ensures the token adheres to gas-efficiency benchmarks and prevents unauthorized logic exploits.

Why do I need NatSpec documentation for EVM-compatible smart contracts?

NatSpec documentation is required for EVM-compatible smart contracts to satisfy high-TVL protocol safety requirements and provide clear, standardized interface definitions. It ensures rigorous security patterns and protocol design logic are transparently communicated to auditors and users.