Dev & Engineering ✓ Microsoft · Official java-sdkazure-document-intelligenceocrpdf-extractioninvoice-processingdocument-classification

Azure Document Intelligence for Java

Gives Java developers practical patterns for extracting and classifying data with Azure Document Intelligence.

FollowSkills review · FSRS-2.0
Use with care
46/ 100 5-point scale 2.3 / 5
1 2 3 4 5 6
1Trust12 / 25 · 2.4/5

The skill uses environment variables for endpoints, credentials, and API keys rather than instructing users to hard-code secrets, and its described operations are generally scoped to document analysis and model management. However, it does not disclose the document data flow to Azure, provide sensitive-ID handling or retention guidance, or require confirmation, rollback, or recovery for the model deletion example; external URLs and SAS sources also lack security boundaries. These omissions warrant substantial deductions.

2Reliability7 / 20 · 1.8/5

SKILL.md and examples.md cover synchronous, asynchronous, administration, polling, and basic HTTP-error paths. However, the stated latest GA version is 1.0.7 while the installation example pins 1.0.0, examples often omit complete dependency/import context, and timeout, polling failure, malformed-input, and service-edge handling are thin. Static evidence cannot establish compilation or execution, so the score remains below the static ceiling.

3Adaptability9 / 15 · 3.0/5

The Java audience, trigger phrases, and scenarios for invoices, receipts, IDs, layout, custom models, and classification are relatively clear. Non-fit cases, input constraints, regional/API compatibility boundaries, and exclusion triggers are under-specified, and there is no Chinese-language guidance. The core function depends on Azure cloud endpoints without discussing mainland-China network, regional availability, or alternatives, so points are deducted.

4Convention8 / 15 · 2.7/5

The main document plus references/examples.md provides useful progressive disclosure, installation, authentication, environment variables, migration mapping, error handling, model listings, and MIT licensing. It lacks skill-specific versioning, changelog, named maintenance responsibility, and a clear update path; the 1.0.7 versus 1.0.0 dependency mismatch and incomplete troubleshooting/FAQ coverage further reduce maintainability.

5Effectiveness6 / 15 · 2.0/5

The material supplies directly relevant patterns for client construction, file/URL analysis, field and table extraction, custom models, classification, async usage, migration, and errors. Nevertheless, users must manually verify SDK-version compatibility, imports, permissions, regional resources, and data-protection requirements; no static evidence verifies representative outputs or direct execution. The score is therefore limited to 6 under the static calibration.

6Verifiability4 / 10 · 2.0/5

The skill includes traceable links to an Azure SDK migration guide and Microsoft Learn, while repository context shows CI/evaluation workflows. There is no skill-specific committed test suite, compile result, or third-party execution evidence covering these key paths, and citations do not cover all material claims, so verifiability is limited.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • The dependency example uses azure-ai-documentintelligence 1.0.0 while the document identifies 1.0.7 as latest GA; verify the installed API before implementation.
  • IDs, invoices, and receipts may contain sensitive data, but upload, retention, regional, and access-control requirements are not documented.
  • The model-deletion example lacks confirmation, backup, or recovery guidance and may be irreversible.
  • Reachability, regional compliance, and mainland-China network suitability for Azure endpoints and external sample URLs are not addressed.
See the full review method →

What does this skill do, and when should you use it?

This skill is for Java developers using the Azure AI Document Intelligence SDK. It covers extraction of text, tables, selection marks, key-value fields, and structured data from receipts, invoices, identity documents, and other files. It explains synchronous, asynchronous, administration, API-key, and DefaultAzureCredential client setup. It also includes prebuilt models, custom model and classifier management, error handling, and migration from the older Form Recognizer SDK.

It guides developers through adding com.azure:azure-ai-documentintelligence and optionally azure-identity, setting DOCUMENT_INTELLIGENCE_ENDPOINT and related environment variables, building clients, and starting analysis from local files or URLs. The examples read pages, lines, selection marks, tables, and analyzed document fields; use prebuilt models for receipts, invoices, IDs, contracts, and other supported documents; build and manage custom models and classifiers; and catch HttpResponseException. Before implementation, it directs the user to query the microsoft-docs MCP and verify API parameters against the installed SDK version.

  1. A Java backend needs to extract text, layout, tables, or selection marks from PDF documents.
  2. A finance application needs to read merchant names, transaction dates, and other fields from receipts or invoices.
  3. An identity or workflow application needs to analyze passports, licenses, contracts, or US tax forms.
  4. A team handling non-standard documents needs to build, list, retrieve, or delete custom document models.
  5. A document intake system needs to distinguish document types such as invoices and receipts with a custom classifier.

What are this skill's strengths and limitations?

Pros
  • Covers file and URL analysis, prebuilt models, custom models, and document classification.
  • Includes API-key, DefaultAzureCredential, synchronous-client, and asynchronous-client examples.
  • Provides a migration table from azure-ai-formrecognizer to azure-ai-documentintelligence.
  • Includes practical patterns for options, model administration, and HTTP error handling.
Limitations
  • Requires an Azure Document Intelligence resource, endpoint, and authentication setup.
  • The source instructs users to query the microsoft-docs MCP to verify current API parameters.
  • No standalone test suite, performance data, or cost information is provided.
  • Some older models are retired in API version 2024-11-30, which may require migration work.

How do you install this skill?

Run npx skills add microsoft/skills and select azure-ai-formrecognizer-java in the installation wizard. The skill is located at .github/plugins/azure-sdk-java/skills/azure-ai-formrecognizer-java/. Add com.azure:azure-ai-documentintelligence to the Java project; add com.azure:azure-identity when using DefaultAzureCredential. The source examples use versions 1.0.0 and 1.14.2 respectively, while identifying 1.0.7 as the latest GA version; verify the version actually installed before implementation.

How do you use this skill?

After installation, trigger it with a prompt such as “Extract text and tables from a PDF with Java Document Intelligence” or “Analyze an invoice in Java and read its fields.” Configure DOCUMENT_INTELLIGENCE_ENDPOINT; for production use of DefaultAzureCredential, configure AZURE_TOKEN_CREDENTIALS=prod. Then use the documented beginAnalyzeDocument, beginClassifyDocument, or administration-client patterns. The source does not provide a standalone run script or complete project template.

How does this skill compare with similar options?

The source explicitly compares the new azure-ai-documentintelligence package with the legacy azure-ai-formrecognizer package. The legacy package targets API version 2023-07-31, while new projects should use Document Intelligence. The retired prebuilt-businessCard and prebuilt-document models require the legacy package according to the source.

FAQ

Does this skill create or deploy Azure resources?
No. It documents dependencies, environment variables, authentication, and SDK usage, but does not provide resource provisioning or deployment steps.
Is DefaultAzureCredential mandatory?
No. It is recommended, but the skill also provides an AzureKeyCredential API-key example and shows managed identity usage.
Can it analyze both local files and remote URLs?
Yes. The examples use BinaryData for a local file and AnalyzeDocumentOptions with a document URL.
Can an existing Form Recognizer project be migrated?
Yes. The migration table covers client classes, methods, field accessors, and environment variables; retired models may still require the legacy package.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for .NET

Guides .NET developers in extracting structured data from invoices, receipts, IDs, and forms.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis for Java

A practical Java SDK guide for captions, OCR, object detection, tagging, and smart image cropping.

Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for TypeScript

Extract document text, tables, and structured fields in TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure CallingServer Java Legacy Maintainer

Maintain legacy CallingServer Java code and migrate it toward Azure Communication Services Call Automation.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Java

Query Azure Monitor logs and resource metrics from Java applications.

Dev & Engineering ✓ Microsoft · Official

Azure Communication Common for Java

Guides Java developers through shared ACS authentication, token refresh, and communication identifier handling.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Keys for Java

Ground Java coding agents in secure Azure Key Vault and Managed HSM key-management workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Batch Java Job Orchestration

Run and manage large-scale parallel and HPC workloads on Azure from Java.

Dev & Engineering ✓ Microsoft · Official

Azure Tables Java Skill

Build Java applications for Azure Table Storage and the Cosmos DB Table API.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Log Ingestion for Java

Guides Java applications in sending structured custom logs to Azure Monitor through DCRs.

Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for Java

A practical Java SDK guide for publishing, consuming, and handling Azure Event Grid events.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Java

A practical Java playbook for building file and streaming workflows on Azure Blob Storage.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Java

A practical Java SDK guide for Azure Web PubSub messaging, groups, permissions, and real-time client access.

Dev & Engineering ✓ Microsoft · Official

Azure AI VoiceLive for Java

Build real-time, bidirectional AI voice conversations in Java over WebSocket.

Dev & Engineering ✓ Microsoft · Official

Azure Communication Chat for Java

A practical Java SDK guide for building Azure real-time chat threads, messaging, and participant workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Call Automation for Java

Build Java workflows for IVR, call routing, recording, and voice-driven interactions.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for Java

Guides Java developers through secure storage, retrieval, rotation, recovery, and backup of application secrets in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure AI Projects for Java

Guides Java developers in managing Azure AI Foundry project resources.

Related skills