[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M736FEPZYM2RA43N3VAFR4NR":3,"skill-same:01M736FEPZYM2RA43N3VAFR4NR":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M736FEPZYM2RA43N3VAFR4NR","replication",null,"Programmatic content publishing using AEM Cloud Service Replication API (com.day.cq.replication).\nCovers Replicator service, ReplicationOptions, status checks, and event handling.","kalash33\u002Fkstack","kalash33","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F90259149?v=4","01M7365X8Q0B73NYHA730SMZWN","Kalash Poddar","01M7365X9D0JK47C3Q0YCCK9Z2",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fadobe-content-distribution\u002Freplication\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: replication\nlicense: Apache-2.0\ndescription: |\n  Programmatic content publishing using AEM Cloud Service Replication API (com.day.cq.replication).\n  Covers Replicator service, ReplicationOptions, status checks, and event handling.\n---\n\n# AEM Cloud Service Replication API\n\nProgrammatic content publishing and unpublishing using the official AEM Replication API.\n\n## When to Use This Skill\n\nUse the Replication API for programmatic content distribution:\n- Custom OSGi services that publish content\n- Workflow process steps requiring activation\n- Automated publishing pipelines\n- Integration with external systems\n- Bulk operations (with proper constraints)\n\n**For UI-based publishing**, use Manage Publication or Quick Publish instead.\n\n## Official API Documentation\n\n**Javadoc**: https:\u002F\u002Fdeveloper.adobe.com\u002Fexperience-manager\u002Freference-materials\u002Fcloud-service\u002Fjavadoc\u002Fcom\u002Fday\u002Fcq\u002Freplication\u002Fpackage-summary.html\n\n**Key Classes**:\n- `com.day.cq.replication.Replicator` - Main replication service\n- `com.day.cq.replication.ReplicationOptions` - Configuration options\n- `com.day.cq.replication.ReplicationStatus` - Publication status\n- `com.day.cq.replication.ReplicationActionType` - Action types (ACTIVATE, DEACTIVATE, DELETE, TEST)\n\n## Architecture: How Replication Works in Cloud Service\n\nAEM Cloud Service uses **Sling Content Distribution** as the underlying transport mechanism:\n\n1. Author tier: Replication API call triggers content packaging\n2. Content is sent to Adobe Developer pipeline service (external to AEM runtime)\n3. Pipeline distributes to target tier (Publish or Preview)\n4. Target tier imports and activates content\n\n**Key Difference from AEM 6.x**: No direct JCR replication; content flows through external pipeline service.\n\n## Basic Replication: Single Path\n\n### Example: Activate a Page\n\n```java\nimport com.day.cq.replication.Replicator;\nimport com.day.cq.replication.ReplicationActionType;\nimport com.day.cq.replication.ReplicationException;\nimport org.osgi.service.component.annotations.Component;\nimport org.osgi.service.component.annotations.Reference;\nimport javax.jcr.Session;\n\n@Component(service = ContentPublisher.class)\npublic class ContentPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Activate a single page to Publish tier\n     *\u002F\n    public void publishPage(Session session, String pagePath) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath\n        );\n    }\n    \n    \u002F**\n     * Deactivate a page from Publish tier\n     *\u002F\n    public void unpublishPage(Session session, String pagePath) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.DEACTIVATE,\n            pagePath\n        );\n    }\n    \n    \u002F**\n     * Delete content from Publish tier\n     *\u002F\n    public void deleteFromPublish(Session session, String path) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.DELETE,\n            path\n        );\n    }\n}\n```\n\n### ReplicationActionType Values\n\n| Action Type | Description | Use Case |\n|-------------|-------------|----------|\n| `ACTIVATE` | Publish content to target tier | Make content live |\n| `DEACTIVATE` | Unpublish content from target tier | Remove from production |\n| `DELETE` | Delete content from target tier | Permanent removal |\n| `TEST` | Test replication connection | Health checks |\n| `INTERNAL_POLL` | Internal polling (reverse replication) | System use only |\n\n## Bulk Replication: Multiple Paths\n\n**CONSTRAINTS** (per [official Javadoc](https:\u002F\u002Fdeveloper.adobe.com\u002Fexperience-manager\u002Freference-materials\u002Fcloud-service\u002Fjavadoc\u002Fcom\u002Fday\u002Fcq\u002Freplication\u002FReplicator.html)):\n- **Recommended limit**: 100 paths per call for a transactional guarantee\n- **Above 100 paths**: the system automatically splits into multiple non-transactional chunks — no extra options needed\n- **Payload size**: 10 MB maximum (excluding binaries)\n\n> **Note**: `ReplicationOptions.setUseAtomicCalls()` is `@Deprecated` and marked \"no longer required\" in the Cloud Service Javadoc. Do **not** call it; the system handles auto-bucketing automatically.\n\n### Example: Bulk Activation\n\n```java\npublic class BulkPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Publish multiple pages.\n     * ≤100 paths → replicated atomically (transactional guarantee).\n     * >100 paths → system automatically splits into non-transactional chunks.\n     *\u002F\n    public void publishMultiplePages(Session session, String[] pagePaths) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePaths,\n            null  \u002F\u002F No options needed; system handles auto-bucketing above 100 paths\n        );\n    }\n}\n```\n\n**Best Practice**: For large hierarchical content trees, use the Tree Activation workflow step instead of custom code.\n\n## Publishing to Preview Tier\n\nThe Preview tier requires explicit agent filtering.\n\n### Example: Publish to Preview\n\n```java\nimport com.day.cq.replication.Agent;\nimport com.day.cq.replication.AgentFilter;\n\npublic class PreviewPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Publish to Preview tier only\n     *\u002F\n    public void publishToPreview(Session session, String pagePath) \n            throws ReplicationException {\n        \n        ReplicationOptions options = new ReplicationOptions();\n        \n        \u002F\u002F Filter to target Preview agent only\n        options.setFilter(new AgentFilter() {\n            @Override\n            public boolean isIncluded(Agent agent) {\n                return \"preview\".equals(agent.getId());\n            }\n        });\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath,\n            options\n        );\n    }\n    \n    \u002F**\n     * Publish to BOTH Preview and Publish tiers\n     *\u002F\n    public void publishToBothTiers(Session session, String pagePath) \n            throws ReplicationException {\n        \n        ReplicationOptions options = new ReplicationOptions();\n        \n        \u002F\u002F Include both preview and publish agents\n        options.setFilter(new AgentFilter() {\n            @Override\n            public boolean isIncluded(Agent agent) {\n                String agentId = agent.getId();\n                return \"preview\".equals(agentId) || \"publish\".equals(agentId);\n            }\n        });\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath,\n            options\n        );\n    }\n}\n```\n\n**Note**: Preview agent is disabled by default and must be configured in Cloud Manager.\n\n## Advanced Options: ReplicationOptions\n\n### Synchronous vs. Asynchronous Replication\n\n```java\npublic class SynchronousPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Synchronous replication (wait for completion)\n     *\u002F\n    public void publishSynchronously(Session session, String pagePath) \n            throws ReplicationException {\n        \n        ReplicationOptions options = new ReplicationOptions();\n        options.setSynchronous(true);  \u002F\u002F Block until complete\n        \n        \u002F\u002F Optional: Add listener for synchronous feedback\n        options.setListener(new ReplicationListener() {\n            @Override\n            public void onStart(ReplicationAction action) {\n                \u002F\u002F Called when replication starts\n            }\n            \n            @Override\n            public void onMessage(ReplicationLog.Level level, String message) {\n                \u002F\u002F Called for progress updates\n            }\n            \n            @Override\n            public void onEnd(ReplicationAction action, ReplicationResult result) {\n                \u002F\u002F Called when replication completes\n            }\n            \n            @Override\n            public void onError(ReplicationAction action, Exception error) {\n                \u002F\u002F Called if replication fails\n            }\n        });\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath,\n            options\n        );\n    }\n}\n```\n\n**Important**: `ReplicationListener` only works with synchronous replication.\n\n### Suppress Status Updates\n\n```java\n\u002F**\n * Replicate without updating replication metadata properties\n *\u002F\npublic void replicateWithoutStatusUpdate(Session session, String path) \n        throws ReplicationException {\n    \n    ReplicationOptions options = new ReplicationOptions();\n    options.setSuppressStatusUpdate(true);  \u002F\u002F Don't update cq:lastReplicated, etc.\n    \n    replicator.replicate(\n        session,\n        ReplicationActionType.ACTIVATE,\n        path,\n        options\n    );\n}\n```\n\n### Suppress Versioning\n\n```java\n\u002F**\n * Replicate without creating implicit versions\n *\u002F\npublic void replicateWithoutVersioning(Session session, String path) \n        throws ReplicationException {\n    \n    ReplicationOptions options = new ReplicationOptions();\n    options.setSuppressVersions(true);  \u002F\u002F Don't auto-version on replication\n    \n    replicator.replicate(\n        session,\n        ReplicationActionType.ACTIVATE,\n        path,\n        options\n    );\n}\n```\n\n## Checking Replication Status\n\n### Example: Check if Page is Published\n\n```java\nimport com.day.cq.replication.ReplicationStatus;\nimport org.apache.sling.api.resource.Resource;\n\npublic class StatusChecker {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Check if content is currently published\n     *\u002F\n    public boolean isPublished(Session session, String path) \n            throws ReplicationException {\n        \n        ReplicationStatus status = replicator.getReplicationStatus(session, path);\n        \n        if (status == null) {\n            return false;  \u002F\u002F No replication metadata\n        }\n        \n        return status.isActivated();\n    }\n    \n    \u002F**\n     * Get detailed replication information\n     *\u002F\n    public void printReplicationInfo(Session session, String path) \n            throws ReplicationException {\n        \n        ReplicationStatus status = replicator.getReplicationStatus(session, path);\n        \n        if (status != null) {\n            System.out.println(\"Activated: \" + status.isActivated());\n            System.out.println(\"Deactivated: \" + status.isDeactivated());\n            System.out.println(\"Last Published: \" + status.getLastPublished());\n            System.out.println(\"Published By: \" + status.getLastPublishedBy());\n            System.out.println(\"Last Action: \" + status.getLastReplicationAction());\n            System.out.println(\"Pending: \" + status.isPending());\n        }\n    }\n    \n    \u002F**\n     * Alternative: Adapt resource to ReplicationStatus\n     *\u002F\n    public boolean isPublished(Resource resource) {\n        ReplicationStatus status = resource.adaptTo(ReplicationStatus.class);\n        return status != null && status.isActivated();\n    }\n}\n```\n\n### Batch Status Queries\n\nUse `ReplicationStatusProvider.getBatchReplicationStatus()` when you need to check the publication state of multiple resources in a single call. It is more efficient than calling `Replicator.getReplicationStatus()` in a loop.\n\n**Javadoc**: `com.day.cq.replication.ReplicationStatusProvider`\n\n```java\nimport com.day.cq.replication.ReplicationStatus;\nimport com.day.cq.replication.ReplicationStatusProvider;\nimport org.apache.sling.api.resource.Resource;\nimport org.apache.sling.api.resource.ResourceResolver;\nimport org.osgi.service.component.annotations.Component;\nimport org.osgi.service.component.annotations.Reference;\n\n@Component(service = BatchStatusChecker.class)\npublic class BatchStatusChecker {\n\n    @Reference\n    private ReplicationStatusProvider replicationStatusProvider;\n\n    \u002F**\n     * Returns a map of path → ReplicationStatus for all given paths.\n     * Uses ReplicationStatusProvider.getBatchReplicationStatus(Resource...)\n     * which is more efficient than per-path Replicator.getReplicationStatus() calls.\n     *\u002F\n    public Map\u003CString, Boolean> checkPublishedState(ResourceResolver resolver, String[] paths) {\n        \u002F\u002F Resolve all paths to Resource objects\n        Resource[] resources = Arrays.stream(paths)\n            .map(resolver::getResource)\n            .filter(Objects::nonNull)\n            .toArray(Resource[]::new);\n\n        \u002F\u002F Single batch call — returns Map\u003Cpath, ReplicationStatus>\n        Map\u003CString, ReplicationStatus> statusMap =\n            replicationStatusProvider.getBatchReplicationStatus(resources);\n\n        Map\u003CString, Boolean> result = new LinkedHashMap\u003C>();\n        for (String path : paths) {\n            ReplicationStatus status = statusMap.get(path);\n            result.put(path, status != null && status.isActivated());\n        }\n        return result;\n    }\n}\n```\n\n**Required imports**:\n```java\nimport java.util.Arrays;\nimport java.util.LinkedHashMap;\nimport java.util.Map;\nimport java.util.Objects;\n```\n\n## Permission Checks\n\n### Example: Validate User Can Replicate\n\n```java\npublic class PermissionValidator {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Check if user has permission to replicate\n     *\u002F\n    public boolean canUserReplicate(Session session, String path) {\n        try {\n            replicator.checkPermission(\n                session,\n                ReplicationActionType.ACTIVATE,\n                path\n            );\n            return true;\n        } catch (ReplicationException e) {\n            \u002F\u002F User lacks permission\n            return false;\n        }\n    }\n    \n    \u002F**\n     * Validate before replicating\n     *\u002F\n    public void safeReplicate(Session session, String path) \n            throws ReplicationException {\n        \n        \u002F\u002F Check permission first\n        replicator.checkPermission(session, ReplicationActionType.ACTIVATE, path);\n        \n        \u002F\u002F Proceed with replication\n        replicator.replicate(session, ReplicationActionType.ACTIVATE, path);\n    }\n}\n```\n\n## Workflow Integration\n\n### Example: Workflow Process Step\n\n```java\nimport com.adobe.granite.workflow.WorkflowException;\nimport com.adobe.granite.workflow.WorkflowSession;\nimport com.adobe.granite.workflow.exec.WorkItem;\nimport com.adobe.granite.workflow.exec.WorkflowProcess;\nimport com.adobe.granite.workflow.metadata.MetaDataMap;\nimport org.osgi.service.component.annotations.Component;\n\n@Component(\n    service = WorkflowProcess.class,\n    property = {\n        \"process.label=Publish Content to Publish Tier\"\n    }\n)\npublic class PublishWorkflowProcess implements WorkflowProcess {\n    \n    @Reference\n    private Replicator replicator;\n    \n    @Override\n    public void execute(WorkItem workItem, WorkflowSession workflowSession, \n                       MetaDataMap args) throws WorkflowException {\n        \n        String payloadPath = workItem.getWorkflowData().getPayload().toString();\n        \n        try {\n            Session session = workflowSession.adaptTo(Session.class);\n            \n            replicator.replicate(\n                session,\n                ReplicationActionType.ACTIVATE,\n                payloadPath\n            );\n            \n        } catch (ReplicationException e) {\n            throw new WorkflowException(\"Failed to publish content\", e);\n        }\n    }\n}\n```\n\n**Process Arguments** (configured in workflow model):\n- Can use `MetaDataMap args` to pass custom parameters like target tier\n\n## Listening to Replication Events\n\nUse OSGi Event Handlers to react to replication events:\n\n```java\nimport org.osgi.service.component.annotations.Component;\nimport org.osgi.service.event.Event;\nimport org.osgi.service.event.EventHandler;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n@Component(\n    service = EventHandler.class,\n    property = {\n        org.osgi.service.event.EventConstants.EVENT_TOPIC + \"=\" + \"com\u002Fday\u002Fcq\u002Freplication\"\n    }\n)\npublic class ReplicationEventLogger implements EventHandler {\n    \n    private static final Logger LOG = LoggerFactory.getLogger(ReplicationEventLogger.class);\n    \n    @Override\n    public void handleEvent(Event event) {\n        String[] paths = (String[]) event.getProperty(\"paths\");\n        String action = (String) event.getProperty(\"action\");\n        String userId = (String) event.getProperty(\"userId\");\n        \n        if (paths != null) {\n            for (String path : paths) {\n                LOG.info(\"Replication: action={}, path={}, user={}\", action, path, userId);\n            }\n        }\n    }\n}\n```\n\n**Event Properties**:\n- `paths` - Array of replicated paths\n- `action` - Replication action (Activate, Deactivate, etc.)\n- `userId` - User who triggered replication\n\n## Best Practices\n\n### 1. Respect Rate Limits\n- ≤100 paths per call for transactional guarantee; system auto-splits if exceeded\n- ≤10 MB payload size\n\n### 2. Use Workflow for Large Operations\nDon't build custom bulk publishing code. Use Tree Activation workflow step.\n\n### 3. Validate Permissions\nAlways check permissions before replication to avoid exceptions.\n\n### 4. Handle Exceptions\n```java\ntry {\n    replicator.replicate(session, ReplicationActionType.ACTIVATE, path);\n} catch (ReplicationException e) {\n    LOG.error(\"Replication failed for path: \" + path, e);\n    \u002F\u002F Handle failure (retry, notify, etc.)\n}\n```\n\n### 5. Use Service Users\nNever replicate with admin credentials. Map a sub-service name to the principal that holds `crx:replicate`.\n\n**OSGi service user mapping**\n\nFile: `ui.config\u002Fsrc\u002Fmain\u002Fcontent\u002Fjcr_root\u002Fapps\u002Fmyapp\u002Fosgiconfig\u002Fconfig\u002Forg.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-myapp.cfg.json`\n\n```json\n{\n  \"user.mapping\": [\n    \"com.myapp.core:contentPublisher=myapp-replication-service\"\n  ]\n}\n```\n\n**Obtain the resolver in code**\n\n```java\n@Reference\nprivate ResourceResolverFactory resolverFactory;\n\nprivate ResourceResolver getServiceResolver() throws LoginException {\n    return resolverFactory.getServiceResourceResolver(\n        Map.of(ResourceResolverFactory.SUBSERVICE, \"contentPublisher\")\n    );\n}\n```\n\n> **Service user creation is out of scope here**: The principal `myapp-replication-service` must exist in the JCR with `jcr:read` + `crx:replicate` on `\u002Fcontent` before this mapping works. Service users in AEM Cloud Service are provisioned via **Repo Init scripts** which run **at deployment startup** (not as dynamic runtime config changes). This is a general AEM Cloud Service pattern — see [AEM Project Structure — Repo Init](https:\u002F\u002Fexperienceleague.adobe.com\u002Fen\u002Fdocs\u002Fexperience-manager-cloud-service\u002Fcontent\u002Fimplementing\u002Fdeveloping\u002Faem-project-content-package-structure#repo-init) for the full authoritative guide.\n\n### 6. Publish Only What's Needed\n\"It is always a good practice to only publish content that must be published.\"\n\n## Common Patterns\n\n### Pattern 1: Auto-Publish on Content Fragment Save\n\n```java\nimport org.apache.sling.api.SlingConstants;\nimport org.apache.sling.api.resource.ResourceResolverFactory;\n\n@Component(\n    service = EventHandler.class,\n    property = {\n        org.osgi.service.event.EventConstants.EVENT_TOPIC + \"=\" + \n            SlingConstants.TOPIC_RESOURCE_CHANGED\n    }\n)\npublic class AutoPublishContentFragmentHandler implements EventHandler {\n    \n    @Reference\n    private Replicator replicator;\n    \n    @Reference\n    private ResourceResolverFactory resolverFactory;\n    \n    @Override\n    public void handleEvent(Event event) {\n        String path = (String) event.getProperty(SlingConstants.PROPERTY_PATH);\n        \n        \u002F\u002F Only process content fragments\n        if (path != null && path.startsWith(\"\u002Fcontent\u002Fdam\") && \n            isContentFragment(path)) {\n            \n            try (ResourceResolver resolver = getServiceResolver()) {\n                Session session = resolver.adaptTo(Session.class);\n                replicator.replicate(\n                    session,\n                    ReplicationActionType.ACTIVATE,\n                    path\n                );\n            } catch (Exception e) {\n                LOG.error(\"Auto-publish failed\", e);\n            }\n        }\n    }\n    \n    private ResourceResolver getServiceResolver() throws Exception {\n        Map\u003CString, Object> param = Map.of(\n            ResourceResolverFactory.SUBSERVICE, \"contentPublisher\"\n        );\n        return resolverFactory.getServiceResourceResolver(param);\n    }\n    \n    private boolean isContentFragment(String path) {\n        \u002F\u002F Implementation to check if path is a content fragment\n        return true;\n    }\n}\n```\n\n### Pattern 2: External Cache Purge After Publication\n\n```java\n@Component(\n    service = EventHandler.class,\n    property = {\n        org.osgi.service.event.EventConstants.EVENT_TOPIC + \"=\" + \"com\u002Fday\u002Fcq\u002Freplication\"\n    }\n)\npublic class ExternalCachePurgeHandler implements EventHandler {\n    \n    @Reference\n    private HttpClient httpClient;\n    \n    @Override\n    public void handleEvent(Event event) {\n        String action = (String) event.getProperty(\"action\");\n        \n        if (\"Activate\".equals(action) || \"Deactivate\".equals(action)) {\n            String[] paths = (String[]) event.getProperty(\"paths\");\n            \n            if (paths != null) {\n                for (String path : paths) {\n                    purgeExternalCache(path);\n                }\n            }\n        }\n    }\n    \n    private void purgeExternalCache(String path) {\n        \u002F\u002F Call external CDN purge API\n        try {\n            HttpPost request = new HttpPost(\"https:\u002F\u002Fcdn.example.com\u002Fpurge\");\n            request.setHeader(\"Content-Type\", \"application\u002Fjson\");\n            request.setEntity(new StringEntity(\"{\\\"path\\\":\\\"\" + path + \"\\\"}\"));\n            httpClient.execute(request);\n        } catch (Exception e) {\n            LOG.error(\"Cache purge failed\", e);\n        }\n    }\n}\n```\n\n## Troubleshooting\n\n### Issue: Replication Fails Silently\n\n**Check**: Verify replication queues in Felix console (Sling Jobs console):\n```\nhttps:\u002F\u002Fauthor-p\u003CprogramId>-e\u003CenvId>.adobeaemcloud.com\u002Fsystem\u002Fconsole\u002Fslingjobs\n```\n\nLook for failed jobs with topic: `com\u002Fday\u002Fcq\u002Freplication`\n\n### Issue: Permission Errors\n\n**Error**: `javax.jcr.AccessDeniedException`\n\n**Solution**: Verify service user has replication permissions:\n```\n\u002Fcontent\u002Fmysite -> jcr:read, crx:replicate\n```\n\n### Issue: Content Not Appearing\n\n**Check**: \n1. Verify replication status: `replicator.getReplicationStatus()`\n2. Check logs for distribution errors\n3. Verify target tier (Preview vs. Publish)\n\n## References\n\n- **Official Javadoc**: https:\u002F\u002Fdeveloper.adobe.com\u002Fexperience-manager\u002Freference-materials\u002Fcloud-service\u002Fjavadoc\u002Fcom\u002Fday\u002Fcq\u002Freplication\u002Fpackage-summary.html\n- **Adobe Docs**: https:\u002F\u002Fexperienceleague.adobe.com\u002Fdocs\u002Fexperience-manager-cloud-service\u002Fcontent\u002Foperations\u002Freplication.html\n- **Sling Distribution**: https:\u002F\u002Fsling.apache.org\u002Fdocumentation\u002Fbundles\u002Fcontent-distribution.html\n","# AEM Cloud Service Replication API\n\nProgrammatic content publishing and unpublishing using the official AEM Replication API.\n\n## When to Use This Skill\n\nUse the Replication API for programmatic content distribution:\n- Custom OSGi services that publish content\n- Workflow process steps requiring activation\n- Automated publishing pipelines\n- Integration with external systems\n- Bulk operations (with proper constraints)\n\n**For UI-based publishing**, use Manage Publication or Quick Publish instead.\n\n## Official API Documentation\n\n**Javadoc**: https:\u002F\u002Fdeveloper.adobe.com\u002Fexperience-manager\u002Freference-materials\u002Fcloud-service\u002Fjavadoc\u002Fcom\u002Fday\u002Fcq\u002Freplication\u002Fpackage-summary.html\n\n**Key Classes**:\n- `com.day.cq.replication.Replicator` - Main replication service\n- `com.day.cq.replication.ReplicationOptions` - Configuration options\n- `com.day.cq.replication.ReplicationStatus` - Publication status\n- `com.day.cq.replication.ReplicationActionType` - Action types (ACTIVATE, DEACTIVATE, DELETE, TEST)\n\n## Architecture: How Replication Works in Cloud Service\n\nAEM Cloud Service uses **Sling Content Distribution** as the underlying transport mechanism:\n\n1. Author tier: Replication API call triggers content packaging\n2. Content is sent to Adobe Developer pipeline service (external to AEM runtime)\n3. Pipeline distributes to target tier (Publish or Preview)\n4. Target tier imports and activates content\n\n**Key Difference from AEM 6.x**: No direct JCR replication; content flows through external pipeline service.\n\n## Basic Replication: Single Path\n\n### Example: Activate a Page\n\n```java\nimport com.day.cq.replication.Replicator;\nimport com.day.cq.replication.ReplicationActionType;\nimport com.day.cq.replication.ReplicationException;\nimport org.osgi.service.component.annotations.Component;\nimport org.osgi.service.component.annotations.Reference;\nimport javax.jcr.Session;\n\n@Component(service = ContentPublisher.class)\npublic class ContentPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Activate a single page to Publish tier\n     *\u002F\n    public void publishPage(Session session, String pagePath) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath\n        );\n    }\n    \n    \u002F**\n     * Deactivate a page from Publish tier\n     *\u002F\n    public void unpublishPage(Session session, String pagePath) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.DEACTIVATE,\n            pagePath\n        );\n    }\n    \n    \u002F**\n     * Delete content from Publish tier\n     *\u002F\n    public void deleteFromPublish(Session session, String path) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.DELETE,\n            path\n        );\n    }\n}\n```\n\n### ReplicationActionType Values\n\n| Action Type | Description | Use Case |\n|-------------|-------------|----------|\n| `ACTIVATE` | Publish content to target tier | Make content live |\n| `DEACTIVATE` | Unpublish content from target tier | Remove from production |\n| `DELETE` | Delete content from target tier | Permanent removal |\n| `TEST` | Test replication connection | Health checks |\n| `INTERNAL_POLL` | Internal polling (reverse replication) | System use only |\n\n## Bulk Replication: Multiple Paths\n\n**CONSTRAINTS** (per [official Javadoc](https:\u002F\u002Fdeveloper.adobe.com\u002Fexperience-manager\u002Freference-materials\u002Fcloud-service\u002Fjavadoc\u002Fcom\u002Fday\u002Fcq\u002Freplication\u002FReplicator.html)):\n- **Recommended limit**: 100 paths per call for a transactional guarantee\n- **Above 100 paths**: the system automatically splits into multiple non-transactional chunks — no extra options needed\n- **Payload size**: 10 MB maximum (excluding binaries)\n\n> **Note**: `ReplicationOptions.setUseAtomicCalls()` is `@Deprecated` and marked \"no longer required\" in the Cloud Service Javadoc. Do **not** call it; the system handles auto-bucketing automatically.\n\n### Example: Bulk Activation\n\n```java\npublic class BulkPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Publish multiple pages.\n     * ≤100 paths → replicated atomically (transactional guarantee).\n     * >100 paths → system automatically splits into non-transactional chunks.\n     *\u002F\n    public void publishMultiplePages(Session session, String[] pagePaths) \n            throws ReplicationException {\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePaths,\n            null  \u002F\u002F No options needed; system handles auto-bucketing above 100 paths\n        );\n    }\n}\n```\n\n**Best Practice**: For large hierarchical content trees, use the Tree Activation workflow step instead of custom code.\n\n## Publishing to Preview Tier\n\nThe Preview tier requires explicit agent filtering.\n\n### Example: Publish to Preview\n\n```java\nimport com.day.cq.replication.Agent;\nimport com.day.cq.replication.AgentFilter;\n\npublic class PreviewPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Publish to Preview tier only\n     *\u002F\n    public void publishToPreview(Session session, String pagePath) \n            throws ReplicationException {\n        \n        ReplicationOptions options = new ReplicationOptions();\n        \n        \u002F\u002F Filter to target Preview agent only\n        options.setFilter(new AgentFilter() {\n            @Override\n            public boolean isIncluded(Agent agent) {\n                return \"preview\".equals(agent.getId());\n            }\n        });\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath,\n            options\n        );\n    }\n    \n    \u002F**\n     * Publish to BOTH Preview and Publish tiers\n     *\u002F\n    public void publishToBothTiers(Session session, String pagePath) \n            throws ReplicationException {\n        \n        ReplicationOptions options = new ReplicationOptions();\n        \n        \u002F\u002F Include both preview and publish agents\n        options.setFilter(new AgentFilter() {\n            @Override\n            public boolean isIncluded(Agent agent) {\n                String agentId = agent.getId();\n                return \"preview\".equals(agentId) || \"publish\".equals(agentId);\n            }\n        });\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath,\n            options\n        );\n    }\n}\n```\n\n**Note**: Preview agent is disabled by default and must be configured in Cloud Manager.\n\n## Advanced Options: ReplicationOptions\n\n### Synchronous vs. Asynchronous Replication\n\n```java\npublic class SynchronousPublisher {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Synchronous replication (wait for completion)\n     *\u002F\n    public void publishSynchronously(Session session, String pagePath) \n            throws ReplicationException {\n        \n        ReplicationOptions options = new ReplicationOptions();\n        options.setSynchronous(true);  \u002F\u002F Block until complete\n        \n        \u002F\u002F Optional: Add listener for synchronous feedback\n        options.setListener(new ReplicationListener() {\n            @Override\n            public void onStart(ReplicationAction action) {\n                \u002F\u002F Called when replication starts\n            }\n            \n            @Override\n            public void onMessage(ReplicationLog.Level level, String message) {\n                \u002F\u002F Called for progress updates\n            }\n            \n            @Override\n            public void onEnd(ReplicationAction action, ReplicationResult result) {\n                \u002F\u002F Called when replication completes\n            }\n            \n            @Override\n            public void onError(ReplicationAction action, Exception error) {\n                \u002F\u002F Called if replication fails\n            }\n        });\n        \n        replicator.replicate(\n            session,\n            ReplicationActionType.ACTIVATE,\n            pagePath,\n            options\n        );\n    }\n}\n```\n\n**Important**: `ReplicationListener` only works with synchronous replication.\n\n### Suppress Status Updates\n\n```java\n\u002F**\n * Replicate without updating replication metadata properties\n *\u002F\npublic void replicateWithoutStatusUpdate(Session session, String path) \n        throws ReplicationException {\n    \n    ReplicationOptions options = new ReplicationOptions();\n    options.setSuppressStatusUpdate(true);  \u002F\u002F Don't update cq:lastReplicated, etc.\n    \n    replicator.replicate(\n        session,\n        ReplicationActionType.ACTIVATE,\n        path,\n        options\n    );\n}\n```\n\n### Suppress Versioning\n\n```java\n\u002F**\n * Replicate without creating implicit versions\n *\u002F\npublic void replicateWithoutVersioning(Session session, String path) \n        throws ReplicationException {\n    \n    ReplicationOptions options = new ReplicationOptions();\n    options.setSuppressVersions(true);  \u002F\u002F Don't auto-version on replication\n    \n    replicator.replicate(\n        session,\n        ReplicationActionType.ACTIVATE,\n        path,\n        options\n    );\n}\n```\n\n## Checking Replication Status\n\n### Example: Check if Page is Published\n\n```java\nimport com.day.cq.replication.ReplicationStatus;\nimport org.apache.sling.api.resource.Resource;\n\npublic class StatusChecker {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Check if content is currently published\n     *\u002F\n    public boolean isPublished(Session session, String path) \n            throws ReplicationException {\n        \n        ReplicationStatus status = replicator.getReplicationStatus(session, path);\n        \n        if (status == null) {\n            return false;  \u002F\u002F No replication metadata\n        }\n        \n        return status.isActivated();\n    }\n    \n    \u002F**\n     * Get detailed replication information\n     *\u002F\n    public void printReplicationInfo(Session session, String path) \n            throws ReplicationException {\n        \n        ReplicationStatus status = replicator.getReplicationStatus(session, path);\n        \n        if (status != null) {\n            System.out.println(\"Activated: \" + status.isActivated());\n            System.out.println(\"Deactivated: \" + status.isDeactivated());\n            System.out.println(\"Last Published: \" + status.getLastPublished());\n            System.out.println(\"Published By: \" + status.getLastPublishedBy());\n            System.out.println(\"Last Action: \" + status.getLastReplicationAction());\n            System.out.println(\"Pending: \" + status.isPending());\n        }\n    }\n    \n    \u002F**\n     * Alternative: Adapt resource to ReplicationStatus\n     *\u002F\n    public boolean isPublished(Resource resource) {\n        ReplicationStatus status = resource.adaptTo(ReplicationStatus.class);\n        return status != null && status.isActivated();\n    }\n}\n```\n\n### Batch Status Queries\n\nUse `ReplicationStatusProvider.getBatchReplicationStatus()` when you need to check the publication state of multiple resources in a single call. It is more efficient than calling `Replicator.getReplicationStatus()` in a loop.\n\n**Javadoc**: `com.day.cq.replication.ReplicationStatusProvider`\n\n```java\nimport com.day.cq.replication.ReplicationStatus;\nimport com.day.cq.replication.ReplicationStatusProvider;\nimport org.apache.sling.api.resource.Resource;\nimport org.apache.sling.api.resource.ResourceResolver;\nimport org.osgi.service.component.annotations.Component;\nimport org.osgi.service.component.annotations.Reference;\n\n@Component(service = BatchStatusChecker.class)\npublic class BatchStatusChecker {\n\n    @Reference\n    private ReplicationStatusProvider replicationStatusProvider;\n\n    \u002F**\n     * Returns a map of path → ReplicationStatus for all given paths.\n     * Uses ReplicationStatusProvider.getBatchReplicationStatus(Resource...)\n     * which is more efficient than per-path Replicator.getReplicationStatus() calls.\n     *\u002F\n    public Map\u003CString, Boolean> checkPublishedState(ResourceResolver resolver, String[] paths) {\n        \u002F\u002F Resolve all paths to Resource objects\n        Resource[] resources = Arrays.stream(paths)\n            .map(resolver::getResource)\n            .filter(Objects::nonNull)\n            .toArray(Resource[]::new);\n\n        \u002F\u002F Single batch call — returns Map\u003Cpath, ReplicationStatus>\n        Map\u003CString, ReplicationStatus> statusMap =\n            replicationStatusProvider.getBatchReplicationStatus(resources);\n\n        Map\u003CString, Boolean> result = new LinkedHashMap\u003C>();\n        for (String path : paths) {\n            ReplicationStatus status = statusMap.get(path);\n            result.put(path, status != null && status.isActivated());\n        }\n        return result;\n    }\n}\n```\n\n**Required imports**:\n```java\nimport java.util.Arrays;\nimport java.util.LinkedHashMap;\nimport java.util.Map;\nimport java.util.Objects;\n```\n\n## Permission Checks\n\n### Example: Validate User Can Replicate\n\n```java\npublic class PermissionValidator {\n    \n    @Reference\n    private Replicator replicator;\n    \n    \u002F**\n     * Check if user has permission to replicate\n     *\u002F\n    public boolean canUserReplicate(Session session, String path) {\n        try {\n            replicator.checkPermission(\n                session,\n                ReplicationActionType.ACTIVATE,\n                path\n            );\n            return true;\n        } catch (ReplicationException e) {\n            \u002F\u002F User lacks permission\n            return false;\n        }\n    }\n    \n    \u002F**\n     * Validate before replicating\n     *\u002F\n    public void safeReplicate(Session session, String path) \n            throws ReplicationException {\n        \n        \u002F\u002F Check permission first\n        replicator.checkPermission(session, ReplicationActionType.ACTIVATE, path);\n        \n        \u002F\u002F Proceed with replication\n        replicator.replicate(session, ReplicationActionType.ACTIVATE, path);\n    }\n}\n```\n\n## Workflow Integration\n\n### Example: Workflow Process Step\n\n```java\nimport com.adobe.granite.workflow.WorkflowException;\nimport com.adobe.granite.workflow.WorkflowSession;\nimport com.adobe.granite.workflow.exec.WorkItem;\nimport com.adobe.granite.workflow.exec.WorkflowProcess;\nimport com.adobe.granite.workflow.metadata.MetaDataMap;\nimport org.osgi.service.component.annotations.Component;\n\n@Component(\n    service = WorkflowProcess.class,\n    property = {\n        \"process.label=Publish Content to Publish Tier\"\n    }\n)\npublic class PublishWorkflowProcess implements WorkflowProcess {\n    \n    @Reference\n    private Replicator replicator;\n    \n    @Override\n    public void execute(WorkItem workItem, WorkflowSession workflowSession, \n                       MetaDataMap args) throws WorkflowException {\n        \n        String payloadPath = workItem.getWorkflowData().getPayload().toString();\n        \n        try {\n            Session session = workflowSession.adaptTo(Session.class);\n            \n            replicator.replicate(\n                session,\n                ReplicationActionType.ACTIVATE,\n                payloadPath\n            );\n            \n        } catch (ReplicationException e) {\n            throw new WorkflowException(\"Failed to publish content\", e);\n        }\n    }\n}\n```\n\n**Process Arguments** (configured in workflow model):\n- Can use `MetaDataMap args` to pass custom parameters like target tier\n\n## Listening to Replication Events\n\nUse OSGi Event Handlers to react to replication events:\n\n```java\nimport org.osgi.service.component.annotations.Component;\nimport org.osgi.service.event.Event;\nimport org.osgi.service.event.EventHandler;\nimport org.slf4j.Logger;\nimport org.slf4j.LoggerFactory;\n\n@Component(\n    service = EventHandler.class,\n    property = {\n        org.osgi.service.event.EventConstants.EVENT_TOPIC + \"=\" + \"com\u002Fday\u002Fcq\u002Freplication\"\n    }\n)\npublic class ReplicationEventLogger implements EventHandler {\n    \n    private static final Logger LOG = LoggerFactory.getLogger(ReplicationEventLogger.class);\n    \n    @Override\n    public void handleEvent(Event event) {\n        String[] paths = (String[]) event.getProperty(\"paths\");\n        String action = (String) event.getProperty(\"action\");\n        String userId = (String) event.getProperty(\"userId\");\n        \n        if (paths != null) {\n            for (String path : paths) {\n                LOG.info(\"Replication: action={}, path={}, user={}\", action, path, userId);\n            }\n        }\n    }\n}\n```\n\n**Event Properties**:\n- `paths` - Array of replicated paths\n- `action` - Replication action (Activate, Deactivate, etc.)\n- `userId` - User who triggered replication\n\n## Best Practices\n\n### 1. Respect Rate Limits\n- ≤100 paths per call for transactional guarantee; system auto-splits if exceeded\n- ≤10 MB payload size\n\n### 2. Use Workflow for Large Operations\nDon't build custom bulk publishing code. Use Tree Activation workflow step.\n\n### 3. Validate Permissions\nAlways check permissions before replication to avoid exceptions.\n\n### 4. Handle Exceptions\n```java\ntry {\n    replicator.replicate(session, ReplicationActionType.ACTIVATE, path);\n} catch (ReplicationException e) {\n    LOG.error(\"Replication failed for path: \" + path, e);\n    \u002F\u002F Handle failure (retry, notify, etc.)\n}\n```\n\n### 5. Use Service Users\nNever replicate with admin credentials. Map a sub-service name to the principal that holds `crx:replicate`.\n\n**OSGi service user mapping**\n\nFile: `ui.config\u002Fsrc\u002Fmain\u002Fcontent\u002Fjcr_root\u002Fapps\u002Fmyapp\u002Fosgiconfig\u002Fconfig\u002Forg.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-myapp.cfg.json`\n\n```json\n{\n  \"user.mapping\": [\n    \"com.myapp.core:contentPublisher=myapp-replication-service\"\n  ]\n}\n```\n\n**Obtain the resolver in code**\n\n```java\n@Reference\nprivate ResourceResolverFactory resolverFactory;\n\nprivate ResourceResolver getServiceResolver() throws LoginException {\n    return resolverFactory.getServiceResourceResolver(\n        Map.of(ResourceResolverFactory.SUBSERVICE, \"contentPublisher\")\n    );\n}\n```\n\n> **Service user creation is out of scope here**: The principal `myapp-replication-service` must exist in the JCR with `jcr:read` + `crx:replicate` on `\u002Fcontent` before this mapping works. Service users in AEM Cloud Service are provisioned via **Repo Init scripts** which run **at deployment startup** (not as dynamic runtime config changes). This is a general AEM Cloud Service pattern — see [AEM Project Structure — Repo Init](https:\u002F\u002Fexperienceleague.adobe.com\u002Fen\u002Fdocs\u002Fexperience-manager-cloud-service\u002Fcontent\u002Fimplementing\u002Fdeveloping\u002Faem-project-content-package-structure#repo-init) for the full authoritative guide.\n\n### 6. Publish Only What's Needed\n\"It is always a good practice to only publish content that must be published.\"\n\n## Common Patterns\n\n### Pattern 1: Auto-Publish on Content Fragment Save\n\n```java\nimport org.apache.sling.api.SlingConstants;\nimport org.apache.sling.api.resource.ResourceResolverFactory;\n\n@Component(\n    service = EventHandler.class,\n    property = {\n        org.osgi.service.event.EventConstants.EVENT_TOPIC + \"=\" + \n            SlingConstants.TOPIC_RESOURCE_CHANGED\n    }\n)\npublic class AutoPublishContentFragmentHandler implements EventHandler {\n    \n    @Reference\n    private Replicator replicator;\n    \n    @Reference\n    private ResourceResolverFactory resolverFactory;\n    \n    @Override\n    public void handleEvent(Event event) {\n        String path = (String) event.getProperty(SlingConstants.PROPERTY_PATH);\n        \n        \u002F\u002F Only process content fragments\n        if (path != null && path.startsWith(\"\u002Fcontent\u002Fdam\") && \n            isContentFragment(path)) {\n            \n            try (ResourceResolver resolver = getServiceResolver()) {\n                Session session = resolver.adaptTo(Session.class);\n                replicator.replicate(\n                    session,\n                    ReplicationActionType.ACTIVATE,\n                    path\n                );\n            } catch (Exception e) {\n                LOG.error(\"Auto-publish failed\", e);\n            }\n        }\n    }\n    \n    private ResourceResolver getServiceResolver() throws Exception {\n        Map\u003CString, Object> param = Map.of(\n            ResourceResolverFactory.SUBSERVICE, \"contentPublisher\"\n        );\n        return resolverFactory.getServiceResourceResolver(param);\n    }\n    \n    private boolean isContentFragment(String path) {\n        \u002F\u002F Implementation to check if path is a content fragment\n        return true;\n    }\n}\n```\n\n### Pattern 2: External Cache Purge After Publication\n\n```java\n@Component(\n    service = EventHandler.class,\n    property = {\n        org.osgi.service.event.EventConstants.EVENT_TOPIC + \"=\" + \"com\u002Fday\u002Fcq\u002Freplication\"\n    }\n)\npublic class ExternalCachePurgeHandler implements EventHandler {\n    \n    @Reference\n    private HttpClient httpClient;\n    \n    @Override\n    public void handleEvent(Event event) {\n        String action = (String) event.getProperty(\"action\");\n        \n        if (\"Activate\".equals(action) || \"Deactivate\".equals(action)) {\n            String[] paths = (String[]) event.getProperty(\"paths\");\n            \n            if (paths != null) {\n                for (String path : paths) {\n                    purgeExternalCache(path);\n                }\n            }\n        }\n    }\n    \n    private void purgeExternalCache(String path) {\n        \u002F\u002F Call external CDN purge API\n        try {\n            HttpPost request = new HttpPost(\"https:\u002F\u002Fcdn.example.com\u002Fpurge\");\n            request.setHeader(\"Content-Type\", \"application\u002Fjson\");\n            request.setEntity(new StringEntity(\"{\\\"path\\\":\\\"\" + path + \"\\\"}\"));\n            httpClient.execute(request);\n        } catch (Exception e) {\n            LOG.error(\"Cache purge failed\", e);\n        }\n    }\n}\n```\n\n## Troubleshooting\n\n### Issue: Replication Fails Silently\n\n**Check**: Verify replication queues in Felix console (Sling Jobs console):\n```\nhttps:\u002F\u002Fauthor-p\u003CprogramId>-e\u003CenvId>.adobeaemcloud.com\u002Fsystem\u002Fconsole\u002Fslingjobs\n```\n\nLook for failed jobs with topic: `com\u002Fday\u002Fcq\u002Freplication`\n\n### Issue: Permission Errors\n\n**Error**: `javax.jcr.AccessDeniedException`\n\n**Solution**: Verify service user has replication permissions:\n```\n\u002Fcontent\u002Fmysite -> jcr:read, crx:replicate\n```\n\n### Issue: Content Not Appearing\n\n**Check**: \n1. Verify replication status: `replicator.getReplicationStatus()`\n2. Check logs for distribution errors\n3. Verify target tier (Preview vs. Publish)\n\n## References\n\n- **Official Javadoc**: https:\u002F\u002Fdeveloper.adobe.com\u002Fexperience-manager\u002Freference-materials\u002Fcloud-service\u002Fjavadoc\u002Fcom\u002Fday\u002Fcq\u002Freplication\u002Fpackage-summary.html\n- **Adobe Docs**: https:\u002F\u002Fexperienceleague.adobe.com\u002Fdocs\u002Fexperience-manager-cloud-service\u002Fcontent\u002Foperations\u002Freplication.html\n- **Sling Distribution**: https:\u002F\u002Fsling.apache.org\u002Fdocumentation\u002Fbundles\u002Fcontent-distribution.html\n",{"name":5,"license":15,"description":7},"main","b30820b3248f6676d5389f0ccabd4e5250c9c536","skills\u002Fadobe-content-distribution\u002Freplication","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack","https:\u002F\u002Fgithub.com\u002Fkalash33","kalashpoddar.me","Tech-savvy Full Stack Developer 🚀 | Cybersecurity enthusiast 🔒 | Passionate about innovation and securing the digital world 🌐 | Let's code securely! 💻🔐","2026-05-20 04:11:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add kalash33\u002Fkstack --skill replication",{"tool":38,"command":39},"bunx","bunx skills add kalash33\u002Fkstack --skill replication",{"tool":41,"command":42},"pnpm","pnpm dlx skills add kalash33\u002Fkstack --skill replication","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fadobe-content-distribution\u002Freplication\u002FSKILL.md",true,[],[47,55,62,69,76,83],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M73CFERCR43JCAP606E41EFB","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 reacti...","MIT","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"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":51,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M73CFCMFVTAQEMTZ5HR10X8V","zoom-automation","Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-automation\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M73CFAA7EBWXJVXDQ1X555MB","zoho-crm-automation","Automate Zoho CRM tasks via Rube MCP (Composio): create\u002Fupdate records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzoho-crm-automation\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M73CF80XCM9K81567MJ8QZFW","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzod-validation-expert\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M73CF4YPMF3RA8ZJDXZSMD93","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":51,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M73CF2S25EN3XNAMKY47XHPS","zendesk-automation","Automate Zendesk tasks via Rube MCP (Composio): tickets, users, organizations, replies. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002Fkalash33\u002Fkstack\u002Fblob\u002Fmain\u002Fskills\u002Fzendesk-automation\u002FSKILL.md",[],[]]