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
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,527 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aca-extensionSkill
- actionsSkill
- aikauSkill
- aiup-alfrescoSkill
- alfresco-architect-agentSkill
- alfresco-debugger-agentSkill
- alfresco-migrator-agentSkill
- audit-config-validatorSkill
- auditSkill
- behavioursSkill
- bootstrap-loaderSkill
- content-modelSkill
- content-model-validatorSkill
- content-storeSkill
- docker-compose-healthcheck-injectorSkill
- docker-composeSkill
- event-api-topology-checkerSkill
- eventsSkill
- metadata-extractorSkill
- migration-advisorSkill
- permission-aware-query-builderSkill
- permission-model-validatorSkill
- permissionsSkill
- repository-patchSkill
- requirementsSkill
- rest-apiSkill
- rest-api-validatorSkill
- rule-conditionsSkill
- scaffoldSkill
- scheduled-jobsSkill
- sdk-version-detectorSkill
- share-configSkill
- subsystemSkill
- surfSkill
- testSkill
- transformsSkill
- web-scriptsSkill
- workflow-bpmn-validatorSkill
- workflowSkill
- audit-config-validatorSkill
- content-model-validatorSkill
- docker-compose-healthcheck-injectorSkill
- event-api-topology-checkerSkill
- migration-advisorSkill
- permission-aware-query-builderSkill
- permission-model-validatorSkill
- rest-api-validatorSkill
- sdk-version-detectorSkill
- workflow-bpmn-validatorSkill
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
- Very specific: line 31
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 …
- Distinctive: line 35
When an AIUP command requires file output, create or update real files in the repo.
≈ “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.
Files
--- 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.
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
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.

