performance icon indicating copy to clipboard operation
performance copied to clipboard

Add GitHub Copilot instructions for repository

Open Copilot opened this issue 1 month ago • 4 comments

Configures GitHub Copilot coding agent instructions per best practices documentation.

Changes

  • Added .github/copilot-instructions.md with 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.t tags
    • 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:

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.

Copilot avatar Jan 15 '26 18:01 Copilot