Guidance for AI coding agents working in this repository.
- Keep changes minimal and task-focused.
- Do not refactor unrelated code.
- Preserve existing UX and styling conventions.
- Vite + React + TypeScript
- Source code in
src/ - Questionnaire dataset in
src/questionnaires.ts - Documentation in
docs/
- For questionnaire updates, follow the structure used in
src/questionnaires.ts. - Use existing enums/types from
src/types/(do not invent new ad-hoc values when avoidable). - Keep human-facing text concise and consistent with existing wording.
- If data types or questionnaire schema fields change, update
docs/ContributionGuide.mdand.github/ISSUE_TEMPLATE/*.ymlin the same change so all contribution instructions stay in sync.
- Match surrounding code style and naming.
- Prefer explicit, readable code over clever shortcuts.
- Avoid one-letter variable names.
- Do not add license headers or inline comments unless requested.
- Run targeted checks after edits when possible:
npm run lintnpm run build
- If a check fails due to unrelated pre-existing issues, report that clearly.
- Do not commit, create branches, or rewrite history unless explicitly asked.
- Summarize changed files and rationale clearly in handoff.