Kotlin Convention Validator banner
themoment-team themoment-team

Kotlin Convention Validator

Development community

Description

--- name: kotlin-convention-validator description: "Kotlin-only. Detects and auto-fixes convention violations in changed .kt files (git diff HEAD). Exits immediately if no Kotlin files changed. Checks CLAUDE.md, .gemini/styleguide.md, and CONTRIBUTING.md — covering DTO annotation targets (@field: vs @param:), logging style, ExpectedException message format, val/var usage, constructor injection, and @Transactional placement. Applies direct file edits for non-KtLint violations, then runs ktlintFor

Installation

Installs to ~/.claude/agents/themoment-team-datagsm-server-kotlin-convention-validator.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/themoment-team/datagsm-server/HEAD/.claude/agents/kotlin-convention-validator.md -o ~/.claude/agents/themoment-team-datagsm-server-kotlin-convention-validator.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository