| Server IP : 65.109.86.83 / Your IP : 216.73.216.140 Web Server : nginx/1.14.1 System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/imagify/.aiassistant/skills/wordpress-compliance/ |
Upload File : |
--- name: wordpress-compliance description: Use this skill when modifying templates, admin UI, output, hooks, plugin metadata, sanitization, escaping, or any code that must remain compliant with WordPress.org and repository PHPCS rules. --- # WordPress Compliance Ensure compatibility with: - WordPress Plugin Check - Repository PHPCS rules - WordPress.org expectations ## Responsibilities - Respect repository PHPCS configuration. - Follow WordPress escaping standards. - Avoid forbidden or deprecated APIs. - Avoid direct access to superglobals without sanitization. - Ensure output is escaped for context. ## Escaping heuristics HTML text: `esc_html()` HTML attribute: `esc_attr()` URL: `esc_url()` Allowed HTML: `wp_kses_post()` ## Anti-patterns - Echoing raw variables - Introducing unescaped output - Storing sensitive values in plain text - Bypassing repository PHPCS configuration ## Related Specs When relevant, consult repository specs under `.aiassistant/specs/`, especially: - `.aiassistant/specs/phpcs/nonce-verification-recommended.md` - `.aiassistant/specs/phpcs/validated-sanitized-input.md` - `.aiassistant/specs/phpcs/escaped-output.md` ## Git Operations Follow the policy defined in AGENTS.md ยง6.1. Outside the issue workflow, do not run `git commit` or `git push`.