spring-context-di-reasoning

Diagnose Spring context startup failures and bean-graph root causes.

14|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/kbrgnj/kotlin-backend-agent-skills --skill spring-context-di-reasoning-kbrgnj
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: spring-context-di-reasoning
Source: https://github.com/kbrgnj/kotlin-backend-agent-skills/tree/main/.agents/skills/spring-context-di-reasoning
Command: npx skills add https://github.com/kbrgnj/kotlin-backend-agent-skills --skill spring-context-di-reasoning-kbrgnj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Diagnose Spring application context startup failures, bean graph problems, missing or duplicate beans, circular dependencies, conditional auto-configuration mismatches, and profile-related wiring issues in Kotlin + Spring projects. Use when the app does not start, a bean is not created or is created unexpectedly, auto-configuration behaves strangely, or a minimal DI fix is needed instead of a broad rewrite.

Core Features & Use Cases

  • Reconstruct the bean path from failure to root cause by inspecting exception chains, configuration, and active profiles.
  • Analyze missing or ambiguous beans, circular dependencies, and conditional auto-configuration issues with guided remediation.
  • Provide minimal, verifiable fixes and explanations to restore correct wiring in Kotlin + Spring apps.

Quick Start

Provide a focused root-cause analysis for a failing Spring context and propose the minimal wiring fix.

Frequently Asked Questions about spring-context-di-reasoning

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

FAQPage Schema
How do I fix a Spring bean circular dependency during application context startup?▼

Resolve missing Spring beans by analyzing exception chains and configuration classes to locate the absent bean definition. Inspect active profiles and conditional auto-configuration to determine why the bean was omitted, then apply a minimal wiring fix to restore it.

Why does my Spring conditional auto-configuration mismatch cause a bean not to be created?▼

A conditional auto-configuration mismatch prevents bean creation when active profiles or conditions do not align with the configuration class. Inspect the active profiles and exception chain to pinpoint the mismatch and apply a minimal, verifiable fix to correct the wiring.

Can I diagnose a duplicate bean exception in a Kotlin Spring project without a broad rewrite?▼

Yes, you can diagnose duplicate bean exceptions by analyzing the configuration classes and bean graph to isolate the conflicting definitions. This approach provides a minimal, verifiable fix to resolve the ambiguity without requiring a broad rewrite of your Kotlin Spring project.

What is the best way to troubleshoot profile-related wiring issues in a Spring application context?▼

The best way to troubleshoot profile-related wiring issues is to analyze active profiles alongside configuration classes and exception chains. Reconstruct the bean path from the failure to identify the profile mismatch and propose a minimal, verifiable fix for correct wiring.

How do I trace a Spring application context startup failure back to its root cause?▼

Trace a Spring application context startup failure by analyzing the exception chain, configuration classes, and active profiles. Reconstruct the bean path from the failure point to reveal the root cause and propose a minimal, verifiable fix with clear rationale.