with one click
logging-patterns
// Common logging patterns and practices. This skill is designed to be included in composite skills via the 'includes' feature.
// Common logging patterns and practices. This skill is designed to be included in composite skills via the 'includes' feature.
| id | logging-patterns |
| name | Logging Patterns |
| description | Common logging patterns and practices. This skill is designed to be included in composite skills via the 'includes' feature. |
| tags | ["logging","observability","example"] |
Foundational logging practices for observable applications.
// Structured logging with tracing
use tracing::{info, error, instrument};
#[instrument(skip(password))]
fn authenticate(user_id: &str, password: &str) -> Result<Token> {
info!(user_id, "authentication attempt");
match verify_credentials(user_id, password) {
Ok(token) => {
info!(user_id, "authentication successful");
Ok(token)
}
Err(e) => {
error!(user_id, error = %e, "authentication failed");
Err(e)
}
}
}
Build terminal UIs with Charmbracelet (Bubble Tea, Lip Gloss, Gum). Use when: Go TUI, shell prompts/spinners, "make CLI prettier", adaptive layouts, async rendering, focus state machines, sparklines, heatmaps, kanban boards, SSH apps.
Foundation for error handling patterns. This is a base skill designed to be extended by language-specific error handling skills.
A comprehensive skill for Rust development that combines error handling, testing, and logging patterns. Demonstrates the 'includes' composition feature by merging content from multiple standalone skills.
Rust-specific error handling patterns, building on the base error handling skill. Demonstrates the 'extends' composition feature.
Common testing patterns and practices. This skill is designed to be included in composite skills via the 'includes' feature.
Craft professional README.md files for GitHub open source projects. Generates hero sections, installation instructions, feature tables, and architecture diagrams. Use when creating or revising a README, documenting a CLI tool, library, or open source project, or when user asks about README structure, badges, or project documentation.