Specify a webhook-driven task for OpenClaw
Describe event inputs, validation, deduplication, and intended actions before integration work.
Explain Cairo generic data types and syntax for generic functions, structs, enums, methods, and impls; use when a request involves type parameters or generic signatures in Cairo.
--- name: cairo-generic-data-types-8047555895f9 description: Explain Cairo generic data types and syntax for generic functions, structs, enums, methods, and impls; use when a request involves type parameters or generic signatures in Cairo. --- # Cairo Generic Data Types ## Overview Explain how to declare and use generic types and functions in Cairo with correct syntax. ## Quick Use - Read `references/generic-data-types.md` before answering. - Show short examples for generic structs, enums, and functions. - Use explicit type annotations when inference is ambiguous. ## Response Checklist - Place generic parameters after the item name: `struct Name<T>` or `fn foo<T>()`. - Support multiple parameters: `struct Pair<T, U>`. - Emphasize that generics work with functions, structs, enums, traits, impls, and methods. ## Example Requests - "How do I write a generic struct in Cairo?" - "Can I have multiple type parameters?" - "Why does the compiler need a type annotation for this generic?" ## Cairo by Example - [Generics](https://cairo-by-example.xyz/generics) - [Functions](https://cairo-by-example.xyz/generics/gen_fn) - [Implementation](https://cairo-by-example.xyz/generics/impl)--- name: cairo-generic-data-types-8047555895f9 description: Explain Cairo generic data types and syntax for generic functions, structs, enums, methods, and impls; use when a request involves type parameters or generic signatures in Cairo. --- # Cairo Generic Data Types ## Overview Explain how to declare and use generic types and functions in Cairo with correct syntax. ## Quick Use - Read `references/generic-data-types.md` before answering. - Show short examples for generic structs, enums, and functions. - Use explicit type annotations when inference is ambiguous. ## Response Checklist - Place generic parameters after the item name: `struct Name<T>` or `fn foo<T>()`. - Support multiple parameters: `struct Pair<T, U>`. - Emphasize that generics work with functions, structs, enums, traits, impls, and methods. ## Example Requests - "How do I write a generic struct in Cairo?" - "Can I have multiple type parameters?" - "Why does the compiler need a type annotation for this generic?" ## Cairo by Example - [Generics](https://cairo-by-example.xyz/generics) - [Functions](https://cairo-by-example.xyz/generics/gen_fn) - [Implementation](https://cairo-by-example.xyz/generics/impl)
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.