java-api-discovery

Inspect compiled JAR bytecode with javap to identify and validate Java API signatures.

8|2|Updated Jul 13, 2015
One-click install
npx skills add https://github.com/tstapler/dotfiles --skill java-api-discovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-api-discovery
Source: https://github.com/tstapler/dotfiles/tree/main/.claude/skills/java-api-discovery
Command: npx skills add https://github.com/tstapler/dotfiles --skill java-api-discovery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Compile-time API mismatches and incomplete docs often derange integration work; this skill enables exact API signature discovery by inspecting Java bytecode with javap to eliminate guessing and errors.

Core Features & Use Cases

  • Discover actual API signatures from compiled JARs using javap.
  • Identify pagination patterns and union type handling in SDKs and libraries.
  • Verify field existence and builder patterns before coding. Example: when integrating with an unfamiliar Java library, run javap to confirm available methods and signatures.

Quick Start

Run javap against a local JAR to print public API signatures and guide client implementation.

Frequently Asked Questions about java-api-discovery

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find exact Java API signatures from compiled bytecode?

You can find exact Java API signatures by running javap against compiled JAR bytecode to print public method names, return types, and parameter lists. This eliminates guessing when integrating unfamiliar SDKs.

What is the best way to verify Java pagination patterns and union types in an unfamiliar library?

Verifying Java pagination patterns and union types is best done by inspecting compiled bytecode with javap. This approach exposes offset, cursor implementations, and type definitions directly from the SDK.

How do I check if a specific field or builder pattern exists in a Java JAR before coding?

You can check for field existence and builder patterns by running javap on the local JAR file. This prints the available methods and signatures, allowing you to verify API structures before implementation.

Can I use javap to prevent compile-time API mismatches when integrating Java libraries?

Yes, you can use javap to prevent compile-time API mismatches by validating exact method names, parameter lists, and return types from bytecode. This replaces incomplete documentation with factual API discovery.

Why does my Java integration fail due to incomplete SDK documentation?

Java integration often fails from incomplete SDK documentation causing API signature mismatches. You can resolve this by applying a repeatable javap workflow to inspect bytecode and confirm exact method signatures.

What are the limitations of using javap for Java API discovery?

Using javap for API discovery requires access to compiled JAR bytecode and only exposes public signatures, meaning it cannot inspect source logic or runtime behavior beyond available method definitions and types.