YO

yo-core-patterns

Standard patterns for Yo application development.

Install

mkdir -p .claude/skills/yo-core-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10177" && unzip -o skill.zip -d .claude/skills/yo-core-patterns && rm skill.zip

Installs to .claude/skills/yo-core-patterns

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Write everyday Yo application and library code. Use this when choosing Yo types, imports, strings, Option/Result, collections, traits, boxes, pointers, and standard-library modules.
181 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Model data structures
  • Implement error handling
  • Write collection-heavy logic
  • Use standard-library modules

How it works

Provides patterns for everyday Yo application and library code using built-in types and standard modules.

Inputs & outputs

You give it
Yo code requirements
You get back
Idiomatic Yo code

When to use yo-core-patterns

  • Model data structures
  • Implement error handling
  • Write collection-heavy logic

About this skill

Yo Core Patterns

Use this skill for normal Yo program structure and standard-library usage rather than compiler internals.

If a repository defines local wrappers or conventions, follow them after these baseline patterns.

When to use this skill

Use this skill when you need to:

  • pick between built-in types and standard-library types
  • choose import paths for common Yo modules
  • model optional values or recoverable errors
  • write collection-heavy, string-heavy, or trait-based code
  • handle boxes, pointers, and platform-specific branches

Workflow

  1. Identify whether the task is about data modeling, strings, containers, errors, or imports.
  2. Choose the smallest built-in or standard-library type that fits the job.
  3. Use the core patterns cheatsheet for imports, strings, Option/Result, traits, and collections.
  4. Prefer standard modules before inventing custom helpers.

High-signal rules

  • " creates str in runtime code; template strings create String. In comptime functions, "hello" is comptime_str (distinct from str).
  • Prefer template strings for constant String values.
  • Prefer print/println from std/fmt over printf.
  • Option(T) and Result(T, E) are the default nullable/error carriers.
  • Use rune for Unicode code points, not Char.
  • Model nullable pointers with Option(*(T)) or ?*(T).
  • Use struct for value types, newtype for single-field wrappers, object for reference-counted types.
  • Use generic + where for generic impls; use _ placeholder for partial application of comptime functions.
  • Use derive(Type, Eq, Hash, Clone, Ord, ToString) to auto-generate common trait impls.
  • Custom error types implement ToString + Error; wrap with dyn(...) into AnyError.
  • Use (params) => expr for closures; Impl(Fn(...) -> T) for the closure type.
  • Use for(collection.iter(), (item) => { ... }) for iteration.
  • Indexed modules import cleanly as std/url, std/regex, std/http, std/log, and std/glob; multi-module families use explicit submodules.

Resource

When not to use it

  • Compiler internals
  • Project-specific wrappers

Prerequisites

Yo standard library

Limitations

  • Not for compiler internals
  • Follow local conventions

How it compares

It prioritizes standard-library usage and built-in types over custom helpers.

Compared to similar skills

yo-core-patterns side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
yo-core-patterns (this skill)02moNo flagsIntermediate
godot1,0445moReviewIntermediate
software-architecture3336moNo flagsIntermediate
drizzle2382moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,0441,947

software-architecture

davila7

Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.

333868

drizzle

lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

238873

screenshot-to-code

OneWave-AI

Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.

204389

zustand

lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

113434

codex

Lucklyric

Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.

32238

Search skills

Search the agent skills registry