setup-stylus-contracts

Automate Stylus smart contract setup with Rust toolchain, WASM target, and OpenZeppelin dependencies.

Updated Oct 17, 2025
One-click install
npx skills add https://github.com/iamcapote/emptyrepo --skill setup-stylus-contracts-iamcapote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-stylus-contracts
Source: https://github.com/iamcapote/emptyrepo/tree/main/skills/allied/openzeppelin-skills/skills/setup-stylus-contracts
Command: npx skills add https://github.com/iamcapote/emptyrepo --skill setup-stylus-contracts-iamcapote

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the initial setup of Stylus smart contracts on Arbitrum by providing a guided workflow to install the Rust toolchain and WASM target, scaffold a Cargo Stylus project, and integrate OpenZeppelin Stylus dependencies.

Core Features & Use Cases

  • Install Rust toolchain and WASM target for Stylus
  • Create a new Cargo Stylus project
  • Add OpenZeppelin Stylus dependencies to Cargo.toml
  • Understand Stylus import conventions and storage patterns for OpenZeppelin

Quick Start

Install the Rust toolchain and WASM target, then scaffold a new Cargo Stylus project and add the OpenZeppelin Stylus dependencies.

Frequently Asked Questions about setup-stylus-contracts

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

FAQPage Schema
How do I set up Stylus smart contracts on Arbitrum?

Setting up Stylus smart contracts on Arbitrum requires installing the Rust nightly toolchain, adding the WASM target, scaffolding a project with cargo-stylus, and configuring OpenZeppelin Stylus dependencies in Cargo.toml.

What do I need to install before building Stylus contracts in Rust?

Before building Stylus contracts in Rust, you need the Rust nightly toolchain, the wasm32 target, and the cargo-stylus scaffolding tool to ensure your environment is ready for Arbitrum WASM compilation.

How do I add OpenZeppelin dependencies to a Cargo Stylus project?

To add OpenZeppelin dependencies to a Cargo Stylus project, you configure the required OpenZeppelin Stylus libraries in your Cargo.toml file, ensuring you follow proper import conventions and storage patterns for Arbitrum.

Can I use OpenZeppelin with Arbitrum Stylus WASM contracts?

Yes, you can use OpenZeppelin with Arbitrum Stylus WASM contracts by integrating the OpenZeppelin Stylus dependencies into your Cargo.toml and applying the specific import conventions and storage patterns provided by the framework.

What is the best way to scaffold a Rust WASM project for Arbitrum?

The best way to scaffold a Rust WASM project for Arbitrum is using the cargo-stylus tool, which automates project creation and ensures proper configuration for Stylus smart contract deployment on the network.