agentleFS
KotlinKotlin/kotlinx-rpc/.claude/skills/managing_gradle_dependencies/SKILL.md

managing_gradle_dependencies

Skill1.1k starsChanged 5 days agoApache-2.0View on GitHub

Audits and manages Gradle dependency graphs with high-resolution update checks, transitive tree analysis, and Maven Central discovery; use for dependency auditing, finding stable updates, and resolving GAV coordinates. Do NOT use for exploring dependency source code (use `searching_dependency_sources`) or running builds.

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 7 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    ALWAYS: use inspect_dependencies for querying project dependency information instead of raw Gradle tasks.

    line 19
  2. Very specific:

    ALWAYS: use updatesOnly: true to quickly identify available library updates.

    line 21
  3. Very specific:

    ALWAYS: use lookup_maven_versions to find exact GAV coordinates for new libraries.

    line 22
  4. Distinctive:

    NEVER: add a dependency to a project without verifying its authoritative version and existence on Maven Central.

    line 23
  5. Very specific:

    ALWAYS: use the projectPath argument to target specific modules in multi-project builds.

    line 24
  6. Very specific:

    Identify authoritative paths: ALWAYS use the Gradle project path (e.g., :app) when querying dependencies.

    line 28
  7. Very specific:

    Monitor for updates: ALWAYS use updatesOnly: true in inspect_dependencies to retrieve a flat, high-signal report of available library …

    line 30
  8. Very specific:

    Target dependencies surgically: Use the dependency parameter in inspect_dependencies to target a single library.

    line 32
  9. Distinctive:

    Efficient Transitive Isolation: When isolating a single library, filter the flattened list of resolved components using the dependency …

    line 34
  10. Very specific:

    Discover libraries surgically: ALWAYS use lookup_maven_versions to check the version history of an existing artifact.

    line 36
  11. Very specific:

    Audit full trees: ALWAYS use onlyDirect: false in inspect_dependencies when you need to visualize the complete transitive dependency graph.

    line 38
  12. Distinctive:

    Dependency Tree Auditing: When you need to visualize the full dependency graph for a specific project, configuration, or source set.

    line 42
  13. Distinctive:

    Automated Update Detection: When performing maintenance and you want a concise report on available stable or pre-release updates.

    line 43
  14. Distinctive:

    Precision Artifact Discovery: When looking for new libraries on Maven Central and you need to find exact GAV coordinates or explore an …

    line 44
  15. Distinctive:

    Version Conflict Resolution: When you need to identify why a specific version of a library is being resolved and look for compatible …

    line 45
  16. Distinctive:

    Targeted Audit: When you only care about a specific library and want to bypass the cost of a full project resolution.

    line 46
  17. Very specific:

    Use lookup_maven_versions(coordinates="group:artifact") to see all available versions for a specific library.

    line 63
  18. Very specific:

    Dependency Not Found: Verify the projectPath using the projects task in the introspecting_gradle_projects skill.

    line 113
  19. Very specific:

    Update Not Showing: If a known update is missing, ensure stableOnly is set correctly and check if a versionFilter is active.

    line 114
  20. Very specific:

    Maven Search No Results: Use broader search terms or verify the group:artifact format for version searches.

    line 117

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Authoritative Dependency Intelligence & Maven Central Search

Audits project dependencies, performs high-resolution update checks, and discovers new libraries on Maven Central with powerful, integrated search tools.

Constitution

  • ALWAYS use inspect_dependencies for querying project dependency information instead of raw Gradle tasks.
  • ALWAYS provide absolute paths for projectRoot.
  • ALWAYS use updatesOnly: true to quickly identify available library updates.
  • ALWAYS use lookup_maven_versions to find exact GAV coordinates for new libraries.
  • NEVER add a dependency to a project without verifying its authoritative version and existence on Maven Central.
  • ALWAYS use the projectPath argument to target specific modules in multi-project builds.

Directives

  • Identify authoritative paths: ALWAYS use the Gradle project path (e.g., :app) when querying dependencies.
  • Inspect plugins and build scripts: Build script dependencies (like plugins) are automatically included in inspect_dependencies output under configurations prefixed with buildscript: (e.g. buildscript:classpath).
  • Monitor for updates: ALWAYS use updatesOnly: true in inspect_dependencies to retrieve a flat, high-signal report of available library updates: group:artifact: current → latest with the project paths where each dep is used. Configuration and source-set detail is intentionally omitted; use inspect_dependencies with a specific dependency filter if that detail is needed.
  • Target dependencies surgically: Use the dependency parameter in inspect_dependencies to target a single library. It supports group:name:version:variant, group:name:version, group:name, or just group. This is significantly faster than resolving the entire project graph.
  • Efficient Transitive Isolation: When isolating a single library, filter the flattened list of resolved components using the dependency filter rather than traversing the dependency graph. This naturally and efficiently excludes transitive dependencies that do not match the targeted filter.
  • Discover libraries surgically: ALWAYS use lookup_maven_versions to check the version history of an existing artifact.
  • Use gradle for diagnostics: For built-in tasks like dependencyInsight, ALWAYS use the gradle tool with captureTaskOutput.
  • Audit full trees: ALWAYS use onlyDirect: false in inspect_dependencies when you need to visualize the complete transitive dependency graph.

When to Use

  • Dependency Tree Auditing: When you need to visualize the full dependency graph for a specific project, configuration, or source set.
  • Automated Update Detection: When performing maintenance and you want a concise report on available stable or pre-release updates.
  • Precision Artifact Discovery: When looking for new libraries on Maven Central and you need to find exact GAV coordinates or explore an artifact's full version history.
  • Version Conflict Resolution: When you need to identify why a specific version of a library is being resolved and look for compatible alternatives.
  • Targeted Audit: When you only care about a specific library and want to bypass the cost of a full project resolution.

Workflows

1. Auditing Dependencies

  1. Identify the project module (e.g., :app).
  2. Call inspect_dependencies(projectPath=":app").
  3. Optionally filter by configuration (e.g., runtimeClasspath) or sourceSet (e.g., test).

2. Checking for Stable Updates

  1. Call inspect_dependencies(updatesOnly=true, stableOnly=true).
  2. Review the flat list of upgradeable dependencies. Each entry shows group:artifact: current → latest and the project paths where it is used.

3. Discovering New Libraries

  1. Use lookup_maven_versions(coordinates="group:artifact") to see all available versions for a specific library.

4. Targeted Dependency Inspection

  1. Identify the dependency you want to check (e.g., org.mongodb:mongodb-driver-sync).
  2. Call inspect_dependencies(dependency="org.mongodb:mongodb-driver-sync").
  3. The report will be focused ONLY on that library across all matched configurations.

Examples

List dependencies for a specific module

{
  "projectPath": ":app"
}
// Reasoning: Auditing the direct and transitive dependencies of the 'app' module to understand its runtime footprint.

Check for updates for a specific library

{
  "dependency": "org.jetbrains.kotlinx:kotlinx-coroutines-core",
  "updatesOnly": true
}
// Reasoning: Surgically checking if a specific library has available updates.

Check for stable updates across the project

{
  "updatesOnly": true,
  "stableOnly": true
}
// Reasoning: Performing a high-signal update audit that ignores unstable pre-release versions.

List all versions of a specific library

{
  "coordinates": "org.jetbrains.kotlinx:kotlinx-serialization-json"
}
// Reasoning: Retrieving the full version history of an artifact to identify the latest stable or specific version required.

Troubleshooting

  • Dependency Not Found: Verify the projectPath using the projects task in the introspecting_gradle_projects skill.
  • Update Not Showing: If a known update is missing, ensure stableOnly is set correctly and check if a versionFilter is active.
  • [UPDATE CHECK SKIPPED]: This annotation means the dep was in scope for update checking but its resolution genuinely failed — it does NOT appear for dependencies intentionally excluded from the update-check scope (e.g., transitive deps when onlyDirect=true, or deps excluded by a dependency filter).
  • Maven Search No Results: Use broader search terms or verify the group:artifact format for version searches.
  • Missing environment variables: Set invocationArguments: { envSource: "SHELL" } if Gradle cannot find expected env vars (e.g., JAVA_HOME).

Download now (ZIP)

Trending

Quiet since September.about the whole repository

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 2 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Kotlin/kotlinx-rpc repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about Kotlin/kotlinx-rpc

The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 16

Talked about on GitHub (16 times).

On GitHub · 16

11 more on GitHub

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.