Ethereum Base Smart Contract Security Capability Pack Skill
Expert EVM capability skill for secure contract architecture across Ethereum and Base, including Foundry testing and operational controls.
Open the source and read safety notes before installing.
Prerequisites
- Solidity codebase and deployment scripts
- Security requirements and risk tolerance
- Testnet staging environment
Schema details
- Install type
- package
- Reading time
- 10 min
- Difficulty score
- 91
- Troubleshooting
- Yes
- Breaking changes
- No
- Package verified
- Yes
- SHA-256
- 3f10c007835d0f339dc11a96b12cc7951032f9d14ce505951d2c0bf0f43d4312
- Skill type
- capability-pack
- Skill level
- expert
- Verification
- validated
- Verified at
- 2026-04-10
| Platform | Support | Install path |
|---|---|---|
| claude-code | Native | .claude/skills/<skill-name>/SKILL.md |
| codex | Native | .agents/skills/<skill-name>/SKILL.md |
| windsurf | Native | .windsurf/skills/<skill-name>/SKILL.md |
| gemini | Native | .gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md |
| cursor | Adapter | .cursor/rules/<skill-name>.mdc |
| cli | Manual | AGENTS.md or tool-specific context file |
Full copyable content
# Trigger
"Use the Ethereum/Base smart contract security capability pack for this protocol."
# Required output
1) Threat model and trust assumptions
2) Contract architecture and invariants
3) Foundry test/fuzz/invariant suite plan
4) Deployment and incident response checklistAbout this resource
Knowledge Freshness
This capability pack is pinned to documentation verified on 2026-04-10. When upstream docs change, refresh endpoint contracts, examples, and constraints before using this skill for production changes.
Retrieval Sources
- https://ethereum.org/developers/docs/
- https://book.getfoundry.sh/
- https://docs.openzeppelin.com/contracts
- https://docs.base.org/get-started/deploy-smart-contracts
Always prefer direct retrieval from official docs/API references over model memory for limits, endpoint signatures, and behavior guarantees.
Core Workflow
- Confirm target version/runtime and pull latest official docs for the task scope.
- Build an execution plan with explicit read-only discovery before any mutation.
- Validate contracts, permissions, and safety constraints before applying changes.
- Execute with deterministic checkpoints and rollback criteria.
- Produce a verification report with evidence, caveats, and next actions.
Overview
This capability pack teaches agents to reason about Solidity security at protocol depth across Ethereum and Base environments. It combines architecture discipline, robust testing, and safer operational rollout.
Capability Scope
- Threat modeling and trust assumptions
- Permission and upgrade model hardening
- Arithmetic/oracle/reentrancy/griefing defense strategies
- Foundry unit/fuzz/invariant methodology
- Deployment, monitoring, and emergency controls
Compatibility
Native
- Claude Code / Claude: native skill usage via
SKILL.md. - Codex/OpenAI workflows: compatible with Agent Skills-style
SKILL.mdcontent as reusable workflow instructions.
Manual Adaptation
- Gemini CLI: native skill usage via
.gemini/skills/<skill-name>/SKILL.mdor.agents/skills/<skill-name>/SKILL.mdwhere supported. - Cursor: use the generated
.cursor/rules/*.mdcadapter for project rules. - OpenClaw and similar agents: use the same skill content as a reusable prompt/workflow file when native skill import is unavailable.
Production Rules
- Treat invariant violations as release blockers.
- Minimize privileged operations and centralization risk.
- Verify deployment config parity with audited assumptions.
- Maintain emergency pathways (pause/kill-switch) with governance constraints.
Troubleshooting
Issue: Safe tests pass but adversarial behavior still possible
Fix: Expand fuzz + invariant suites and include cross-contract interaction scenarios.
Issue: Upgrade path introduces hidden risk
Fix: Add storage-layout and permission diff checks to release gating.
Issue: Incident response is untested
Fix: Simulate emergency controls before mainnet launch.
Output Contract
- Provide an implementation plan ordered by risk and dependency.
- Provide exact production-ready config/commands with no placeholders.
- Call out secrets, permissions, and least-privilege requirements.
- Include rollback and recovery guidance for each risky step.
Validation Checklist
- Verify all referenced docs/versions before applying changes.
- Run regression checks for core user flow and error paths.
- Confirm observability/logging is enabled for changed components.
- Confirm security controls (auth, rate limits, input validation) still pass.
- Record final known limitations and follow-up actions.
Source citations
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.