skills/smithery.ai/constructors

constructors

Installation
SKILL.md

Overview

Non-trivial structs should be configured with a config struct, like so:

func NewX(cfg XConfig) {
    // Apply defaults
    // Validate
}

struct XConfig {
    // All config parameters here
}

## When to use

Any time there is a struct to be construct that...
Installs
1
First Seen
Mar 21, 2026
constructors from smithery.ai