| Dimension | Shared | Only in A | Only in B | Overlap |
|---|---|---|---|---|
| Sections | 0 | 3 | 3 | 0% |
| Commands | 3 | 2 | 4 | 33% |
| Section tags | 4 | 0 | 0 | 100% |
What each file covers
Sections
0 shared · 3 only in A · 3 only in B- − AI Service Instructions
- − Commands
- − Rules
- + Cursor Project Rules
- + Always Follow
- + Checks
Commands
3 shared · 2 only in A · 4 only in B- − python -m uvicorn app.main:app --reload
- − mypy app
- + npm run lint:frontend
- + npm run typecheck:frontend
- + npm test --workspace frontend
- + npm --workspace frontend run build
- python -m ruff check .
- python -m pytest
- python -m mypy app
Section tags
4 shared · 0 only in A · 0 only in B- test
- lint-format
- do-not
- agent-behaviour
Line diff
Aledon8/OpenLeukemia · ai-service/CLAUDE.md
@@ −1 @@
1# AI Service Instructions
2
3This directory contains the FastAPI service for Python-native workloads: ML inference, document extraction, OCR or parsing workflows, model-facing APIs, and compute-heavy jobs.
4
5## Commands
6
7Run from `ai-service/`:
8
9```sh
10python -m uvicorn app.main:app --reload
11python -m ruff check .
12python -m pytest
13python -m mypy app
14```
15
16## Rules
17
18- Keep route handlers thin and focused on HTTP concerns.
19- Put reusable behavior in `app/domains/` services and schemas.
20- Use explicit Pydantic request and response models.
21- Preserve strict typing and keep `mypy app` clean.
22- Treat extraction results as candidate data until validated or confirmed.
23- Keep generated explanations non-diagnostic and patient-safe.
24- For endpoint changes, define the request/response contract and tests before broad implementation.
25
Aledon8/OpenLeukemia · .cursor/rules/project.mdc
@@ +1 @@
1---
2description: OpenLeukemia project instructions
3globs:
4 - "**/*"
5alwaysApply: true
6---
7
8# Cursor Project Rules
9
10OpenLeukemia is a patient-centered leukemia data platform for organizing medical data, tracking changes over time, extracting structured information from documents, and explaining validated model outputs.
11
12## Always Follow
13
14- Patient data belongs to the patient.
15- Registration is not blanket consent.
16- Consent must be separate, explicit, auditable, and revocable.
17- AI may summarize, extract, and explain; it must not diagnose, recommend treatment, or make urgent clinical judgments.
18- Read nearby code and docs before editing.
19- Keep changes minimal and focused.
20- Follow existing React, TypeScript, Supabase, FastAPI, and Python patterns.
21- Run or recommend the relevant checks after changes.
22- Do not rewrite unrelated files or add dependencies without clear need.
23
24## Checks
25
26- Frontend: `npm run lint:frontend`, `npm run typecheck:frontend`, `npm test --workspace frontend`, `npm --workspace frontend run build`.
27- AI service from `ai-service/`: `python -m ruff check .`, `python -m pytest`, `python -m mypy app`.
28
@@ −1 +1 @@
1−# AI Service Instructions
1+---
2+description: OpenLeukemia project instructions
3+globs:
4+ - "**/*"
5+alwaysApply: true
6+---
27
3−This directory contains the FastAPI service for Python-native workloads: ML inference, document extraction, OCR or parsing workflows, model-facing APIs, and compute-heavy jobs.
8+# Cursor Project Rules
49
5−## Commands
10+OpenLeukemia is a patient-centered leukemia data platform for organizing medical data, tracking changes over time, extracting structured information from documents, and explaining validated model outputs.
611
7−Run from `ai-service/`:
12+## Always Follow
813
9−```sh
10−python -m uvicorn app.main:app --reload
11−python -m ruff check .
12−python -m pytest
13−python -m mypy app
14−```
14+- Patient data belongs to the patient.
15+- Registration is not blanket consent.
16+- Consent must be separate, explicit, auditable, and revocable.
17+- AI may summarize, extract, and explain; it must not diagnose, recommend treatment, or make urgent clinical judgments.
18+- Read nearby code and docs before editing.
19+- Keep changes minimal and focused.
20+- Follow existing React, TypeScript, Supabase, FastAPI, and Python patterns.
21+- Run or recommend the relevant checks after changes.
22+- Do not rewrite unrelated files or add dependencies without clear need.
1523
16−## Rules
24+## Checks
1725
18−- Keep route handlers thin and focused on HTTP concerns.
19−- Put reusable behavior in `app/domains/` services and schemas.
20−- Use explicit Pydantic request and response models.
21−- Preserve strict typing and keep `mypy app` clean.
22−- Treat extraction results as candidate data until validated or confirmed.
23−- Keep generated explanations non-diagnostic and patient-safe.
24−- For endpoint changes, define the request/response contract and tests before broad implementation.
26+- Frontend: `npm run lint:frontend`, `npm run typecheck:frontend`, `npm test --workspace frontend`, `npm --workspace frontend run build`.
27+- AI service from `ai-service/`: `python -m ruff check .`, `python -m pytest`, `python -m mypy app`.
2528
