searching_dependency_sources
Skill1.1k starsChanged 5 days agoApache-2.0View on GitHub
Explores and searches source code of all external library dependencies, plugins, and Gradle internals via indexed symbol, full-text, and glob search; STRONGLY PREFERRED for understanding APIs, finding class/method definitions, and reading implementation logic. Do NOT use for project source code (use grep), Gradle documentation (use `researching_gradle_internals`), or Maven Central discovery (use `managing_gradle_dependencies`).
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 6 are distinctive, and 22 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
22
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
ALWAYS: use search_dependency_sources as the primary discovery tool for external library and plugin code.
- Distinctive: line 20
ALWAYS: prefer reading source code over interactive REPL exploration for understanding unfamiliar library APIs.
- Very specific: line 22
ALWAYS: use the dependency parameter to target a single library (e.g., dependency="org.mongodb:mongodb-driver-sync") when the target is …
- Very specific: line 24
NEVER: use gradleSource: true in this skill.
- Very specific: line 25
NEVER: use generic shell tools like grep or find to *locate* dependency sources.
- Very specific: line 26
MAY: use shell tools like rg or ast-grep to *operate on* a sources root path explicitly returned by read_dependency_sources or …
- Very specific: line 29
ALWAYS: use read_dependency_sources once a specific file path has been identified via search.
- Very specific: line 30
ALWAYS: use fresh: true if a search returns a SearchResponse with an error indicating a missing index.
- Very specific: line 42
Invoke Precisely: ALWAYS set searchType explicitly if the intent is not a general full-text search.
- Very specific: line 43
Scope Surgically: Use projectPath, configurationPath, or sourceSetPath to narrow the search and improve performance if the target library's …
- Very specific: line 44
Target Libraries Directly: Use the dependency parameter to search or read from a single library.
- Very specific: line 46
Troubleshoot Targeted Searches: If a targeted search using the dependency parameter fails or returns no matches, use inspect_dependencies …
- Very specific: line 48
Refresh Indices: Use fresh: true if project dependencies have recently changed to ensure the index is up-to-date.
- Very specific: line 49
Use Returned Sources Root: Every response from read_dependency_sources and search_dependency_sources includes a Sources root: …
- Very specific: line 51
Explore Packages Authoritatively: Use read_dependency_sources with a dot-separated package path (e.g., org.gradle.api) to list its direct …
- Very specific: line 53
Analyze Implementation: Use read_dependency_sources to retrieve the implementation logic.
- Very specific: line 55
Trace Symbols Authoritatively: When encountering an unknown symbol, use DECLARATION search to jump directly to its definition in the …
- Distinctive: line 59
API & Symbol Discovery: When you need to find the implementation, signature, or documentation of a class, interface, or method imported …
- Distinctive: line 60
Library Usage Research: When understanding how to use a library's API by reading its internal implementation or looking for usage patterns …
- Distinctive: line 61
Internal Logic Auditing: When researching how a dependency handles specific operations, edge cases, or performance-critical logic.
- Very specific: line 62
Resource File Location: When searching for configuration files (XML, JSON, properties), specific named files (e.g., build.gradle), or …
- Distinctive: line 63
Constant & Literal Research: When searching for specific constant values, error strings, or literal keys within external code.
- Very specific: line 72
Call read_dependency_sources(path="<path>") to analyze the implementation.
- Very specific: line 76
Search for a known entry point (e.g., a constructor or main class) using DECLARATION or FULL_TEXT.
- Distinctive: line 78
Look for internal calls, helper methods, or factory patterns to understand the library's preferred usage.
- Very specific: line 83
Call search_dependency_sources(query="\"<text>\"") (defaults to FULL_TEXT).
- Very specific: line 94
When using the dependency parameter, all file paths and search results are relative to the library's root, omitting the …
- Very specific: line 214
Troubleshooting Targeted Searches: If dependency filter fails, run inspect_dependencies to confirm the exact coordinates.
≈ “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.
Files
Authoritative Dependency Source & API Exploration
Explores, navigates, and analyzes the internal logic, APIs, and symbol implementations of external libraries and plugins with absolute precision using high-performance, indexed searching.
Constitution
- ALWAYS use
search_dependency_sourcesas the primary discovery tool for external library and plugin code. - ALWAYS prefer reading source code over interactive REPL exploration for understanding unfamiliar library APIs.
- ALWAYS provide absolute paths for
projectRoot. - ALWAYS use the
dependencyparameter to target a single library (e.g.,dependency="org.mongodb:mongodb-driver-sync") when the target is known. This is significantly faster and more focused than searching the entire project graph. Note that whendependencyis used insearch_dependency_sourcesorread_dependency_sources, thepathand all results are relative to the library root (omitting the<group>/<artifact>...prefix). - NEVER use
gradleSource: truein this skill; useresearching_gradle_internalsfor Gradle's internal implementation. - NEVER use generic shell tools like
greporfindto locate dependency sources; they reside in remote caches whose paths are not predictable in advance. - MAY use shell tools like
rgorast-grepto operate on a sources root path explicitly returned byread_dependency_sourcesorsearch_dependency_sourcesin theSources root: <path>header line. Dependency directories inside the sources root are symlinks; always pass--followtorg(e.g.,rg --follow <pattern> <sources-root>). - ALWAYS escape Lucene special characters (
:,=,+,-,*,/) inFULL_TEXTsearches using a backslash (e.g.,\:) or double quotes. - ALWAYS use
read_dependency_sourcesonce a specific file path has been identified via search. - ALWAYS use
fresh: trueif a search returns aSearchResponsewith anerrorindicating a missing index; the tool will return an error message rather than throwing an exception if the index is not found. - BE AWARE that indexing and extraction failures (e.g.,
ZipException) are still propagated and will cause the tool to fail with a descriptive error. - NOTE that the
dependencyfilter targets ONLY the specific library version matched, NOT its transitive dependencies.
Directives
- Identify Search Mode Authoritatively:
- DECLARATION: Best for classes, methods, or interfaces. Matches against the simple name (tokenized for CamelCase) and the full path (exact literal). All declaration searches are case-sensitive. Do NOT include keywords like
class,interface, orfun. Supports exact names, exact FQNs, glob wildcards (e.g.,*,**), and regular expressions. Partial package paths require wildcards (e.g., use*.MyClassto findcom.example.MyClass). You can target specific fields usingname:(discovery) orfqn:(precision) prefixes. - FULL_TEXT: Best for literal strings, constants, and complex code patterns using Lucene. Case-insensitive.
- GLOB: Best for finding specific files (XML, properties, etc.) by name or extension. Case-insensitive.
- DECLARATION: Best for classes, methods, or interfaces. Matches against the simple name (tokenized for CamelCase) and the full path (exact literal). All declaration searches are case-sensitive. Do NOT include keywords like
- Invoke Precisely: ALWAYS set
searchTypeexplicitly if the intent is not a general full-text search. This improves result accuracy and reduces noise. - Scope Surgically: Use
projectPath,configurationPath, orsourceSetPathto narrow the search and improve performance if the target library's context is known. To search a plugin, useconfigurationPath=":buildscript:classpath". - Target Libraries Directly: Use the
dependencyparameter to search or read from a single library. It supportsgroup:name:version:variant,group:name:version,group:name, or justgroup. This bypasses project-level index merging and provides instantaneous results from the global extracted source cache. Note that results will be relative to the targeted library root. - Troubleshoot Targeted Searches: If a targeted search using the
dependencyparameter fails or returns no matches, useinspect_dependenciesfirst to verify the exact coordinates (group, name, version, variant) of the dependency as resolved by Gradle. - Refresh Indices: Use
fresh: trueif project dependencies have recently changed to ensure the index is up-to-date. - Use Returned Sources Root: Every response from
read_dependency_sourcesandsearch_dependency_sourcesincludes aSources root: <absolute-path>header. Use this path withrg,ast-grep, or other shell tools for operations not covered by the MCP tools (e.g., regex-heavy searches). Because dependency directories are symlinks, always pass--followtorg:rg --follow <pattern> <sources-root>. - Explore Packages Authoritatively: Use
read_dependency_sourceswith a dot-separated package path (e.g.,org.gradle.api) to list its direct symbols and sub-packages. This is backed by the symbol index and is more reliable than directory-based exploration for Kotlin projects. - Analyze Implementation: Use
read_dependency_sourcesto retrieve the implementation logic. If the file is large, usepaginationto read specific sections. You can target plugins by passingconfigurationPath=":buildscript:classpath". - Trace Symbols Authoritatively: When encountering an unknown symbol, use
DECLARATIONsearch to jump directly to its definition in the library. This is the only reliable way to understand exact behavior and available methods.
When to Use
- API & Symbol Discovery: When you need to find the implementation, signature, or documentation of a class, interface, or method imported from a library.
- Library Usage Research: When understanding how to use a library's API by reading its internal implementation or looking for usage patterns in its source.
- Internal Logic Auditing: When researching how a dependency handles specific operations, edge cases, or performance-critical logic.
- Resource File Location: When searching for configuration files (XML, JSON, properties), specific named files (e.g.,
build.gradle), or metadata (AndroidManifest.xml) packaged within library jars. - Constant & Literal Research: When searching for specific constant values, error strings, or literal keys within external code.
Workflows
1. Tracing a Symbol from Project Code
- Identify the symbol name (e.g.,
JsonConfiguration) or fully qualified name from an import. - Call
search_dependency_sources(query="<SymbolName>", searchType="DECLARATION"). - Identify the correct file path from the results.
- Call
read_dependency_sources(path="<path>")to analyze the implementation.
2. Discovering API Usage through Source
- Search for a known entry point (e.g., a constructor or main class) using
DECLARATIONorFULL_TEXT. - Once the file is found, use
read_dependency_sourcesto read its source. - Look for internal calls, helper methods, or factory patterns to understand the library's preferred usage.
3. Searching for Constants or Error Codes
- Identify the constant name or a snippet of an error message.
- Call
search_dependency_sources(query="\"<text>\"")(defaults toFULL_TEXT). - Review matches to find where the value is defined or used.
Targeted Search for a Single Library
- Identify the dependency coordinates (e.g., from
inspect_dependenciesor project files). - Call
search_dependency_sources(query="<query>", dependency="<group:artifact>"). - The results will be scoped ONLY to that library, ensuring maximum speed and relevance.
Path Relativity and Targeted Searching
When using the dependency parameter, all file paths and search results are relative to the library's root, omitting the <group>/<artifact>... prefix.
- Merged Scope (No Filter):
path = "org/mongodb/mongodb-driver-sync/4.11.1-sources/org/mongodb/client/MongoClient.kt" - Targeted Scope (
dependency="org.mongodb:mongodb-driver-sync"):path = "org/mongodb/client/MongoClient.kt"
This approach is significantly faster and simplifies path handling when you are focused on a specific library.
Examples
Search for a specific class definition within a targeted library
{
"query": "MongoClient",
"searchType": "DECLARATION",
"dependency": "org.mongodb:mongodb-driver-sync"
}
// Reasoning: Using the 'dependency' parameter to target only the 'mongodb-driver-sync' library for a fast, focused search.Read sources from a specific dependency
{
"dependency": "org.jetbrains.kotlinx:kotlinx-coroutines-core",
"path": "kotlinx/coroutines/Job.kt"
}
// Reasoning: Reading 'Job.kt' directly from the targeted 'kotlinx-coroutines-core' library. Note the 'group/artifact...' prefix is omitted.Search for a specific class definition
{
"query": "JsonConfiguration",
"searchType": "DECLARATION"
}
// Reasoning: Using DECLARATION search to find a class named 'JsonConfiguration' across both name and FQN fields.Search with field-specific precision
{
"query": "fqn:kotlinx.serialization.json.*",
"searchType": "DECLARATION"
}
// Reasoning: Using the 'fqn:' prefix with a wildcard to find all declarations within a specific package literal.Search with name-specific discovery (CamelCase)
{
"query": "name:Configuration",
"searchType": "DECLARATION"
}
// Reasoning: Using the 'name:' prefix to find classes like 'JsonConfiguration' via CamelCase tokenization.Trace a method signature using wildcards
{
"query": "encodeTo*",
"searchType": "DECLARATION"
}
// Reasoning: Finding all definitions starting with 'encodeTo' across both name and FQN fields.Use regular expressions for complex matching
{
"query": "fqn:/.*\\.internal\\..*/",
"searchType": "DECLARATION"
}
// Reasoning: Using a regular expression on the 'fqn' field to find all internal declarations.Search for a constant value assignment
{
"query": "DEFAULT_TIMEOUT_MS \\: 5000"
}
// Reasoning: Using FULL_TEXT (default) with escaped colon to find a specific constant assignment.Locate a specific file by its exact name
{
"query": "**/AndroidManifest.xml",
"searchType": "GLOB"
}
// Reasoning: Using GLOB search to find a specific file by name across the dependency graph.Read a specific dependency source file
{
"path": "kotlinx/serialization/json/Json.kt"
}
// Reasoning: Reading the implementation of a known class path identified from previous search results.Explore a package via its FQN
{
"path": "org.gradle.api"
}
// Reasoning: Listing the direct symbols and sub-packages of 'org.gradle.api' using index-backed exploration.Resources
- Lucene Query Syntax: Refer to the tool description for
search_dependency_sourcesfor details on complex queries and escaping. - Troubleshooting Targeted Searches: If
dependencyfilter fails, runinspect_dependenciesto confirm the exact coordinates.
Trending
Quiet since September.about the whole repository
Who's talking about Kotlin/kotlinx-rpc
- bright-room/mindstock“fix(deps): update kotlinx.rpc to v0.10.4”GitHub · Sep 25, 2026
- bright-room/mindstock“fix(deps): update kotlinx.rpc to v0.10.3”GitHub · Jul 10, 2026
- modelix/modelix.editor“fix(deps): update kotlinx.rpc to v0.10.4”GitHub · Jul 6, 2026
- ktorio/ktor-plugin-registry“Bump the all-gradle group with 11 updates”GitHub · Jun 30, 2026
- DerTyp7214/synara-api“chore(deps): bump kotlinx-rpc from 0.10.2 to 0.10.3”GitHub · Jun 27, 2026
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
- Sep 25, 2026fix(deps): update kotlinx.rpc to v0.10.4 — bright-room/mindstock0 reactions · 1 comment
- Jul 10, 2026fix(deps): update kotlinx.rpc to v0.10.3 — bright-room/mindstock0 reactions
- Jul 6, 2026fix(deps): update kotlinx.rpc to v0.10.4 — modelix/modelix.editor0 reactions · 1 comment
- Jun 30, 2026Bump the all-gradle group with 11 updates — ktorio/ktor-plugin-registry0 reactions
- Jun 27, 2026chore(deps): bump kotlinx-rpc from 0.10.2 to 0.10.3 — DerTyp7214/synara-api0 reactions · 1 comment
11 more on GitHub
- May 3, 2026Add compiler plugin implementation and Kotlin External FIR Support — TBSten/cream0 reactions
- Mar 30, 2026build(deps): bump kotlinx-rpc from 0.10.1 to 0.10.2 — modelix/modelix.editor0 reactions · 5 comments
- Jan 17, 2026chore(deps): bump kotlinx-rpc from 0.10.1 to 0.10.2 — DerTyp7214/synara-api0 reactions · 2 comments
- Dec 20, 2025build(deps): bump org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-client from 0.10.0 to 0.10.1 — DerTyp7214/synara-api0 reactions · 1 comment
- Dec 20, 2025build(deps): bump org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-server from 0.10.0 to 0.10.1 — DerTyp7214/synara-api0 reactions · 1 comment
- Jul 3, 2025Update kxrpc tutorial to 0.8.0 — ktorio/ktor-documentation0 reactions · 2 comments
- Jul 3, 2025Update kxrpc to 0.8.0 — ktorio/ktor-plugin-registry0 reactions · 1 comment
- Apr 4, 2025Update kxrpc to 0.6.0 — ktorio/ktor-plugin-registry0 reactions · 1 comment
- Jan 28, 2025Update kxrpc to 0.5.0 — ktorio/ktor-plugin-registry0 reactions
- Jan 7, 2025Migrate cloud-run server to RPC ProtoBuf — ashdavies/playground.ashdavies.dev0 reactions
- May 26, 2024KotlinでRemote Procedure Calls (RPC) を簡単に行えるライブラリkotlinx.rpc — AndroidDagashi/AndroidDagashi0 reactions
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- commit-changesSkill
- file-youtrack-issueSkill
- fix-issueSkill
- gh-stackSkill
- gradle_expertSkill
- interacting_with_project_runtimeSkill
- introspecting_gradle_projectsSkill
- managing_gradle_dependenciesSkill
- researching_gradle_internalsSkill
- run-local-verificationsSkill
- running_gradle_buildsSkill
- running_gradle_testsSkill
- update-docSkill
- update-shimSkill
- use-develocitySkill
- use-teamcitySkill
- use-youtrackSkill
- verify-compiler-plugin-compatibilitySkill
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
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.

