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.zipInstalls 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.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
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
- Identify whether the task is about data modeling, strings, containers, errors, or imports.
- Choose the smallest built-in or standard-library type that fits the job.
- Use the core patterns cheatsheet for imports, strings,
Option/Result, traits, and collections. - Prefer standard modules before inventing custom helpers.
High-signal rules
"createsstrin runtime code; template strings createString. Incomptimefunctions,"hello"iscomptime_str(distinct fromstr).- Prefer template strings for constant
Stringvalues. - Prefer
print/printlnfromstd/fmtoverprintf. Option(T)andResult(T, E)are the default nullable/error carriers.- Use
runefor Unicode code points, notChar. - Model nullable pointers with
Option(*(T))or?*(T). - Use
structfor value types,newtypefor single-field wrappers,objectfor reference-counted types. - Use
generic+wherefor 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 withdyn(...)intoAnyError. - Use
(params) => exprfor 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, andstd/glob; multi-module families use explicit submodules.
Resource
When not to use it
- →Compiler internals
- →Project-specific wrappers
Prerequisites
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| yo-core-patterns (this skill) | 0 | 2mo | No flags | Intermediate |
| godot | 1,044 | 5mo | Review | Intermediate |
| software-architecture | 333 | 6mo | No flags | Intermediate |
| drizzle | 238 | 2mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by shd101wyy
View all by shd101wyy →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.
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.
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.
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.
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.
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.