Add repo hygiene rules and ignore secrets
This commit is contained in:
32
AGENTS.md
32
AGENTS.md
@@ -1,23 +1,17 @@
|
||||
# AGENTS (Repository Guidance)
|
||||
|
||||
## Repository Intent
|
||||
- The `web/desktop` and `web/mobile` folders host the live HUD demo (Desktop and mobile). Keep everything that should be served from a webserver inside those folders.
|
||||
- `docs/game_rulebook.md` is the **Single Source of Truth (SSOT)** for Galaxy Forge’s game logic, builder system, resources, and requirements. Any UI work, game behavior, or rules must align with — not contradict — that document unless a new decision is logged.
|
||||
- `docs/` stores documentation while `planning/` holds sketches/notes that are not meant for deployment.
|
||||
## Projektregeln für Agents/Codex
|
||||
1. **SSOT:** `docs/game_rulebook*.md` ist maßgeblich. Änderungen müssen damit übereinstimmen.
|
||||
2. **Modularität:** Jedes Feature liegt in einem Modul (keine God-Classes, keine Mischzuständigkeiten).
|
||||
3. **Permissions:** Jede Admin-/Write-Aktion braucht eine Permission; **deny overrides** müssen funktionieren.
|
||||
4. **Keine Secrets:** Keine `.env`, keine echten Passwörter, keine API-Keys ins Repo.
|
||||
5. **Default-Credentials:** Nur Platzhalter wie `change-me`/`your-strong-password` verwenden und dokumentieren, dass vor Prod geändert werden muss.
|
||||
6. **Tests:** Tests müssen grün sein, bevor gemerged wird.
|
||||
|
||||
## Key Instructions for Agents
|
||||
1. **Reference SSOT first.** When implementing features or answering questions related to game balance, resources, blueprints, buildings, or world generation, open `docs/game_rulebook.md` and confirm compliance. Note any missing detail needs a Decision Log entry (see section 13).
|
||||
2. **Respect folder intent.** Changes to web assets go in `web/desktop` or `web/mobile` only. Use `planning/` for drafts and `docs/` for textual explanations.
|
||||
3. **Document assumptions.** If you must deviate from `docs/game_rulebook.md`, append an entry to the Decision Log (section 13) explaining the why/when.
|
||||
4. **Keep mobile/desktop aligned.** When adjusting UI/partials, mirror updates in both `web/desktop` and `web/mobile` unless the change is explicitly mobile-only or desktop-only and documented.
|
||||
5. **Speak German.** All explanations, comments, and user-facing text from agents must be in German unless the user explicitly requests otherwise in another language.
|
||||
6. **Smoke tests mandatory.** After every change touching runtime code or assets, perform a smoke test (e.g., `php -S localhost:8000 -t web/desktop/public`) and note the outcome before wrapping up.
|
||||
## Ordner-Intent (Kurzfassung)
|
||||
- `web/desktop` und `web/mobile`: Alles, was aus dem Webserver ausgeliefert wird.
|
||||
- `docs/`: Dokumentation (SSOT liegt hier).
|
||||
- `planning/`: Skizzen/Notizen, nicht für Deployment.
|
||||
|
||||
## When touching docs
|
||||
- Expand `docs/game_rulebook.md` if you update core rules, flow, or systems described there. Keep numbering/sections intact; append entries in the Decision Log (section 13) with dates.
|
||||
- The root `README.md` should mention where to find the SSOT and purpose of each folder.
|
||||
|
||||
## Decision Log Reminder
|
||||
- Section 13 of `docs/game_rulebook.md` is the Decision Log. Add a dated entry whenever:
|
||||
- You introduce a new rule variant or exception.
|
||||
- The implementation deviates from the documented defaults.
|
||||
## Sprache
|
||||
- Alle Agenten-Ausgaben und Kommentare sind **Deutsch**, außer der User verlangt explizit eine andere Sprache.
|
||||
|
||||
Reference in New Issue
Block a user