This repository contains coding guidelines for AI assistants working on the RERO MEF project.
CLAUDE.md- Coding instructions specifically for Claude AI Code Assistant- Located in project root for Claude to read automatically
.github/copilot-instructions.md- Coding instructions for GitHub Copilot- Located in
.github/directory per Copilot conventions
Both files contain the same project-specific guidelines:
- Testing guidelines - How to run tests using
uv - Code style - Ruff configuration and docstring conventions
- Testing patterns - Coverage expectations and mocking patterns
- Project conventions - VIAF-specific patterns, database operations
- Common patterns - Record operations, CLI patterns, task patterns
- Common pitfalls - What to avoid
Claude automatically reads CLAUDE.md from the project root when working in this workspace.
GitHub Copilot automatically reads .github/copilot-instructions.md when providing suggestions.
When updating coding guidelines:
- Update both
CLAUDE.mdand.github/copilot-instructions.md - Keep content synchronized between both files
- Test with both AI assistants to ensure guidelines work as expected
Different AI assistants look for instructions in different locations:
- Claude: Reads
CLAUDE.mdor.claude/directory - GitHub Copilot: Reads
.github/copilot-instructions.md
Having both ensures consistent coding standards regardless of which AI assistant is being used.