[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74PYDFK37JD7019NGE404SG":3,"skill-same:01M74PYDFK37JD7019NGE404SG":54},{"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":28,"commitSha":29,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M74PYDFK37JD7019NGE404SG","azure-eventgrid-java",null,"Build event-driven applications with Azure Event Grid SDK for Java. Use when publishing events, implementing pub\u002Fsub patterns, or integrating with Azure services via events.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fazure-eventgrid-java\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: azure-eventgrid-java\ndescription: Build event-driven applications with Azure Event Grid SDK for Java. Use when publishing events, implementing pub\u002Fsub patterns, or integrating with Azure services via events.\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n  package: com.azure:azure-messaging-eventgrid\n---\n\n# Azure Event Grid SDK for Java\n\nBuild event-driven applications using the Azure Event Grid SDK for Java.\n\n## Installation\n\n```xml\n\u003Cdependency>\n    \u003CgroupId>com.azure\u003C\u002FgroupId>\n    \u003CartifactId>azure-messaging-eventgrid\u003C\u002FartifactId>\n    \u003Cversion>4.27.0\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\n## Client Creation\n\n### EventGridPublisherClient\n\n```java\nimport com.azure.messaging.eventgrid.EventGridPublisherClient;\nimport com.azure.messaging.eventgrid.EventGridPublisherClientBuilder;\nimport com.azure.core.credential.AzureKeyCredential;\n\n\u002F\u002F With API Key\nEventGridPublisherClient\u003CEventGridEvent> client = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Caccess-key>\"))\n    .buildEventGridEventPublisherClient();\n\n\u002F\u002F For CloudEvents\nEventGridPublisherClient\u003CCloudEvent> cloudClient = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Caccess-key>\"))\n    .buildCloudEventPublisherClient();\n```\n\n### With DefaultAzureCredential\n\n```java\nimport com.azure.core.credential.TokenCredential;\nimport com.azure.identity.AzureIdentityEnvVars;\nimport com.azure.identity.DefaultAzureCredentialBuilder;\nimport com.azure.identity.ManagedIdentityCredentialBuilder;\n\n\u002F\u002F Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\nTokenCredential credential = new DefaultAzureCredentialBuilder()\n    .requireEnvVars(AzureIdentityEnvVars.AZURE_TOKEN_CREDENTIALS)\n    .build();\n\u002F\u002F Or use a specific credential directly in production:\n\u002F\u002F See https:\u002F\u002Flearn.microsoft.com\u002Fjava\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-java-stable#credential-classes\n\u002F\u002F TokenCredential credential = new ManagedIdentityCredentialBuilder().build();\n\nEventGridPublisherClient\u003CEventGridEvent> client = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(credential)\n    .buildEventGridEventPublisherClient();\n```\n\n### Async Client\n\n```java\nimport com.azure.messaging.eventgrid.EventGridPublisherAsyncClient;\n\nEventGridPublisherAsyncClient\u003CEventGridEvent> asyncClient = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Caccess-key>\"))\n    .buildEventGridEventPublisherAsyncClient();\n```\n\n## Event Types\n\n| Type | Description |\n|------|-------------|\n| `EventGridEvent` | Azure Event Grid native schema |\n| `CloudEvent` | CNCF CloudEvents 1.0 specification |\n| `BinaryData` | Custom schema events |\n\n## Core Patterns\n\n### Publish EventGridEvent\n\n```java\nimport com.azure.messaging.eventgrid.EventGridEvent;\nimport com.azure.core.util.BinaryData;\n\nEventGridEvent event = new EventGridEvent(\n    \"resource\u002Fpath\",           \u002F\u002F subject\n    \"MyApp.Events.OrderCreated\", \u002F\u002F eventType\n    BinaryData.fromObject(new OrderData(\"order-123\", 99.99)), \u002F\u002F data\n    \"1.0\"                      \u002F\u002F dataVersion\n);\n\nclient.sendEvent(event);\n```\n\n### Publish Multiple Events\n\n```java\nList\u003CEventGridEvent> events = Arrays.asList(\n    new EventGridEvent(\"orders\u002F1\", \"Order.Created\", \n        BinaryData.fromObject(order1), \"1.0\"),\n    new EventGridEvent(\"orders\u002F2\", \"Order.Created\", \n        BinaryData.fromObject(order2), \"1.0\")\n);\n\nclient.sendEvents(events);\n```\n\n### Publish CloudEvent\n\n```java\nimport com.azure.core.models.CloudEvent;\nimport com.azure.core.models.CloudEventDataFormat;\n\nCloudEvent cloudEvent = new CloudEvent(\n    \"\u002Fmyapp\u002Forders\",           \u002F\u002F source\n    \"order.created\",           \u002F\u002F type\n    BinaryData.fromObject(orderData), \u002F\u002F data\n    CloudEventDataFormat.JSON  \u002F\u002F dataFormat\n);\ncloudEvent.setSubject(\"orders\u002F12345\");\ncloudEvent.setId(UUID.randomUUID().toString());\n\ncloudClient.sendEvent(cloudEvent);\n```\n\n### Publish CloudEvents Batch\n\n```java\nList\u003CCloudEvent> cloudEvents = Arrays.asList(\n    new CloudEvent(\"\u002Fapp\", \"event.type1\", BinaryData.fromString(\"data1\"), CloudEventDataFormat.JSON),\n    new CloudEvent(\"\u002Fapp\", \"event.type2\", BinaryData.fromString(\"data2\"), CloudEventDataFormat.JSON)\n);\n\ncloudClient.sendEvents(cloudEvents);\n```\n\n### Async Publishing\n\n```java\nasyncClient.sendEvent(event)\n    .subscribe(\n        unused -> System.out.println(\"Event sent successfully\"),\n        error -> System.err.println(\"Error: \" + error.getMessage())\n    );\n\n\u002F\u002F With multiple events\nasyncClient.sendEvents(events)\n    .doOnSuccess(unused -> System.out.println(\"All events sent\"))\n    .doOnError(error -> System.err.println(\"Failed: \" + error))\n    .block(); \u002F\u002F Block if needed\n```\n\n### Custom Event Data Class\n\n```java\npublic class OrderData {\n    private String orderId;\n    private double amount;\n    private String customerId;\n    \n    public OrderData(String orderId, double amount) {\n        this.orderId = orderId;\n        this.amount = amount;\n    }\n    \n    \u002F\u002F Getters and setters\n}\n\n\u002F\u002F Usage\nOrderData order = new OrderData(\"ORD-123\", 150.00);\nEventGridEvent event = new EventGridEvent(\n    \"orders\u002F\" + order.getOrderId(),\n    \"MyApp.Order.Created\",\n    BinaryData.fromObject(order),\n    \"1.0\"\n);\n```\n\n## Receiving Events\n\n### Parse EventGridEvent\n\n```java\nimport com.azure.messaging.eventgrid.EventGridEvent;\n\n\u002F\u002F From JSON string (e.g., webhook payload)\nString jsonPayload = \"[{\\\"id\\\": \\\"...\\\", ...}]\";\nList\u003CEventGridEvent> events = EventGridEvent.fromString(jsonPayload);\n\nfor (EventGridEvent event : events) {\n    System.out.println(\"Event Type: \" + event.getEventType());\n    System.out.println(\"Subject: \" + event.getSubject());\n    System.out.println(\"Event Time: \" + event.getEventTime());\n    \n    \u002F\u002F Get data\n    BinaryData data = event.getData();\n    OrderData orderData = data.toObject(OrderData.class);\n}\n```\n\n### Parse CloudEvent\n\n```java\nimport com.azure.core.models.CloudEvent;\n\nString cloudEventJson = \"[{\\\"specversion\\\": \\\"1.0\\\", ...}]\";\nList\u003CCloudEvent> cloudEvents = CloudEvent.fromString(cloudEventJson);\n\nfor (CloudEvent event : cloudEvents) {\n    System.out.println(\"Type: \" + event.getType());\n    System.out.println(\"Source: \" + event.getSource());\n    System.out.println(\"ID: \" + event.getId());\n    \n    MyEventData data = event.getData().toObject(MyEventData.class);\n}\n```\n\n### Handle System Events\n\n```java\nimport com.azure.messaging.eventgrid.systemevents.*;\n\nfor (EventGridEvent event : events) {\n    if (event.getEventType().equals(\"Microsoft.Storage.BlobCreated\")) {\n        StorageBlobCreatedEventData blobData = \n            event.getData().toObject(StorageBlobCreatedEventData.class);\n        System.out.println(\"Blob URL: \" + blobData.getUrl());\n    }\n}\n```\n\n## Event Grid Namespaces (MQTT\u002FPull)\n\n### Receive from Namespace Topic\n\n```java\nimport com.azure.messaging.eventgrid.namespaces.EventGridReceiverClient;\nimport com.azure.messaging.eventgrid.namespaces.EventGridReceiverClientBuilder;\nimport com.azure.messaging.eventgrid.namespaces.models.*;\n\nEventGridReceiverClient receiverClient = new EventGridReceiverClientBuilder()\n    .endpoint(\"\u003Cnamespace-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Ckey>\"))\n    .topicName(\"my-topic\")\n    .subscriptionName(\"my-subscription\")\n    .buildClient();\n\n\u002F\u002F Receive events\nReceiveResult result = receiverClient.receive(10, Duration.ofSeconds(30));\n\nfor (ReceiveDetails detail : result.getValue()) {\n    CloudEvent event = detail.getEvent();\n    System.out.println(\"Event: \" + event.getType());\n    \n    \u002F\u002F Acknowledge the event\n    receiverClient.acknowledge(Arrays.asList(detail.getBrokerProperties().getLockToken()));\n}\n```\n\n### Reject or Release Events\n\n```java\n\u002F\u002F Reject (don't retry)\nreceiverClient.reject(Arrays.asList(lockToken));\n\n\u002F\u002F Release (retry later)\nreceiverClient.release(Arrays.asList(lockToken));\n\n\u002F\u002F Release with delay\nreceiverClient.release(Arrays.asList(lockToken), \n    new ReleaseOptions().setDelay(ReleaseDelay.BY_60_SECONDS));\n```\n\n## Error Handling\n\n```java\nimport com.azure.core.exception.HttpResponseException;\n\ntry {\n    client.sendEvent(event);\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\nEVENT_GRID_TOPIC_ENDPOINT=https:\u002F\u002F\u003Ctopic-name>.\u003Cregion>.eventgrid.azure.net\u002Fapi\u002Fevents  # Required for all auth methods\nEVENT_GRID_ACCESS_KEY=\u003Cyour-access-key>  # Only required for AzureKeyCredential auth\nAZURE_TOKEN_CREDENTIALS=prod  # Required only if DefaultAzureCredential is used in production\n```\n\n## Best Practices\n\n1. **Batch Events**: Send multiple events in one call when possible\n2. **Idempotency**: Include unique event IDs for deduplication\n3. **Schema Validation**: Use strongly-typed event data classes\n4. **Retry Logic**: Built-in, but consider dead-letter for failures\n5. **Event Size**: Keep events under 1MB (64KB for basic tier)\n\n## Trigger Phrases\n\n- \"Event Grid Java\"\n- \"publish events Azure\"\n- \"CloudEvent SDK\"\n- \"event-driven messaging\"\n- \"pub\u002Fsub Azure\"\n- \"webhook events\"\n","# Azure Event Grid SDK for Java\n\nBuild event-driven applications using the Azure Event Grid SDK for Java.\n\n## Installation\n\n```xml\n\u003Cdependency>\n    \u003CgroupId>com.azure\u003C\u002FgroupId>\n    \u003CartifactId>azure-messaging-eventgrid\u003C\u002FartifactId>\n    \u003Cversion>4.27.0\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\n## Client Creation\n\n### EventGridPublisherClient\n\n```java\nimport com.azure.messaging.eventgrid.EventGridPublisherClient;\nimport com.azure.messaging.eventgrid.EventGridPublisherClientBuilder;\nimport com.azure.core.credential.AzureKeyCredential;\n\n\u002F\u002F With API Key\nEventGridPublisherClient\u003CEventGridEvent> client = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Caccess-key>\"))\n    .buildEventGridEventPublisherClient();\n\n\u002F\u002F For CloudEvents\nEventGridPublisherClient\u003CCloudEvent> cloudClient = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Caccess-key>\"))\n    .buildCloudEventPublisherClient();\n```\n\n### With DefaultAzureCredential\n\n```java\nimport com.azure.core.credential.TokenCredential;\nimport com.azure.identity.AzureIdentityEnvVars;\nimport com.azure.identity.DefaultAzureCredentialBuilder;\nimport com.azure.identity.ManagedIdentityCredentialBuilder;\n\n\u002F\u002F Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\nTokenCredential credential = new DefaultAzureCredentialBuilder()\n    .requireEnvVars(AzureIdentityEnvVars.AZURE_TOKEN_CREDENTIALS)\n    .build();\n\u002F\u002F Or use a specific credential directly in production:\n\u002F\u002F See https:\u002F\u002Flearn.microsoft.com\u002Fjava\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-java-stable#credential-classes\n\u002F\u002F TokenCredential credential = new ManagedIdentityCredentialBuilder().build();\n\nEventGridPublisherClient\u003CEventGridEvent> client = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(credential)\n    .buildEventGridEventPublisherClient();\n```\n\n### Async Client\n\n```java\nimport com.azure.messaging.eventgrid.EventGridPublisherAsyncClient;\n\nEventGridPublisherAsyncClient\u003CEventGridEvent> asyncClient = new EventGridPublisherClientBuilder()\n    .endpoint(\"\u003Ctopic-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Caccess-key>\"))\n    .buildEventGridEventPublisherAsyncClient();\n```\n\n## Event Types\n\n| Type | Description |\n|------|-------------|\n| `EventGridEvent` | Azure Event Grid native schema |\n| `CloudEvent` | CNCF CloudEvents 1.0 specification |\n| `BinaryData` | Custom schema events |\n\n## Core Patterns\n\n### Publish EventGridEvent\n\n```java\nimport com.azure.messaging.eventgrid.EventGridEvent;\nimport com.azure.core.util.BinaryData;\n\nEventGridEvent event = new EventGridEvent(\n    \"resource\u002Fpath\",           \u002F\u002F subject\n    \"MyApp.Events.OrderCreated\", \u002F\u002F eventType\n    BinaryData.fromObject(new OrderData(\"order-123\", 99.99)), \u002F\u002F data\n    \"1.0\"                      \u002F\u002F dataVersion\n);\n\nclient.sendEvent(event);\n```\n\n### Publish Multiple Events\n\n```java\nList\u003CEventGridEvent> events = Arrays.asList(\n    new EventGridEvent(\"orders\u002F1\", \"Order.Created\", \n        BinaryData.fromObject(order1), \"1.0\"),\n    new EventGridEvent(\"orders\u002F2\", \"Order.Created\", \n        BinaryData.fromObject(order2), \"1.0\")\n);\n\nclient.sendEvents(events);\n```\n\n### Publish CloudEvent\n\n```java\nimport com.azure.core.models.CloudEvent;\nimport com.azure.core.models.CloudEventDataFormat;\n\nCloudEvent cloudEvent = new CloudEvent(\n    \"\u002Fmyapp\u002Forders\",           \u002F\u002F source\n    \"order.created\",           \u002F\u002F type\n    BinaryData.fromObject(orderData), \u002F\u002F data\n    CloudEventDataFormat.JSON  \u002F\u002F dataFormat\n);\ncloudEvent.setSubject(\"orders\u002F12345\");\ncloudEvent.setId(UUID.randomUUID().toString());\n\ncloudClient.sendEvent(cloudEvent);\n```\n\n### Publish CloudEvents Batch\n\n```java\nList\u003CCloudEvent> cloudEvents = Arrays.asList(\n    new CloudEvent(\"\u002Fapp\", \"event.type1\", BinaryData.fromString(\"data1\"), CloudEventDataFormat.JSON),\n    new CloudEvent(\"\u002Fapp\", \"event.type2\", BinaryData.fromString(\"data2\"), CloudEventDataFormat.JSON)\n);\n\ncloudClient.sendEvents(cloudEvents);\n```\n\n### Async Publishing\n\n```java\nasyncClient.sendEvent(event)\n    .subscribe(\n        unused -> System.out.println(\"Event sent successfully\"),\n        error -> System.err.println(\"Error: \" + error.getMessage())\n    );\n\n\u002F\u002F With multiple events\nasyncClient.sendEvents(events)\n    .doOnSuccess(unused -> System.out.println(\"All events sent\"))\n    .doOnError(error -> System.err.println(\"Failed: \" + error))\n    .block(); \u002F\u002F Block if needed\n```\n\n### Custom Event Data Class\n\n```java\npublic class OrderData {\n    private String orderId;\n    private double amount;\n    private String customerId;\n    \n    public OrderData(String orderId, double amount) {\n        this.orderId = orderId;\n        this.amount = amount;\n    }\n    \n    \u002F\u002F Getters and setters\n}\n\n\u002F\u002F Usage\nOrderData order = new OrderData(\"ORD-123\", 150.00);\nEventGridEvent event = new EventGridEvent(\n    \"orders\u002F\" + order.getOrderId(),\n    \"MyApp.Order.Created\",\n    BinaryData.fromObject(order),\n    \"1.0\"\n);\n```\n\n## Receiving Events\n\n### Parse EventGridEvent\n\n```java\nimport com.azure.messaging.eventgrid.EventGridEvent;\n\n\u002F\u002F From JSON string (e.g., webhook payload)\nString jsonPayload = \"[{\\\"id\\\": \\\"...\\\", ...}]\";\nList\u003CEventGridEvent> events = EventGridEvent.fromString(jsonPayload);\n\nfor (EventGridEvent event : events) {\n    System.out.println(\"Event Type: \" + event.getEventType());\n    System.out.println(\"Subject: \" + event.getSubject());\n    System.out.println(\"Event Time: \" + event.getEventTime());\n    \n    \u002F\u002F Get data\n    BinaryData data = event.getData();\n    OrderData orderData = data.toObject(OrderData.class);\n}\n```\n\n### Parse CloudEvent\n\n```java\nimport com.azure.core.models.CloudEvent;\n\nString cloudEventJson = \"[{\\\"specversion\\\": \\\"1.0\\\", ...}]\";\nList\u003CCloudEvent> cloudEvents = CloudEvent.fromString(cloudEventJson);\n\nfor (CloudEvent event : cloudEvents) {\n    System.out.println(\"Type: \" + event.getType());\n    System.out.println(\"Source: \" + event.getSource());\n    System.out.println(\"ID: \" + event.getId());\n    \n    MyEventData data = event.getData().toObject(MyEventData.class);\n}\n```\n\n### Handle System Events\n\n```java\nimport com.azure.messaging.eventgrid.systemevents.*;\n\nfor (EventGridEvent event : events) {\n    if (event.getEventType().equals(\"Microsoft.Storage.BlobCreated\")) {\n        StorageBlobCreatedEventData blobData = \n            event.getData().toObject(StorageBlobCreatedEventData.class);\n        System.out.println(\"Blob URL: \" + blobData.getUrl());\n    }\n}\n```\n\n## Event Grid Namespaces (MQTT\u002FPull)\n\n### Receive from Namespace Topic\n\n```java\nimport com.azure.messaging.eventgrid.namespaces.EventGridReceiverClient;\nimport com.azure.messaging.eventgrid.namespaces.EventGridReceiverClientBuilder;\nimport com.azure.messaging.eventgrid.namespaces.models.*;\n\nEventGridReceiverClient receiverClient = new EventGridReceiverClientBuilder()\n    .endpoint(\"\u003Cnamespace-endpoint>\")\n    .credential(new AzureKeyCredential(\"\u003Ckey>\"))\n    .topicName(\"my-topic\")\n    .subscriptionName(\"my-subscription\")\n    .buildClient();\n\n\u002F\u002F Receive events\nReceiveResult result = receiverClient.receive(10, Duration.ofSeconds(30));\n\nfor (ReceiveDetails detail : result.getValue()) {\n    CloudEvent event = detail.getEvent();\n    System.out.println(\"Event: \" + event.getType());\n    \n    \u002F\u002F Acknowledge the event\n    receiverClient.acknowledge(Arrays.asList(detail.getBrokerProperties().getLockToken()));\n}\n```\n\n### Reject or Release Events\n\n```java\n\u002F\u002F Reject (don't retry)\nreceiverClient.reject(Arrays.asList(lockToken));\n\n\u002F\u002F Release (retry later)\nreceiverClient.release(Arrays.asList(lockToken));\n\n\u002F\u002F Release with delay\nreceiverClient.release(Arrays.asList(lockToken), \n    new ReleaseOptions().setDelay(ReleaseDelay.BY_60_SECONDS));\n```\n\n## Error Handling\n\n```java\nimport com.azure.core.exception.HttpResponseException;\n\ntry {\n    client.sendEvent(event);\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\nEVENT_GRID_TOPIC_ENDPOINT=https:\u002F\u002F\u003Ctopic-name>.\u003Cregion>.eventgrid.azure.net\u002Fapi\u002Fevents  # Required for all auth methods\nEVENT_GRID_ACCESS_KEY=\u003Cyour-access-key>  # Only required for AzureKeyCredential auth\nAZURE_TOKEN_CREDENTIALS=prod  # Required only if DefaultAzureCredential is used in production\n```\n\n## Best Practices\n\n1. **Batch Events**: Send multiple events in one call when possible\n2. **Idempotency**: Include unique event IDs for deduplication\n3. **Schema Validation**: Use strongly-typed event data classes\n4. **Retry Logic**: Built-in, but consider dead-letter for failures\n5. **Event Size**: Keep events under 1MB (64KB for basic tier)\n\n## Trigger Phrases\n\n- \"Event Grid Java\"\n- \"publish events Azure\"\n- \"CloudEvent SDK\"\n- \"event-driven messaging\"\n- \"pub\u002Fsub Azure\"\n- \"webhook events\"\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"package":26,"version":27},"Microsoft","com.azure:azure-messaging-eventgrid","1.0.0","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill azure-eventgrid-java",{"tool":40,"command":41},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill azure-eventgrid-java",{"tool":43,"command":44},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill azure-eventgrid-java","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fazure-eventgrid-java\u002FSKILL.md",true,[48],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fexamples.md","REFERENCE","参考文档",14215,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fazure-eventgrid-java\u002Freferences\u002Fexamples.md",[55,63,70,77,84,92],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":62},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":62},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":62},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":62},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":62},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":62},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]