[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CGZKFJXT2WFZJTCECT2TPM":3,"skill-same:01M7CGZKFJXT2WFZJTCECT2TPM":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7CGZKFJXT2WFZJTCECT2TPM","azure-ai-formrecognizer-java",null,"Build document analysis applications using the Azure AI Document Intelligence SDK for Java.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fazure-ai-formrecognizer-java\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: azure-ai-formrecognizer-java\ndescription: \"Build document analysis applications using the Azure AI Document Intelligence SDK for Java.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Azure Document Intelligence (Form Recognizer) SDK for Java\n\nBuild document analysis applications using the Azure AI Document Intelligence SDK for Java.\n\n## Installation\n\n```xml\n\u003Cdependency>\n    \u003CgroupId>com.azure\u003C\u002FgroupId>\n    \u003CartifactId>azure-ai-formrecognizer\u003C\u002FartifactId>\n    \u003Cversion>4.2.0-beta.1\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\n## Client Creation\n\n### DocumentAnalysisClient\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient;\nimport com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClientBuilder;\nimport com.azure.core.credential.AzureKeyCredential;\n\nDocumentAnalysisClient client = new DocumentAnalysisClientBuilder()\n    .credential(new AzureKeyCredential(\"{key}\"))\n    .endpoint(\"{endpoint}\")\n    .buildClient();\n```\n\n### DocumentModelAdministrationClient\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.administration.DocumentModelAdministrationClient;\nimport com.azure.ai.formrecognizer.documentanalysis.administration.DocumentModelAdministrationClientBuilder;\n\nDocumentModelAdministrationClient adminClient = new DocumentModelAdministrationClientBuilder()\n    .credential(new AzureKeyCredential(\"{key}\"))\n    .endpoint(\"{endpoint}\")\n    .buildClient();\n```\n\n### With DefaultAzureCredential\n\n```java\nimport com.azure.identity.DefaultAzureCredentialBuilder;\n\nDocumentAnalysisClient client = new DocumentAnalysisClientBuilder()\n    .endpoint(\"{endpoint}\")\n    .credential(new DefaultAzureCredentialBuilder().build())\n    .buildClient();\n```\n\n## Prebuilt Models\n\n| Model ID | Purpose |\n|----------|---------|\n| `prebuilt-layout` | Extract text, tables, selection marks |\n| `prebuilt-document` | General document with key-value pairs |\n| `prebuilt-receipt` | Receipt data extraction |\n| `prebuilt-invoice` | Invoice field extraction |\n| `prebuilt-businessCard` | Business card parsing |\n| `prebuilt-idDocument` | ID document (passport, license) |\n| `prebuilt-tax.us.w2` | US W2 tax forms |\n\n## Core Patterns\n\n### Extract Layout\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.models.*;\nimport com.azure.core.util.BinaryData;\nimport com.azure.core.util.polling.SyncPoller;\nimport java.io.File;\n\nFile document = new File(\"document.pdf\");\nBinaryData documentData = BinaryData.fromFile(document.toPath());\n\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocument(\"prebuilt-layout\", documentData);\n\nAnalyzeResult result = poller.getFinalResult();\n\n\u002F\u002F Process pages\nfor (DocumentPage page : result.getPages()) {\n    System.out.printf(\"Page %d: %.2f x %.2f %s%n\",\n        page.getPageNumber(),\n        page.getWidth(),\n        page.getHeight(),\n        page.getUnit());\n    \n    \u002F\u002F Lines\n    for (DocumentLine line : page.getLines()) {\n        System.out.println(\"Line: \" + line.getContent());\n    }\n    \n    \u002F\u002F Selection marks (checkboxes)\n    for (DocumentSelectionMark mark : page.getSelectionMarks()) {\n        System.out.printf(\"Checkbox: %s (confidence: %.2f)%n\",\n            mark.getSelectionMarkState(),\n            mark.getConfidence());\n    }\n}\n\n\u002F\u002F Tables\nfor (DocumentTable table : result.getTables()) {\n    System.out.printf(\"Table: %d rows x %d columns%n\",\n        table.getRowCount(),\n        table.getColumnCount());\n    \n    for (DocumentTableCell cell : table.getCells()) {\n        System.out.printf(\"Cell[%d,%d]: %s%n\",\n            cell.getRowIndex(),\n            cell.getColumnIndex(),\n            cell.getContent());\n    }\n}\n```\n\n### Analyze from URL\n\n```java\nString documentUrl = \"https:\u002F\u002Fexample.com\u002Finvoice.pdf\";\n\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-invoice\", documentUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n```\n\n### Analyze Receipt\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-receipt\", receiptUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n\nfor (AnalyzedDocument doc : result.getDocuments()) {\n    Map\u003CString, DocumentField> fields = doc.getFields();\n    \n    DocumentField merchantName = fields.get(\"MerchantName\");\n    if (merchantName != null && merchantName.getType() == DocumentFieldType.STRING) {\n        System.out.printf(\"Merchant: %s (confidence: %.2f)%n\",\n            merchantName.getValueAsString(),\n            merchantName.getConfidence());\n    }\n    \n    DocumentField transactionDate = fields.get(\"TransactionDate\");\n    if (transactionDate != null && transactionDate.getType() == DocumentFieldType.DATE) {\n        System.out.printf(\"Date: %s%n\", transactionDate.getValueAsDate());\n    }\n    \n    DocumentField items = fields.get(\"Items\");\n    if (items != null && items.getType() == DocumentFieldType.LIST) {\n        for (DocumentField item : items.getValueAsList()) {\n            Map\u003CString, DocumentField> itemFields = item.getValueAsMap();\n            System.out.printf(\"Item: %s, Price: %.2f%n\",\n                itemFields.get(\"Name\").getValueAsString(),\n                itemFields.get(\"Price\").getValueAsDouble());\n        }\n    }\n}\n```\n\n### General Document Analysis\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-document\", documentUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n\n\u002F\u002F Key-value pairs\nfor (DocumentKeyValuePair kvp : result.getKeyValuePairs()) {\n    System.out.printf(\"Key: %s => Value: %s%n\",\n        kvp.getKey().getContent(),\n        kvp.getValue() != null ? kvp.getValue().getContent() : \"null\");\n}\n```\n\n## Custom Models\n\n### Build Custom Model\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.administration.models.*;\n\nString blobContainerUrl = \"{SAS_URL_of_training_data}\";\nString prefix = \"training-docs\u002F\";\n\nSyncPoller\u003COperationResult, DocumentModelDetails> poller = adminClient.beginBuildDocumentModel(\n    blobContainerUrl,\n    DocumentModelBuildMode.TEMPLATE,\n    prefix,\n    new BuildDocumentModelOptions()\n        .setModelId(\"my-custom-model\")\n        .setDescription(\"Custom invoice model\"),\n    Context.NONE);\n\nDocumentModelDetails model = poller.getFinalResult();\n\nSystem.out.println(\"Model ID: \" + model.getModelId());\nSystem.out.println(\"Created: \" + model.getCreatedOn());\n\nmodel.getDocumentTypes().forEach((docType, details) -> {\n    System.out.println(\"Document type: \" + docType);\n    details.getFieldSchema().forEach((field, schema) -> {\n        System.out.printf(\"  Field: %s (%s)%n\", field, schema.getType());\n    });\n});\n```\n\n### Analyze with Custom Model\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"my-custom-model\", documentUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n\nfor (AnalyzedDocument doc : result.getDocuments()) {\n    System.out.printf(\"Document type: %s (confidence: %.2f)%n\",\n        doc.getDocType(),\n        doc.getConfidence());\n    \n    doc.getFields().forEach((name, field) -> {\n        System.out.printf(\"Field '%s': %s (confidence: %.2f)%n\",\n            name,\n            field.getContent(),\n            field.getConfidence());\n    });\n}\n```\n\n### Compose Models\n\n```java\nList\u003CString> modelIds = Arrays.asList(\"model-1\", \"model-2\", \"model-3\");\n\nSyncPoller\u003COperationResult, DocumentModelDetails> poller = \n    adminClient.beginComposeDocumentModel(\n        modelIds,\n        new ComposeDocumentModelOptions()\n            .setModelId(\"composed-model\")\n            .setDescription(\"Composed from multiple models\"));\n\nDocumentModelDetails composedModel = poller.getFinalResult();\n```\n\n### Manage Models\n\n```java\n\u002F\u002F List models\nPagedIterable\u003CDocumentModelSummary> models = adminClient.listDocumentModels();\nfor (DocumentModelSummary summary : models) {\n    System.out.printf(\"Model: %s, Created: %s%n\",\n        summary.getModelId(),\n        summary.getCreatedOn());\n}\n\n\u002F\u002F Get model details\nDocumentModelDetails model = adminClient.getDocumentModel(\"model-id\");\n\n\u002F\u002F Delete model\nadminClient.deleteDocumentModel(\"model-id\");\n\n\u002F\u002F Check resource limits\nResourceDetails resources = adminClient.getResourceDetails();\nSystem.out.printf(\"Models: %d \u002F %d%n\",\n    resources.getCustomDocumentModelCount(),\n    resources.getCustomDocumentModelLimit());\n```\n\n## Document Classification\n\n### Build Classifier\n\n```java\nMap\u003CString, ClassifierDocumentTypeDetails> docTypes = new HashMap\u003C>();\ndocTypes.put(\"invoice\", new ClassifierDocumentTypeDetails()\n    .setAzureBlobSource(new AzureBlobContentSource(containerUrl).setPrefix(\"invoices\u002F\")));\ndocTypes.put(\"receipt\", new ClassifierDocumentTypeDetails()\n    .setAzureBlobSource(new AzureBlobContentSource(containerUrl).setPrefix(\"receipts\u002F\")));\n\nSyncPoller\u003COperationResult, DocumentClassifierDetails> poller = \n    adminClient.beginBuildDocumentClassifier(docTypes,\n        new BuildDocumentClassifierOptions().setClassifierId(\"my-classifier\"));\n\nDocumentClassifierDetails classifier = poller.getFinalResult();\n```\n\n### Classify Document\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginClassifyDocumentFromUrl(\"my-classifier\", documentUrl, Context.NONE);\n\nAnalyzeResult result = poller.getFinalResult();\n\nfor (AnalyzedDocument doc : result.getDocuments()) {\n    System.out.printf(\"Classified as: %s (confidence: %.2f)%n\",\n        doc.getDocType(),\n        doc.getConfidence());\n}\n```\n\n## Error Handling\n\n```java\nimport com.azure.core.exception.HttpResponseException;\n\ntry {\n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-receipt\", \"invalid-url\");\n} catch (HttpResponseException e) {\n    System.out.println(\"Status: \" + e.getResponse().getStatusCode());\n    System.out.println(\"Error: \" + e.getMessage());\n}\n```\n\n## Environment Variables\n\n```bash\nFORM_RECOGNIZER_ENDPOINT=https:\u002F\u002F\u003Cresource>.cognitiveservices.azure.com\u002F\nFORM_RECOGNIZER_KEY=\u003Cyour-api-key>\n```\n\n## Trigger Phrases\n\n- \"document intelligence Java\"\n- \"form recognizer SDK\"\n- \"extract text from PDF\"\n- \"OCR document Java\"\n- \"analyze invoice receipt\"\n- \"custom document model\"\n- \"document classification\"\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","# Azure Document Intelligence (Form Recognizer) SDK for Java\n\nBuild document analysis applications using the Azure AI Document Intelligence SDK for Java.\n\n## Installation\n\n```xml\n\u003Cdependency>\n    \u003CgroupId>com.azure\u003C\u002FgroupId>\n    \u003CartifactId>azure-ai-formrecognizer\u003C\u002FartifactId>\n    \u003Cversion>4.2.0-beta.1\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\n## Client Creation\n\n### DocumentAnalysisClient\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient;\nimport com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClientBuilder;\nimport com.azure.core.credential.AzureKeyCredential;\n\nDocumentAnalysisClient client = new DocumentAnalysisClientBuilder()\n    .credential(new AzureKeyCredential(\"{key}\"))\n    .endpoint(\"{endpoint}\")\n    .buildClient();\n```\n\n### DocumentModelAdministrationClient\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.administration.DocumentModelAdministrationClient;\nimport com.azure.ai.formrecognizer.documentanalysis.administration.DocumentModelAdministrationClientBuilder;\n\nDocumentModelAdministrationClient adminClient = new DocumentModelAdministrationClientBuilder()\n    .credential(new AzureKeyCredential(\"{key}\"))\n    .endpoint(\"{endpoint}\")\n    .buildClient();\n```\n\n### With DefaultAzureCredential\n\n```java\nimport com.azure.identity.DefaultAzureCredentialBuilder;\n\nDocumentAnalysisClient client = new DocumentAnalysisClientBuilder()\n    .endpoint(\"{endpoint}\")\n    .credential(new DefaultAzureCredentialBuilder().build())\n    .buildClient();\n```\n\n## Prebuilt Models\n\n| Model ID | Purpose |\n|----------|---------|\n| `prebuilt-layout` | Extract text, tables, selection marks |\n| `prebuilt-document` | General document with key-value pairs |\n| `prebuilt-receipt` | Receipt data extraction |\n| `prebuilt-invoice` | Invoice field extraction |\n| `prebuilt-businessCard` | Business card parsing |\n| `prebuilt-idDocument` | ID document (passport, license) |\n| `prebuilt-tax.us.w2` | US W2 tax forms |\n\n## Core Patterns\n\n### Extract Layout\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.models.*;\nimport com.azure.core.util.BinaryData;\nimport com.azure.core.util.polling.SyncPoller;\nimport java.io.File;\n\nFile document = new File(\"document.pdf\");\nBinaryData documentData = BinaryData.fromFile(document.toPath());\n\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocument(\"prebuilt-layout\", documentData);\n\nAnalyzeResult result = poller.getFinalResult();\n\n\u002F\u002F Process pages\nfor (DocumentPage page : result.getPages()) {\n    System.out.printf(\"Page %d: %.2f x %.2f %s%n\",\n        page.getPageNumber(),\n        page.getWidth(),\n        page.getHeight(),\n        page.getUnit());\n    \n    \u002F\u002F Lines\n    for (DocumentLine line : page.getLines()) {\n        System.out.println(\"Line: \" + line.getContent());\n    }\n    \n    \u002F\u002F Selection marks (checkboxes)\n    for (DocumentSelectionMark mark : page.getSelectionMarks()) {\n        System.out.printf(\"Checkbox: %s (confidence: %.2f)%n\",\n            mark.getSelectionMarkState(),\n            mark.getConfidence());\n    }\n}\n\n\u002F\u002F Tables\nfor (DocumentTable table : result.getTables()) {\n    System.out.printf(\"Table: %d rows x %d columns%n\",\n        table.getRowCount(),\n        table.getColumnCount());\n    \n    for (DocumentTableCell cell : table.getCells()) {\n        System.out.printf(\"Cell[%d,%d]: %s%n\",\n            cell.getRowIndex(),\n            cell.getColumnIndex(),\n            cell.getContent());\n    }\n}\n```\n\n### Analyze from URL\n\n```java\nString documentUrl = \"https:\u002F\u002Fexample.com\u002Finvoice.pdf\";\n\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-invoice\", documentUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n```\n\n### Analyze Receipt\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-receipt\", receiptUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n\nfor (AnalyzedDocument doc : result.getDocuments()) {\n    Map\u003CString, DocumentField> fields = doc.getFields();\n    \n    DocumentField merchantName = fields.get(\"MerchantName\");\n    if (merchantName != null && merchantName.getType() == DocumentFieldType.STRING) {\n        System.out.printf(\"Merchant: %s (confidence: %.2f)%n\",\n            merchantName.getValueAsString(),\n            merchantName.getConfidence());\n    }\n    \n    DocumentField transactionDate = fields.get(\"TransactionDate\");\n    if (transactionDate != null && transactionDate.getType() == DocumentFieldType.DATE) {\n        System.out.printf(\"Date: %s%n\", transactionDate.getValueAsDate());\n    }\n    \n    DocumentField items = fields.get(\"Items\");\n    if (items != null && items.getType() == DocumentFieldType.LIST) {\n        for (DocumentField item : items.getValueAsList()) {\n            Map\u003CString, DocumentField> itemFields = item.getValueAsMap();\n            System.out.printf(\"Item: %s, Price: %.2f%n\",\n                itemFields.get(\"Name\").getValueAsString(),\n                itemFields.get(\"Price\").getValueAsDouble());\n        }\n    }\n}\n```\n\n### General Document Analysis\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-document\", documentUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n\n\u002F\u002F Key-value pairs\nfor (DocumentKeyValuePair kvp : result.getKeyValuePairs()) {\n    System.out.printf(\"Key: %s => Value: %s%n\",\n        kvp.getKey().getContent(),\n        kvp.getValue() != null ? kvp.getValue().getContent() : \"null\");\n}\n```\n\n## Custom Models\n\n### Build Custom Model\n\n```java\nimport com.azure.ai.formrecognizer.documentanalysis.administration.models.*;\n\nString blobContainerUrl = \"{SAS_URL_of_training_data}\";\nString prefix = \"training-docs\u002F\";\n\nSyncPoller\u003COperationResult, DocumentModelDetails> poller = adminClient.beginBuildDocumentModel(\n    blobContainerUrl,\n    DocumentModelBuildMode.TEMPLATE,\n    prefix,\n    new BuildDocumentModelOptions()\n        .setModelId(\"my-custom-model\")\n        .setDescription(\"Custom invoice model\"),\n    Context.NONE);\n\nDocumentModelDetails model = poller.getFinalResult();\n\nSystem.out.println(\"Model ID: \" + model.getModelId());\nSystem.out.println(\"Created: \" + model.getCreatedOn());\n\nmodel.getDocumentTypes().forEach((docType, details) -> {\n    System.out.println(\"Document type: \" + docType);\n    details.getFieldSchema().forEach((field, schema) -> {\n        System.out.printf(\"  Field: %s (%s)%n\", field, schema.getType());\n    });\n});\n```\n\n### Analyze with Custom Model\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginAnalyzeDocumentFromUrl(\"my-custom-model\", documentUrl);\n\nAnalyzeResult result = poller.getFinalResult();\n\nfor (AnalyzedDocument doc : result.getDocuments()) {\n    System.out.printf(\"Document type: %s (confidence: %.2f)%n\",\n        doc.getDocType(),\n        doc.getConfidence());\n    \n    doc.getFields().forEach((name, field) -> {\n        System.out.printf(\"Field '%s': %s (confidence: %.2f)%n\",\n            name,\n            field.getContent(),\n            field.getConfidence());\n    });\n}\n```\n\n### Compose Models\n\n```java\nList\u003CString> modelIds = Arrays.asList(\"model-1\", \"model-2\", \"model-3\");\n\nSyncPoller\u003COperationResult, DocumentModelDetails> poller = \n    adminClient.beginComposeDocumentModel(\n        modelIds,\n        new ComposeDocumentModelOptions()\n            .setModelId(\"composed-model\")\n            .setDescription(\"Composed from multiple models\"));\n\nDocumentModelDetails composedModel = poller.getFinalResult();\n```\n\n### Manage Models\n\n```java\n\u002F\u002F List models\nPagedIterable\u003CDocumentModelSummary> models = adminClient.listDocumentModels();\nfor (DocumentModelSummary summary : models) {\n    System.out.printf(\"Model: %s, Created: %s%n\",\n        summary.getModelId(),\n        summary.getCreatedOn());\n}\n\n\u002F\u002F Get model details\nDocumentModelDetails model = adminClient.getDocumentModel(\"model-id\");\n\n\u002F\u002F Delete model\nadminClient.deleteDocumentModel(\"model-id\");\n\n\u002F\u002F Check resource limits\nResourceDetails resources = adminClient.getResourceDetails();\nSystem.out.printf(\"Models: %d \u002F %d%n\",\n    resources.getCustomDocumentModelCount(),\n    resources.getCustomDocumentModelLimit());\n```\n\n## Document Classification\n\n### Build Classifier\n\n```java\nMap\u003CString, ClassifierDocumentTypeDetails> docTypes = new HashMap\u003C>();\ndocTypes.put(\"invoice\", new ClassifierDocumentTypeDetails()\n    .setAzureBlobSource(new AzureBlobContentSource(containerUrl).setPrefix(\"invoices\u002F\")));\ndocTypes.put(\"receipt\", new ClassifierDocumentTypeDetails()\n    .setAzureBlobSource(new AzureBlobContentSource(containerUrl).setPrefix(\"receipts\u002F\")));\n\nSyncPoller\u003COperationResult, DocumentClassifierDetails> poller = \n    adminClient.beginBuildDocumentClassifier(docTypes,\n        new BuildDocumentClassifierOptions().setClassifierId(\"my-classifier\"));\n\nDocumentClassifierDetails classifier = poller.getFinalResult();\n```\n\n### Classify Document\n\n```java\nSyncPoller\u003COperationResult, AnalyzeResult> poller = \n    client.beginClassifyDocumentFromUrl(\"my-classifier\", documentUrl, Context.NONE);\n\nAnalyzeResult result = poller.getFinalResult();\n\nfor (AnalyzedDocument doc : result.getDocuments()) {\n    System.out.printf(\"Classified as: %s (confidence: %.2f)%n\",\n        doc.getDocType(),\n        doc.getConfidence());\n}\n```\n\n## Error Handling\n\n```java\nimport com.azure.core.exception.HttpResponseException;\n\ntry {\n    client.beginAnalyzeDocumentFromUrl(\"prebuilt-receipt\", \"invalid-url\");\n} catch (HttpResponseException e) {\n    System.out.println(\"Status: \" + e.getResponse().getStatusCode());\n    System.out.println(\"Error: \" + e.getMessage());\n}\n```\n\n## Environment Variables\n\n```bash\nFORM_RECOGNIZER_ENDPOINT=https:\u002F\u002F\u003Cresource>.cognitiveservices.azure.com\u002F\nFORM_RECOGNIZER_KEY=\u003Cyour-api-key>\n```\n\n## Trigger Phrases\n\n- \"document intelligence Java\"\n- \"form recognizer SDK\"\n- \"extract text from PDF\"\n- \"OCR document Java\"\n- \"analyze invoice receipt\"\n- \"custom document model\"\n- \"document classification\"\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n",{"name":5,"risk":24,"source":25,"date_added":26,"description":7},"unknown","community","2026-02-27","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fazure-ai-formrecognizer-java",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill azure-ai-formrecognizer-java",{"tool":42,"command":43},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill azure-ai-formrecognizer-java",{"tool":45,"command":46},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill azure-ai-formrecognizer-java","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fazure-ai-formrecognizer-java\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]