Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Add GitHub Copilot repository instructions (#3425)

Copilotd416945ee1e1
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md
new file mode 100644
index 000000000..d34b85e60
--- /dev/null
+++ b/.github/copilot-instructions.md
@@ -0,0 +1,39 @@
+# Kornia Repository Instructions
+
+This file provides instructions for GitHub Copilot when working with code in this repository.
+
+## Coding Standards
+
+Follow the coding standards and best practices defined in [CONTRIBUTING.md](../CONTRIBUTING.md#coding-standards).
+
+## AI-Generated Content Policy
+
+- Code and comments must not be direct, unreviewed outputs of AI agents
+- All AI-assisted contributions require human oversight and validation
+- Ensure code logic reflects genuine understanding, not copied AI output
+
+## Key Guidelines
+
+- **Code style**: Follow PEP8, use 120 character line length, Ruff linting, and f-strings
+- **Type hints**: Required for all function inputs and outputs
+- **Documentation**: Follow documentation and docstring guidelines in [CONTRIBUTING.md](../CONTRIBUTING.md#coding-standards) and match the existing codebase style
+- **Testing**: Use `BaseTester` pattern with smoke, exception, cardinality, feature, gradcheck, and dynamo tests
+- **Dependencies**: Only PyTorch is allowed as a dependency
+
+## Running Checks
+
+```bash
+pixi run lint # Linting
+pixi run typecheck # Type checking
+pixi run test # Testing
+pixi run doctest # Documentation tests
+```
+
+## Review Checklist
+
+When reviewing code changes, verify:
+
+- Code and comments are not direct, unreviewed AI agent outputs
+- Code follows guidelines in [CONTRIBUTING.md](../CONTRIBUTING.md)
+- Tests are included for new functionality
+- Code passes `pixi run lint` and `pixi run typecheck`