agentleFS
aborroyaborroy/aiup-alfresco/.cursor/rules/aiup-alfresco.mdc

aiup-alfresco / rules

Cursor rule14 starsChanged 5 months agoApache-2.0View on GitHub

AIUP Alfresco extension conventions — read AGENTS.md and command specs before generating or reviewing code

The file

We split this aiup-alfresco.mdc into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    When the user asks to run an AIUP step without naming a file, match the request to the closest /command or use the aiup-alfresco …

    line 31
  2. Distinctive:

    When an AIUP command requires file output, create or update real files in the repo.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
aiup-alfresco.mdc
---
description: AIUP Alfresco extension conventions — read AGENTS.md and command specs before generating or reviewing code
alwaysApply: true
---

# AIUP — Alfresco extension development (Cursor)

You are working in a repository that follows **AIUP** (AI Unified Process) for Alfresco Content Services extensions.

## Mandatory first step

Before generating, editing, or reviewing Alfresco-related code (Java under Alfresco modules, `alfresco/module/**`, content models, web scripts, BPMN workflows, Quartz scheduled jobs, repository patches, transforms, Share/ACA UI extensions, Spring Boot event listeners, `compose.yaml`, etc.), **read and follow** the project rules in **`AGENTS.md`** at the repository root. Treat `AGENTS.md` as the single source of truth for stack versions, layout, naming, forbidden patterns, and testing conventions.

In consumer projects with a submodule at `tools/aiup-alfresco/`, read **`tools/aiup-alfresco/AGENTS.md`** instead (subject to any local version override rule).

## How AIUP commands map here

Cursor 2.4+ exposes AIUP steps as **slash commands** via Agent Skills in `.cursor/skills/`:

- Type **`/requirements`**, **`/scaffold`**, **`/content-model`**, etc. in Agent chat
- Each command skill has `disable-model-invocation: true` — it runs only when explicitly invoked
- Command skills point at `commands/<name>.md` (or `tools/aiup-alfresco/commands/<name>.md` in consumer repos)

Fallbacks when slash commands are not used:

- **`commands/<name>.md`** — full procedure; open via `@commands/<name>.md`
- **`.cursor/skills/<skill-name>/SKILL.md`** — validators (auto-triggered) and agent guidance
- **`aiup-alfresco`** orchestrator skill — lists all commands when the step name is unclear
- **`./scripts/aiup-command.sh render --agent cursor <command>`** — portable rendered prompt

When the user asks to run an AIUP step without naming a file, match the request to the closest `/command` or use the **`aiup-alfresco`** orchestrator.

## Output expectations

When an AIUP command requires file output, **create or update real files** in the repo; do not stop at a high-level summary unless the user only asked for a plan.

## Consumer project install

From an Alfresco project root with submodule at `tools/aiup-alfresco/`:

`./tools/aiup-alfresco/scripts/install-cursor-pack.sh`

Re-run after `git submodule update` to refresh slash-command skills.

See **`CURSOR.md`** and **`CURSOR-INTEGRATION-GUIDE.md`** for installation, hooks, and troubleshooting.

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.