migration-advisor
Detects deprecated Alfresco API usage and suggests modern equivalents. Trigger when analysing existing Alfresco extension code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Detects deprecated Alfresco API usage and suggests modern equivalents. Trigger when analysing existing Alfresco extension code.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Runs AIUP Alfresco extension workflow steps (requirements, scaffold, content-model, web-scripts, docker-compose, test, and more). Use when the user asks to execute an AIUP command or develop Alfresco extensions following AGENTS.md.
Generate Share share-config-custom.xml (META-INF/), DocLib UI actions, rule-action UI, evaluators, indicators, forms, and related web-extension files for legacy Share UI.
Validates custom Alfresco audit application XML for well-formedness, correct audit model namespace, application key matching the enable property, and every RecordValue dataExtractor/dataGenerator referencing a declared and registered bean. Trigger automatically after generating or editing a *-audit.xml or an audit *DataExtractor.java / *DataGenerator.java file.
Generate a custom Alfresco audit application (audit XML + data extractors/generators + enable properties) and optional query Web Script. In-Process SDK (Maven) only.
Validates Alfresco content model XML files for correct namespace URI format, mandatory type/aspect declarations, valid property data types, and absence of reserved prefixes (sys:, cm:, app:). Trigger automatically when generating or editing *-model*.xml or *-context.xml files.
Scaffold a custom Alfresco ContentStore connector (extending AbstractContentStore, optionally wrapping a caching or encrypting store) with its reader/writer, Spring wiring, and unit test. In-Process SDK (Maven) only.
| name | migration-advisor |
| description | Detects deprecated Alfresco API usage and suggests modern equivalents. Trigger when analysing existing Alfresco extension code. |
Scan Alfresco extension code for deprecated API usage and suggest modern replacements.
| Deprecated | Replacement | Since |
|---|---|---|
ServiceRegistry.getNodeService() | @Autowired NodeService | SDK 4.x+ |
AuthenticationUtil.setFullyAuthenticatedUser() | AuthenticationUtil.runAs() | SDK 4.x+ |
| Direct Hibernate session access | NodeService / ContentService | Always |
| AMP packaging with no third-party library deps | JAR packaging | SDK 4.2+ |
AbstractLifecycleBean for bootstrap | @PostConstruct / ApplicationReadyEvent | Spring Boot 3.x |
| Alfresco Explorer (JSF) customizations | ACA/ADW extensions | ACS 6.0+ |
| CMIS 1.0 | CMIS 1.1 or REST API v1 | ACS 5.2+ |
| Lucene query syntax | AFTS or CMIS query | ACS 4.0+ |
For each deprecated usage found, report: file, line, deprecated API, suggested replacement, and migration effort estimate (trivial/moderate/significant).