mesh-traits

Community

Mesh trait system: interfaces, impls, deriving.

Authorsnowdamiz
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies defining and implementing shared behavior across different data types in Mesh, enabling code reuse and polymorphism through interfaces and automatic protocol implementations.

Core Features & Use Cases

  • Interface Definitions: Define contracts for methods and associated types.
  • Implementation Blocks: Provide concrete implementations of interfaces for specific types.
  • Deriving Macros: Automatically generate implementations for common protocols like Json, Row, Display, Eq, and Ord.
  • Use Case: Define a Printable interface and implement it for both User and Product structs, allowing you to print any of them uniformly.

Quick Start

Implement the Container interface for a MyList struct with Item as String.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: mesh-traits
Download link: https://github.com/snowdamiz/mesh-lang/archive/main.zip#mesh-traits

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.