agentleFS
MazalucasMazalucas/El-DT-Lightweight-Army/.cursor/rules/05-multi-project-git.mdc

El-DT-Lightweight-Army / rules

Cursor rule4 starsChanged 19 days agoMITView on GitHub

OBLIGATORIO si hay varios git roots o vitals/workspace.yaml — resolver project_id antes de Git o commits

The file

Files
05-multi-project-git.mdc
---
description: OBLIGATORIO si hay varios git roots o vitals/workspace.yaml — resolver project_id antes de Git o commits
alwaysApply: false
---

# Multi-proyecto y contexto Git

Antes de **cualquier** operación Git (commit, push, branch, PR, diff masivo) o de asumir rutas de proyecto:

## Un repo vs varios

- Si el workspace puede tener **más de un** `git_root` (multi-root IDE, varios clones, monorepo con trabajo en subcarpetas con su propio `.git`), tratá el contexto como **multi-proyecto**.

## Resolución

1. Si existe **`vitals/workspace.yaml`** (copia desde `vitals/workspace.yaml.example`), usalo para `project_id`, aliases y `default_project`.
2. Si el usuario **no** nombra el proyecto y el contexto es ambiguo: **preguntá** listando proyectos conocidos (path / id). **No** asumas en silencio.
3. Si podés inferir sin duda razonable (archivo activo en ese root, cwd del terminal, mensaje explícito, `default_project`), indicá en una línea qué proyecto estás usando.

## Huella

Registrá `project_id` o `git_root` en entradas `vitals/pulse/entries/` cuando el cambio sea por proyecto.

Especificación: `vitals/specs/multi-project.md`.

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.