Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

code-assessment

БесплатноЗапускает вложенные скриптыНе проверен

Detect, review, and fix code-quality, correctness, and security issues in an AEM as a Cloud Service project — locally, with no external services or network…

adobeот adobe★ 342 звезды на GitHub

Об этом скилле

AEM as a Cloud Service — Code Assessment

Single skill for detecting and fixing AEM CS code-quality issues, entirely against the local workspace — no external services or network calls. Findings reach the runbook from one of two sources; everything downstream is identical.

Findings sources

Source When Target versions (deps)
User-named the user names files or coordinates user-supplied
Discover the user asks to scan, or names no files user-supplied (per the pattern's resolution contract)

Discovery runs through the deterministic analyzer (scripts/analyze.sh): it parses the workspace once and runs the enabled detectors, emitting the shared findings shape. Every ready pattern has an analyzer detector. One detector — remove-deprecated-api — loads its rules dynamically from a preflight-produced cache (remove-deprecated-api/scripts/detect.sh runs the AEM Analyser Maven Plugin and writes the cache TSV before the analyzer is invoked); the detector's shape and integration are otherwise identical. Patterns without a detector are planned only — not yet detectable and not yet built; there is no LLM-scan fallback in this version (see Scope & limitations) — the scan value on planned rows in references/patterns.md marks the intended future detection method, not an active code path.

Routing

  1. User named files / coordinates → run the runbook in with_findings mode against those paths.
  2. "Scan my repo" / no files named → run the runbook in discover mode (per-pattern Discovery, workspace roots only).

Then follow the runbook: references/runbook.md.

Manual Pattern Hints (classification → expert skill)

Route the request to one expert skill. Two pattern families share this skill:

Mechanical fixes (analyzer-driven detection, deterministic edits — follow the runbook flow):

User said / saw Expert skill
"update aem sdk", "upgrade mockito", stale <version> or ${property} in pom outdated-dependencies/
"fix @Inject", "modernize Sling Models", javax.inject.Inject on @Model fields inject-in-sling-model/
"add HTTP timeouts", "outbound/external call has no timeout", HttpClient / HttpClients / OkHttpClient built without a timeout outbound-call-timeouts/
"bound my query", "unbounded query", "query causing OOM", p.limit=-1, setLimit(-1) unbounded-query/
"query is slow", "traversal warning", "is my query indexed", "tune oak index", index coverage of a JCR/Oak query tuning-oak-query-indexes/
"can the captcha / login / rate limit be skipped", "test-automation bypass", a cookie, header or parameter named test, debug, bypass or skip read in captcha, auth or rate-limit code request-controlled-security-bypass/
"remove deprecated API", "fix deprecated imports", "Cloud Manager deprecated API failure", region-deprecated-api / api-regions-check / Import-Package not satisfied pipeline failures, log4j migration, commons-lang/collections upgrades, deprecated Maven deps, unmodifiable OSGi configs remove-deprecated-api/ (analyzer detector with dynamic rules — preflight runs aemanalyser-maven-plugin; hint-driven fixes; see recipe.md)

Architectural migration patterns (guided remediation — full before/after, troubleshooting, modern alternatives; invoked directly or via migration for BPA/CAM-driven discovery):

User said / saw Expert skill BPA pattern ID
org.apache.sling.commons.scheduler.Scheduler or scheduler.schedule( with Runnable scheduler/ scheduler
implements ResourceChangeListener, lightweight listener + JobConsumer resource-change-listener/ resourceChangeListener
com.day.cq.replication.Replicator, org.apache.sling.replication.*, "publish/preview activation" replication/ replication
javax.jcr.observation.EventListener, org.osgi.service.event.EventHandler on non-resource topics (replication, workflow, custom) event-migration/ eventListener / eventHandler
com.day.cq.dam.api.AssetManager create/upload/delete APIs, createAssetForBinary, removeAssetForBinary asset-manager/ assetApi
HTL build warning data-sly-test: redundant constant value comparison references/data-sly-test-redundant-constant.md htlLint (reference, no expert skill subdirectory)

Broad / correctness-review asks ("chec

Полный SKILL.md на GitHub

Установить code-assessment в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG.mdREADME.mdasset-manager/SKILL.mdevals/evals.jsonevals/files/site-project/core/pom.xmlevals/files/site-project/core/src/main/java/com/example/site/core/filters/RateLimitFilter.javaevals/files/site-project/core/src/main/java/com/example/site/core/models/TeaserModel.javaevals/files/site-project/core/src/main/java/com/example/site/core/services/PriceService.javaevals/files/site-project/core/src/main/java/com/example/site/core/servlets/LoginServlet.javaevals/files/site-project/dispatcher/pom.xmlevals/files/site-project/dispatcher/src/conf.dispatcher.d/clientheaders/clientheaders.anyevals/files/site-project/dispatcher/src/conf.dispatcher.d/clientheaders/default_clientheaders.anyevals/files/site-project/dispatcher/src/conf.dispatcher.d/filters/default_filters.anyevals/files/site-project/dispatcher/src/conf.dispatcher.d/filters/filters.anyevals/files/site-project/pom.xmlevent-migration/SKILL.mdinject-in-sling-model/SKILL.mdinject-in-sling-model/recipe.mdoutbound-call-timeouts/guide.mdoutbound-call-timeouts/recipe.mdoutdated-dependencies/SKILL.mdoutdated-dependencies/recipe.mdreferences/_template.mdreferences/adding-a-pattern.mdreferences/aem-cloud-service-pattern-prerequisites.mdreferences/data-sly-test-redundant-constant.mdreferences/git-workflow.mdreferences/patterns.mdreferences/resource-resolver-logging.mdreferences/runbook.mdreferences/scr-to-osgi-ds.mdreferences/shared-principles.mdreferences/troubleshooting.mdremove-deprecated-api/README.mdremove-deprecated-api/SKILL.mdremove-deprecated-api/recipe.mdremove-deprecated-api/scripts/detect.shreplication/SKILL.mdrequest-controlled-security-bypass/guide.mdresource-change-listener/SKILL.md

FAQ

Что делает скилл code-assessment?

Detect, review, and fix code-quality, correctness, and security issues in an AEM as a Cloud Service project — locally, with no external services or network calls. Use whenever a user wants to check, review, assess, audit, scan, modernize, upgrade, or fix AEM Java, Sling Models, OSGi, or Maven code — for example: "check my Sling Models are implemented correctly", "review my @Inject usage", "are my Maven dependencies up to date", "scan this AEM project for issues", "can a cookie skip my login captcha", "calls to an external API hang", or "fix code-quality problems". Name the files to assess, or ask it to scan the repo; it detects issues, plans, and — only when you ask — applies surgical edits on a branch or in place, then verifies with mvn compile. It recognises the intent and handles each issue type itself, reporting anything it cannot yet fix.

Как установить скилл code-assessment?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл code-assessment запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить code-assessment с