Skip to content

Conversation

Copy link

Copilot AI commented Dec 5, 2025

Configures GitHub Copilot coding agent with repository-specific context per best practices.

Changes

  • Added .github/copilot-instructions.md with:
    • Magento 2 module context (PHP 8.3+, requires 2.4.7+)
    • Coding standards: Magento Coding Standards, PSR-4, strict typing with declare(strict_types=1), constructor property promotion with readonly
    • Code formatting: 4-space indentation, 80-char lines, PascalCase classes, camelCase methods
    • Build validation: PHPCS with Magento2 standard
    • Git conventions: #<issue> - <message> commit format
    • Project structure: Command patterns, service layer, theme builder interface implementations
    • Domain guidance: Theme builders in Service/ThemeBuilder/, Magento DI patterns, CLI command shortcodes

This enables Copilot to generate code consistent with project conventions and understand the Magento 2 module architecture.

Original prompt

This section details on the original issue you should resolve

<issue_title>✨ Set up Copilot instructions</issue_title>
<issue_description>Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Configure Copilot instructions for the repository Add GitHub Copilot instructions for repository Dec 5, 2025
Copilot AI requested a review from dermatz December 5, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Set up Copilot instructions

2 participants