agentleFS
aborroyaborroy/aiup-alfresco/skills/sdk-version-detector/SKILL.md

sdk-version-detector

Skill14 starsChanged 5 months agoApache-2.0View on GitHub

Reads pom.xml, detects which Alfresco SDK is in use (In-Process Maven SDK or Out-of-Process Spring Boot SDK), and adjusts generated code accordingly. Trigger when generating Java code for Alfresco extensions.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Search for pom.xml in the project root and submodules

    line 13
  2. Very specific:

    If neither parent is found, check for alfresco-java-event-api-spring-boot-starter dependency → Out-of-Process

    line 17
  3. Very specific:

    If still unclear, check for alfresco.platform.version or acs.version properties → In-Process

    line 18
  4. Distinctive:

    Use for: behaviours, web scripts, actions, content model bootstrap — anything that must run inside the Alfresco JVM.

    line 30
  5. Distinctive:

    Use for: event listeners, external integrations, async processing — anything that reacts to repository events over ActiveMQ.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SDK Version Detector

Detect which Alfresco SDK the project uses and report which code generation patterns apply.

Detection Logic

  1. Search for pom.xml in the project root and submodules
  2. Check <parent> <artifactId>:
    • alfresco-sdk-aggregator → In-Process SDK (Maven)
    • alfresco-java-sdk → Out-of-Process SDK (Spring Boot)
  3. If neither parent is found, check for alfresco-java-event-api-spring-boot-starter dependency → Out-of-Process
  4. If still unclear, check for alfresco.platform.version or acs.version properties → In-Process

SDK Types

In-Process SDK (Maven SDK alfresco-sdk-aggregator)

Deploys as a Platform JAR or AMP inside the ACS JVM.

SDK VersionACS VersionJavaSpringPatterns
4.x (≤4.11)6.x–7.x115.xLegacy ServiceRegistry, XML-only config
4.x (4.12+)25.x–26.117+6.x/Boot 3.xWeb Scripts, XML for integration points, Java config for internal wiring

Use for: behaviours, web scripts, actions, content model bootstrap — anything that must run inside the Alfresco JVM.

Out-of-Process SDK (Spring Boot SDK alfresco-java-sdk)

Runs as a separate Spring Boot application outside ACS, connected via ActiveMQ and REST.

SDK VersionACS VersionJavaSpring BootPatterns
7.x25.x–26.117+3.x@AlfrescoEventListener, standard Spring Boot @Configuration

Use for: event listeners, external integrations, async processing — anything that reacts to repository events over ActiveMQ.

Output

Report:

  • Extension type: In-Process or Out-of-Process
  • Detected SDK and version
  • Detected ACS version
  • Java version requirement
  • For In-Process: whether to use XML or Java-based Spring configuration
  • For Out-of-Process: confirm event API and ActiveMQ configuration patterns
  • Any version-specific warnings

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.