All AEM as a Cloud Service skills: component development, Workflow model design, development, triggering, launchers, debugging, and triaging, Dispatcher config authoring, advisory, incident response, performance tuning, and security hardening, Rapid Development Environment (RDE) deployment, log inspection, snapshots, and troubleshooting via `aio aem rde`, Jackrabbit Oak query/index tuning (property, Lucene index definitions), and extracting/inventorying JCR queries (XPath, SQL2, QueryBuilder) across a codebase.
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Project Configuration: This file uses placeholders that reference values from
aem-conventions.md:
[package]→ Your Java base package (e.g.,com.mysite.core)Before using these rules, ensure
aem-conventions.mdis configured for your project.
All Java files must include the Apache 2.0 license header:
/*
* Copyright 2015 Adobe Systems Incorporated
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/[package]
├── models/ # Sling Models
├── filters/ # Sling Filters
├── servlets/ # Sling Servlets
├── services/ # OSGi Services
├── schedulers/ # Scheduled Tasks
└── listeners/ # Event Listeners@Model(
adaptables = Resource.class,
defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL
)
public class ComponentModel {
// ...
}import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.DefaultInjectionStrategy;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.ChildResource;
import org.apache.sling.models.annotations.injectorspecific.ValueMapValue;
import javax.annotation.PostConstruct;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;// Simple properties
@ValueMapValue
private String title;
// Properties with custom name
@ValueMapValue(name = "jcr:title")
private String pageTitle;
// Child resources (for nested content like images)
@ChildResource(name = "image")
private Resource imageResource;
// List of child resources (for multifield)
@ChildResource(name = "items")
private List<Resource> itemResources;private List<ItemModel> items;
@PostConstruct
protected void init() {
items = new ArrayList<>();
if (itemResources != null) {
for (Resource itemResource : itemResources) {
ItemModel item = itemResource.adaptTo(ItemModel.class);
if (item != null && item.hasContent()) {
items.add(item);
}
}
}
}// For simple values
public String getTitle() {
return title;
}
// For lists - return unmodifiable
public List<ItemModel> getItems() {
return Collections.unmodifiableList(items);
}
// Content check method
public boolean hasContent() {
return title != null || (items != null && !items.isEmpty());
}Every public class and method must have Javadoc:
/**
* Sling Model for the Hero Banner component.
* Provides properties for rendering the hero section.
*/
@Model(adaptables = Resource.class)
public class HeroBannerModel {
/**
* Gets the banner headline text.
* @return the headline, or null if not set
*/
public String getHeadline() {
return headline;
}
}Optional over null checks for method returnsfinal for fields that shouldn't change| Element | Convention | Example |
|---|---|---|
| Class | PascalCase | HeroBannerModel |
| Interface | PascalCase with adjective | Linkable, Renderable |
| Method | camelCase, verb prefix | getTitle(), hasContent(), isVisible() |
| Variable | camelCase | listTitle, tileItems |
| Constant | UPPER_SNAKE_CASE | DEFAULT_LIMIT, MAX_ITEMS |
| Package | lowercase | [package].models |
Order within a class:
@PostConstruct method.tessl-plugin
skills
aem-rde
aem-workflow
code-assessment
content-distribution
create-component
assets
references
dispatcher
incident-response
references
dispatcher-foundation
performance-tuning
references
dispatcher-foundation
security-hardening
references
dispatcher-foundation
technical-advisory
references
dispatcher-foundation
workflow-orchestrator
references
dispatcher-foundation
ensure-agents-md
references
migration
references
dispatcher
legacy-ui
template-modernization
validation
scripts
dispatcher-tool
validate-migration