koan-debugging

Diagnose Koan framework boot initialization and auto-registration issues.

4|3|Updated Aug 18, 2025
One-click install
npx skills add https://github.com/sylin-org/koan-framework --skill koan-debugging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: koan-debugging
Source: https://github.com/sylin-org/koan-framework/tree/main/.claude/skills/debugging
Command: npx skills add https://github.com/sylin-org/koan-framework --skill koan-debugging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging complex framework-driven applications can be challenging, especially with auto-discovery and multi-provider architectures. This Skill provides targeted strategies and tools to quickly diagnose and resolve common issues in Koan Framework applications.

Core Features & Use Cases

  • Boot Report Analysis: Leverage detailed startup logs to identify module loading issues, provider election problems, and configuration warnings.
  • Targeted Troubleshooting: Address common problems like "service not found," "ID not generated," "query not working," and "wrong provider elected" with specific diagnostic steps and solutions.
  • Performance Diagnostics: Identify and resolve N+1 query problems and out-of-memory errors using batch operations and streaming patterns.
  • Container Debugging: Get guidance on troubleshooting container startup failures, networking issues, and health checks.
  • Use Case: When your application fails to start or a data query behaves unexpectedly, use the boot report to pinpoint misconfigurations, verify provider capabilities, or identify missing service registrations.

Quick Start

To view detailed boot logs for your Koan application, run: docker logs koan-app --tail 20 --follow | grep "Koan:" In development, add this to Program.cs to dump a full snapshot: if (KoanEnv.IsDevelopment) { KoanEnv.DumpSnapshot(logger); }

Frequently Asked Questions about koan-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose Koan app startup failures and boot issues?

Diagnose Koan app startup failures by analyzing boot logs using `docker logs koan-app --tail 20 --follow | grep "Koan:"` to identify module loading errors, provider election problems, and configuration warnings. In development, call `KoanEnv.DumpSnapshot(logger)` to capture a full initialization snapshot for detailed inspection.

What causes 'service not found' and 'ID not generated' errors in Koan Framework applications?

These errors typically stem from missing service registrations, incorrect module discovery, or DI wiring failures. Use boot report analysis to verify registrar visibility, confirm module discovery completed, validate provider capabilities match service requirements, and check configuration correctness across Bootstrap and Initialization phases.

How can I troubleshoot performance issues like N+1 queries in Koan applications?

Resolve N+1 query problems and out-of-memory errors by implementing batch operations and streaming patterns. Review boot reports to identify provider election and configuration issues, then apply targeted performance diagnostics to validate query execution and resource allocation.

Can I debug Koan container deployments with health checks and networking issues?

Yes, the Skill provides container debugging guidance for troubleshooting startup failures, networking connectivity, and health check configuration in containerized Koan deployments. Analyze boot logs and provider election decisions to resolve multi-provider scenarios and cross-container service discovery problems.

What should I check when the wrong provider gets elected in Koan applications?

When wrong provider election occurs, examine boot logs for provider registration order, configuration overrides, and capability mismatches. Verify each provider's visibility in the registrar, confirm module discovery sequence, and validate DI wiring to ensure the highest-priority provider matching service requirements gets selected.

How do I validate module registration and auto-discovery in Koan Framework?

Validate module registration by reviewing boot reports to confirm all modules were discovered and registered correctly. Check registrar visibility for each module, verify provider election results, confirm DI wiring is complete, and inspect configuration for misconfigurations that prevent auto-discovery or affect provider selection.