spring-boot-scanner
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 (@RestController, @Entity, @EnableWebSecurity, @SpringBootTest) to determine relevant skills and provides contextual guidance. Uses progressive automation - auto-invokes for low-risk patterns (web-api, data, DDD), confirms before loading high-risk skills (security, testing, verify).
What this skill does
# Spring Boot Scanner Smart pattern detection and skill routing for Spring Boot projects. ## Core Behavior **Trigger Conditions**: - Editing `*.java` or `*.kt` files in a project with `spring-boot-starter` dependencies - Working with `pom.xml` or `build.gradle*` containing Spring Boot - User mentions "Spring Boot", "Spring Security", "Spring Data", etc. **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](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: ```bash # Run from project root python3 scripts/detect_patterns.py /path/to/file.java ``` Or use Grep directly: ```bash # 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**: - `spring-boot-web-api` → REST patterns - `spring-boot-data-ddd` → Repository/Entity patterns - `spring-boot-security` → Security configuration - `spring-boot-testing` → Test patterns - `spring-boot-modulith` → Module structure - `spring-boot-observability` → Metrics/Health - `spring-boot-verify` → Dependencies/Config - `domain-driven-design` → DDD architecture **Delegates to Agents** (for comprehensive review): - `spring-boot-reviewer` → Full codebase review - `spring-boot-upgrade-verifier` → Migration analysis **When to delegate to agents**: - User asks for "review" or "scan" of entire project - Multiple HIGH RISK patterns across many files - Explicit `/spring-review` or `/verify-upgrade` command ## Known Limitations - **Annotation-based only**: Detects standard Spring annotations, not custom/meta-annotations or XML configuration - **Java and Kotlin only**: Scans `*.java` and `*.kt` files; no Groovy/Scala support - **Spring Boot 3.x+ optimized**: Escalation patterns focus on Boot 3.x → 4.x migration; older versions may have gaps - **No AST parsing**: Uses regex matching, so patterns in comments/strings may cause false positives ## 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 - **Workflow**: See [WORKFLOW.md](WORKFLOW.md) for step-by-step detection flow - **Examples**: See [EXAMPLES.md](EXAMPLES.md) for trigger scenarios - **Troubleshooting**: See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for common issues - **Detection Script**: See [scripts/detect_patterns.py](scripts/detect_patterns.py) for programmatic detection ## 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
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.