Main configuration file for GitHub Copilot when working with the Tour Operator WordPress plugin.
- ← Back to README
- AGENTS.md - Root-level AI operations overview
- Instructions - Auto-applied coding standards (30+ files)
- Prompts - Reusable task templates (29 prompts)
- Agents - Specialized AI agents (50+ agents)
- Chat Modes - Interactive workflows (20 modes)
- Development Docs - Comprehensive guides and references
- WordPress Packages - Package usage guide
- Testing Guide - E2E testing with Playwright
This repository uses a four-tier AI-assisted development system:
-
Instructions (30+ files) - Automatically applied to matching files
- Coding standards and best practices
- Security and accessibility requirements
- WordPress-specific guidelines
- View all instructions →
-
Prompts (29 templates) - One-shot task templates
- Block development scaffolding
- Testing and documentation generation
- Code review and refactoring
- View all prompts →
-
Agents (50+ specialized) - Autonomous task execution
- Accessibility auditing
- CI/CD management
- Code quality enforcement
- View all agents →
-
Chat Modes (20 interactive) - Guided multi-turn workflows
- Feature planning and development
- Code review and debugging
- Release management
- View all chat modes →
Key instruction files:
tour-operator/
├── src/ # Source files (JS, SCSS)
├── includes/ # PHP classes and functions
├── templates/ # Template files
├── assets/ # Compiled assets
└── build/ # Build files
- Plugin prefix:
lsx_to_ - Block namespace:
lsx-to - Text domain:
tour-operator - Class namespace:
LSX_TO
The following instructions are only to be applied when performing a code review.
- Project: Tour Operator (WordPress blocks, API v3).
- Coding standards: WPCS for PHP; @wordpress/eslint-plugin for JS.
- Prefer
block.json+ server registration; avoid ad‑hoc CSS – use theme.json + selectors. - Tests: Playwright for E2E; prioritise inserter/preview, controls, SSR, icons integration.
- Use
get_block_wrapper_attributes()anduseBlockProps()when applicable. - Ensure accessibility: keyboard navigation, ARIA roles, color contrast.
- Follow security best practices: sanitize, validate, escape.
- The new file should be added to the
README.md.
Only apply to files that end in .prompt.md
- The prompt has markdown front matter.
- The prompt has a
modefield specified of eitheragentorask. - The prompt has a
descriptionfield. - The
descriptionfield is not empty. - The
descriptionfield value is wrapped in single quotes. - The file name is lower case, with words separated by hyphens.
- Encourage the use of
tools, but it's not required. - Strongly encourage the use of
modelto specify the model that the prompt is optimised for.
Only apply to files that end in .instructions.md
- The instruction has markdown front matter.
- The instruction has a
descriptionfield. - The
descriptionfield is not empty. - The
descriptionfield value is wrapped in single quotes. - The file name is lower case, with words separated by hyphens.
- The instruction has an
applyTofield that specifies the file or files to which the instructions apply. If they wish to specify multiple file paths they should formated like'**.js, **.ts'.
Only apply to files that end in .chatmode.md
- The chat mode has markdown front matter.
- The chat mode has a
descriptionfield. - The
descriptionfield is not empty. - The
descriptionfield value is wrapped in single quotes. - The file name is lower case, with words separated by hyphens.
- Encourage the use of
tools, but it's not required. - Strongly encourage the use of
modelto specify the model that the chat mode is optimised for.
- Always create a new branch for each task or issue you are working on.
- Use descriptive branch names following the convention:
feature/description,fix/description, ordocs/description. - Never commit directly to the
mainbranch. - Always open a pull request for code changes, even for small updates.
- Ensure your branch is up to date with
mainbefore opening a pull request. - Delete the branch after the pull request is merged.