agentleFS
MazalucasMazalucas/El-DT-Lightweight-Army/.cursor/rules/15-engineering-reuse.mdc

El-DT-Lightweight-Army / rules

Cursor rule4 starsChanged 56 days agoMITView on GitHub

OBLIGATORIO al escribir o modificar código — discover before create, sección Qué reutilicé

The file

Files
15-engineering-reuse.mdc
---
description: OBLIGATORIO al escribir o modificar código — discover before create, sección Qué reutilicé
globs: "**/*.ts, **/*.tsx, **/*.js, **/*.jsx, **/*.py, **/*.go, **/src/**"
alwaysApply: false
---

# Ingeniería reuse-first

Carga automática con globs de código en manifest. Detalle: `docs/03_reference/engineering-reuse-default.md` (`DOC-REF-006`) · skill `.cursor/skills/engineering-reuse/SKILL.md`.

## Cuándo aplica

Al **proponer, escribir o modificar código ejecutable** (backend, frontend, infra, tests, Remotion). No aplica a PRD/copy puro, docs narrativos, pulse del framework.

## Jerarquía (orden estricto)

1. Extender **código existente** del repo
2. Design system / librería ya adoptada
3. Primitivas del framework
4. **Crear nuevo** — solo sin alternativa razonable; documentar por qué

## Pipeline

```text
Mapear → Reutilizar → Extender → Crear
```

Discover before create · diff mínimo · YAGNI · un concepto, un módulo (no `utils2`, `*-v2` paralelos).

## Prohibiciones

Duplicar helpers/validators/UI/CI stages con la misma responsabilidad; copiar-pegar entre capas; clonar composiciones Remotion enteras.

## Entregable (código)

```markdown
## Qué reutilicé
- [artefacto] — [cómo se extendió]

## Qué creé y por qué
- [módulo] — [motivo]  (o N/A si todo extendido)
```

## Delegación

Agentes de código: `arquitecto`, `frontend`, `devops`, `qa`, `remotion-producer` — incluir bloque reuse (ver `03-catalogo-subagentes`).

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.