/eds-content-ops:eds-project-healthfrom eds-content-ops
Audit an AEM Edge Delivery Services project's codebase for best practices, boilerplate currency, CSS scoping issues, block structure quality, performance patterns, and configuration health. Produces a weighted composite grade and prioritized fix list. Use when onboarding to an existing project, preparing for launch, or performing periodic codebase hygiene checks.
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.
Audit an AEM Edge Delivery Services project's entire codebase against structural conventions, boilerplate currency, CSS scoping discipline, block quality, performance patterns, and configuration correctness. Produce a weighted composite health grade (A-F) with prioritized findings and concrete remediation steps for each issue discovered.
This skill analyzes local project files and may fetch external URLs for comparison. When fetching:
content-audit instead).boilerplate-upgrade instead).cwv-optimizer instead).code-review instead).content-audit — audits published page content; this skill audits the project codebaseboilerplate-upgrade — handles the actual upgrade process; this skill identifies whether an upgrade is neededcwv-optimizer — optimizes specific CWV issues; this skill identifies project-level patterns that cause CWV problemscode-review — reviews individual PRs; this skill reviews the entire project holisticallyAn AEM Edge Delivery Services project follows a convention-over-configuration architecture. The standard layout includes blocks/ (component implementations), scripts/ (core library and orchestration), styles/ (global styling), and root-level configuration files (fstab.yaml, head.html, optionally helix-query.yaml). Each block lives in its own subdirectory under blocks/ with a matching .js and .css file pair.
Projects fork from the official boilerplate at github.com/adobe/aem-boilerplate. The boilerplate provides two core files — scripts/aem.js and scripts/aem.css — containing the EDS runtime (block loading, section decoration, image optimization, performance instrumentation). These files are updated from upstream but never modified locally. Project-specific customization goes into scripts/scripts.js (orchestration), scripts/delayed.js (deferred loading), and styles/styles.css (global theming via CSS custom properties).
EDS uses an Eager-Lazy-Delayed (E-L-D) three-phase loading model central to its performance. Eager loads only what the initial viewport needs. Lazy loads remaining blocks as they enter the viewport. Delayed (3+ seconds post-load) handles analytics, consent managers, and non-critical scripts. Violating this model directly impacts Core Web Vitals. EDS provides no built-in CSS scoping — every block's stylesheet is global, making disciplined selector namespacing a developer responsibility.
Before starting, create a todo list to track progress through these steps. Update the status of each item as you complete it.
Check for the expected EDS project layout:
blocks/ directory with block subdirectoriesscripts/aem.js and scripts/aem.css (core library)scripts/scripts.js (project orchestration)scripts/delayed.js (delayed loading phase)styles/styles.css (global styles)head.html (document head injection)fstab.yaml (content source configuration)helix-query.yaml (query index configuration) — optional but commonpaths.yaml or redirects.xlsx/.json (URL management).eslintrc.js or equivalent linting config (.eslintrc.json, .eslintrc.cjs, eslint.config.js)package.json (project metadata and scripts)Flag:
components/ instead of blocks/, lib/ instead of scripts/)node_modules/ committed to the repositorySeverity: CRITICAL for missing scripts/aem.js or fstab.yaml. HIGH for missing scripts/scripts.js or styles/styles.css. MEDIUM for missing optional files. LOW for non-standard extras.
Compare the project's core files against the latest adobe/aem-boilerplate:
scripts/aem.js and check for version indicators — look for the window.hlx.RUM_GENERATION value, the presence of specific utility functions (createOptimizedPicture, loadCSS, loadScript, sampleRUM, fetchPlaceholders, getMetadata, toCamelCase, toClassName), and function signatures that have changed between versions.scripts/aem.css has been modified from its original (it should contain only the EDS runtime styles — section/block visibility, picture element handling, and button styling).head.html follows current boilerplate patterns (script/module loading, rum instrumentation snippet).Known version indicators:
RUM_GENERATION, uses older decorateBlock signatureRUM_GENERATION introduced, sampleRUM refactoredcreateOptimizedPicture updated with breakpoints parameter supportloadBlock with error boundariesfetchPlaceholders with caching, updated font loading utilitiesSeverity: HIGH if more than 2 major versions behind. MEDIUM if 1 version behind. LOW if current.
Check if these files have been modified from their boilerplate originals (modifying core files is the most common and most damaging EDS mistake — it creates fragile upgrade paths and subtle bugs):
scripts/aem.js — should NEVER be modified. Any customization belongs in scripts/scripts.js.scripts/aem.css — should NEVER be modified. Any style overrides belong in styles/styles.css.scripts/scripts.js — expected to be customized, but audit for anti-patterns.Anti-patterns in scripts/scripts.js:
document.write or synchronous XMLHttpRequest (blocks the main thread)loadEager, loadLazy, loadDelayed functions)sampleRUM calls (performance monitoring will be blind)await on non-critical operations in the eager phase (delays LCP)document.head directly instead of using head.htmlDOMContentLoaded or window.onload listeners (breaks the E-L-D model)Severity: CRITICAL if aem.js or aem.css are modified. HIGH for eager-phase anti-patterns. MEDIUM for other issues.
EDS has no built-in CSS scoping — every block's CSS is loaded globally, so a poorly scoped selector can break other blocks and the page skeleton. Audit for:
h2 { } instead of .blockname h2 { })p { margin: 0; })!important — almost always a symptom of a scoping conflict rather than a legitimate override.wrapper, .container, .content)min-width media queries is the EDS convention)styles/styles.css for proper use of CSS custom properties on :root for themingbody main .section .block-name .wrapper div > p)For each unscoped selector found, report:
h2 { } becomes .hero h2 { })Severity: HIGH for unscoped selectors targeting common elements (h1-h6, p, a, img, ul, ol, li, table). MEDIUM for unscoped selectors on less common elements. LOW for !important usage on already-scoped selectors.
For each block directory in blocks/:
.js and .css file with names matching the directory namedecorate(block) function (the entry point EDS calls)decorate guard against a missing or empty block element?createElement calls suggests the block's authoring model may need simplificationdocument.querySelector calls that should be scoped to the block element parameterasync operations in decorate handle errors (try/catch or .catch())CSS-only blocks (directory contains .css but no .js) are valid for simple styling-only blocks. Flag them as INFO, not an error.
Produce a per-block health card:
| Block | Files | decorate() | Null Safe | DOM Ops | Scoped CSS | Issues |
|-------|-------|-----------|-----------|---------|-----------|--------|
| hero | 2/2 | Yes | Yes | 8 | Yes | 0 |
| cards | 2/2 | Yes | No | 14 | Partial | 2 |
Audit for patterns that degrade EDS's near-perfect Lighthouse baseline:
Eager Phase Bloat:
scripts/scripts.js for any await calls that block LCPImage Handling:
createOptimizedPicture from aem.js for responsive images<img> tags hardcoded in block JS without the picture element wrapperloading="lazy"width and height attributes (causes layout shift / CLS)Render-Blocking Resources:
head.html for synchronous <script> tags (without async or defer)<link rel="stylesheet"> tags that block rendering (beyond the required aem.css)<style> blocks in head.html that could be in styles.css insteadThird-Party Scripts:
scripts/delayed.js for proper delayed loading of third-party scriptsFont Loading:
@font-face declarations — are they using font-display: swap or font-display: optional?&display=swap parameter?head.html for critical above-the-fold textWeb Component / Shadow DOM:
fstab.yaml:
/ pointing to the content source)helix-query.yaml (if present):
include, propertieslimit is configured (default is 512; very large sites need explicit pagination)head.html:
<meta charset="utf-8">, <meta name="viewport" ...>aem.js module import)scripts/scripts.js or scripts/delayed.jsESLint Configuration:
.eslintrc.js, .eslintrc.json, .eslintrc.cjs, or eslint.config.js)window.hlx, etc.)robots.txt (if present):
/scripts/, /blocks/, or /styles/ paths/media_*)package.json:
name field present and correctly scopedCompile all findings into a structured report. Weight the categories as follows for the composite grade:
Grading scale:
Produce the report in this format:
# EDS Project Health Report
**Project:** [name from package.json or directory name]
**Date:** [current date]
**Overall Grade:** [A-F based on weighted severity]
## Summary
- Critical: [count] | High: [count] | Medium: [count] | Low: [count] | Info: [count]
## Boilerplate Status
[Current vs latest, last upstream merge date if detectable, modification flags]
## Category Scores
| Category | Score | Weight | Issues |
|----------|-------|--------|--------|
| Core File Integrity | [A-F] | 25% | [count] |
| Performance Patterns | [A-F] | 20% | [count] |
| CSS Scoping | [A-F] | 20% | [count] |
| Block Quality | [A-F] | 15% | [count] |
| Boilerplate Currency | [A-F] | 10% | [count] |
| Configuration | [A-F] | 10% | [count] |
## Findings (by severity)
### Critical / High / Medium / Low
[Each entry: file, line, issue, recommended fix]
## Block Health Cards
[Table from Step 5]
## Top 5 Recommendations
[Prioritized actions with estimated effort]
## Next Steps
[Follow-up skills to run and manual actions required]
| Symptom | Cause | Fix |
|---|---|---|
| Cannot determine boilerplate version | Created before version tracking, or aem.js modified | Compare file contents against known snapshots; check git log for upstream merges |
| Block directory has no JS file | CSS-only block (valid for simple decoration) | Mark as INFO; skip JS validation for that block |
| fstab.yaml not found | Non-standard content source or component library | Check for alternative config; ask user about content source |
| helix-query.yaml missing | Not all projects use query index | Flag as INFO only — optional feature |
| ESLint config not found | Linting not configured | Recommend Airbnb ESLint config as HIGH priority |
| Very large block count (30+) | Mature project or over-componentization | Check for duplicates; flag as MEDIUM |
| scripts/scripts.js is minimal | Framework adapter or custom setup | Check for alternative orchestration; may be valid |
aem.js and aem.css must never be modified — all customization belongs in scripts/scripts.js, styles/styles.css, and block-level files. Modifying core files prevents clean upstream updates.content-audit for published page quality and SEO.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