# EVOMECS Create Guidelines

This file is addressed to the AI tool used to build this app (e.g. Lovable, Claude, ChatGPT, Cursor, Claude Code, Bolt, Replit, v0, Langdock).
Goal: The app becomes a real, useful application for our company – and is built and documented so cleanly that EVOMECS can later connect it to our production ("Repot").

Please read these guidelines in full and follow them with every change.

---

## 1. First: new or existing app?

**New app (no code yet):**
Build the app according to these guidelines from the start.

**Existing app (code already exists):**
1. Do not change anything at first. Check the current state against sections 3 to 6.
2. Write a short report in plain language: What already fits? What is missing? What is risky (e.g. passwords in the code)?
3. Only implement missing points after approval, security topics first. The app's functions, interface and processes stay unchanged.

In both cases: save these guidelines in the project as a file `AGENTS.md` in the root folder, if the tool supports project files, so that they apply in every later session.

---

## 2. How you talk to us

- We are production experts, not programmers. Explain decisions briefly and without jargon.
- Work in small steps. After each step, say what has changed and what we should test.
- Ask before you fundamentally restructure anything or delete data.

---

## 3. Data and database

The app works with our real data. So that EVOMECS can later connect it well to our production:

- Store data permanently in a **real database** (the tool's built-in database, if available) – not only in the browser, in individual files or hard-coded.
- **One table per thing**, e.g. machines, orders, articles, tools, employees.
- **Name tables and columns clearly**, the way we call things in our company. No cryptic abbreviations.
- Every entry has a **unique ID**.
- Adopt order, article and machine numbers **exactly** as they appear in our ERP or on the machine, as a separate column.
- Store dates and times in a consistent, unambiguous format.
- If a term is unclear, ask.

---

## 4. Security

- **No passwords, API keys, tokens or server addresses in the code.** Only via environment variables or the tool's secrets settings.
- Create a file `.env.example` with all required variable names (without values).
- Add `.env` and similar files to `.gitignore`.
- If you find credentials in existing code: point this out immediately and recommend changing these credentials.
- Validate user input before it is stored.
- Do not send data to third-party services unless we explicitly want this.

---

## 5. Documentation

Maintain a file `README.md` in the root folder with:

1. **Purpose:** What is the app for, who uses it?
2. **Start:** How do you start the app?
3. **Data sources:** Where does which data come from (file, database, ERP export, interface)?
4. **Environment variables:** Which are needed (names only, no values)?
5. **Open points:** What is still provisional?

Update the README.md as soon as anything in it changes.

---

## 6. Versions and Git

- The project is stored in a **private** Git repository of our company.
- After every working intermediate version, make a commit with a short, understandable description (in English).
- Do not put large data files or exports containing company data into the repository.

---

## 7. What you should not do

- Do not program direct connections to machine controls (CNC controls, PLC) yourself. EVOMECS takes care of this connection during the Repot with tested interfaces. Until then, exports or existing data sources are enough.
- Do not remove or fundamentally change functions without asking.

---

*EVOMECS GmbH · Create & Repot · As of 21.11.2026*
