Spring boot scanner

From joaquimscosta/arkhe-claude-plugins · View interactive version

Spring boot scanner is an AI agent skill from the GitHub repository joaquimscosta/arkhe-claude-plugins. Smart code scanner that detects Spring Boot patterns and routes to appropriate skills. Use when editing Java or Kotlin files in Spring Boot projects, working with pom.xml/build.gradle containing spring-boot-starter, or when context suggests Spring Boot development. Detects annotations (@RestControll

How to use this skill

Skill file

Spring Boot Scanner

Smart pattern detection and skill routing for Spring Boot projects.

Core Behavior

Trigger Conditions:

Action: Scan code → Detect patterns → Route to appropriate skill

Detection Algorithm

Scans in 3 phases: (1) detect Spring Boot project via build files, (2) scan annotations against the map below, (3) route by risk level — LOW auto-invokes, HIGH confirms first. See WORKFLOW.md for the full step-by-step detection flow.

Annotation → Skill Map

| Annotation Pattern | Detected Skill | Risk Level |

|-------------------|----------------|------------|

| @RestController, @GetMapping, @PostMapping, @RequestMapping | spring-boot-web-api | LOW |

| @Entity, @Repository, @Aggregate, @MappedSuperclass | spring-boot-data-ddd | LOW |

| @Service in **/domain/** or **/service/** | domain-driven-design | LOW |

| @ApplicationModule, @ApplicationModuleListener | spring-boot-modulith | LOW |

| @Timed, @Counted, HealthIndicator, MeterRegistry | spring-boot-observability | LOW |

| @EnableWebSecurity, @PreAuthorize, @Secured, SecurityFilterChain | spring-boot-security | HIGH |

| @SpringBootTest, @WebMvcTest, @DataJpaTest, @MockitoBean | spring-boot-testing | HIGH |

| @MockBean (deprecated) | spring-boot-testing | HIGH + WARNING |

| Build file with version < 4.0 | spring-boot-verify | HIGH |

Use this script to detect patterns:

# Run from project root
python3 scripts/detect_patterns.py /path/to/file.java

Or use Grep directly:

# Web API detection
grep -l "@RestController\|@GetMapping\|@PostMapping" **/*.java

# Security detection
grep -l "@EnableWebSecurity\|@PreAuthorize\|SecurityFilterChain" **/*.java

# Testing detection
grep -l "@SpringBootTest\|@WebMvcTest\|@MockitoBean\|@MockBean" **/*.java

Escalation Triggers

Always confirm before proceeding when detecting:

| Pattern | Reason | Action |

|---------|--------|--------|

| @EnableGlobalMethodSecurity | Deprecated in Security 6+ | Confirm + Migration guidance |

| @MockBean | Deprecated in Boot 3.4+ | Confirm + Show @MockitoBean |

| spring-boot-starter-parent < 3.0 | Major migration needed | Confirm + Suggest verify-upgrade |

| .and() in security config | Removed in Security 7 | Confirm + Lambda DSL guidance |

| com.fasterxml.jackson | Jackson 3 migration | Confirm + Namespace change |

Integration with Existing Components

Delegates to Skills:

Delegates to Agents (for comprehensive review):

When to delegate to agents:

Known Limitations

Escape Hatch

If scanner guidance isn't helpful for the current context:

| Scenario | Action |

|----------|--------|

| Skip LOW RISK guidance | Ignore suggestions and continue working |

| Skip HIGH RISK confirmation | Select "Continue without guidance" option |

| Need comprehensive review | Use /spring-review command instead |

| Disable temporarily | Remove spring-boot-scanner from active skills |

The scanner is advisory—it suggests skills but never blocks the workflow.

Related Skills

| Need | Skill |

|------|-------|

| DDD concepts | domain-driven-design |

| Data layer | spring-boot-data-ddd |

| REST APIs | spring-boot-web-api |

| Security config | spring-boot-security |

| Full codebase review | Use /spring-review command |

Detailed References

Critical Reminders

  1. Always check project type first — Only activate for Spring Boot projects
  2. Respect risk levels — Never auto-invoke security/testing/verify without confirmation
  3. Batch notifications — Don't spam user with multiple skill suggestions
  4. Delegate to agents for scale — Use reviewer agent for multi-file analysis
  5. Preserve user flow — Guidance should assist, not interrupt
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.