This skill should be used when you need to know what members, methods, or extensions are available on Kotlin types. It queries autocomplete metadata generated by the kotlin-autocomplete-gradle-plugin.
You have access to accurate, project-specific Kotlin type information through autocomplete metadata generated by the kotlin-autocomplete-gradle-plugin.
Use this skill when:
The autocomplete metadata is generated by running ./gradlew buildAutocomplete in a Kotlin project. This creates JSON files in build/autocomplete/ containing:
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "fully.qualified.TypeName"
NEW! You don't need to know the fully-qualified name!
# Just use the simple name - it will auto-search
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "User" # Finds com.example.User
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "Flow" # Finds kotlinx.coroutines.flow.Flow
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "String" # Finds kotlin.String
# Find all types containing "Flow"
.claude/skills/scripts/kotlin-autocomplete-search.sh "Flow"
Examples:
# Exact lookup
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "kotlin.String"
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "kotlinx.coroutines.flow.Flow"
# Fuzzy lookup (no FQN needed!)
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "User"
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "TestClass"
# Search all matches
.claude/skills/scripts/kotlin-autocomplete-search.sh "Flow" # Shows all 27 Flow-related types
.claude/skills/scripts/kotlin-autocomplete-search.sh "State" # All State types
When presenting autocomplete information, format it clearly:
Type: kotlin.String
Members:
- val length: kotlin.Int
- fun substring(startIndex: kotlin.Int): kotlin.String
- fun lowercase(): kotlin.String
Extensions:
- fun toSnakeCase(): kotlin.String
- val firstChar: kotlin.Char?
Total: 3 members, 2 extensions
The Kotlin project must have:
build.gradle.kts:
plugins {
id("com.lightningkite.kotlin-autocomplete") version "0.0.1-1"
}
./gradlew buildAutocompletebuild/autocomplete/ directoryUser instead of com.example.UserIf autocomplete metadata doesn't exist:
./gradlew buildAutocompleteUser: "What can I do with a Flow?"
.claude/skills/scripts/kotlin-autocomplete-lookup.sh "kotlinx.coroutines.flow.Flow"This ensures you provide accurate, project-specific Kotlin guidance!