Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

The copilot-instructions.md file contained a generic Node.js/TypeScript structure that contradicted the actual WordPress plugin architecture, causing Copilot to generate inappropriate code suggestions.

Changes

Technologies & Tooling

  • PHP 8.0+, WordPress 6.7+ Gutenberg, SCSS → replaced generic JavaScript/TypeScript stack
  • Gulp, @wordpress/scripts, PHPCS → replaced generic build tools
  • WordPress core APIs, Block Editor → defined as primary frameworks

Project Structure

  • Documented actual directories: includes/ (blocks, classes, metaboxes, taxonomies), templates/, assets/, post-types/, languages/
  • Removed incorrect src/ structure with generic module patterns

Coding Conventions

  • WordPress Coding Standards (WPCS) with escaping/sanitization requirements
  • PHPDoc standards and lsx_to_ prefixing conventions
  • RTL stylesheet support

Build & Agent Prompts

  • Updated commands: npm run build (blocks), npm run build-pot (translations), vendor/bin/phpcs (linting)
  • Replaced generic endpoint/module prompts with WordPress-specific: block creation, custom post types, metaboxes, REST API registration

Anti-patterns

  • WordPress best practices (proper DB abstraction, nonce verification) → replaced restrictions against WordPress patterns

This ensures Copilot generates WordPress-compliant code following the plugin's actual architecture.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 10, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'commands', 'linked_issues'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Comment @coderabbitai help to get the list of available commands and usage tips.

Base automatically changed from 566-add-copilot-instructions to 2.1-trunk December 10, 2025 20:07
@github-actions github-actions bot added status:needs-review Awaiting code review meta:needs-changelog Requires a changelog entry before merge labels Dec 10, 2025
@krugazul krugazul assigned Copilot and unassigned krugazul and Copilot Dec 10, 2025
Copilot AI changed the title [WIP] Update copilot-instructions.md based on review feedback Update copilot-instructions.md to reflect WordPress plugin architecture Dec 10, 2025
Copilot AI requested a review from krugazul December 10, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta:needs-changelog Requires a changelog entry before merge status:needs-review Awaiting code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants