[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F8A5F8SXGZH1S17GTZG22D":3,"skill-same:01M6F8A5F8SXGZH1S17GTZG22D":81},{"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":23,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6F8A5F8SXGZH1S17GTZG22D","obsidian-observability",null,"Set up comprehensive logging and monitoring for Obsidian plugins.\nUse when implementing debug logging, tracking plugin performance,\nor setting up error reporting for your Obsidian plugin.\nTrigger with phrases like \"obsidian logging\", \"obsidian monitoring\",\n\"obsidian debug\", \"track obsidian plugin\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fobsidian-pack\u002Fskills\u002Fobsidian-observability\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"observability","obsidian observability","obsidian","edit","when","track","for","implementing","with","error","trigger","io","up","use","tracking","write","read","SET","reporting","monitoring","plugins","logging","plugin","debug","performance","2026-11-10 10:12:30",false,"---\nname: obsidian-observability\ndescription: |\n  Set up comprehensive logging and monitoring for Obsidian plugins.\n  Use when implementing debug logging, tracking plugin performance,\n  or setting up error reporting for your Obsidian plugin.\n  Trigger with phrases like \"obsidian logging\", \"obsidian monitoring\",\n  \"obsidian debug\", \"track obsidian plugin\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Obsidian Observability\n\n## Overview\nImplement comprehensive logging, monitoring, and debugging capabilities for Obsidian plugins.\n\n## Prerequisites\n- Working Obsidian plugin\n- Understanding of Developer Tools\n- Basic TypeScript knowledge\n\n## Observability Components\n\n### Key Metrics\n| Metric | Type | Purpose |\n|--------|------|---------|\n| Command execution time | Timer | Performance |\n| File operations count | Counter | Usage patterns |\n| Error rate | Counter | Reliability |\n| Cache hit ratio | Gauge | Efficiency |\n| Memory usage | Gauge | Resource health |\n\n## Instructions\n\n### Step 1: Structured Logger\n```typescript\n\u002F\u002F src\u002Futils\u002Flogger.ts\ntype LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\ninterface LogEntry {\n  timestamp: string;\n  level: LogLevel;\n  message: string;\n  context?: Record\u003Cstring, any>;\n  duration?: number;\n}\n\nexport class Logger {\n  private pluginId: string;\n  private level: LogLevel;\n  private history: LogEntry[] = [];\n  private maxHistory: number = 100;\n\n  private readonly levelPriority: Record\u003CLogLevel, number> = {\n    debug: 0,\n    info: 1,\n    warn: 2,\n    error: 3,\n  };\n\n  constructor(pluginId: string, level: LogLevel = 'info') {\n    this.pluginId = pluginId;\n    this.level = level;\n  }\n\n  setLevel(level: LogLevel): void {\n    this.level = level;\n  }\n\n  private shouldLog(level: LogLevel): boolean {\n    return this.levelPriority[level] >= this.levelPriority[this.level];\n  }\n\n  private formatMessage(entry: LogEntry): string {\n    const prefix = `[${this.pluginId}]`;\n    const time = entry.timestamp.split('T')[1].split('.')[0];\n    const level = entry.level.toUpperCase().padEnd(5);\n\n    let message = `${prefix} ${time} ${level} ${entry.message}`;\n\n    if (entry.duration !== undefined) {\n      message += ` (${entry.duration.toFixed(2)}ms)`;\n    }\n\n    return message;\n  }\n\n  private log(level: LogLevel, message: string, context?: Record\u003Cstring, any>): void {\n    if (!this.shouldLog(level)) return;\n\n    const entry: LogEntry = {\n      timestamp: new Date().toISOString(),\n      level,\n      message,\n      context,\n    };\n\n    \u002F\u002F Store in history\n    this.history.push(entry);\n    if (this.history.length > this.maxHistory) {\n      this.history.shift();\n    }\n\n    \u002F\u002F Console output\n    const formatted = this.formatMessage(entry);\n    const consoleMethod = level === 'debug' ? 'log' : level;\n\n    if (context) {\n      console[consoleMethod](formatted, context);\n    } else {\n      console[consoleMethod](formatted);\n    }\n  }\n\n  debug(message: string, context?: Record\u003Cstring, any>): void {\n    this.log('debug', message, context);\n  }\n\n  info(message: string, context?: Record\u003Cstring, any>): void {\n    this.log('info', message, context);\n  }\n\n  warn(message: string, context?: Record\u003Cstring, any>): void {\n    this.log('warn', message, context);\n  }\n\n  error(message: string, error?: Error, context?: Record\u003Cstring, any>): void {\n    const errorContext = error ? {\n      ...context,\n      error: {\n        name: error.name,\n        message: error.message,\n        stack: error.stack,\n      },\n    } : context;\n\n    this.log('error', message, errorContext);\n  }\n\n  \u002F\u002F Timing helper\n  time(label: string): () => void {\n    const start = performance.now();\n    return () => {\n      const duration = performance.now() - start;\n      const entry: LogEntry = {\n        timestamp: new Date().toISOString(),\n        level: 'debug',\n        message: label,\n        duration,\n      };\n\n      if (this.shouldLog('debug')) {\n        console.log(this.formatMessage(entry));\n      }\n\n      this.history.push(entry);\n    };\n  }\n\n  \u002F\u002F Get log history for debugging\n  getHistory(): LogEntry[] {\n    return [...this.history];\n  }\n\n  \u002F\u002F Export logs for support\n  exportLogs(): string {\n    return this.history.map(entry => {\n      let line = `${entry.timestamp} [${entry.level}] ${entry.message}`;\n      if (entry.duration) line += ` (${entry.duration}ms)`;\n      if (entry.context) line += `\\n  ${JSON.stringify(entry.context)}`;\n      return line;\n    }).join('\\n');\n  }\n}\n```\n\n### Step 2: Metrics Collector\n```typescript\n\u002F\u002F src\u002Futils\u002Fmetrics.ts\ninterface MetricValue {\n  value: number;\n  timestamp: number;\n}\n\nexport class MetricsCollector {\n  private counters = new Map\u003Cstring, number>();\n  private gauges = new Map\u003Cstring, number>();\n  private timers = new Map\u003Cstring, MetricValue[]>();\n  private maxTimerHistory = 100;\n\n  \u002F\u002F Counter operations\n  increment(name: string, value: number = 1): void {\n    const current = this.counters.get(name) || 0;\n    this.counters.set(name, current + value);\n  }\n\n  getCounter(name: string): number {\n    return this.counters.get(name) || 0;\n  }\n\n  \u002F\u002F Gauge operations\n  setGauge(name: string, value: number): void {\n    this.gauges.set(name, value);\n  }\n\n  getGauge(name: string): number {\n    return this.gauges.get(name) || 0;\n  }\n\n  \u002F\u002F Timer operations\n  recordTiming(name: string, durationMs: number): void {\n    const timings = this.timers.get(name) || [];\n    timings.push({ value: durationMs, timestamp: Date.now() });\n\n    \u002F\u002F Keep only recent timings\n    while (timings.length > this.maxTimerHistory) {\n      timings.shift();\n    }\n\n    this.timers.set(name, timings);\n  }\n\n  getTimerStats(name: string): {\n    count: number;\n    avg: number;\n    min: number;\n    max: number;\n    p95: number;\n  } | null {\n    const timings = this.timers.get(name);\n    if (!timings || timings.length === 0) return null;\n\n    const values = timings.map(t => t.value).sort((a, b) => a - b);\n    const sum = values.reduce((a, b) => a + b, 0);\n\n    return {\n      count: values.length,\n      avg: sum \u002F values.length,\n      min: values[0],\n      max: values[values.length - 1],\n      p95: values[Math.floor(values.length * 0.95)],\n    };\n  }\n\n  \u002F\u002F Time a function\n  async timeAsync\u003CT>(name: string, fn: () => Promise\u003CT>): Promise\u003CT> {\n    const start = performance.now();\n    try {\n      return await fn();\n    } finally {\n      this.recordTiming(name, performance.now() - start);\n    }\n  }\n\n  timeSync\u003CT>(name: string, fn: () => T): T {\n    const start = performance.now();\n    try {\n      return fn();\n    } finally {\n      this.recordTiming(name, performance.now() - start);\n    }\n  }\n\n  \u002F\u002F Get all metrics\n  getAllMetrics(): {\n    counters: Record\u003Cstring, number>;\n    gauges: Record\u003Cstring, number>;\n    timers: Record\u003Cstring, ReturnType\u003Ctypeof this.getTimerStats>>;\n  } {\n    const timerStats: Record\u003Cstring, ReturnType\u003Ctypeof this.getTimerStats>> = {};\n    for (const name of this.timers.keys()) {\n      timerStats[name] = this.getTimerStats(name);\n    }\n\n    return {\n      counters: Object.fromEntries(this.counters),\n      gauges: Object.fromEntries(this.gauges),\n      timers: timerStats,\n    };\n  }\n\n  \u002F\u002F Reset all metrics\n  reset(): void {\n    this.counters.clear();\n    this.gauges.clear();\n    this.timers.clear();\n  }\n}\n```\n\n### Step 3: Error Tracking\n```typescript\n\u002F\u002F src\u002Futils\u002Ferror-tracker.ts\ninterface TrackedError {\n  timestamp: string;\n  error: {\n    name: string;\n    message: string;\n    stack?: string;\n  };\n  context: Record\u003Cstring, any>;\n  count: number;\n}\n\nexport class ErrorTracker {\n  private errors = new Map\u003Cstring, TrackedError>();\n  private maxErrors = 50;\n\n  track(error: Error, context: Record\u003Cstring, any> = {}): void {\n    const key = `${error.name}:${error.message}`;\n    const existing = this.errors.get(key);\n\n    if (existing) {\n      existing.count++;\n      existing.timestamp = new Date().toISOString();\n      existing.context = { ...existing.context, ...context };\n    } else {\n      \u002F\u002F Enforce max errors limit\n      if (this.errors.size >= this.maxErrors) {\n        const oldestKey = this.errors.keys().next().value;\n        this.errors.delete(oldestKey);\n      }\n\n      this.errors.set(key, {\n        timestamp: new Date().toISOString(),\n        error: {\n          name: error.name,\n          message: error.message,\n          stack: error.stack,\n        },\n        context,\n        count: 1,\n      });\n    }\n  }\n\n  getErrors(): TrackedError[] {\n    return Array.from(this.errors.values())\n      .sort((a, b) => b.count - a.count);\n  }\n\n  getMostCommon(limit: number = 5): TrackedError[] {\n    return this.getErrors().slice(0, limit);\n  }\n\n  clear(): void {\n    this.errors.clear();\n  }\n\n  \u002F\u002F Safe wrapper for async functions\n  wrapAsync\u003CT>(\n    fn: () => Promise\u003CT>,\n    context: Record\u003Cstring, any> = {}\n  ): Promise\u003CT> {\n    return fn().catch((error: Error) => {\n      this.track(error, context);\n      throw error;\n    });\n  }\n\n  \u002F\u002F Export for debugging\n  export(): string {\n    return JSON.stringify(this.getErrors(), null, 2);\n  }\n}\n```\n\n### Step 4: Debug Panel View\n```typescript\n\u002F\u002F src\u002Fui\u002Fviews\u002Fdebug-view.ts\nimport { ItemView, WorkspaceLeaf } from 'obsidian';\nimport type MyPlugin from '..\u002F..\u002Fmain';\n\nexport const DEBUG_VIEW_TYPE = 'plugin-debug-view';\n\nexport class DebugView extends ItemView {\n  private plugin: MyPlugin;\n  private refreshInterval: number;\n\n  constructor(leaf: WorkspaceLeaf, plugin: MyPlugin) {\n    super(leaf);\n    this.plugin = plugin;\n  }\n\n  getViewType(): string {\n    return DEBUG_VIEW_TYPE;\n  }\n\n  getDisplayText(): string {\n    return 'Plugin Debug';\n  }\n\n  getIcon(): string {\n    return 'bug';\n  }\n\n  async onOpen() {\n    const container = this.containerEl.children[1];\n    container.empty();\n    container.addClass('plugin-debug-view');\n\n    this.render(container);\n\n    \u002F\u002F Auto-refresh every 5 seconds\n    this.refreshInterval = window.setInterval(() => {\n      this.render(container);\n    }, 5000);\n\n    this.registerInterval(this.refreshInterval);\n  }\n\n  private render(container: Element) {\n    container.empty();\n\n    \u002F\u002F Metrics section\n    container.createEl('h3', { text: 'Metrics' });\n    const metricsDiv = container.createDiv({ cls: 'debug-section' });\n    this.renderMetrics(metricsDiv);\n\n    \u002F\u002F Errors section\n    container.createEl('h3', { text: 'Recent Errors' });\n    const errorsDiv = container.createDiv({ cls: 'debug-section' });\n    this.renderErrors(errorsDiv);\n\n    \u002F\u002F Logs section\n    container.createEl('h3', { text: 'Recent Logs' });\n    const logsDiv = container.createDiv({ cls: 'debug-section' });\n    this.renderLogs(logsDiv);\n\n    \u002F\u002F Actions\n    const actionsDiv = container.createDiv({ cls: 'debug-actions' });\n    this.renderActions(actionsDiv);\n  }\n\n  private renderMetrics(container: Element) {\n    const metrics = this.plugin.metrics.getAllMetrics();\n\n    \u002F\u002F Counters\n    container.createEl('h4', { text: 'Counters' });\n    const countersList = container.createEl('ul');\n    for (const [name, value] of Object.entries(metrics.counters)) {\n      countersList.createEl('li', { text: `${name}: ${value}` });\n    }\n\n    \u002F\u002F Timers\n    container.createEl('h4', { text: 'Timers' });\n    const timersList = container.createEl('ul');\n    for (const [name, stats] of Object.entries(metrics.timers)) {\n      if (stats) {\n        timersList.createEl('li', {\n          text: `${name}: avg=${stats.avg.toFixed(2)}ms, p95=${stats.p95.toFixed(2)}ms (n=${stats.count})`,\n        });\n      }\n    }\n  }\n\n  private renderErrors(container: Element) {\n    const errors = this.plugin.errorTracker.getMostCommon(5);\n\n    if (errors.length === 0) {\n      container.createEl('p', { text: 'No errors recorded', cls: 'muted' });\n      return;\n    }\n\n    const list = container.createEl('ul');\n    for (const error of errors) {\n      const item = list.createEl('li');\n      item.createEl('strong', { text: `${error.error.name}: ` });\n      item.createSpan({ text: error.error.message });\n      item.createEl('span', {\n        text: ` (${error.count}x)`,\n        cls: 'error-count',\n      });\n    }\n  }\n\n  private renderLogs(container: Element) {\n    const logs = this.plugin.logger.getHistory().slice(-10).reverse();\n\n    const pre = container.createEl('pre', { cls: 'log-output' });\n    for (const log of logs) {\n      const line = pre.createEl('div', { cls: `log-${log.level}` });\n      line.textContent = `[${log.level}] ${log.message}`;\n    }\n  }\n\n  private renderActions(container: Element) {\n    const exportBtn = container.createEl('button', { text: 'Export Debug Data' });\n    exportBtn.addEventListener('click', () => this.exportDebugData());\n\n    const clearBtn = container.createEl('button', { text: 'Clear Data' });\n    clearBtn.addEventListener('click', () => {\n      this.plugin.metrics.reset();\n      this.plugin.errorTracker.clear();\n      this.render(this.containerEl.children[1]);\n    });\n  }\n\n  private exportDebugData() {\n    const data = {\n      timestamp: new Date().toISOString(),\n      plugin: this.plugin.manifest.id,\n      version: this.plugin.manifest.version,\n      metrics: this.plugin.metrics.getAllMetrics(),\n      errors: this.plugin.errorTracker.getErrors(),\n      logs: this.plugin.logger.exportLogs(),\n    };\n\n    \u002F\u002F Create download\n    const blob = new Blob([JSON.stringify(data, null, 2)], {\n      type: 'application\u002Fjson',\n    });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = `${this.plugin.manifest.id}-debug-${Date.now()}.json`;\n    a.click();\n    URL.revokeObjectURL(url);\n  }\n\n  async onClose() {\n    if (this.refreshInterval) {\n      window.clearInterval(this.refreshInterval);\n    }\n  }\n}\n```\n\n### Step 5: Integration in Main Plugin\n```typescript\n\u002F\u002F src\u002Fmain.ts\nimport { Plugin } from 'obsidian';\nimport { Logger } from '.\u002Futils\u002Flogger';\nimport { MetricsCollector } from '.\u002Futils\u002Fmetrics';\nimport { ErrorTracker } from '.\u002Futils\u002Ferror-tracker';\nimport { DebugView, DEBUG_VIEW_TYPE } from '.\u002Fui\u002Fviews\u002Fdebug-view';\n\nexport default class MyPlugin extends Plugin {\n  logger: Logger;\n  metrics: MetricsCollector;\n  errorTracker: ErrorTracker;\n\n  async onload() {\n    \u002F\u002F Initialize observability\n    this.logger = new Logger(this.manifest.id, 'debug');\n    this.metrics = new MetricsCollector();\n    this.errorTracker = new ErrorTracker();\n\n    this.logger.info('Plugin loading');\n    const endLoadTime = this.logger.time('plugin-load');\n\n    \u002F\u002F Register debug view (dev mode only)\n    if (process.env.NODE_ENV !== 'production') {\n      this.registerView(\n        DEBUG_VIEW_TYPE,\n        (leaf) => new DebugView(leaf, this)\n      );\n\n      this.addCommand({\n        id: 'open-debug-view',\n        name: 'Open Debug View',\n        callback: () => this.openDebugView(),\n      });\n    }\n\n    \u002F\u002F Track command usage\n    this.addCommand({\n      id: 'my-command',\n      name: 'My Command',\n      callback: async () => {\n        this.metrics.increment('command.my-command');\n        await this.metrics.timeAsync('command.my-command.duration', async () => {\n          \u002F\u002F Command implementation\n        });\n      },\n    });\n\n    endLoadTime();\n    this.logger.info('Plugin loaded');\n  }\n\n  private async openDebugView() {\n    const leaf = this.app.workspace.getRightLeaf(false);\n    await leaf.setViewState({ type: DEBUG_VIEW_TYPE, active: true });\n    this.app.workspace.revealLeaf(leaf);\n  }\n}\n```\n\n## Output\n- Structured logger with levels and history\n- Metrics collection (counters, gauges, timers)\n- Error tracking with deduplication\n- Debug panel view for runtime inspection\n- Export capability for support\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Too much logging | Debug level in prod | Set level to 'error' |\n| Memory growth | Unbounded history | Limit history size |\n| Performance impact | Sync logging | Use async logging |\n| Missing context | No error tracking | Wrap async calls |\n\n## Examples\n\n### Styles for Debug View\n```css\n\u002F* styles.css *\u002F\n.plugin-debug-view {\n  padding: 16px;\n}\n\n.debug-section {\n  margin-bottom: 24px;\n  padding: 12px;\n  background: var(--background-secondary);\n  border-radius: 4px;\n}\n\n.log-output {\n  font-family: monospace;\n  font-size: 12px;\n  max-height: 200px;\n  overflow-y: auto;\n}\n\n.log-debug { color: var(--text-muted); }\n.log-info { color: var(--text-normal); }\n.log-warn { color: var(--text-warning); }\n.log-error { color: var(--text-error); }\n\n.error-count {\n  color: var(--text-error);\n  font-weight: bold;\n}\n\n.debug-actions button {\n  margin-right: 8px;\n}\n```\n\n## Resources\n- [Chrome DevTools Performance](https:\u002F\u002Fdeveloper.chrome.com\u002Fdocs\u002Fdevtools\u002Fperformance\u002F)\n- [Obsidian Developer Tools](https:\u002F\u002Fdocs.obsidian.md\u002FPlugins\u002FGuides\u002FDeveloper+tools)\n\n## Next Steps\nFor incident response, see `obsidian-incident-runbook`.\n","# Obsidian Observability\n\n## Overview\nImplement comprehensive logging, monitoring, and debugging capabilities for Obsidian plugins.\n\n## Prerequisites\n- Working Obsidian plugin\n- Understanding of Developer Tools\n- Basic TypeScript knowledge\n\n## Observability Components\n\n### Key Metrics\n| Metric | Type | Purpose |\n|--------|------|---------|\n| Command execution time | Timer | Performance |\n| File operations count | Counter | Usage patterns |\n| Error rate | Counter | Reliability |\n| Cache hit ratio | Gauge | Efficiency |\n| Memory usage | Gauge | Resource health |\n\n## Instructions\n\n### Step 1: Structured Logger\n```typescript\n\u002F\u002F src\u002Futils\u002Flogger.ts\ntype LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\ninterface LogEntry {\n  timestamp: string;\n  level: LogLevel;\n  message: string;\n  context?: Record\u003Cstring, any>;\n  duration?: number;\n}\n\nexport class Logger {\n  private pluginId: string;\n  private level: LogLevel;\n  private history: LogEntry[] = [];\n  private maxHistory: number = 100;\n\n  private readonly levelPriority: Record\u003CLogLevel, number> = {\n    debug: 0,\n    info: 1,\n    warn: 2,\n    error: 3,\n  };\n\n  constructor(pluginId: string, level: LogLevel = 'info') {\n    this.pluginId = pluginId;\n    this.level = level;\n  }\n\n  setLevel(level: LogLevel): void {\n    this.level = level;\n  }\n\n  private shouldLog(level: LogLevel): boolean {\n    return this.levelPriority[level] >= this.levelPriority[this.level];\n  }\n\n  private formatMessage(entry: LogEntry): string {\n    const prefix = `[${this.pluginId}]`;\n    const time = entry.timestamp.split('T')[1].split('.')[0];\n    const level = entry.level.toUpperCase().padEnd(5);\n\n    let message = `${prefix} ${time} ${level} ${entry.message}`;\n\n    if (entry.duration !== undefined) {\n      message += ` (${entry.duration.toFixed(2)}ms)`;\n    }\n\n    return message;\n  }\n\n  private log(level: LogLevel, message: string, context?: Record\u003Cstring, any>): void {\n    if (!this.shouldLog(level)) return;\n\n    const entry: LogEntry = {\n      timestamp: new Date().toISOString(),\n      level,\n      message,\n      context,\n    };\n\n    \u002F\u002F Store in history\n    this.history.push(entry);\n    if (this.history.length > this.maxHistory) {\n      this.history.shift();\n    }\n\n    \u002F\u002F Console output\n    const formatted = this.formatMessage(entry);\n    const consoleMethod = level === 'debug' ? 'log' : level;\n\n    if (context) {\n      console[consoleMethod](formatted, context);\n    } else {\n      console[consoleMethod](formatted);\n    }\n  }\n\n  debug(message: string, context?: Record\u003Cstring, any>): void {\n    this.log('debug', message, context);\n  }\n\n  info(message: string, context?: Record\u003Cstring, any>): void {\n    this.log('info', message, context);\n  }\n\n  warn(message: string, context?: Record\u003Cstring, any>): void {\n    this.log('warn', message, context);\n  }\n\n  error(message: string, error?: Error, context?: Record\u003Cstring, any>): void {\n    const errorContext = error ? {\n      ...context,\n      error: {\n        name: error.name,\n        message: error.message,\n        stack: error.stack,\n      },\n    } : context;\n\n    this.log('error', message, errorContext);\n  }\n\n  \u002F\u002F Timing helper\n  time(label: string): () => void {\n    const start = performance.now();\n    return () => {\n      const duration = performance.now() - start;\n      const entry: LogEntry = {\n        timestamp: new Date().toISOString(),\n        level: 'debug',\n        message: label,\n        duration,\n      };\n\n      if (this.shouldLog('debug')) {\n        console.log(this.formatMessage(entry));\n      }\n\n      this.history.push(entry);\n    };\n  }\n\n  \u002F\u002F Get log history for debugging\n  getHistory(): LogEntry[] {\n    return [...this.history];\n  }\n\n  \u002F\u002F Export logs for support\n  exportLogs(): string {\n    return this.history.map(entry => {\n      let line = `${entry.timestamp} [${entry.level}] ${entry.message}`;\n      if (entry.duration) line += ` (${entry.duration}ms)`;\n      if (entry.context) line += `\\n  ${JSON.stringify(entry.context)}`;\n      return line;\n    }).join('\\n');\n  }\n}\n```\n\n### Step 2: Metrics Collector\n```typescript\n\u002F\u002F src\u002Futils\u002Fmetrics.ts\ninterface MetricValue {\n  value: number;\n  timestamp: number;\n}\n\nexport class MetricsCollector {\n  private counters = new Map\u003Cstring, number>();\n  private gauges = new Map\u003Cstring, number>();\n  private timers = new Map\u003Cstring, MetricValue[]>();\n  private maxTimerHistory = 100;\n\n  \u002F\u002F Counter operations\n  increment(name: string, value: number = 1): void {\n    const current = this.counters.get(name) || 0;\n    this.counters.set(name, current + value);\n  }\n\n  getCounter(name: string): number {\n    return this.counters.get(name) || 0;\n  }\n\n  \u002F\u002F Gauge operations\n  setGauge(name: string, value: number): void {\n    this.gauges.set(name, value);\n  }\n\n  getGauge(name: string): number {\n    return this.gauges.get(name) || 0;\n  }\n\n  \u002F\u002F Timer operations\n  recordTiming(name: string, durationMs: number): void {\n    const timings = this.timers.get(name) || [];\n    timings.push({ value: durationMs, timestamp: Date.now() });\n\n    \u002F\u002F Keep only recent timings\n    while (timings.length > this.maxTimerHistory) {\n      timings.shift();\n    }\n\n    this.timers.set(name, timings);\n  }\n\n  getTimerStats(name: string): {\n    count: number;\n    avg: number;\n    min: number;\n    max: number;\n    p95: number;\n  } | null {\n    const timings = this.timers.get(name);\n    if (!timings || timings.length === 0) return null;\n\n    const values = timings.map(t => t.value).sort((a, b) => a - b);\n    const sum = values.reduce((a, b) => a + b, 0);\n\n    return {\n      count: values.length,\n      avg: sum \u002F values.length,\n      min: values[0],\n      max: values[values.length - 1],\n      p95: values[Math.floor(values.length * 0.95)],\n    };\n  }\n\n  \u002F\u002F Time a function\n  async timeAsync\u003CT>(name: string, fn: () => Promise\u003CT>): Promise\u003CT> {\n    const start = performance.now();\n    try {\n      return await fn();\n    } finally {\n      this.recordTiming(name, performance.now() - start);\n    }\n  }\n\n  timeSync\u003CT>(name: string, fn: () => T): T {\n    const start = performance.now();\n    try {\n      return fn();\n    } finally {\n      this.recordTiming(name, performance.now() - start);\n    }\n  }\n\n  \u002F\u002F Get all metrics\n  getAllMetrics(): {\n    counters: Record\u003Cstring, number>;\n    gauges: Record\u003Cstring, number>;\n    timers: Record\u003Cstring, ReturnType\u003Ctypeof this.getTimerStats>>;\n  } {\n    const timerStats: Record\u003Cstring, ReturnType\u003Ctypeof this.getTimerStats>> = {};\n    for (const name of this.timers.keys()) {\n      timerStats[name] = this.getTimerStats(name);\n    }\n\n    return {\n      counters: Object.fromEntries(this.counters),\n      gauges: Object.fromEntries(this.gauges),\n      timers: timerStats,\n    };\n  }\n\n  \u002F\u002F Reset all metrics\n  reset(): void {\n    this.counters.clear();\n    this.gauges.clear();\n    this.timers.clear();\n  }\n}\n```\n\n### Step 3: Error Tracking\n```typescript\n\u002F\u002F src\u002Futils\u002Ferror-tracker.ts\ninterface TrackedError {\n  timestamp: string;\n  error: {\n    name: string;\n    message: string;\n    stack?: string;\n  };\n  context: Record\u003Cstring, any>;\n  count: number;\n}\n\nexport class ErrorTracker {\n  private errors = new Map\u003Cstring, TrackedError>();\n  private maxErrors = 50;\n\n  track(error: Error, context: Record\u003Cstring, any> = {}): void {\n    const key = `${error.name}:${error.message}`;\n    const existing = this.errors.get(key);\n\n    if (existing) {\n      existing.count++;\n      existing.timestamp = new Date().toISOString();\n      existing.context = { ...existing.context, ...context };\n    } else {\n      \u002F\u002F Enforce max errors limit\n      if (this.errors.size >= this.maxErrors) {\n        const oldestKey = this.errors.keys().next().value;\n        this.errors.delete(oldestKey);\n      }\n\n      this.errors.set(key, {\n        timestamp: new Date().toISOString(),\n        error: {\n          name: error.name,\n          message: error.message,\n          stack: error.stack,\n        },\n        context,\n        count: 1,\n      });\n    }\n  }\n\n  getErrors(): TrackedError[] {\n    return Array.from(this.errors.values())\n      .sort((a, b) => b.count - a.count);\n  }\n\n  getMostCommon(limit: number = 5): TrackedError[] {\n    return this.getErrors().slice(0, limit);\n  }\n\n  clear(): void {\n    this.errors.clear();\n  }\n\n  \u002F\u002F Safe wrapper for async functions\n  wrapAsync\u003CT>(\n    fn: () => Promise\u003CT>,\n    context: Record\u003Cstring, any> = {}\n  ): Promise\u003CT> {\n    return fn().catch((error: Error) => {\n      this.track(error, context);\n      throw error;\n    });\n  }\n\n  \u002F\u002F Export for debugging\n  export(): string {\n    return JSON.stringify(this.getErrors(), null, 2);\n  }\n}\n```\n\n### Step 4: Debug Panel View\n```typescript\n\u002F\u002F src\u002Fui\u002Fviews\u002Fdebug-view.ts\nimport { ItemView, WorkspaceLeaf } from 'obsidian';\nimport type MyPlugin from '..\u002F..\u002Fmain';\n\nexport const DEBUG_VIEW_TYPE = 'plugin-debug-view';\n\nexport class DebugView extends ItemView {\n  private plugin: MyPlugin;\n  private refreshInterval: number;\n\n  constructor(leaf: WorkspaceLeaf, plugin: MyPlugin) {\n    super(leaf);\n    this.plugin = plugin;\n  }\n\n  getViewType(): string {\n    return DEBUG_VIEW_TYPE;\n  }\n\n  getDisplayText(): string {\n    return 'Plugin Debug';\n  }\n\n  getIcon(): string {\n    return 'bug';\n  }\n\n  async onOpen() {\n    const container = this.containerEl.children[1];\n    container.empty();\n    container.addClass('plugin-debug-view');\n\n    this.render(container);\n\n    \u002F\u002F Auto-refresh every 5 seconds\n    this.refreshInterval = window.setInterval(() => {\n      this.render(container);\n    }, 5000);\n\n    this.registerInterval(this.refreshInterval);\n  }\n\n  private render(container: Element) {\n    container.empty();\n\n    \u002F\u002F Metrics section\n    container.createEl('h3', { text: 'Metrics' });\n    const metricsDiv = container.createDiv({ cls: 'debug-section' });\n    this.renderMetrics(metricsDiv);\n\n    \u002F\u002F Errors section\n    container.createEl('h3', { text: 'Recent Errors' });\n    const errorsDiv = container.createDiv({ cls: 'debug-section' });\n    this.renderErrors(errorsDiv);\n\n    \u002F\u002F Logs section\n    container.createEl('h3', { text: 'Recent Logs' });\n    const logsDiv = container.createDiv({ cls: 'debug-section' });\n    this.renderLogs(logsDiv);\n\n    \u002F\u002F Actions\n    const actionsDiv = container.createDiv({ cls: 'debug-actions' });\n    this.renderActions(actionsDiv);\n  }\n\n  private renderMetrics(container: Element) {\n    const metrics = this.plugin.metrics.getAllMetrics();\n\n    \u002F\u002F Counters\n    container.createEl('h4', { text: 'Counters' });\n    const countersList = container.createEl('ul');\n    for (const [name, value] of Object.entries(metrics.counters)) {\n      countersList.createEl('li', { text: `${name}: ${value}` });\n    }\n\n    \u002F\u002F Timers\n    container.createEl('h4', { text: 'Timers' });\n    const timersList = container.createEl('ul');\n    for (const [name, stats] of Object.entries(metrics.timers)) {\n      if (stats) {\n        timersList.createEl('li', {\n          text: `${name}: avg=${stats.avg.toFixed(2)}ms, p95=${stats.p95.toFixed(2)}ms (n=${stats.count})`,\n        });\n      }\n    }\n  }\n\n  private renderErrors(container: Element) {\n    const errors = this.plugin.errorTracker.getMostCommon(5);\n\n    if (errors.length === 0) {\n      container.createEl('p', { text: 'No errors recorded', cls: 'muted' });\n      return;\n    }\n\n    const list = container.createEl('ul');\n    for (const error of errors) {\n      const item = list.createEl('li');\n      item.createEl('strong', { text: `${error.error.name}: ` });\n      item.createSpan({ text: error.error.message });\n      item.createEl('span', {\n        text: ` (${error.count}x)`,\n        cls: 'error-count',\n      });\n    }\n  }\n\n  private renderLogs(container: Element) {\n    const logs = this.plugin.logger.getHistory().slice(-10).reverse();\n\n    const pre = container.createEl('pre', { cls: 'log-output' });\n    for (const log of logs) {\n      const line = pre.createEl('div', { cls: `log-${log.level}` });\n      line.textContent = `[${log.level}] ${log.message}`;\n    }\n  }\n\n  private renderActions(container: Element) {\n    const exportBtn = container.createEl('button', { text: 'Export Debug Data' });\n    exportBtn.addEventListener('click', () => this.exportDebugData());\n\n    const clearBtn = container.createEl('button', { text: 'Clear Data' });\n    clearBtn.addEventListener('click', () => {\n      this.plugin.metrics.reset();\n      this.plugin.errorTracker.clear();\n      this.render(this.containerEl.children[1]);\n    });\n  }\n\n  private exportDebugData() {\n    const data = {\n      timestamp: new Date().toISOString(),\n      plugin: this.plugin.manifest.id,\n      version: this.plugin.manifest.version,\n      metrics: this.plugin.metrics.getAllMetrics(),\n      errors: this.plugin.errorTracker.getErrors(),\n      logs: this.plugin.logger.exportLogs(),\n    };\n\n    \u002F\u002F Create download\n    const blob = new Blob([JSON.stringify(data, null, 2)], {\n      type: 'application\u002Fjson',\n    });\n    const url = URL.createObjectURL(blob);\n    const a = document.createElement('a');\n    a.href = url;\n    a.download = `${this.plugin.manifest.id}-debug-${Date.now()}.json`;\n    a.click();\n    URL.revokeObjectURL(url);\n  }\n\n  async onClose() {\n    if (this.refreshInterval) {\n      window.clearInterval(this.refreshInterval);\n    }\n  }\n}\n```\n\n### Step 5: Integration in Main Plugin\n```typescript\n\u002F\u002F src\u002Fmain.ts\nimport { Plugin } from 'obsidian';\nimport { Logger } from '.\u002Futils\u002Flogger';\nimport { MetricsCollector } from '.\u002Futils\u002Fmetrics';\nimport { ErrorTracker } from '.\u002Futils\u002Ferror-tracker';\nimport { DebugView, DEBUG_VIEW_TYPE } from '.\u002Fui\u002Fviews\u002Fdebug-view';\n\nexport default class MyPlugin extends Plugin {\n  logger: Logger;\n  metrics: MetricsCollector;\n  errorTracker: ErrorTracker;\n\n  async onload() {\n    \u002F\u002F Initialize observability\n    this.logger = new Logger(this.manifest.id, 'debug');\n    this.metrics = new MetricsCollector();\n    this.errorTracker = new ErrorTracker();\n\n    this.logger.info('Plugin loading');\n    const endLoadTime = this.logger.time('plugin-load');\n\n    \u002F\u002F Register debug view (dev mode only)\n    if (process.env.NODE_ENV !== 'production') {\n      this.registerView(\n        DEBUG_VIEW_TYPE,\n        (leaf) => new DebugView(leaf, this)\n      );\n\n      this.addCommand({\n        id: 'open-debug-view',\n        name: 'Open Debug View',\n        callback: () => this.openDebugView(),\n      });\n    }\n\n    \u002F\u002F Track command usage\n    this.addCommand({\n      id: 'my-command',\n      name: 'My Command',\n      callback: async () => {\n        this.metrics.increment('command.my-command');\n        await this.metrics.timeAsync('command.my-command.duration', async () => {\n          \u002F\u002F Command implementation\n        });\n      },\n    });\n\n    endLoadTime();\n    this.logger.info('Plugin loaded');\n  }\n\n  private async openDebugView() {\n    const leaf = this.app.workspace.getRightLeaf(false);\n    await leaf.setViewState({ type: DEBUG_VIEW_TYPE, active: true });\n    this.app.workspace.revealLeaf(leaf);\n  }\n}\n```\n\n## Output\n- Structured logger with levels and history\n- Metrics collection (counters, gauges, timers)\n- Error tracking with deduplication\n- Debug panel view for runtime inspection\n- Export capability for support\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Too much logging | Debug level in prod | Set level to 'error' |\n| Memory growth | Unbounded history | Limit history size |\n| Performance impact | Sync logging | Use async logging |\n| Missing context | No error tracking | Wrap async calls |\n\n## Examples\n\n### Styles for Debug View\n```css\n\u002F* styles.css *\u002F\n.plugin-debug-view {\n  padding: 16px;\n}\n\n.debug-section {\n  margin-bottom: 24px;\n  padding: 12px;\n  background: var(--background-secondary);\n  border-radius: 4px;\n}\n\n.log-output {\n  font-family: monospace;\n  font-size: 12px;\n  max-height: 200px;\n  overflow-y: auto;\n}\n\n.log-debug { color: var(--text-muted); }\n.log-info { color: var(--text-normal); }\n.log-warn { color: var(--text-warning); }\n.log-error { color: var(--text-error); }\n\n.error-count {\n  color: var(--text-error);\n  font-weight: bold;\n}\n\n.debug-actions button {\n  margin-right: 8px;\n}\n```\n\n## Resources\n- [Chrome DevTools Performance](https:\u002F\u002Fdeveloper.chrome.com\u002Fdocs\u002Fdevtools\u002Fperformance\u002F)\n- [Obsidian Developer Tools](https:\u002F\u002Fdocs.obsidian.md\u002FPlugins\u002FGuides\u002FDeveloper+tools)\n\n## Next Steps\nFor incident response, see `obsidian-incident-runbook`.\n",{"name":5,"author":54,"license":15,"version":55,"description":56,"allowed-tools":57},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Set up comprehensive logging and monitoring for Obsidian plugins.\nUse when implementing debug logging, tracking plugin performance,\nor setting up error reporting for your Obsidian plugin.\nTrigger with phrases like \"obsidian logging\", \"obsidian monitoring\",\n\"obsidian debug\", \"track obsidian plugin\".\n","Read, Write, Edit","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fobsidian-pack\u002Fskills\u002Fobsidian-observability",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill obsidian-observability",{"tool":73,"command":74},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill obsidian-observability",{"tool":76,"command":77},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill obsidian-observability","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fobsidian-pack\u002Fskills\u002Fobsidian-observability\u002FSKILL.md",true,[],[82,114,148,171,197,224],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":95,"publishedAt":113},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[90],{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[96,97,98,99,100,101,102,41,103,104,105,106,107,108,109,110,32,111,112],"theme factory","factory","theme","docs","toolkit","generate","artifacts","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":118,"sourceHtmlUrl":119,"categories":120,"keywords":124,"publishedAt":49},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[121],{"categoryNo":122,"categoryName":123,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000009","前端开发",[125,126,102,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,37,106,142,143,144,145,30,146,147],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","jsx","suite",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":152,"sourceHtmlUrl":153,"categories":154,"keywords":159,"publishedAt":49},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[155,158],{"categoryNo":156,"categoryName":157,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":122,"categoryName":123,"taxonomyType":93,"taxonomyTypeDesc":94},[160,161,162,129,163,164,126,165,100,166,139,167,168,169,170,32,30],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":175,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":49},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[179,180,181,182,183,184,185,186,37,187,188,189,190,191,192,193,32,194,195,196,30,28],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":201,"sourceHtmlUrl":202,"categories":203,"keywords":207,"publishedAt":49},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[204],{"categoryNo":205,"categoryName":206,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000023","Skill与智能体开发",[208,209,210,211,212,213,214,215,216,217,218,219,220,221,32,30,222,28,223],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","integrations","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":225,"name":226,"nameZh":6,"description":227,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":228,"sourceHtmlUrl":229,"categories":230,"keywords":232,"publishedAt":49},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[231],{"categoryNo":205,"categoryName":206,"taxonomyType":93,"taxonomyTypeDesc":94},[226,233,234,235,236,237,238,166,239,240,37,241,242,243,244,30,245],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]