From 1c8638b8d450214f17af0cdc5f73ba01507ca587 Mon Sep 17 00:00:00 2001 From: mono Date: Sat, 7 Mar 2026 16:03:21 -0500 Subject: [PATCH] docs: add AGENTS.md with project conventions for AI agents --- AGENTS.md | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..0d20087 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,72 @@ +# Don Confiao - Frontend + +## Tech Stack +- **Framework:** Vue 3 (Composition API) +- **UI Library:** Vuetify 3 +- **Routing:** Vue Router 4 (auto-routes con `unplugin-vue-router`) +- **State:** Pinia +- **HTTP:** Axios +- **Build:** Vite +- **Linting:** ESLint + +## Project Structure +``` +src/ +├── assets/ # Imágenes, iconos estáticos +├── components/ # Componentes Vue reutilizables +├── layouts/ # Layouts de página +├── pages/ # Vistas (auto-routed desde文件名) +├── plugins/ # Configuración de Vuetify, etc. +├── router/ # Configuración de rutas +├── services/ # API services (auth.js, etc.) +├── stores/ # Pinia stores +└── styles/ # SCSS settings +``` + +## Important Conventions + +### Auto-imports +- Componentes en `src/components/` se auto-importan por nombre +- Los archivos en `src/pages/*.vue` se routing automáticamente via `unplugin-vue-router` +- Alias `@` = `src/` + +### Pages (CRITICAL) +**Siempre importar componentes en los archivos de página:** +```vue + + + +``` + +### Componentes +- Usar Composition API (`