11---
22applyTo : ' **'
33---
4- Coding standards, domain knowledge, and preferences that AI should follow.
54
65# CRITICAL BEHAVIORS (Must Follow)
76
87## Complete Code Analysis - No Shortcuts
8+
99- Read files completely and thoroughly, minimum 1500 lines per read operation
1010- Process entire files: all functions, classes, variables, imports, exports, structures
1111- Reference specific sections throughout entire codebase to demonstrate full understanding
1212- Understand complete context: how functions interact, variables used across entire file
1313
1414## Direct Action - No Permission Asking
15+
1516- Never ask to run Terminal commands - make changes directly in remote environment
1617- Do not ask for confirmation before making changes - proceed automatically
1718- Only ask for confirmation when action could affect system stability or security
1819- Change summaries should be concise, focusing on specific changes made
1920- Never create change summaries as new .md files
2021
2122## Clear Communication Standards
23+
2224- Provide clear, concise, actionable information in chat interface only
2325- Use formatting and styling to enhance readability
2426- Avoid unnecessary verbosity or complexity in explanations
2527
2628# PROJECT CONTEXT & FOCUS
2729
2830## EngineScript - LEMP Server Automation
31+
2932- ** Primary Purpose** : LEMP server installation and configuration script for hosting WordPress sites
3033- ** Core Stack** : Ubuntu 24.04 LTS + Nginx + PHP 8.4+ + MariaDB 11.8+ + Redis
3134- ** Focus Areas** : Server administration, shell scripting, system configuration, security hardening
3235- ** Integration** : Cloudflare API for DNS management and performance optimization
3336- ** Target** : Production-ready WordPress hosting environments with automation and performance
3437
3538## Shell Scripting Requirements
39+
3640- All scripts written in ** Bash** following Unix/Linux best practices
3741- Use proper error handling: ` set -e ` , appropriate exit codes, comprehensive error checking
3842- Variable naming: ` UPPER_CASE ` for globals, ` lower_case ` for locals
@@ -42,6 +46,7 @@ Coding standards, domain knowledge, and preferences that AI should follow.
4246- Comprehensive logging and user feedback during installation
4347
4448## System Compatibility & Standards
49+
4550- ** Target OS** : Ubuntu 24.04 LTS exclusively
4651- ** Architecture** : Follow Linux Filesystem Hierarchy Standard (FHS)
4752- ** Service Management** : systemd for all service configuration
@@ -51,6 +56,7 @@ Coding standards, domain knowledge, and preferences that AI should follow.
5156# ESSENTIAL STANDARDS
5257
5358## Security & Data Handling (Critical)
59+
5460- ** Input Validation** : Sanitize all input/output, especially user-provided configuration data
5561- ** Sensitive Data** : Use secure methods for passwords, API keys - no leaking in logs/errors
5662- ** File Permissions** : Implement proper permissions and ownership throughout system
@@ -59,13 +65,15 @@ Coding standards, domain knowledge, and preferences that AI should follow.
5965- ** Vulnerability Response** : Ask for confirmation before proceeding with potential security risks
6066
6167## Documentation & Change Tracking
68+
6269- ** CHANGELOG.md** : Always document changes when modifying codebase (continuous improvement model)
6370- ** Key Files** : Keep updated: README.md, script headers, configuration templates
6471- ** Commit Messages** : Clear, descriptive messages explaining purpose and scope
6572- ** Breaking Changes** : Document new dependencies, system requirements prominently
6673- ** Manual Steps** : Document any required manual steps after updates
6774
6875## Code Quality & Architecture
76+
6977- ** Modular Design** : Function-based architecture, group related functionality
7078- ** Naming** : Meaningful, descriptive names for scripts, functions, variables
7179- ** Documentation** : Comprehensive inline comments and error checking
@@ -74,8 +82,9 @@ Coding standards, domain knowledge, and preferences that AI should follow.
7482- ** Backward Compatibility** : Maintain unless explicitly breaking changes required
7583
7684## Performance & Reliability
85+
7786- ** Error Handling** : Comprehensive validation for all critical operations
7887- ** Edge Cases** : Handle gracefully in installation scripts
7988- ** Logging** : Actionable errors with appropriate detail levels
8089- ** Dependencies** : Verify compatibility when introducing new software
81- - ** Testing** : Thoroughly test server configurations before implementation
90+ - ** Testing** : Thoroughly test server configurations before implementation
0 commit comments