---
title: "Kotlin Hooks"
description: "> This file extends the common hooks rule with Kotlin-specific content."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/kotlin-hooks
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:30:26.149Z
license: CC-BY-4.0
attribution: "Kotlin Hooks — Claudary (https://claudary.paisolsolutions.com/skills/kotlin-hooks)"
---

# Kotlin Hooks
> This file extends the common hooks rule with Kotlin-specific content.

## Overview

---
description: "Kotlin hooks extending common rules"
globs: ["**/*.kt", "**/*.kts", "**/build.gradle.kts"]
alwaysApply: false
---
# Kotlin Hooks

> This file extends the common hooks rule with Kotlin-specific content.

## PostToolUse Hooks

Configure in `~/.claude/settings.json`:

- **ktfmt/ktlint**: Auto-format `.kt` and `.kts` files after edit
- **detekt**: Run static analysis after editing Kotlin files
- **./gradlew build**: Verify compilation after changes

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/kotlin-hooks) · https://claudary.paisolsolutions.com
