/eds-content-ops:boilerplate-upgradefrom eds-content-ops
Safely update aem.js, aem.css, and other core AEM Edge Delivery Services boilerplate files when Adobe releases new versions. Analyzes current customizations, compares against the latest boilerplate release, identifies conflicts, and produces a safe upgrade plan with merge ordering and rollback steps. Addresses the documented practitioner pain point of fragile upgrade paths caused by modifications to core files.
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 project's current boilerplate files against the latest upstream release from github.com/adobe/aem-boilerplate, identify customizations that may conflict with the upgrade, and produce a safe, ordered upgrade plan with before/after diffs, merge instructions, and rollback steps. Ensures no customization is lost during the upgrade.
This skill fetches external web pages for analysis. When fetching:
aem.js, aem.css) were accidentally modified and need to be reconciled.eds-cicd-pipeline — run the CI pipeline after upgrading to validate nothing brokeperformance-budget — verify performance metrics are maintained after the upgradeblock-testing — test that existing blocks still function correctly with the new boilerplatego-live-checklist — if upgrading before launch, include the upgrade in the go-live validationThe AEM EDS boilerplate (github.com/adobe/aem-boilerplate) provides the foundational files that every EDS project starts from. The core files include scripts/aem.js (the EDS runtime library, sometimes referenced as lib-aem.js), scripts/aem.css (base styles for the runtime), scripts/scripts.js (the main project script that orchestrates loading), styles/styles.css (project-level styles), head.html (the HTML <head> template), and 404.html (the error page). Adobe periodically updates the boilerplate with performance improvements, new features, bug fixes, and API changes.
The upgrade challenge is well-documented in the EDS practitioner community (pain point #10 from research). Teams commonly modify scripts/scripts.js to add custom loading logic, decorate additional elements, or integrate third-party services. They modify styles/styles.css to define design tokens (CSS custom properties) and global styles. They modify head.html to include custom metadata, analytics snippets, or preconnect hints. These modifications are necessary and expected — but they create a fragile upgrade path because there is no automated merge mechanism. When Adobe releases a new boilerplate, teams must manually diff their customized files against the new versions and carefully reapply their changes.
The safest upgrade approach treats core library files (aem.js, aem.css) differently from project customization files (scripts.js, styles.css, head.html). Library files should ideally never be modified directly — they can be replaced wholesale with the new version. Project files contain legitimate customizations that must be preserved through a three-way merge: the old boilerplate version, the project's customized version, and the new boilerplate version. This skill automates that analysis.
Before starting, create a checklist to track progress:
Determine which version of the boilerplate the project is based on:
scripts/aem.js from the project and compare it against known boilerplate releases. The aem.js file typically contains a version comment or can be identified by its SHA hash.package.json for any boilerplate version metadata (some projects track this explicitly)..boilerplate-version file — some teams create this as a tracking mechanism.If the version cannot be determined precisely, fall back to a direct comparison: fetch the earliest available boilerplate release and the latest, then determine which the project's aem.js most closely matches.
Record the current version (or best estimate) — this is the baseline for the three-way diff.
Retrieve the latest version of each core file from the upstream boilerplate:
Clone or fetch from github.com/adobe/aem-boilerplate. Use the main branch (which is the latest release) or a specific tagged release if the user specifies a target version.
Retrieve these specific files:
scripts/aem.js — the EDS runtime libraryscripts/aem.css — base runtime stylesscripts/scripts.js — the default project scriptstyles/styles.css — the default project styleshead.html — the HTML head template404.html — the error pagescripts/delayed.js — the delayed loading script (if present in the latest version)fstab.yaml — the content source configuration templateNote the release date and any release notes. Adobe sometimes publishes changelog information in the boilerplate repository's commit history or README.
If the fetch fails (network issues, repository changes), ask the user to provide the target boilerplate files manually.
For each core file, produce a three-way comparison:
| File | Old Boilerplate (baseline) | Project's Current Version | New Boilerplate (target) |
|---|---|---|---|
scripts/aem.js | From Step 1 | From project repo | From Step 2 |
scripts/aem.css | From Step 1 | From project repo | From Step 2 |
scripts/scripts.js | From Step 1 | From project repo | From Step 2 |
styles/styles.css | From Step 1 | From project repo | From Step 2 |
head.html | From Step 1 | From project repo | From Step 2 |
404.html | From Step 1 | From project repo | From Step 2 |
For each file, compute:
Present a summary table:
| File | Upstream Changes | Project Customizations | Conflicts | Risk Level |
|---|---|---|---|---|
aem.js | 12 lines | 0 lines | None | Low — safe to replace |
scripts.js | 8 lines | 45 lines | 3 regions | High — manual merge needed |
Categorize each file into one of three upgrade strategies:
Files where the project's version is identical to the old boilerplate version. These can be replaced wholesale with the new version.
Typical Category A files: aem.js, aem.css, 404.html. These should not have been modified from the boilerplate — if they were, flag this as a practice issue and recommend extracting the customizations before replacing.
Files where both Adobe and the project made changes, but in different regions. A straightforward merge is possible.
Typical Category B files: scripts.js where the project added custom decorations in loadEager() or loadLazy() and Adobe changed a different function.
Files where both Adobe and the project modified the same lines or code regions. Manual intervention is needed.
Typical Category C files: scripts.js if the project modified the loadEager() function and Adobe also changed it. head.html if the project added custom elements in the same region Adobe restructured.
Report the classification clearly before proceeding to the upgrade plan.
For each Category C file, provide a detailed conflict analysis:
loadEager()", "Added analytics snippet to head.html").loadEager() to improve LCP", "Updated CSP headers in head.html").For each recommendation, explain the reasoning and the risk of each option.
Produce an ordered, step-by-step upgrade plan:
git checkout -b boilerplate-upgrade-{version}.Execute file upgrades in this specific order to minimize breakage:
aem.css — Replace with new version. This file has no JavaScript dependencies and minimal risk.aem.js — Replace with new version. Other scripts depend on functions exported from aem.js, so update it early.scripts/scripts.js — Apply the merge (Category B or C resolution). This is the highest-risk file because it orchestrates all loading.styles/styles.css — Apply the merge. CSS custom property names may have changed, which affects all downstream styles.head.html — Apply the merge. Changes here affect every page on the site.404.html — Replace or merge. Low risk but visible to users.delayed.js — Replace or merge if present.After each file, run a quick smoke test (load the homepage in preview) before proceeding to the next file. This isolates which file caused a breakage.
If the upgrade causes critical issues:
git checkout main -- scripts/aem.js scripts/aem.css to restore individual files.git revert HEAD to undo the entire upgrade commit.git checkout main and delete the upgrade branch entirely.For each file being upgraded, generate a clear diff showing exactly what will change in the project:
--- a/scripts/scripts.js (current project version)
+++ b/scripts/scripts.js (after upgrade)
@@ -15,8 +15,10 @@
// Lines of context...
- old line that will change
+ new line after upgrade
For Category A files (full replacements), note: "This file will be replaced entirely with the upstream version. No project customizations exist."
For Category B and C files, annotate each change:
[UPSTREAM] — change comes from Adobe's new version.[PRESERVED] — project customization being kept.[MERGED] — combined change from both sources.[RESOLVED] — conflict that was manually resolved (include rationale).Generate a post-upgrade validation checklist:
aem.page)delayed.js still fire after 3+ secondsloading="lazy" on above-the-fold imagesstyles.css are still appliedloadEager() or loadLazy() logic still executesProduce a complete upgrade summary:
| Metric | Value |
|---|---|
| Current boilerplate version | {identified version or date} |
| Target boilerplate version | {latest version or date} |
| Files to replace (Category A) | {count} |
| Files to merge (Category B) | {count} |
| Files with conflicts (Category C) | {count} |
| Total conflicts to resolve | {count} |
| Estimated effort | {Low/Medium/High} |
| Risk level | {Low/Medium/High} |
| File | Strategy | Changes | Conflicts | Risk |
|---|---|---|---|---|
aem.js | Replace | {n} upstream lines | None | Low |
aem.css | Replace | {n} upstream lines | None | Low |
scripts.js | Merge | {n} upstream + {n} project | {n} conflicts | {level} |
styles.css | Merge | {n} upstream + {n} project | {n} conflicts | {level} |
head.html | Merge | {n} upstream + {n} project | {n} conflicts | {level} |
404.html | Replace | {n} upstream lines | None | Low |
.boilerplate-version file to track the version for future upgrades.aem.js and aem.css — extract customizations into separate files that import from the core library.| Symptom | Cause | Fix |
|---|---|---|
aem.js functions are undefined after upgrade | The new aem.js changed exported function names or signatures | Check the new aem.js exports; update references in scripts.js to match the new API |
Styles broken after replacing aem.css | Project CSS relied on classes or selectors defined in the old aem.css | Diff the old and new aem.css; add any removed selectors to styles.css as project overrides |
Blocks stop loading after scripts.js upgrade | The loadBlock() or decorateBlock() API changed | Check if the block loading mechanism changed; update block decorate() function signatures if needed |
| CLS regression after upgrade | Font fallback size-adjust values changed or were removed | Verify styles.css still includes size-adjust fallback fonts matching the new boilerplate's expectations |
head.html changes not reflected | Browser cache or CDN cache serving the old head.html | Clear browser cache; trigger Admin API preview invalidation; check CDN headers |
aem.js or aem.css directly. These are library files. If you need to override behavior, do it in scripts.js or styles.css. This makes upgrades trivial for the core library files — just replace them.main. Use a dedicated branch, run the full validation checklist, and merge via PR with CI checks..boilerplate-version file or Git tag). Without this baseline, future upgrades require manual comparison.aem.css and aem.js first (foundations), then scripts.js (orchestration), then styles.css and head.html (presentation). This isolates breakage to the correct layer.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