shadowing-state-variables
CommunityDetect state variable shadowing bugs.
AuthorApegurus
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill identifies instances where state variables in child contracts share the same name as variables in parent contracts, or where local variables shadow state variables, potentially leading to unintended behavior and security vulnerabilities.
Core Features & Use Cases
- Inheritance Analysis: Detects state variable name conflicts between parent and child contracts.
- Scope Analysis: Identifies local variables or function parameters that shadow existing state variables.
- Solidity Version Awareness: Accounts for compiler behavior changes in Solidity versions prior to 0.6.0 regarding state variable shadowing.
- Use Case: Ensure that critical variables like
owneroradminare not inadvertently shadowed, preventing access control bypasses.
Quick Start
Analyze the attached contract 'MyToken.sol' for any instances of state variable shadowing.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: shadowing-state-variables Download link: https://github.com/Apegurus/solidity-argus/archive/main.zip#shadowing-state-variables Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.