You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+5-19Lines changed: 5 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,30 +13,22 @@ Change summaries should be concise and clear, focusing on the specific changes m
13
13
14
14
When delivering responses, the AI should provide clear, concise, and actionable information. Responses should be formatted in a way that is easy to read and understand, with a focus on clarity and precision. The AI should avoid unnecessary verbosity or complexity in its explanations.
15
15
16
-
Responses, change summaries, and code comments should be written in English. The AI should not use any other languages or dialects, including regional variations of English. All communication should be clear and professional, adhering to standard English grammar and spelling conventions.
17
-
18
16
Responses should be delivered only in the chat interface. Formatting and styling should be utilized to enhance readability.
19
17
20
18
Change summaries should never be created in the form of new .md files.
21
19
22
20
# Code Analysis and Reading Standards
23
21
24
-
You must read files completely and thoroughly, with a minimum of 1500 lines per read operation when analyzing code. Never truncate files or stop reading at arbitrary limits like 50 or 100 lines - this lazy approach provides incomplete context and leads to poor suggestions. When you encounter any file, read it from the very first line to the absolute last line, processing all functions, classes, variables, imports, exports, and code structures. Your analysis must be based on the complete file content, not partial snapshots. Always read at least 1000 lines minimum per read operation, and if the file is larger, continue reading until you've processed the entire file. Do not use phrases like "showing first X lines" or "truncated for brevity" or "rest of file omitted" - these indicate lazy, incomplete analysis. Instead, demonstrate that you've read the complete file by referencing specific sections throughout the entire codebase, understanding the full context of how functions interact, how variables are used across the entire file, and how the complete code structure works together. Your suggestions and recommendations must reflect knowledge of the entire file, not just the beginning portions. Take the time to read everything properly because thoroughness and accuracy based on complete file knowledge is infinitely more valuable than quick, incomplete reviews that miss critical context and lead to incorrect suggestions.
22
+
You must read files completely and thoroughly, with a minimum of 1500 lines per read operation when analyzing code. Never truncate files or stop reading at arbitrary limits like 50 or 100 lines. Your analysis must be based on the complete file content, not partial snapshots. Take the time to read everything properly because thoroughness and accuracy based on complete file knowledge is infinitely more valuable than quick, incomplete reviews that miss critical context and lead to incorrect suggestions.
25
23
26
24
# Coding Standards and Preferences
27
25
28
26
## WordPress Focused Design
29
27
30
-
- This project is focused on WordPress development.
31
-
- Use WordPress coding standards and best practices.
32
-
- Leverage WordPress APIs and functions where applicable.
33
-
- Ensure compatibility with modern WordPress versions and PHP standards. WordPress 6.5+ and PHP 7.4+ are the baseline.
34
-
- Use WordPress hooks (actions and filters) to extend functionality.
35
-
- Follow WordPress theme and plugin development guidelines.
36
-
- Use WordPress REST API for custom endpoints and data retrieval.
28
+
- Leverage WordPress APIs, hooks (actions and filters), and functions where applicable.
29
+
- Ensure compatibility with modern WordPress versions and PHP standards.
37
30
- Ensure all code is compatible with the WordPress ecosystem, including themes and plugins.
38
-
- As this is a WordPress-focused project, avoid using frameworks or libraries that are not compatible or commonly used with WordPress.
39
-
- Avoid using non-standard or experimental features that are not widely adopted in the WordPress community.
31
+
- Avoid using frameworks, libraries, or non-standard features that are not compatible or commonly used with WordPress.
40
32
41
33
## WordPress Coding Standards
42
34
@@ -81,8 +73,6 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
81
73
- When adding new information to the changelogs, changes will first be added to an "Unreleased" section at the top of the changelog file, and then later moved to a new version section when a new version is released. Be sure to follow this pattern and do not skip any of the changelog files.
82
74
- Do not automatically update the version number in the plugin header or other files. Instead, provide a clear and concise change summary that includes the version number and a brief description of the changes made.
83
75
- When making changes to the codebase, always update the relevant documentation files, including README.md, readme.txt, and CHANGELOG.md, even when a new version is not released.
84
-
- Note: changelog.txt has been removed from this project. Only maintain readme.txt (for WordPress.org) and CHANGELOG.md (for developers).
85
-
- Please do not skip these locations, as the changelog files must be in sync with each other, and the version numbers must be consistent across all files.
86
76
- I will instruct you when to update the version number, and you should not do this automatically. Always ask for confirmation before updating the version number.
87
77
- When the version number is updated, ensure that the new version number is reflected in all relevant files, as outlined in Version Locations above.
88
78
- When the version number is updated, make special note to update the "Unreleased" section in the changelog files to reflect the new version number and a brief description of the changes made. This ensures that all changes are documented and easily accessible for future reference.
@@ -126,12 +116,8 @@ You must read files completely and thoroughly, with a minimum of 1500 lines per
126
116
- Regularly update dependencies to their latest stable versions
127
117
- Use HTTPS for all API requests and data transmission
128
118
- When handling sensitive data, ensure it is encrypted both in transit and at rest
129
-
- If you suspect a security vulnerability, immediately notify the project maintainers and provide details for investigation
130
-
- If you encounter a security vulnerability in the codebase, do not disclose it publicly. Instead, report it privately to the project maintainers or through a responsible disclosure process.
131
-
- If you are unsure about the security implications of a specific code change, ask for clarification or guidance before proceeding.
119
+
- If you suspect a security vulnerability, attempt to identify and fix it automatically. Alert me to the issue and provide a detailed explanation of the vulnerability, how it can be exploited, and the steps taken to mitigate it.
132
120
- Always follow the principle of least privilege when implementing security features, ensuring that users and processes have only the permissions they need to perform their tasks.
133
-
- If you encounter a security vulnerability in a third-party library or dependency, check if there is an updated version that addresses the issue. If not, consider alternatives and notify me of the situation.
134
-
- If there is a possible security vulnerability in the codebase, you should always ask for confirmation before proceeding with any changes. This ensures that the project maintainers are aware of the potential risk and can provide guidance on how to address it safely.
135
121
- If I ask you to make changes that could potentially introduce security vulnerabilities, you should always ask for confirmation before proceeding. This ensures that the project maintainers are aware of the potential risk and can provide guidance on how to address it safely.
0 commit comments