maven-code-search

maven-code-search is a skill for Claude Code, Codex from salitaba/maven-decoder-mcp. It costs 95 tokens per session (1,126 once invoked), scanned A, original, MIT.

A skill for inspecting Java and other JVM dependencies already stored in the local Maven cache. Maven is a build and dependency-management tool; the skill can look up APIs, methods, versions, and usage examples before code is written against them.

In plain words
What is it for?
Use it in Java, Maven, Gradle, Spring, Jakarta, Android, or other JVM projects to find classes, methods, packages, dependency versions, and examples. It cannot inspect artifacts that are not in the local cache.
Why use it?
It replaces guesses about third-party library internals with inspection of the installed artifact, using source code when available or decompiled code when it is not.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/salitaba/maven-decoder-mcp/maven-code-search
Any agent
npx skills add salitaba/maven-decoder-mcp --skill maven-code-search
Clone the repo
git clone --depth 1 https://github.com/salitaba/maven-decoder-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for maven-code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/salitaba/maven-decoder-mcp/maven-code-search.svg)](https://agentmods.dev/skills/salitaba/maven-decoder-mcp/maven-code-search)
Your own site
<a href="https://agentmods.dev/skills/salitaba/maven-decoder-mcp/maven-code-search"><img src="https://agentmods.dev/badge/skills/salitaba/maven-decoder-mcp/maven-code-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,126 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00095 $0.01126
Opus 5 $0.00048 $0.00563
Sonnet 5 $0.00019 $0.00225
Haiku 4.5 $0.00010 $0.00113

Measured 5d ago against content hash 6f79d78fab46, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

maven-code-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/maven-code-search/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

Use the maven-decoder MCP server before guessing about third-party Java dependencies. It can search the user's installed Maven repository, inspect jars, prefer source jars when available, and decompile bytecode when source is missing.

This MCP only sees artifacts already present in the local Maven cache. If the needed artifact is missing, ask the user to build the project or run a dependency resolution command such as mvn dependency:go-offline, then retry the MCP search.

Quick Workflow

  1. Identify the target coordinates when possible: group_id, artifact_id, and version. Read pom.xml, build.gradle, lockfiles, or existing imports if the user did not provide them.
  2. Use MCP search tools to confirm what is installed before inspecting code.
  3. Prefer narrow queries: a class name, package pattern, artifact coordinates, or method pattern.
  4. Use pagination for broad searches and ask for the next page only when the current page is not enough.
  5. Report findings with exact coordinates, class names, method names, and whether the result came from sources or decompiled bytecode.

Tool Selection

Use list_artifacts to discover installed artifacts or filter by partial group_id, artifact_id, or version.

Use get_version_info when the user asks which versions of an artifact are installed.

Use search_classes when the user knows a class name, simple type name, wildcard, or package but not the artifact that contains it.

Use extract_class_info when the user needs constructors, fields, annotations, or method signatures for classes in a known artifact. If sources are missing, this tool still returns bytecode-backed fields and methods through the MCP, so do not shell out to javap for the same information.

Use extract_source_code when the user needs implementation details. Set prefer_sources to true unless there is a specific reason to force decompilation.

Use extract_jar_resource when the user needs files embedded in the jar, such as .proto files, service descriptors, or Maven metadata. Use analyze_jar first when you need to discover resource paths. Do not shell out to jar tf just to list or read jar entries.

Read the full file on GitHub · 85 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 85 lines · 95 tokens per session scan A 6f79d78fab46

Subscribe to this mod's changes

maven-code-search is a skill published in the GitHub repository salitaba/maven-decoder-mcp (20 stars, last pushed 3mo ago), licensed MIT. It adds 95 tokens to every session and 1,126 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

library-insight

Use when the user asks to inspect a Java, Kotlin, or Kotlin Multiplatform (KMP) library API, verify if a method or class exists in the installed dependency version, compare or migrate between library versions, audit deprecated APIs, or check Gradle dependency graphs. Triggers: check library API, search class/method…

Coding-Meet/Library-Insight · 95 tokens

java-optionals-eval-capture

Use in Symphony for Trello when a Java change or review presents a reusable Optional or absence/fallback strategy-selection lesson, including on an adjacent owning API such as ScopedValue even when no java.util.Optional appears. Capture the before/prompt/after code and create or update a self-contained eval issue in…

martin-francois/symphony-trello · 78 tokens

java-streams-eval-capture

Use in Symphony for Trello when a Java change or review presents a reusable lesson about choosing or preserving a stream, collector, direct result-producing collection transformation, or character-predicate traversal, including identity or delimited string reductions, even when the preferred final code contains no…

martin-francois/symphony-trello · 91 tokens

jar-analysis

Explore, search, read, and decompile Java JAR, WAR, EAR, AAR, and Spring Boot fat-jar files via the dejared MCP server. Use this skill whenever the user references a .jar file path, asks what a third-party Java library does, wants to read a config embedded in a JAR (application.yml, spring.factories, MANIFEST.MF)…

hqkh4nh/dejared-mcp · 221 tokens

java-specifications

Structural verification for Java and Kotlin — SpotBugs/Error Prone, Detekt. Load when planning, implementing, or reviewing Java/Kotlin code (.java, .kt; build.gradle, pom.xml).

danweinerdev/claude-sdd-planner · 45 tokens

implement

Use in the Implement phase whenever writing or editing production Java code, or fixing a bug, in a Spring/Spring Boot project. Enforces test-first (red-green-refactor), executes the approved plan step by step, and honors the project's path-scoped tech-stack rules and the task's enforcement set. Preloaded into…

taipt1504/claudehut · 73 tokens