Verify whether generated Java classes duplicate openai-java models by comparing fields/types (names may differ). Use when checking for duplicate model coverage.
npx skills add https://github.com/Azure/azure-sdk-for-java --skill dup-classes
Use this skill to compare generated Java models against the openai-java dependency. The goal is field-by-field comparison of model shapes, even when class or field names differ.
src/main/java/...)pom.xml (module) to resolve the openai-java dependency versionfind . -name pom.xml). If multiple, ask which module to use.openai-java (or an explicit group/artifact provided by the user).~/.m2/repository.openai-java-core, not the top-level openai-java artifact.class and record declarations.jar tf <jar> | grep '\.class$' (filter by package hints if provided).record, use the component list in the record declaration.class, extract non-static field declarations (type + count) and note any @JsonProperty names.toJson/fromJson methods for the actual JSON keys used in serialization.javap -classpath <jar> -p <FQCN> to list fields (ignore static, validated, hashCode$delegate, additionalProperties).@JsonProperty keys from the sources JAR (*-sources.jar) for JSON key comparison.@JsonProperty (openai-java) vs toJson/fromJson string literals (generated).BinaryData ↔ JsonValue (both represent untyped JSON), Map<String,BinaryData> ↔ Map<String,JsonValue>, Java enum ↔ Kotlin string enum.Actionable duplicates — standalone models not in any type hierarchy. These can potentially be suppressed and replaced with the openai-java equivalent. Examples: ComparisonFilter, Reasoning.
Structural equivalents — classes that produce identical JSON but participate in a discriminator hierarchy (e.g., extends Tool, extends TextResponseFormatConfiguration). The SDK's polymorphic serialization (Tool.fromJson() dispatches to FunctionTool.fromJson(), etc.) requires these to exist. They are NOT actionable duplicates. Examples: FunctionTool, FileSearchTool, ComputerUsePreviewTool.
Partial matches — classes with most fields matching but extra Azure-specific fields. Note the extra fields. Examples: CodeInterpreterTool (extra container), WebSearchTool (extra custom_search_configuration).
@@alternateType or @@access(internal) would be the right suppression mechanism (see dedup-openai skill).rg -n "^(public\s+)?(final\s+)?(class|record)\s+" <generated_root>
grep -E '^\s+private\s+' <file> | grep -v 'static\s'
grep -E 'jsonWriter\.write|"[a-z_]+"' <file> | grep -v '//'
javap -classpath <jar> -p <fully.qualified.ClassName>
jar xf <sources-jar> main/com/openai/models/<Class>.kt
grep '@JsonProperty' main/com/openai/models/<Class>.kt
grep 'extends\s' <file> # If it extends Tool, TextResponseFormatConfiguration, etc. → structural
search-m2 if you need help locating the dependency version or JAR path.JsonSerializable). Compare at the JSON wire level, not at the Java API level.Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
Comprehensive GitHub code review with AI-powered swarm coordination
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.
Take azure/dup-classes from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.