/eds-content-ops:eds-cicd-pipelinefrom eds-content-ops
Set up a GitHub Actions CI/CD pipeline for an AEM Edge Delivery Services project. Generates workflow YAML files for ESLint (Airbnb rules), Lighthouse CI performance testing, link validation, and automated preview/publish via the AEM Admin API. Fills the gap left by the absence of official CI/CD guidance for EDS projects.
Ships in eds-content-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Analyze an AEM Edge Delivery Services repository's structure, generate GitHub Actions workflow files for linting, performance testing, link validation, and automated preview/publish operations via the AEM Admin API. Produces production-ready YAML workflow files and configuration that integrate with EDS's Git-based deployment model.
This skill fetches external web pages for analysis. When fetching:
environment-management — manages the preview/live environments this pipeline deploys toperformance-budget — defines the Lighthouse thresholds this pipeline enforcesboilerplate-upgrade — after upgrading core files, re-run the CI pipeline to validateblock-testing — provides block-level test patterns that complement pipeline-level checksAEM Edge Delivery Services uses Git as its deployment mechanism. When code is pushed to the main branch, the AEM Code Sync bot detects the change and updates the live site — there is no build step, no webpack compilation, and no artifact deployment. This means traditional CI/CD concepts like "build the artifact and deploy it" do not apply. Instead, CI/CD for EDS focuses on quality gates: linting, performance regression testing, link validation, and optionally triggering preview/publish of content pages via the Admin API.
The AEM Admin API at admin.hlx.page provides programmatic access to preview and publish operations. A POST to https://admin.hlx.page/preview/{owner}/{repo}/{branch}/{path} triggers a preview update, and a POST to https://admin.hlx.page/live/{owner}/{repo}/{branch}/{path} triggers a publish. These endpoints accept an optional x-auth-token header for authenticated sites. This API allows CI pipelines to automate content invalidation after code changes.
EDS projects follow a specific JavaScript style: vanilla JS with ES modules, no bundler, no transpilation. The Airbnb ESLint config is the community standard, extended with EDS-specific rules (e.g., allowing document.querySelector patterns common in block decoration). CSS follows a strict custom-property-first approach with no preprocessors. These conventions mean linting configuration must be EDS-aware, not generic.
Before starting, create a checklist to track progress:
Examine the repository to understand the current state:
.github/workflows/, .eslintrc.*, lighthouserc.*, or any existing CI files. If workflows already exist, note them — the skill will extend, not overwrite.scripts/ (JS files), styles/ (CSS files), blocks/ (block directories with JS/CSS pairs), head.html, fstab.yaml, and optional tools/ or test/ directories.package.json. If one exists, note existing dependencies and scripts. If it does not exist, the pipeline will need to create one with dev dependencies for ESLint and Lighthouse CI.fstab.yaml for the SharePoint or Google Drive mountpoint — this determines the Admin API paths.Report findings before proceeding. If the repository does not look like an EDS project (no scripts/aem.js, no fstab.yaml), warn the user and confirm before continuing.
Create an ESLint configuration file (.eslintrc.json) with the Airbnb base config and EDS-specific overrides:
Key EDS overrides:
no-param-reassign for block parameters in block decoration functions — the standard EDS pattern export default function decorate(block) mutates the block element directly.import/extensions for .js — EDS uses explicit .js extensions in imports because there is no bundler to resolve them.import/no-unresolved — EDS uses bare paths resolved by the browser, not Node.no-restricted-syntax exceptions for for...of loops — common in EDS block iteration.env.browser: true — all EDS code runs in the browser.Create .eslintignore to exclude: node_modules/, scripts/aem.js, scripts/aem.css (these are Adobe-provided boilerplate files that should not be linted), and any vendor/ directories.
If package.json does not exist, generate one with eslint, eslint-config-airbnb-base, and eslint-plugin-import as dev dependencies.
Generate .github/workflows/lint.yaml:
name: Lint
on:
pull_request:
branches: [main]
push:
branches: [main]
Jobs:
npx eslint . against scripts/, blocks/, and any custom JS directories. Fail the check on any error. Warnings are allowed but reported.styles/ and blocks/**/*.css. Verify that all CSS custom properties referenced in component CSS are defined in styles/styles.css or styles/lazy-styles.css. This catches undefined variable references that cause silent rendering failures.head.html for well-formed HTML. Check that no inline <script> tags exist beyond the EDS boilerplate snippet. Check that no inline <style> tags exist beyond the CLS-prevention snippet.Each job runs on ubuntu-latest with Node 20. Use actions/cache to cache node_modules between runs.
Generate .github/workflows/lighthouse.yaml and .lighthouserc.json:
Workflow triggers: Run on pull requests to main and on a weekly schedule (to catch regressions from content changes).
Lighthouse CI configuration:
largest-contentful-paint <= 2500ms, cumulative-layout-shift <= 0.1, total-blocking-time <= 200msEDS-specific considerations:
hlx.page preview URL, not production — this avoids CDN cache effects and tests the actual code changes.https://{branch}--{repo}--{owner}.aem.page/--chrome-flags="--no-sandbox" for GitHub Actions compatibility.Generate a comment action that posts the Lighthouse scores as a PR comment using actions/github-script.
Generate .github/workflows/link-check.yaml:
Purpose: Crawl the preview site and validate all internal and external links. Broken links are a common EDS issue because content authors can create links in Google Docs or SharePoint that reference pages not yet published.
Configuration:
lychee-action or a similar link checker..html files in the repository for hardcoded links.hlx.page URL.Run triggers: On pull requests and on a weekly schedule to catch link rot.
Generate .github/workflows/preview-publish.yaml:
Purpose: After code merges to main, automatically trigger a preview update for affected pages via the AEM Admin API. This ensures that code changes (new blocks, CSS updates) are immediately reflected in the preview environment.
Workflow:
main, determine which paths were affected by the commit.POST to https://admin.hlx.page/preview/{owner}/{repo}/main/* to trigger a bulk preview update.POST to https://admin.hlx.page/live/{owner}/{repo}/main/*).Authentication: Use a GitHub Actions secret (AEM_ADMIN_TOKEN) for authenticated sites. Document how to obtain and set this token.
Rate limiting: The Admin API has rate limits. Batch requests and add a delay between calls. Use the bulk API endpoint (/*) when invalidating all pages after a significant code change.
Error handling: If the Admin API returns a non-200 status, retry once after 5 seconds. Log the response for debugging. Do not fail the workflow on Admin API errors — code deployment via Code Sync is independent.
Produce a recommended branch protection configuration document (not a workflow — branch protection is configured via GitHub settings or API):
Recommended rules for main:
eslint, lighthouse, link-check.Rationale: Since pushing to main triggers AEM Code Sync and updates the live site, main must be protected. All changes flow through pull requests with CI checks.
Provide the GitHub CLI commands to set these rules:
gh api repos/{owner}/{repo}/branches/main/protection --method PUT ...
Generate .github/workflows/pr-checks.yaml — a composite workflow that orchestrates all checks for pull requests:
https://{branch}--{repo}--{owner}.aem.page/.This gives PR reviewers a single place to see all CI results and access the preview.
Produce a docs/ci-cd-guide.md file covering:
AEM_ADMIN_TOKEN (if using authenticated Admin API calls), LHCI_GITHUB_APP_TOKEN (if using Lighthouse CI GitHub app).Produce a summary of everything generated:
| File | Purpose | Trigger |
|---|---|---|
.eslintrc.json | Airbnb ESLint config with EDS overrides | — |
.eslintignore | Excludes boilerplate and vendor files | — |
.lighthouserc.json | Lighthouse CI thresholds for EDS | — |
.github/workflows/lint.yaml | ESLint + CSS validation | PR, push to main |
.github/workflows/lighthouse.yaml | Lighthouse CI performance testing | PR, weekly |
.github/workflows/link-check.yaml | Broken link detection | PR, weekly |
.github/workflows/preview-publish.yaml | Admin API preview/publish automation | Push to main, release |
.github/workflows/pr-checks.yaml | Composite PR status check | PR |
docs/ci-cd-guide.md | Pipeline documentation | — |
Include a "Next Steps" section: install dependencies (npm install), configure secrets, enable branch protection, and run the first PR to validate the pipeline.
| Symptom | Cause | Fix |
|---|---|---|
ESLint fails on aem.js or aem.css | Boilerplate files not excluded from linting | Verify .eslintignore includes scripts/aem.js and scripts/aem.css |
| Lighthouse CI cannot reach the preview URL | Preview URL format incorrect or branch not yet synced | Verify URL pattern: https://{branch}--{repo}--{owner}.aem.page/; ensure Code Sync has processed the branch |
| Admin API returns 401 Unauthorized | Missing or invalid AEM_ADMIN_TOKEN secret | Generate a new token at admin.hlx.page and update the GitHub Actions secret |
| Link checker reports false positives on external links | Some sites block automated requests with 403 or CAPTCHA | Add the domain to the exclude list in the link check configuration |
| Workflows do not trigger on PR | Workflow files not on the default branch yet | Merge the workflow files to main first; GitHub Actions requires workflows to exist on the target branch |
main is deployment. Protect main accordingly. Every merge is a production release.hlx.page preview URLs for Lighthouse and link checking so tests reflect the current code, not cached CDN content.What SKILL.md sets; muted values are Claude Code's defaults
42 skills in this plugin
/accessibility-fixScan an AEM Edge Delivery Services page for WCAG 2.1 AA accessibility violations and generate specific fixes. Identifies missing alt text, heading hierarchy issues, link text problems, color contrast concerns, and EDS-specific accessibility patterns. Use when fixing accessibility issues, preparing for compliance audits, or remediating WCAG violations./aem-to-eds-migrationAssess and plan a migration from traditional AEM Sites to AEM Edge Delivery Services. Analyzes the source AEM site to inventory components, templates, content types, and integrations, then maps them to EDS equivalents and produces a migration feasibility report with effort estimates, risk areas, and a phased plan./Other plugins' skills for the same job
Generated from the plugin's indexed repository (focus-gts/eds-content-ops-skills) — no native marketplace selected
npx claudepluginhub p/focus-gts-eds-content-ops