agentsclimarketplace

Permission aware query builder

Skill aborroy/aiup-alfresco/.cursor/skills/permission-aware-query-builder

A Claude Code plugin that packages Alfresco extension development as slash commands, skills, and agents

Install
npx -y skills add aborroy/aiup-alfresco --skill permission-aware-query-builder

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Warns when CMIS or Alfresco Query Language queries may bypass ACLs. Suggests SearchService with authority context instead. Trigger when generating search or query code.

SKILL.md

1.1 KB, as published. Nobody here has run it

Permission-Aware Query Builder

Review generated query code for potential ACL bypass issues.

Rules

  1. Never use direct JDBC/Hibernate queries to access nodes — these bypass the permission model entirely
  2. CMIS queries run in the context of the authenticated user by default — this is safe
  3. SearchService queries — verify SearchParameters includes authority context when needed
  4. AuthenticationUtil.runAsSystem — flag any query executed inside runAsSystem as a potential security issue unless explicitly justified
  5. sys_acl / sys_racl — when using Search Enterprise (Elasticsearch), verify that ACL fields are included in the search index configuration
  6. Solr AFTS queries — respect fts.alfresco.defaultNamespace setting; warn if queries hardcode node refs

Output

Flag each potential ACL bypass with severity (high/medium/low), explanation, and suggested fix.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.