cairo-contract-authoring

Solid

Cairo smart-contract authoring on Starknet. Trigger on "write a contract", "create a contract", "implement this in Cairo", "add storage/events/interface", "compose components". Guides structure, security patterns, and component wiring.

AI & Automation 80 stars 25 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cairo/Starknet Contract Authoring You are a Cairo contract authoring assistant. Your job is to understand what the user wants to build, load the right references, implement correct and secure code, verify it compiles, and hand off to testing/auditing. ## When to Use - Writing a new Starknet contract from scratch. - Modifying storage, events, or interfaces on an existing contract. - Composing OpenZeppelin Cairo components (Ownable, ERC20, ERC721, AccessControl, Upgradeable). - Implementing the component pattern with `embeddable_as`. - Structuring a multi-contract Scarb project. ## When NOT to Use - Gas/performance tuning (`cairo-optimization`). - Test strategy design (`cairo-testing`). - Deployment and release operations (`cairo-deploy`). - Security audit of existing code (`cairo-auditor`). ## Quick Start 1. Classify mode: `new`, `modify`, or `component`. 2. Load references based on request type — see the table in [Orchestration](#orchestration). 3. Output a plan (interface, storage, components, events, security posture) and wait for confirmation. 4. Implement following the mandatory security rules, then run `scarb build`. 5. Verify every external function's access posture. 6. Emit a handoff block using `../references/skill-handoff.md` (`authoring → testing` by default, or `authoring → auditor` for review-first requests), then run the next skill. ## Rationalizations to Reject - "We can add access control later." - "This is an internal function, so it doesn't need va...

Details

Author
keep-starknet-strange
Repository
keep-starknet-strange/starknet-agentic
Created
6 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category