From aiup-alfresco
Validates Alfresco v1 Public REST API resources for correct annotations, required @WebApiDescription on action methods, single @UniqueId on model POJOs, paged collection returns, and absence of classic Web Script anti-patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aiup-alfresco:rest-api-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 v1 Public REST API resources against these rules. This is the
Validate the given Alfresco v1 Public REST API resources against these rules. This is the
modern annotation-based framework (org.alfresco.rest.framework), not classic Web Scripts.
@EntityResource(name = "...", title = "...").@RelationshipResource(name = "...", entityResource = X.class, title = "..."), and its
entityResource must reference an existing @EntityResource-annotated class in the project.name on both annotations must be plural, kebab-case (e.g. vendor-contracts,
payments) and contain no verbs.org.alfresco.rest.framework.resource.actions.interfaces —
EntityResourceAction.Read / ReadById / Create / Update / Delete, or
RelationshipResourceAction.Read / Create / Update / Delete.readAll, readById, create, update,
delete) that is missing @WebApiDescription.
405 Method Not Allowed.@WebApiDescription(title = "…") to every action method.readAll method must return CollectionWithPagingInfo<T> — FLAG as ERROR a raw
List<T> / Collection<T> return (bypasses the paging envelope).@UniqueId.
@UniqueId getters (framework cannot build readById / serialise id).@UniqueId getter (ambiguous identifier).extends DeclarativeWebScript — that is the classic
framework and will not be discovered by ResourceLookupDictionary.@Autowired — use setter injection wired in webscript-context.xml.@PostConstruct or @Transactional appears on a resource class.<bean> in webscript-context.xml
(bean id {prefix}.{entity}EntityResource / {prefix}.{entity}{Relationship}RelationshipResource),
and webscript-context.xml should be imported from module-context.xml.parent="..." on a resource bean as
likely incorrect.Report all violations with file path, line number, rule violated, and suggested fix. If no violations found, confirm the REST API resources are valid.
npx claudepluginhub aborroy/aiup-alfrescoReviews Java Spring Boot REST API controllers for HTTP methods, status codes, URL naming, DTOs, error formats, versioning, and security basics. Ideal for 'review my API' requests.
Guides REST API resource modeling: noun-based URLs, correct HTTP methods, and strategies for non-CRUD actions. Helps design predictable, self-documenting APIs.
Provides REST API standards for Spring Boot covering URL design, HTTP methods, DTOs, validation, error handling, pagination, and security headers. Use when creating or reviewing endpoints.