This skill should be used when you need to read source code from Maven/Gradle dependencies to understand how a library works internally
This skill allows you to download and extract source JARs from Maven Central and other repositories to inspect library internals.
Maven artifacts typically have a -sources.jar classifier that contains the original source code. This skill downloads and extracts these to ~/.extractlibs/src/<artifact>-<version>/ for inspection.
To download and extract library sources, run the following bash command:
# Format: group:artifact:version
~/.extractlibs/download-lib-sources.sh "io.ktor:ktor-client-core:3.3.2"
The script will:
~/.extractlibs/src/<artifact>-<version>/Once extracted, you can search and read the library source code:
# Find all Kotlin files
find ~/.extractlibs/src/ktor-client-core-3.3.2 -name "*.kt"
# Search for specific patterns
grep -r "suspend fun" ~/.extractlibs/src/ktor-client-core-3.3.2/
# Read specific files
cat ~/.extractlibs/src/ktor-client-core-3.3.2/io/ktor/client/HttpClient.kt
Here are coordinates for common Kotlin/Java libraries:
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0org.jetbrains.kotlinx:kotlinx-datetime:0.7.1org.jetbrains.kotlinx:kotlinx-io-core:0.8.0io.ktor:ktor-client-core:3.3.2io.ktor:ktor-client-cio:3.3.2io.ktor:ktor-server-core:3.3.2io.ktor:ktor-server-netty:3.3.2org.mongodb:mongodb-driver-kotlin-coroutine:5.6.1org.jetbrains.exposed:exposed-core:0.61.0org.postgresql:postgresql:42.7.8io.lettuce:lettuce-core:6.7.1.RELEASEcom.googlecode.xmemcached:xmemcached:2.4.8software.amazon.awssdk:s3:2.38.5software.amazon.awssdk:dynamodb:2.38.5com.stripe:stripe-java:28.3.0com.google.firebase:firebase-admin:9.5.0Sources not found: Not all libraries publish source JARs. This is common for:
Wrong version: Make sure to specify the exact version. Use Maven Central to find available versions: