[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74WM5P93EKSAPP83Q8FAKJ4":3,"skill-same:01M74WM5P93EKSAPP83Q8FAKJ4":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M74WM5P93EKSAPP83Q8FAKJ4","logging-best-practices",null,"Logging best practices focused on wide events (canonical log lines) for powerful debugging and analytics","roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade","roman-ryzenadvanced","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F239662551?v=4","01M74W4V145ZM75RFTGXF80YQS","Roman | RyzenAdvanced","01M74W4V1TY266Y791RQEN44JF",0,"MIT","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Flogging-best-practices\u002Fskill.md",[],[],"2026-11-12 13:55:43",false,"---\nname: logging-best-practices\ndescription: Logging best practices focused on wide events (canonical log lines) for powerful debugging and analytics\nlicense: MIT\nmetadata:\n  author: boristane\n  version: \"1.0.0\"\n---\n\n# Logging Best Practices Skill\n\nVersion: 1.0.0\n\n## Purpose\n\nThis skill provides guidelines for implementing effective logging in applications. It focuses on **wide events** (also called canonical log lines) - a pattern where you emit a single, context-rich event per request per service, enabling powerful debugging and analytics.\n\n## When to Apply\n\nApply these guidelines when:\n- Writing or reviewing logging code\n- Adding console.log, logger.info, or similar\n- Designing logging strategy for new services\n- Setting up logging infrastructure\n\n## Core Principles\n\n### 1. Wide Events (CRITICAL)\n\nEmit **one context-rich event per request per service**. Instead of scattering log lines throughout your handler, consolidate everything into a single structured event emitted at request completion.\n\n```typescript\nconst wideEvent: Record\u003Cstring, unknown> = {\n  method: 'POST',\n  path: '\u002Fcheckout',\n  requestId: c.get('requestId'),\n  timestamp: new Date().toISOString(),\n};\n\ntry {\n  const user = await getUser(c.get('userId'));\n  wideEvent.user = { id: user.id, subscription: user.subscription };\n\n  const cart = await getCart(user.id);\n  wideEvent.cart = { total_cents: cart.total, item_count: cart.items.length };\n\n  wideEvent.status_code = 200;\n  wideEvent.outcome = 'success';\n  return c.json({ success: true });\n} catch (error) {\n  wideEvent.status_code = 500;\n  wideEvent.outcome = 'error';\n  wideEvent.error = { message: error.message, type: error.name };\n  throw error;\n} finally {\n  wideEvent.duration_ms = Date.now() - startTime;\n  logger.info(wideEvent);\n}\n```\n\n### 2. High Cardinality & Dimensionality (CRITICAL)\n\nInclude fields with high cardinality (user IDs, request IDs - millions of unique values) and high dimensionality (many fields per event). This enables querying by specific users and answering questions you haven't anticipated yet.\n\n### 3. Business Context (CRITICAL)\n\nAlways include business context: user subscription tier, cart value, feature flags, account age. The goal is to know \"a premium customer couldn't complete a $2,499 purchase\" not just \"checkout failed.\"\n\n### 4. Environment Characteristics (CRITICAL)\n\nInclude environment and deployment info in every event: commit hash, service version, region, instance ID. This enables correlating issues with deployments and identifying region-specific problems.\n\n### 5. Single Logger (HIGH)\n\nUse one logger instance configured at startup and import it everywhere. This ensures consistent formatting and automatic environment context.\n\n### 6. Middleware Pattern (HIGH)\n\nUse middleware to handle wide event infrastructure (timing, status, environment, emission). Handlers should only add business context.\n\n### 7. Structure & Consistency (HIGH)\n\n- Use JSON format consistently\n- Maintain consistent field names across services\n- Simplify to two log levels: `info` and `error`\n- Never log unstructured strings\n\n## Anti-Patterns to Avoid\n\n1. **Scattered logs**: Multiple console.log() calls per request\n2. **Multiple loggers**: Different logger instances in different files\n3. **Missing environment context**: No commit hash or deployment info\n4. **Missing business context**: Logging technical details without user\u002Fbusiness data\n5. **Unstructured strings**: `console.log('something happened')` instead of structured data\n6. **Inconsistent schemas**: Different field names across services\n\n## Guidelines\n\n### Wide Events (`rules\u002Fwide-events.md`)\n- Emit one wide event per service hop\n- Include all relevant context\n- Connect events with request ID\n- Emit at request completion in finally block\n\n### Context (`rules\u002Fcontext.md`)\n- Support high cardinality fields (user_id, request_id)\n- Include high dimensionality (many fields)\n- Always include business context\n- Always include environment characteristics (commit_hash, version, region)\n\n### Structure (`rules\u002Fstructure.md`)\n- Use a single logger throughout the codebase\n- Use middleware for consistent wide events\n- Use JSON format\n- Maintain consistent schema\n- Simplify to info and error levels\n- Never log unstructured strings\n\n### Common Pitfalls (`rules\u002Fpitfalls.md`)\n- Avoid multiple log lines per request\n- Design for unknown unknowns\n- Always propagate request IDs across services\n\nReferences:\n- [Logging Sucks](https:\u002F\u002Floggingsucks.com)\n- [Observability Wide Events 101](https:\u002F\u002Fboristane.com\u002Fblog\u002Fobservability-wide-events-101\u002F)\n- [Stripe - Canonical Log Lines](https:\u002F\u002Fstripe.com\u002Fblog\u002Fcanonical-log-lines)\n","# Logging Best Practices Skill\n\nVersion: 1.0.0\n\n## Purpose\n\nThis skill provides guidelines for implementing effective logging in applications. It focuses on **wide events** (also called canonical log lines) - a pattern where you emit a single, context-rich event per request per service, enabling powerful debugging and analytics.\n\n## When to Apply\n\nApply these guidelines when:\n- Writing or reviewing logging code\n- Adding console.log, logger.info, or similar\n- Designing logging strategy for new services\n- Setting up logging infrastructure\n\n## Core Principles\n\n### 1. Wide Events (CRITICAL)\n\nEmit **one context-rich event per request per service**. Instead of scattering log lines throughout your handler, consolidate everything into a single structured event emitted at request completion.\n\n```typescript\nconst wideEvent: Record\u003Cstring, unknown> = {\n  method: 'POST',\n  path: '\u002Fcheckout',\n  requestId: c.get('requestId'),\n  timestamp: new Date().toISOString(),\n};\n\ntry {\n  const user = await getUser(c.get('userId'));\n  wideEvent.user = { id: user.id, subscription: user.subscription };\n\n  const cart = await getCart(user.id);\n  wideEvent.cart = { total_cents: cart.total, item_count: cart.items.length };\n\n  wideEvent.status_code = 200;\n  wideEvent.outcome = 'success';\n  return c.json({ success: true });\n} catch (error) {\n  wideEvent.status_code = 500;\n  wideEvent.outcome = 'error';\n  wideEvent.error = { message: error.message, type: error.name };\n  throw error;\n} finally {\n  wideEvent.duration_ms = Date.now() - startTime;\n  logger.info(wideEvent);\n}\n```\n\n### 2. High Cardinality & Dimensionality (CRITICAL)\n\nInclude fields with high cardinality (user IDs, request IDs - millions of unique values) and high dimensionality (many fields per event). This enables querying by specific users and answering questions you haven't anticipated yet.\n\n### 3. Business Context (CRITICAL)\n\nAlways include business context: user subscription tier, cart value, feature flags, account age. The goal is to know \"a premium customer couldn't complete a $2,499 purchase\" not just \"checkout failed.\"\n\n### 4. Environment Characteristics (CRITICAL)\n\nInclude environment and deployment info in every event: commit hash, service version, region, instance ID. This enables correlating issues with deployments and identifying region-specific problems.\n\n### 5. Single Logger (HIGH)\n\nUse one logger instance configured at startup and import it everywhere. This ensures consistent formatting and automatic environment context.\n\n### 6. Middleware Pattern (HIGH)\n\nUse middleware to handle wide event infrastructure (timing, status, environment, emission). Handlers should only add business context.\n\n### 7. Structure & Consistency (HIGH)\n\n- Use JSON format consistently\n- Maintain consistent field names across services\n- Simplify to two log levels: `info` and `error`\n- Never log unstructured strings\n\n## Anti-Patterns to Avoid\n\n1. **Scattered logs**: Multiple console.log() calls per request\n2. **Multiple loggers**: Different logger instances in different files\n3. **Missing environment context**: No commit hash or deployment info\n4. **Missing business context**: Logging technical details without user\u002Fbusiness data\n5. **Unstructured strings**: `console.log('something happened')` instead of structured data\n6. **Inconsistent schemas**: Different field names across services\n\n## Guidelines\n\n### Wide Events (`rules\u002Fwide-events.md`)\n- Emit one wide event per service hop\n- Include all relevant context\n- Connect events with request ID\n- Emit at request completion in finally block\n\n### Context (`rules\u002Fcontext.md`)\n- Support high cardinality fields (user_id, request_id)\n- Include high dimensionality (many fields)\n- Always include business context\n- Always include environment characteristics (commit_hash, version, region)\n\n### Structure (`rules\u002Fstructure.md`)\n- Use a single logger throughout the codebase\n- Use middleware for consistent wide events\n- Use JSON format\n- Maintain consistent schema\n- Simplify to info and error levels\n- Never log unstructured strings\n\n### Common Pitfalls (`rules\u002Fpitfalls.md`)\n- Avoid multiple log lines per request\n- Design for unknown unknowns\n- Always propagate request IDs across services\n\nReferences:\n- [Logging Sucks](https:\u002F\u002Floggingsucks.com)\n- [Observability Wide Events 101](https:\u002F\u002Fboristane.com\u002Fblog\u002Fobservability-wide-events-101\u002F)\n- [Stripe - Canonical Log Lines](https:\u002F\u002Fstripe.com\u002Fblog\u002Fcanonical-log-lines)\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26},"boristane","1.0.0","main","d1b1a29ddb408336ea3867f7c9fbab956be7747e","skills\u002Flogging-best-practices","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced","Dive into Vibe Coding World with me.","2026-05-26 00:28:40",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill logging-best-practices",{"tool":40,"command":41},"bunx","bunx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill logging-best-practices",{"tool":43,"command":44},"pnpm","pnpm dlx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill logging-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Flogging-best-practices\u002Fskill.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M74XP1BS37A34J2QEKQ3K3VN","vueuse","Use when working with VueUse composables - provides reactive utilities for state, browser APIs, sensors, network, animations. Check VueUse before writing custom composables - most patterns already implemented.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvueuse\u002Fskill.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M74XNYP2CET8GQB3M2K40T0H","vue","Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props\u002Femits best practices, VueUse integration, and reactive destructuring guidance","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue\u002Fskill.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M74XNW8REWTQMQ46R59BYK54","vue-best-practices","Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue-best-practices\u002Fskill.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M74XMFHSC86NGP23XRSB9XSF","ts-library","Use when authoring TypeScript libraries - covers project setup, package exports, build tooling (tsdown\u002Funbuild), API design patterns, type inference tricks, testing, and release workflows. Patterns extracted from 20+ high-quality ecosystem libraries.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fts-library\u002Fskill.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M74XK9ASXGQGMV47F1GCP86M","three-best-practices","Three.js performance optimization and best practices guidelines. Use when writing, reviewing, or optimizing Three.js code. Triggers on tasks involving 3D scenes, WebGL\u002FWebGPU rendering, geometries, materials, textures, lighting, shaders, or TSL.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fthree-best-practices\u002Fskill.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M74XH5YERRKW90EJ4S5HC2GA","supabase-best-practices","Supabase security and performance guidelines with Clerk authentication integration. Contains 40+ rules across 10 categories covering RLS policies, Clerk setup, database security, and more.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-best-practices\u002Fskill.md",[],[]]