rugged-gemini: Skill for Claude Code

.gemini/skills/spring-boot-idioms/SKILL.md

spring-boot-idioms is a skill for Claude Code, Gemini CLI from irahardianto/rugged-gemini. It costs 0 tokens per session (658 once invoked), scanned A, original, MIT.

A set of Spring Boot 3 coding guidelines for dependency injection, configuration, database access, transactions, and application monitoring.

In plain words
What is it for?
It supports building services, repositories, configuration classes, database queries, and production monitoring with Spring Boot.
Why use it?
It helps keep Spring applications testable and consistently configured. It also explains how to use Spring’s built-in conventions without hiding important dependencies or settings.

Skill for Claude CodeGemini CLI

Written for Claude Code and Gemini CLI: paths in frontmatter, but also installed under .gemini/.

This is irahardianto/rugged-gemini's own configuration. It tells Claude Code and Gemini CLI how to work on rugged-gemini itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rugged-gemini configures →

Reuse

Borrowing it

Nothing to install: this file belongs to irahardianto/rugged-gemini. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/irahardianto/rugged-gemini/main/.gemini/skills/spring-boot-idioms/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/irahardianto/rugged-gemini

Made for: Claude Code, Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spring-boot-idioms

README.md
[![agentmods](https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/spring-boot-idioms/github.svg)](https://agentmods.dev/skills/irahardianto/rugged-gemini/spring-boot-idioms)
Your own site
<a href="https://agentmods.dev/skills/irahardianto/rugged-gemini/spring-boot-idioms"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/spring-boot-idioms/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-boot-idioms

Your own site · 80×15
<a href="https://agentmods.dev/skills/irahardianto/rugged-gemini/spring-boot-idioms"><img src="https://agentmods.dev/badge/skills/irahardianto/rugged-gemini/spring-boot-idioms.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 658 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00658
Opus 5 $0.00000 $0.00329
Sonnet 5 $0.00000 $0.00132
Haiku 4.5 $0.00000 $0.00066

Measured 7d ago against content hash bfeb15a80f24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

spring-boot-idioms scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.gemini/skills/spring-boot-idioms/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Boot Idioms and Patterns

Spring Boot (3.x) rewards auto-configuration, constructor injection, and actuator-driven observability. Idiomatic Spring = annotation-driven, testable, production-ready.

Scope: Spring Boot-specific patterns. For Java: @.gemini/skills/java-idioms/SKILL.md.

Dependency Injection

  1. Constructor injection only — never field injection:

    @Service
    public class TaskService {
        private final TaskRepository repository;
        private final TaskMapper mapper;
    
        public TaskService(TaskRepository repository, TaskMapper mapper) {
            this.repository = repository;
            this.mapper = mapper;
        }
    }
    
  2. @ConfigurationProperties over @Value for typed config.

Spring Data JPA

  1. Query methods for simple queries:

    interface TaskRepository extends JpaRepository<Task, UUID> {
        List<Task> findByStatusOrderByCreatedAtDesc(TaskStatus status);
        @Query("SELECT t FROM Task t WHERE t.priority = :priority AND t.status = 'ACTIVE'")
        List<Task> findActivByPriority(@Param("priority") Priority priority);
    }
    
  2. Projections for read-only views — avoid loading full entities.

  3. @Transactional on service methods, never on repositories.

REST Controllers

  1. @RestController + DTOs — never expose entities directly:

    @RestController
    @RequestMapping("/api/v1/tasks")
    public class TaskController {
        @PostMapping
        @ResponseStatus(HttpStatus.CREATED)
        public TaskResponse create(@Valid @RequestBody CreateTaskRequest request) {
            return taskService.create(request);
        }
    }
    
  2. @ControllerAdvice for global exception handling.

Actuator and Observability

  1. Actuator endpoints enabled for health, metrics, info.
  2. Micrometer for custom metrics.
  3. Structured logging with MDC for correlation IDs.

Testing

  1. @SpringBootTest for integration, @WebMvcTest for controller slices:
    @WebMvcTest(TaskController.class)
    class TaskControllerTest {
        @Autowired MockMvc mockMvc;
        @MockBean TaskService taskService;
    
        @Test
        void createTask_returns201() throws Exception {
            mockMvc.perform(post("/api/v1/tasks")
                .contentType(MediaType.APPLICATION_JSON)
                .content("{\"title\":\"Test\",\"priority\":\"HIGH\"}"))
                .andExpect(status().isCreated());
        }
    }
    

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 94 lines · 0 tokens per session scan A bfeb15a80f24

Subscribe to this mod's changes

spring-boot-idioms is a skill published in the GitHub repository irahardianto/rugged-gemini (5 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 658 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

wxjava-api-contributor

A contributor guide for adding or maintaining official WeChat API support in WxJava, a Java software development kit. It covers services, request and response data objects, data conversion, HTTP handling, starter configuration, and regression tests.

binarywang/WxJava · 68 tokens

wxjava-module-selector

A decision guide for choosing the correct WxJava Maven module, dependency management file, and example for a WeChat use case. WxJava is a Java software development kit for services such as official accounts, mini programs, and payments.

binarywang/WxJava · 86 tokens

azure-communication-callautomation-java

Build call automation workflows with Azure Communication Services Call Automation Java SDK. Use when implementing IVR systems, call routing, call recording, DTMF recognition, text-to-speech, or AI-powered call flows.

microsoft/skills · 49 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

azure-communication-common-java

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

microsoft/skills · 35 tokens

azure-communication-sms-java

Send SMS messages with Azure Communication Services SMS Java SDK. Use when implementing SMS notifications, alerts, OTP delivery, bulk messaging, or delivery reports.

microsoft/skills · 36 tokens