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

introspecting_gradle_projects

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

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.

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    ALWAYS: use the gradle tool for running introspection tasks instead of raw shell commands.

    line 19
  2. Very specific:

    ALWAYS: use captureTaskOutput when running introspection tasks (e.g., :projects, :tasks) to filter out startup noise.

    line 21
  3. Very specific:

    ALWAYS: use inspect_dependencies for auditing dependency graphs.

    line 22
  4. Very specific:

    ALWAYS: use :properties --property <name> for surgical property extraction.

    line 24
  5. Very specific:

    Map structure first: ALWAYS use the projects task to visualize the multi-project hierarchy and identify authoritative project paths.

    line 28
  6. Very specific:

    Discover tasks surgically: ALWAYS use the tasks task with --all for a comprehensive list, or scope to a specific project.

    line 29
  7. Very specific:

    Query task metadata: ALWAYS use help --task <name> to retrieve descriptions, types, and available command-line options for any task.

    line 30
  8. Very specific:

    Extract properties precisely: ALWAYS use the properties task with the --property flag to isolate a single value and avoid massive console …

    line 31
  9. Very specific:

    Audit dependencies: Use inspect_dependencies for a searchable tree and update check.

    line 32
  10. Distinctive:

    Multi-Module Mapping: When you need to visualize the full project hierarchy and identify correct project paths.

    line 52
  11. Distinctive:

    Task & Option Discovery: When you need to find runnable tasks or get authoritative help on a task's configuration.

    line 53
  12. Distinctive:

    Environment & Runtime Auditing: When you need to verify Gradle versions, JVM toolchains, or system properties.

    line 54
  13. Distinctive:

    Surgical Property Inspection: When you need to extract a specific property value (like an artifact version or build directory) for use in a …

    line 55

≈ “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

Deep Project Structure & Environment Introspection

Uncovers project modules, discovers runnable tasks, and gain total visibility into your build configuration using core Gradle diagnostic tools and authoritative dependency auditing.

Constitution

  • ALWAYS use the gradle tool for running introspection tasks instead of raw shell commands.
  • ALWAYS provide absolute paths for projectRoot.
  • ALWAYS use captureTaskOutput when running introspection tasks (e.g., :projects, :tasks) to filter out startup noise.
  • ALWAYS use inspect_dependencies for auditing dependency graphs; use gradle for task-specific dependency insights.
  • NEVER guess task names or options; use the help --task <name> command for authoritative documentation.
  • ALWAYS use :properties --property <name> for surgical property extraction.

Directives

  • Map structure first: ALWAYS use the projects task to visualize the multi-project hierarchy and identify authoritative project paths.
  • Discover tasks surgically: ALWAYS use the tasks task with --all for a comprehensive list, or scope to a specific project.
  • Query task metadata: ALWAYS use help --task <name> to retrieve descriptions, types, and available command-line options for any task.
  • Extract properties precisely: ALWAYS use the properties task with the --property flag to isolate a single value and avoid massive console output.
  • Audit dependencies: Use inspect_dependencies for a searchable tree and update check. For low-level variant or transformation analysis, use the built-in diagnostic tasks.
  • Refer to diagnostic guides: For a complete list of introspection commands, see the Diagnostic Tasks reference.

Authoritative Task Path Syntax

Precision in path syntax is essential for mapping multi-module builds correctly.

1. Task Selectors (Recursive)

Providing tasks without a leading colon lists tasks for every project in the build. This is usually very noisy.

2. Absolute Task Paths (Targeted)

To inspect a single specific project, always use a leading colon.

  • Root Project: gradle(commandLine=[":tasks"], captureTaskOutput=":tasks")
  • Subproject: gradle(commandLine=[":app:tasks"], captureTaskOutput=":app:tasks")

When to Use

  • Multi-Module Mapping: When you need to visualize the full project hierarchy and identify correct project paths.
  • Task & Option Discovery: When you need to find runnable tasks or get authoritative help on a task's configuration.
  • Environment & Runtime Auditing: When you need to verify Gradle versions, JVM toolchains, or system properties.
  • Surgical Property Inspection: When you need to extract a specific property value (like an artifact version or build directory) for use in a subsequent task.

Examples

List all sub-projects in the build

{
  "commandLine": [":projects"],
  "captureTaskOutput": ":projects"
}
// Reasoning: Using captureTaskOutput to retrieve only the project hierarchy list.

Get authoritative help for a specific task

{
  "commandLine": [":app:help", "--task", "assemble"],
  "captureTaskOutput": ":app:help"
}
// Reasoning: Using the built-in help task to discover available options for 'assemble'.

Surgically inspect the 'version' property

{
  "commandLine": [":properties", "--property", "version"],
  "captureTaskOutput": ":properties"
}
// Reasoning: Using --property to avoid retrieving thousands of unrelated project properties.

Analyze a specific dependency conflict

{
  "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.

Troubleshooting

  • Missing environment variables: Set invocationArguments: { envSource: "SHELL" } if Gradle cannot find expected env vars (e.g., JAVA_HOME).

Resources

  • Diagnostic Tasks

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.