log-coverage-analyzer

Installation
SKILL.md

This skill performs comprehensive log coverage analysis for code repositories. It identifies logging deficiencies in call chains and detects high-frequency log risks that may impact performance.

Analysis Principles

Log Level Definitions

Log Level Behavior Use Case
LOGE Always prints, never lost Critical - Must exist on all error return paths
LOGI Always prints, may be lost if high-frequency triggered at same location Important - Success paths, key operations
LOGD Only prints when debug switch enabled Optional - Debug information only
LOGW Only prints when debug switch enabled Optional - Warning information only

Core Analysis Rules

  1. Log Coverage Rule: Each branch in a function call chain must have LOGE or LOGI level logging
  2. High-Frequency Risk Rule: Functions that may be called frequently (loops, timers, callbacks, event handlers) with LOGE/LOGI logs pose performance risks
  3. Error Path Rule: All error return paths MUST have LOGE logging
  4. Context Rule: All logs must include sufficient context information (IDs, states, parameters)
Related skills

More from openharmonyinsight/openharmony-skills

Installs
45
GitHub Stars
21
First Seen
Feb 10, 2026