Gradle Library Source Reader

Download and extract Maven/Gradle dependency sources for local code exploration.

Updated Dec 14, 2019
One-click install
npx skills add https://github.com/kf7mxe/Brisingr --skill gradle-library-source-reader
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Gradle Library Source Reader
Source: https://github.com/kf7mxe/Brisingr/tree/main/skills/skills/gradle-lib-sources
Command: npx skills add https://github.com/kf7mxe/Brisingr --skill gradle-library-source-reader

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill makes it easy to read and inspect the source code of libraries pulled from Maven/Gradle dependencies, helping you understand internals without manual digging.

Core Features & Use Cases

  • Source retrieval: Downloads the corresponding -sources.jar from Maven Central or configured repositories.
  • Local exploration: Extracts sources to a predictable path like ~/.extractlibs/src/<artifact>-<version>/ for quick exploration.
  • Use Case: Ideal for code reviews, debugging library behavior, and learning how a dependency implements critical features.

Quick Start

Use the skill to download and inspect a library's sources, for example: ~/.extractlibs/download-lib-sources.sh "io.ktor:ktor-client-core:3.3.2"

Frequently Asked Questions about Gradle Library Source Reader

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read source code from Gradle dependencies to debug library internals?

To read source code from Gradle dependencies, download the corresponding sources.jar from Maven Central and extract it locally. This skill automates that retrieval, placing files under ~/.extractlibs/src/ for quick code exploration during debugging.

How does downloading a sources.jar from Maven Central help with code reviews?

Downloading a sources.jar from Maven Central helps code reviews by providing the actual library implementation code locally. You can inspect how a dependency implements critical features without manual digging through repositories.

What format do I need to provide to download library sources for a Gradle dependency?

You need to provide coordinates in the group:artifact:version format to download library sources. For example, use io.ktor:ktor-client-core:3.3.2 to fetch and extract the correct sources.jar artifact.

Can I extract sources from any Maven Central dependency for local code inspection?

You can extract sources from any Maven Central dependency for local code inspection, provided the sources.jar artifact is available. The skill relies on sources.jar availability to successfully download and extract the library internals.

Where are extracted Gradle dependency sources stored for deterministic access?

Extracted Gradle dependency sources are stored under the deterministic path ~/.extractlibs/src/<artifact>-<version>/. This predictable organization ensures quick and reliable local exploration of library source code.

What are the limitations of automating source code extraction from Gradle dependencies?

The main limitation of automating source code extraction is its reliance on sources.jar availability. If a dependency does not publish a sources artifact to Maven Central or configured repositories, the extraction process cannot retrieve the library internals.