# Canonical naming (maintenance guide)

> For material maintainers, **not learners**. This guide fixes the exact names used in HTML, guides and prompts to avoid confusion. Changing “Codi.gs” to “Code.gs” on one page can already mislead a beginner.

## Files and code

| Correct | Incorrect | Note |
|---|---|---|
| `Codi.gs` | `Código.gs`, `codi.gs`, `Code.gs` | Kitchen/backend. The course’s reference name; an existing project may use another name without duplicating functions. |
| `Index` (HTML file) | `index`, `Inici`, `Index.html` as the creation name | In the Apps Script exercise, create HTML named **Index**; it appears as Index.html. It must match the name loaded by the code. |
| `Index.html` | — | Include `.html` when referring to the complete file. |
| `/exec` | `/exe`, `exec` | The deployed version’s link with configured access; it does not imply public access. |
| `/dev` | — | Test link for the latest saved code, accessible to project editors. |
| `context/` | `Context/`, `contexte/` | Context-method folder, lowercase. |
| `que-ha-de-fer.md` | `què-ha-de-fer.md`, `que_ha_de_fer.md` | No accents or underscores. Keep the name when switching language. |
| `arquitectura.md` | — | Technical document. |
| `deploy.yml` | `deploy.yaml`, `desplegament.yml` | Workflow under `.github/workflows/`. |
| `.clasp.json` | `clasp.json` | Project configuration, including the initial dot. `.clasprc.json` contains credentials and is a different file. |
| `main` | `master`, `Main` | Main branch of the exercise, lowercase. |

## Course concepts

| Term | Meaning |
|---|---|
| **Dining room** | frontend / `Index.html` |
| **Kitchen** | backend / `Codi.gs` |
| **Pantry** | database / spreadsheet |
| **Storage** | file storage / Drive |
| **Pipeline** | CI/CD pipeline |
| **Agent** | AI with tools and permissions to read or modify files; distinguish it from external chat |

## Method phrases

Use consistent wording within each language:

- “One app, one new spreadsheet” → “one app, one new repo” → “one branch per change”.
- “Dining room (frontend / Index.html) → kitchen (backend / Codi.gs) → pantry (database / spreadsheet); storage for files”.
- “Breaking and fixing is normal”.
- “The key is context, rather than the tool”.
- “Publish and check the same link”. A merge can start deployment only if the workflow, permissions and automation allow it.
- “Ask for it and understand it; do not write it by hand”.

## Maintenance rule

Prompts have one canonical source: **`assets/prompts.json`**. `python tools/build_recursos.py` generates the bank and `prompts.js`; do not edit those by hand. Update links in `recursos/eines-i-enllacos.md`. Reviewed translation catalogues and sources live under `_interns/i18n/` and `recursos/`; also run `tools/build_lesson_locales.py` and `tools/build_portal_i18n.py` to regenerate all three versions.
