From pdca-debug-suite
Language-specific debug logging patterns and best practices. Reference when adding instrumentation for Dart/Flutter, Kotlin/Android, Swift/iOS, or JavaScript/TypeScript applications.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pdca-debug-suite:debug-log-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill provides copy-paste-ready logging patterns for common debugging scenarios across multiple languages. Use these patterns when instrumenting code during PDCA debug cycles.
This skill provides copy-paste-ready logging patterns for common debugging scenarios across multiple languages. Use these patterns when instrumenting code during PDCA debug cycles.
| Language | File | Primary Use Case |
|---|---|---|
| Dart/Flutter | references/dart-flutter.md | Flutter mobile/web apps |
| Kotlin/Android | references/kotlin-android.md | Native Android apps |
| Swift/iOS | references/swift-ios.md | Native iOS apps |
| JavaScript/TypeScript | references/javascript-typescript.md | Web apps, Node.js, React Native |
All logs should follow this format for consistency:
[ClassName] methodName: description key=value
| Level | When to Use |
|---|---|
| DEBUG/TRACE | Detailed flow tracing, variable values |
| INFO | Significant events, state transitions |
| WARN | Unexpected but recoverable situations |
| ERROR | Failures that affect functionality |
[ClassName] methodName: ENTER params=(param1, param2)
[ClassName] methodName: EXIT result=value
[ClassName] methodName: condition branch=TAKEN/SKIPPED reason=why
[ClassName] methodName: loop iteration=N/total item=current
[ClassName] methodName: state from=oldState to=newState trigger=event
[ClassName] operationName: START
[ClassName] operationName: SUCCESS result=summary
[ClassName] operationName: ERROR error=message
Debugging Flutter/Dart app?
-> See references/dart-flutter.md
Debugging Android native (Kotlin)?
-> See references/kotlin-android.md
Debugging iOS native (Swift)?
-> See references/swift-ios.md
Debugging web/Node.js/React?
-> See references/javascript-typescript.md
references/dart-flutter.md - Dart/Flutter logging patternsreferences/kotlin-android.md - Kotlin/Android logging patternsreferences/swift-ios.md - Swift/iOS logging patternsreferences/javascript-typescript.md - JavaScript/TypeScript logging patternsnpx claudepluginhub xmgrex/ccx-arsenal --plugin pdca-debug-suiteGuides log level selection, structured logging, and error tracking integration. Use when implementing logging in application code to keep error tracking actionable.
Provides structured JSON logging patterns with correlation IDs, context propagation, log levels, and required fields for observability and production incident debugging.
Guides systematic debugging techniques including scientific method, reproduction checklists, hypothesis testing, and binary search for bugs, performance issues, and unexpected behavior across codebases.