cairo-contracts

Author and interact with Cairo smart contracts on Starknet.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/Grinta-Protocol/Grinta-Prototipe-UI --skill cairo-contracts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cairo-contracts
Source: https://github.com/Grinta-Protocol/Grinta-Prototipe-UI/tree/main/agents/skills/cairo-contracts
Command: npx skills add https://github.com/Grinta-Protocol/Grinta-Prototipe-UI --skill cairo-contracts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables AI agents to comprehend, generate, and interact with Cairo smart contracts on the Starknet blockchain, simplifying complex blockchain development tasks.

Core Features & Use Cases

  • Contract Comprehension: Understand the structure, storage, events, and entrypoints of Cairo contracts.
  • Code Generation: Author new Cairo contracts, including standard patterns like ERC20 and ERC721.
  • Interaction: Facilitate agent-based interaction with Starknet contracts using defined interfaces and patterns.
  • Use Case: An agent can use this skill to analyze an existing Starknet contract, identify its functions, and then generate a new contract that inherits from it and adds specific custom logic.

Quick Start

Use the cairo-contracts skill to generate a basic ERC20 token contract.

Frequently Asked Questions about cairo-contracts

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

FAQPage Schema
How do I write Cairo smart contracts for Starknet?

To write Cairo smart contracts for Starknet, you use this Skill to generate contract structures, storage access, and entrypoints. It supports authoring Cairo 2.x contracts, including token and account abstraction patterns, optimized for Scarb ^2.0.0.

What is the OpenZeppelin v3 pattern for Starknet contracts?

OpenZeppelin v3 patterns for Starknet contracts provide standardized, secure implementations for tokens and access control. This Skill enables agents to comprehend and apply these OZ v3 patterns when generating or analyzing Cairo contracts.

Can I generate an ERC20 token contract using Cairo 2.x?

Yes, you can generate an ERC20 token contract using Cairo 2.x. This Skill enables agents to author new Cairo contracts by leveraging standard patterns like ERC20, facilitating token development optimized for Starknet and Scarb ^2.0.0.

How do I analyze an existing Starknet contract interface?

To analyze an existing Starknet contract interface, this Skill enables agents to comprehend contract structures, identify functions, and understand storage and events. It facilitates interaction using defined interfaces and OZ v3 patterns.

Does this support developing account abstractions and upgradeable systems on Starknet?

Yes, this Skill supports developing account abstractions and upgradeable systems on Starknet. It covers contract structure, interfaces, and storage access optimized for Cairo 2.x, facilitating the generation of these advanced architectures.

What are the limitations when interacting with Starknet blockchain contracts?

Interacting with Starknet blockchain contracts using this Skill is limited to Cairo 2.x and Scarb ^2.0.0 environments. It focuses on contract comprehension, generation, and interface interaction, but does not execute on-chain transactions directly.