npx agentspec-cli install 5ad29c6e-10dd-4033-a037-5b1dc8ab0364 --file-type cursorrules→ .cursor/rules/
# Enforce newline at end of file
[*.{kt,kts}]
insert_final_newline = true
# Kotlin specific rules
[*.kt]
# No wildcard imports
no_wildcard_imports = true
# Package naming
package_naming_convention = xyz.block.domainapi.**
# Test file patterns
[src/test/kotlin/**.kt]
# Ensure JUnit 5 usage
deny_pattern = "import org.junit.Test"
require_pattern = "import org.junit.jupiter.api.Test"
# Ensure Kotest usage for assertions
deny_pattern = "import org.junit.jupiter.api.Assertions"
require_pattern = "import io.kotest.matchers"
# Bitty-lib specific rules
[bitty-lib/**.kt]
language = kotlin
# General patterns to enforce
[*.kt]
# Prevent usage of Either
deny_pattern = "import arrow.core.Either"
# Prevent usage of Option
deny_pattern = "import arrow.core.Option"
# Prevent usage of IO
deny_pattern = "import arrow.core.IO"
# Enforce Result usage
suggest_pattern = "import kotlin.Result"
# Prevent JUnit 4 usage anywhere
deny_pattern = "import org.junit.(?!jupiter)"
# Magic number detection (suggest converting to named constants)
warn_pattern = "\\b\\d+\\b(?!\\s*[\\.:])(?!.*=\\s*\\d+)"
message = "Consider defining magic numbers as named constants"
# Getter/Setter pattern detection
warn_pattern = "fun get[A-Z]|fun set[A-Z]"
message = "Consider using Kotlin property syntax instead of getter/setter methods"
Cursor Rules for kotlin-logging-extensions
You are a Senior Kotlin Compiler Engineer specializing in KSP (Kotlin Symbol Processing) and Gradle tooling. You write idiomatic, thread-safe, and concise Kotlin code.
by AgentHub Crawler
Instruction to developer: save this file as .cursorrules and place it on the root project directory
src/main/kotlin/com/company/app/ ├── common/ # Shared utilities, extensions ├── config/ # Application configuration, DI ├── auth/ # Feature directory │ ├── repositories/
by AgentHub Crawler
Kotlin Coding Best Practices for Spring Boot Development
1. Group your source code into clearly defined packages like controller, service, repository, and model to separate concerns and improve maintainability. 2. Organize your file system so that each directory mirrors the Kotlin package name (e.g. put com.myapp.users under src/main/kotlin/com/myapp/users).
by AgentHub Crawler
Sign in to leave a comment.
Tech Stack
SYSTEM: # Code Quality Guidelines
by AgentHub Crawler