|
| 1 | +# Repository Instructions |
| 2 | + |
| 3 | +Canonical source: [`AGENTS.md`](../AGENTS.md). |
| 4 | + |
| 5 | +If any instruction in this file conflicts with `AGENTS.md`, follow `AGENTS.md`. |
| 6 | + |
| 7 | +## Core Rules |
| 8 | + |
| 9 | +- Respect directory boundaries: |
| 10 | + - Backend: `src/`, `data_provider/`, `api/`, `bot/` |
| 11 | + - Web: `apps/dsa-web/` |
| 12 | + - Desktop: `apps/dsa-desktop/` |
| 13 | + - Deployment/workflows: `scripts/`, `.github/workflows/`, `docker/` |
| 14 | +- Do not run `git commit`, `git tag`, or `git push` without explicit user confirmation. |
| 15 | +- Do not hardcode secrets, accounts, ports, model names, absolute environment-specific paths, or environment-specific branches. |
| 16 | +- Reuse existing modules, configuration entrypoints, scripts, and tests instead of adding parallel implementations. |
| 17 | +- For user-visible behavior changes, CLI/API changes, deployment changes, notification changes, or report-structure changes, update `README.md` and `docs/CHANGELOG.md`. |
| 18 | +- When config semantics change, sync `.env.example` and assess impact on local runs, Docker, GitHub Actions, API, Web, and Desktop. |
| 19 | + |
| 20 | +## Validation |
| 21 | + |
| 22 | +- Backend changes: prefer `./scripts/ci_gate.sh`; at minimum run `python -m py_compile` on changed Python files and the closest deterministic tests. |
| 23 | +- Web changes: run `cd apps/dsa-web && npm ci && npm run lint && npm run build`. |
| 24 | +- Desktop changes: build web first, then desktop if feasible. |
| 25 | +- Review work should prioritize CI evidence (`gh pr checks`, workflow logs) before re-running local validation. |
| 26 | +- AI governance changes: run `python scripts/check_ai_assets.py`. |
| 27 | + |
| 28 | +## AI Asset Governance |
| 29 | + |
| 30 | +- `AGENTS.md` is the single source of truth for repository AI collaboration rules. |
| 31 | +- `CLAUDE.md` must remain a symlink to `AGENTS.md`. |
| 32 | +- Use `.github/instructions/*.instructions.md` for path-specific guidance. |
| 33 | +- Current repository collaboration skills live in `.claude/skills/`; keep them aligned with `AGENTS.md`. |
0 commit comments