Add GitHub Copilot instructions for repository
Configures GitHub Copilot coding agent instructions per best practices documentation.
Changes
- Added
.github/copilot-instructions.mdwith concise guidance for Copilot:- Project structure and monorepo layout
- WordPress coding standards (PHP, JavaScript, HTML)
- Key conventions: no namespaces, procedural patterns,
@since n.e.x.ttags - Development commands for building, linting, testing
- PHP 7.2+ type hints and PHPStan level 10 compliance
- ES modules with JSDoc/TypeScript types
- References to existing AGENTS.md and handbook
The file complements the existing AGENTS.md by providing Copilot-specific quick reference for common development tasks and coding standards.
[!WARNING]
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
gh.io
- Triggering command:
/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only)
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.
<Onboard this repo></issue_description>
Comments on the Issue (you are @copilot in this section)
- Fixes WordPress/performance#2351
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.