Imported from yellowcandle/mv-face-recognition (
AGENTS.md). Install upstream withnpx skills add yellowcandle/mv-face-recognition. Copyright stays with the author.
MV Face Recognition - AI Agent Guidelines
Build/Test/Lint Commands
Python (Root & Backend):
uv run pytest- Run all tests (use uv as per .clinerules)uv run pytest tests/test_specific.py::test_function- Run single testuv run black .- Format code with Blackuv run isort .- Sort importsuv run flake8 .- Lint codeuv run mypy .- Type checking
Frontend (Svelte):
cd frontend && npm run lint- ESLint + Prettier checkcd frontend && npm run format- Auto-format with Prettiercd frontend && npm run check- Type check with svelte-checkcd frontend && npm run build- Production build
MVP Processor:
cd mvp-processor && npm test- Run Vitest testscd mvp-processor && npm run test:e2e- Playwright E2E testscd mvp-processor && npm run lint- ESLint check
Code Style Guidelines
Python: Follow PEP 8, use type hints, document functions with docstrings. Import order: stdlib, third-party, local (from src.core.detector import FaceDetector). Use numpy arrays for face processing, logging for errors.
TypeScript/Svelte: Use strict TypeScript, camelCase naming, reactive statements with $:, stores for state (dashboardStats, contestantsStore). Import from $lib/ for components and utilities.
Error Handling: Python - use logging module, TypeScript - proper try/catch with meaningful messages.
Use uv and pyproject.toml for Python dependency management (per .clinerules)
