From aiup-alfresco
Validates Alfresco content model XML files for namespace format, type/aspect declarations, property data types, and reserved prefix usage. Automatically activates when editing *-model*.xml or *-context.xml files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aiup-alfresco:content-model-validatorThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Validate the given Alfresco content model XML against these rules:
Validate the given Alfresco content model XML against these rules:
http://www.{company}.com/model/{prefix}/{version}sys, cm, app, usr, act, wcm, wca, lnk, fm, dl, ia, smf, imap, emailserver, bpm, wcmwf, trx, stcp<model> with name attribute in format {prefix}:modelName<namespaces> with at least one <namespace> declaration<types> element<aspects> element<type> must have a name attribute in format {prefix}:typeName<type> should declare a <parent> (default: cm:content or cm:folder){prefix}:propertyName<type> must be a valid Alfresco data type: d:text, d:mltext, d:int, d:long, d:float, d:double, d:date, d:datetime, d:boolean, d:noderef, d:content, d:any, d:category, d:qname, d:locale, d:period<mandatory enforced="true">true</mandatory>.
enforced="true" makes ACS fire the IntegrityChecker immediately
inside OnAddAspectPolicy, which runs before NodeServiceImpl.addAspect() has written
the properties map to the database. The result is a spurious IntegrityException: Mandatory property not set even when the caller passes a fully-populated properties map.<mandatory>true</mandatory> (no enforced attribute). The integrity check
is then deferred to beforeCommit, by which time addAspect() has written both the aspect
and its properties.enforced="true" is safe only on properties belonging to types (not
aspects), where the property must be supplied at node creation time via the REST API and
is never set programmatically after the fact.<constraint> must declare a name ({prefix}:{camelCaseConstraintName}) and a type.LIST — must have an allowedValues <list> parameter with at least one <value>.REGEX — must have an expression parameter; a requiresMatch parameter is recommended.LENGTH — must have minLength and/or maxLength parameters.MINMAX — must have minValue and/or maxValue parameters.type is a fully-qualified class name; it should resolve to a
class extending org.alfresco.repo.dictionary.constraint.AbstractConstraint. Flag a type
that is neither a built-in keyword (LIST, REGEX, LENGTH, MINMAX) nor a resolvable class.<constraints><constraint ref="{prefix}:..."/></constraints> reference must point
at a constraint defined in the same model (or an imported one).<child-association> and <association> must declare a name ({prefix}:...) and a
<source>/<target> with a <class>; cardinality is expressed via <mandatory> and <many>.<child-association> for composition (cascade delete) and <association> for peer
references — flag a child association used where a non-owning reference is intended.*-context.xml exists, verify it registers the model via <bean class="org.alfresco.repo.dictionary.DictionaryBootstrap"> or equivalentmodels property must reference the correct model XML pathReport all violations with file path, line number, rule violated, and suggested fix. If no violations found, confirm the model is valid.
npx claudepluginhub aborroy/aiup-alfrescoValidates Alfresco Activiti BPMN 2.0 definitions and workflow model XML for structural correctness: namespaces, task assignees, variable naming, formKey alignment, and forbidden Flowable patterns.
Audits content schemas in YAML/JSON, C# models, and migrations for naming conventions, field usage, relationships, and best practices. Reports issues by severity with fix suggestions.
Validates 1C configuration XML files for structural errors after creation or modification. Checks XML well-formedness, properties, enums, and object directories.