Skip to content

feat: add HTL data-sly-test lint reference to best-practices#44

Open
bharat941 wants to merge 44 commits intoadobe:betafrom
Himanich:beta
Open

feat: add HTL data-sly-test lint reference to best-practices#44
bharat941 wants to merge 44 commits intoadobe:betafrom
Himanich:beta

Conversation

@bharat941
Copy link
Copy Markdown

@bharat941 bharat941 commented Apr 7, 2026

Description

Adds an HTL data-sly-test lint reference module to the aem-cloud-service best-practices skill. This provides pattern-based fix guidance for the AEM Cloud SDK HTL lint warning "data-sly-test: redundant constant value comparison" and a proactive ripgrep discovery workflow to find candidates without a Maven build.

Changes across 3 files:

  • New: references/data-sly-test-redundant-constant.md (259 lines) — covers boolean literal, raw path string, numeric, and split-expression patterns with before/after examples
  • Modified: SKILL.md — adds HTL (Sightly) workflow section, proactive rg discovery patterns, and a pattern table entry for HTL lint
  • Modified: README.md — mentions the new HTL reference module in the skill summary

Related Issue

Re-applies the changes from PR #5 which were lost when the fork was synced to adobe/skills:beta upstream.

Motivation and Context

The AEM Cloud SDK build emits HTL lint warnings for redundant constant value comparisons in data-sly-test attributes. Without a reference module, the agent has no structured guidance for classifying and fixing these warnings. This change gives the best-practices skill full HTL lint coverage alongside its existing Java/OSGi patterns.

How Has This Been Tested?

  • Verified data-sly-test-redundant-constant.md exists under skills/aem/cloud-service/skills/best-practices/references/
  • Confirmed SKILL.md contains the HTL workflow section, proactive discovery table, and pattern table entry
  • Confirmed README.md mentions the HTL reference
  • Checked all 3 files for merge conflict markers — none present

Screenshots (if appropriate):

N/A — documentation/skill reference changes only.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Himani Chauhan and others added 30 commits March 12, 2026 14:47
Remove asset-manager and event-migration reference files that are no longer needed:
- asset-manager.md, asset-manager-create.md, asset-manager-delete.md
- event-migration-path-a.md, event-migration-path-b.md

Keeping core migration patterns: scheduler, replication, resource-change-listener, event-migration
Expand AEM Cloud Service migration skill with additional patterns:
- Asset Manager: create/upload (Direct Binary Access) + delete (HTTP Assets API)
- Event Migration: JCR EventListener → EventHandler + JobConsumer (Path A & B)

New reference files:
- asset-manager.md, asset-manager-create.md, asset-manager-delete.md
- event-migration-path-a.md, event-migration-path-b.md

Made-with: Cursor
feat(aem): add asset-manager and event-migration patterns
…sistencies

- Rewrite BPA section to use agent-native instructions instead of JavaScript helper scripts
- Remove references to ./scripts/bpa-findings-helper.js and ./unified-collections/
- Fix Step 4 path references to use relative paths (references/ instead of .cursor/skills/...)
- Update Available Patterns table to use correct references/ directory name
- Remove CLI Testing section that referenced nonexistent scripts
- Simplify Quick Reference to match new BPA flow without collection caching
Add list-projects API contract and enforce always presenting project
list to the user for confirmation before calling fetch-cam-bpa-findings,
even when only one project exists. Includes updated example agent flow.
Add detailed transformation references for scheduler, event-migration,
replication, resource-change-listener, and asset-manager patterns
including path classification, step-by-step instructions, and validation.
When fetch-cam-bpa-findings returns success: false, the skill now stops
immediately and reports the error to the user. It no longer falls back
to Manual Flow or CSV.

Made-with: Cursor
Keep STOP ON MCP ERROR rule: when fetch-cam-bpa-findings returns
success: false, stop immediately. Integrate with beta's source priority
and list-projects flow.

Made-with: Cursor
fix: stop on MCP error instead of falling back to Manual Flow
Replace code-migration with aem-cloud-service-best-practices (pattern refs, scr-to-osgi-ds, resource-resolver-logging) and migration/ (orchestration + scripts). Update marketplace and README.
Migration: cam-mcp reference, path alias, quick start, dual-plugin install notes, description tweaks. Best-practices: JCR observation vs OSGi EventHandler wording, prerequisites phrasing. Remove sibling terminology; plugin.json copy; safe CAM example id.
Add capability for local bpa csv file
Keep removal of code-migration/aem-migration; migration is under migration/aem-cloud-service-migration.
- Add references/data-sly-test-redundant-constant.md (Cloud SDK HTL lint)
- Extend SKILL.md, README, plugin metadata for HTL/Sightly triggers

Made-with: Cursor
…ipgrep

Add Proactive discovery section with rg patterns to find likely redundant
data-sly-test issues without a Maven build; extend front matter, When to
Use, and Manual Pattern Hints. Compiler/build remains authoritative.

Made-with: Cursor
Relocate the Cloud Service pattern package to skills/aem/cloud-service/skills/best-practices/ with SKILL.md and references/ at the plugin root (plugin id aem-best-practices). Move migration content out of the nested aem-cloud-service-migration folder into migration/ (plugin id aem-migration).

Register aem-best-practices, aem-migration, aem-cloud-service-dispatcher, and aem-6-5-lts-dispatcher in .claude-plugin/marketplace.json. Update the repository README with install commands and the revised directory layout.

Migration and CAM docs require explicit CAM project confirmation, verbatim MCP errors with no automatic fallback, and IDE workspace-scoped file discovery. Docs use aem-prefixed plugin names without extra marketplace commentary.
…/htl-reference-in-best-practices

Resolve conflicts: consolidate skill under skills/best-practices (aem-best-practices),
keep HTL reference + proactive ripgrep discovery in SKILL.md, drop legacy
aem-cloud-service-best-practices plugin wrapper. Update plugin README and
keywords for HTL/Sightly.

Made-with: Cursor
…path, point to references/ and SKILL.md

Made-with: Cursor
…nsolidation

Aem cloud best practices skill consolidation
…nsolidation

docs(migration): document CAM MCP enablement restriction verbatim errors
- Root npm test: skills-ref validate, migration unit tests, marketplace JSON parse
- CI validate workflow runs npm test
- SKILL frontmatter name must match folder (best-practices, migration) per skills-ref
- Fixture CSV + node:test coverage for getBpaFindings and checkAvailableSources
…ranch

Remove references/osgi-cfg-json-cloud-manager.md and all SKILL.md wiring
(quick start, delegation, when-to-use). Keeps CAM/MCP tightening,
workspace scope, and MCP error handling from refactoring.
Himanich and others added 9 commits March 31, 2026 11:50
Tighter fallback rules and error handling
…to SCR→DS module

Ensure the agent only removes POM dependencies whose API was actually
migrated in source code, and verifies zero remaining imports via rg
before any deletion.

Made-with: Cursor
…n guard to SCR→DS module"

This reverts commit ed1c69f.
Add HTL data-sly-test lint reference to aem-cloud-service-best-practices
- New: references/data-sly-test-redundant-constant.md for Cloud SDK HTL lint
- Updated SKILL.md with HTL workflow, proactive rg discovery, pattern table entry
- Updated README.md to mention HTL reference module

Made-with: Cursor
feat(best-practices): add HTL data-sly-test lint reference
@bharat941 bharat941 changed the title Beta feat: add HTL data-sly-test lint reference to best-practices Apr 7, 2026
@bharat941 bharat941 closed this Apr 8, 2026
@bharat941 bharat941 reopened this Apr 8, 2026
bharat941 and others added 5 commits April 8, 2026 12:31
The SKILL.md description field is used by agents to match user requests
to skills. Add HTL Cloud SDK lint (data-sly-test redundant constant)
so the skill is discovered for HTL tasks alongside Java/OSGi patterns.

Made-with: Cursor
… consistent pattern

Move the HTL-specific workflow and proactive discovery sections from
SKILL.md into references/data-sly-test-redundant-constant.md so HTL
follows the same generic pattern as all other modules (table row +
self-contained reference file).

Made-with: Cursor
Add HTL data-sly-test lint as a first-class pattern in the migration
skill, matching how scheduler/replication/eventListener are referenced.
Includes quick-start row, starter prompt, Step 1 pattern id, dedicated
htlLint flow section, and notes that it uses rg discovery instead of
BPA/CSV/MCP.

Made-with: Cursor
fix(best-practices): add HTL/Sightly to front matter description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants