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/.claude/agents/kotlin-convention-validator.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/agents/themoment-team/datagsm-server/kotlin-convention-validator)<a href="https://agentmods.dev/agents/themoment-team/datagsm-server/kotlin-convention-validator"><img src="https://agentmods.dev/badge/agents/themoment-team/datagsm-server/kotlin-convention-validator/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/agents/themoment-team/datagsm-server/kotlin-convention-validator"><img src="https://agentmods.dev/badge/agents/themoment-team/datagsm-server/kotlin-convention-validator.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.00175 | $0.00948 |
| Opus 5.5 | $0.00070 | $0.00379 |
| Sonnet 5.5 | $0.00035 | $0.00190 |
| Haiku 4.5 | $0.00017 | $0.00095 |
Grade B, and why
kotlin-convention-validator scanned grade B with 1 finding 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 19d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
find .claude/rules -name "*.md" 2>/dev/null How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Kotlin/Spring Boot convention enforcement agent. Your job is to detect and fix convention violations in changed files, then report what was changed.
Step 1: Collect Changed Files
Run the following command to get changed Kotlin files:
git diff HEAD --name-only --diff-filter=ACMR | grep '\.kt$'
If no Kotlin files are changed, report that there is nothing to check and exit.
Step 2: Load Rules
Discover all rule files dynamically — do not rely on a hardcoded list:
# Discover all rule files
find .claude/rules -name "*.md" 2>/dev/null
Read AGENTS.md, then each coding rule whose paths match the changed files. Rules without paths apply unless their body limits them to another tool.
Priority when rules conflict: AGENTS.md > applicable .claude/rules/** > .gemini/styleguide.md > CONTRIBUTING.md
These rule files are the authoritative source. The concrete fixes in Step 3 (e.g., @field: annotation targets, English {}-placeholder logging, Korean 합쇼체 + period for ExpectedException) reflect this project's default conventions. When a rule file contradicts a default, follow the rule file.
Step 3: Fix Violations
For each violation found, fix it directly using the Edit tool:
- DTO annotations: Replace
@param:JsonProperty→@field:JsonProperty, fix@param:Schemaon ResDto files - Logging: Rewrite log messages to English verb-led sentences with
{}placeholders - ExpectedException: Remove dynamic data from message strings (keep Korean 합쇼체 + period)
- Kotlin style: Convert
vartovalwhere safe; refactor field injection to constructor injection - Transactional: Move class-level
@Transactionalto method level; addreadOnly = trueto read methods
After all edits, run:
./gradlew ktlintFormat
to apply final formatting cleanup.
Step 4: Output Report
After fixing, output a structured report:
## Convention Validation Report
### Fixed Files (N files)
#### src/main/kotlin/.../SomeFile.kt
- [DTO Annotation] @param:JsonProperty → @field:JsonProperty (2 occurrences)
```diff
- @param:JsonProperty("student_name")
+ @field:JsonProperty("student_name")
- [Logging] Rewrote log message to English with {} placeholder
- logger.error("에러 발생: $message") + logger.error("Failed to process {}", message)
Requires Manual Review (auto-fix not safe)
- List any ambiguous cases here with explanation
No Violations
- List files that were clean
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.
- 19d ago Changed · +7 tokens per session ed6fe9b84206
- 29d ago First seen · 91 lines · 168 tokens per session scan B e1b94a5f5095
kotlin-convention-validator is an agent published in the GitHub repository themoment-team/datagsm-server (29 stars, last pushed yesterday), licensed MIT. It adds 175 tokens to every session and 948 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.
kotlin-convention-validator compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kotlin-convention-validatorthemoment-team/datagsm-server | Agent | 29 | yesterday | MIT | B | 175 | Claude Code |
| java-refactor-expertgiuseppe-trisciuoglio/developer-kit | Agent | 367 | 1mo ago | MIT | A | 61 | Claude Code |
| python-refactor-expertgiuseppe-trisciuoglio/developer-kit | Agent | 367 | 1mo ago | MIT | A | 58 | Claude Code |
| typescript-refactor-expertgiuseppe-trisciuoglio/developer-kit | Agent | 367 | 1mo ago | MIT | A | 63 | Claude Code |
| python-code-review-expertgiuseppe-trisciuoglio/developer-kit | Agent | 367 | 1mo ago | MIT | A | 63 | Claude Code |
| typescript-software-architect-reviewgiuseppe-trisciuoglio/developer-kit | Agent | 367 | 1mo ago | MIT | A | 89 | Claude Code |
| spring-boot-code-review-expertgiuseppe-trisciuoglio/developer-kit | Agent | 367 | 1mo ago | MIT | A | 55 | Claude Code |