Borrowing it
Nothing to install: this file belongs to themoment-team/datagsm-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/themoment-team/datagsm-server/master/.agents/skills/kotlin-spring-arch/SKILL.mdgit clone --depth 1 https://github.com/themoment-team/datagsm-serverWrote 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.
[](https://agentmods.dev/skills/themoment-team/datagsm-server/kotlin-spring-arch)<a href="https://agentmods.dev/skills/themoment-team/datagsm-server/kotlin-spring-arch"><img src="https://agentmods.dev/badge/skills/themoment-team/datagsm-server/kotlin-spring-arch/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.
<a href="https://agentmods.dev/skills/themoment-team/datagsm-server/kotlin-spring-arch"><img src="https://agentmods.dev/badge/skills/themoment-team/datagsm-server/kotlin-spring-arch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.00534 |
| Opus 5.5 | $0.00020 | $0.00214 |
| Sonnet 5.5 | $0.00010 | $0.00107 |
| Haiku 4.5 | $0.00005 | $0.00053 |
Grade A, and why
kotlin-spring-arch 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 29d 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.
What it actually says
Kotlin + Spring Boot Architecture Guide
Layer Structure
Controller
- Role: Request validation, DTO conversion, HTTP response
- Annotations:
@RestController,@RequestMapping - Validation:
@Valid,@Validated - Response: Return DTO directly — the framework auto-wraps it with
CommonApiResponse
// CORRECT — return DTO directly
fun getStudent(): StudentResDto = queryStudentService.execute(id)
// WRONG — do not wrap manually
fun getStudent(): CommonApiResponse<StudentResDto> = CommonApiResponse(queryStudentService.execute(id))
Service
- Role: Business logic, transaction management
- Pattern: interface + implementation
- Transaction:
- Read:
@Transactional(readOnly = true) - Write:
@Transactional
- Read:
- Dependencies: Inject Repository via constructor injection
Repository
- Role: Data access
- JPA: Extend
JpaRepository - QueryDSL: Complex queries
- Avoid N+1: Fetch Join,
@EntityGraph
Transaction Strategy
Read-only Optimization
@Transactional(readOnly = true)
fun findApiKeys(): List<ApiKeyResDto> {
return repository.findAll()
.map { it.toResDto() }
}
N+1 Problem Resolution
// ❌ N+1 occurs
repository.findAll() // 1 query
entity.relatedEntity // N queries
// ✅ Fetch Join
@Query("SELECT e FROM Entity e JOIN FETCH e.relatedEntity")
fun findAllWithRelated(): List<Entity>
Exception Handling
Use ExpectedException Directly
val student = studentRepository.findById(id).orElseThrow {
ExpectedException("학생을 찾을 수 없습니다.", HttpStatus.NOT_FOUND)
}
Do not create custom exception subclasses extending ExpectedException.
Global Handler
Locate with: find . -name "GlobalExceptionHandler.kt" ! -path "*/build/*"
DTO Conversion Pattern
// Entity → ResDto
fun Entity.toResDto() = EntityResDto(
id = this.id,
name = this.name
)
// ReqDto → Entity
fun EntityReqDto.toEntity() = Entity(
name = this.name
)
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.
- 29d ago First seen · 88 lines · 49 tokens per session scan A e642ba1bab3a
kotlin-spring-arch is a skill published in the GitHub repository themoment-team/datagsm-server (29 stars, last pushed yesterday), licensed MIT. It adds 49 tokens to every session and 534 once invoked, about $0.0002 per session on Opus 5.5. 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-10-08.
kotlin-spring-arch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kotlin-spring-archthemoment-team/datagsm-server | Skill | 29 | yesterday | MIT | A | 49 | Claude Code, Codex |
| spring-ecosystem-docspledgeandgrow/pledge-skills | Skill | 10 | 3mo ago | MIT | A | 43 | Claude Code, Codex |
| java-cacheducpm2303/claude-java-plugins | Skill | 17 | 7mo ago | none | A | 46 | Claude Code |
| kotlin-backend-jpa-entity-mappingKotlin/kotlin-agent-skills | Skill | 1.1k | 7d ago | Apache-2.0 | A | 104 | Claude Code, Codex |
| zhihu-searchitwanger/toBeBetterJavaer | Skill | 18k | 2d ago | none | A | 103 | Claude Code, Codex |
| redis-docs-mcpredis/agent-skills | Skill | 174 | yesterday | MIT | A | 132 | Claude Code |
| spring-mcp-contractsexplyt/spring-plugin | Skill | 167 | yesterday | Apache-2.0 | A | 102 | Claude Code, Codex |