smart-contract-craft

Enforce security, upgrade, testing, and audit readiness for Solidity contract releases.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/prapanch/agent-coda --skill smart-contract-craft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: smart-contract-craft
Source: https://github.com/prapanch/agent-coda/tree/main/web3/smart-contract-craft
Command: npx skills add https://github.com/prapanch/agent-coda --skill smart-contract-craft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents costly smart-contract failures by providing security-first engineering patterns, upgrade strategy rules, gas-conscious coding practices, and test/audit readiness checklists for on-chain systems.

Core Features & Use Cases

  • Security patterns that address real exploit classes (reentrancy, access control, oracle manipulation, front-running, unchecked calls) with concrete implementation guidance.
  • Deliberate upgrade planning that accounts for immutability constraints, storage layout safety, initializer usage, timelocks, and rollback readiness.
  • Production testing and audit readiness including unit/integration/fuzz/invariant/fork testing expectations and pre-audit documentation and dependency/version verification.

Use case example: preparing a DeFi vault that supports deposits and withdrawals by defining invariants (no loss of funds from accounting), protecting external calls, and verifying deployment scripts are idempotent before any mainnet release.

Quick Start

Use this skill when you are about to implement or review a new Solidity contract for mainnet deployment, and ask the agent to produce a security review checklist, upgrade plan (if needed), and a complete testing and audit-readiness plan for your specific contract design.

Frequently Asked Questions about smart-contract-craft

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

FAQPage Schema
How do I prepare a Solidity smart contract for a security audit?

Gas optimization in Solidity contracts is achieved by applying MEV-aware design patterns and specific engineering guardrails that minimize execution cost while maintaining security and audit readiness requirements.

What security patterns should I use to prevent reentrancy and oracle manipulation?

Upgradeable smart contracts require deliberate upgrade planning that accounts for immutability constraints, storage layout safety, initializer usage, timelocks, and rollback readiness to ensure secure modifications.

What testing layers are required before mainnet smart contract deployment?

Mainnet smart contract deployment requires defined test layers including unit, integration, fuzz, invariant, and fork testing to validate contract behavior and ensure production readiness before release.

How do I ensure storage layout safety when designing upgradeable contracts?

Ensuring storage layout safety for upgradeable contracts involves applying explicit upgrade constraints, managing initializer usage carefully, and verifying that immutability limitations do not corrupt state during upgrades.