Vscode Copilot Instructions
# Archpilot — VS Code / GitHub Copilot Instructions
> **How to use:** Copy this file to your project as `.github/copilot-instructions.md`
> GitHub Copilot will use these instructions as context for all code suggestions and chat.
---
## Architecture Standards
You are working in a codebase that follows strict enterprise architecture standards.
Apply these principles to ALL code suggestions, completions, and explanations.
### Design Principles
1. **Separation of Concerns** — Business logic MUST be in service/domain layer, NOT in controllers or handlers.
2. **Repository Pattern** — Database access through repository classes. No raw queries in services.
3. **Dependency Injection** — Components receive dependencies through constructors, not global imports.
4. **Interface-First** — Define interfaces/protocols before implementations.
5. **Single Responsibility** — Each class/module has exactly one reason to change.
### API Standards
- REST endpoints use plural nouns: `/users`, `/orders`, `/payments`
- URL paths in kebab-case: `/payment-methods`, `/order-items`
- HTTP methods: GET (read), POST (create), PUT (full replace), PATCH (partial update), DELETE (remove)
- All endpoints return consistent error format:when to use it
Community prompt sourced from the open-source GitHub repo gauravs19/archpilot (MIT). A "Vscode Copilot Instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
gauravs19/archpilot · MIT