kotlin/introspecting_gradle_projects
> Uncovers Gradle project structure, task hierarchies, and resolved property values using core Gradle diagnostic tools; use for mapping modules, listing runnable tasks, and auditing build configuration. Do NOT use for running builds/tests or source code exploration.
npx skills add https://github.com/Kotlin/kotlinx-rpc --skill introspecting_gradle_projects
Uncovers project modules, discovers runnable tasks, and gain total visibility into your build configuration using core Gradle diagnostic tools and authoritative dependency auditing.
gradle tool for running introspection tasks instead of raw shell commands.projectRoot.captureTaskOutput when running introspection tasks (e.g., :projects, :tasks) to filter out startup noise.inspect_dependencies for auditing dependency graphs; use gradle for task-specific dependency insights.help --task <name> command for authoritative documentation.:properties --property <name> for surgical property extraction.projects task to visualize the multi-project hierarchy and identify authoritative project paths.tasks task with --all for a comprehensive list, or scope to a specific project.help --task <name> to retrieve descriptions, types, and available command-line options for any task.properties task with the --property flag to isolate a single value and avoid massive console output.inspect_dependencies for a searchable tree and update check. For low-level variant or transformation analysis, use the built-in diagnostic tasks.Precision in path syntax is essential for mapping multi-module builds correctly.
Providing tasks without a leading colon lists tasks for every project in the build. This is usually very noisy.
To inspect a single specific project, always use a leading colon.
gradle(commandLine=[":tasks"], captureTaskOutput=":tasks")gradle(commandLine=[":app:tasks"], captureTaskOutput=":app:tasks"){
"commandLine": [":projects"],
"captureTaskOutput": ":projects"
}
// Reasoning: Using captureTaskOutput to retrieve only the project hierarchy list.
{
"commandLine": [":app:help", "--task", "assemble"],
"captureTaskOutput": ":app:help"
}
// Reasoning: Using the built-in help task to discover available options for 'assemble'.
{
"commandLine": [":properties", "--property", "version"],
"captureTaskOutput": ":properties"
}
// Reasoning: Using --property to avoid retrieving thousands of unrelated project properties.
{
"commandLine": [
":app:dependencyInsight",
"--dependency",
"com.google.guava:guava",
"--configuration",
"runtimeClasspath"
],
"captureTaskOutput": ":app:dependencyInsight"
}
// Reasoning: Using dependencyInsight to isolate the resolution path for a specific artifact.
invocationArguments: { envSource: "SHELL" } if Gradle cannot find expected env vars (e.g., JAVA_HOME).Take kotlin/introspecting_gradle_projects from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.