| 1 |
# AGENTS |
| 2 |
|
| 3 |
Concise guidance for coding agents. **Do not turn this file into a manual.** |
| 4 |
|
| 5 |
## Product |
| 6 |
|
| 7 |
WordPress plugin: large set of Gutenberg blocks and related editor/settings UI (`GhostKit_*` classes). |
| 8 |
|
| 9 |
## Stack |
| 10 |
|
| 11 |
- PHP, WPCS |
| 12 |
- React + `@wordpress/scripts`, SCSS |
| 13 |
- Blocks and editor code: `gutenberg/`; PHP services: `classes/`; admin/settings as structured in repo; `build/` is compiled. |
| 14 |
|
| 15 |
## Rules |
| 16 |
|
| 17 |
- Prefer minimal, localized changes; match existing Ghost Kit patterns. |
| 18 |
- WordPress: sanitize/escape; verify nonces and capabilities for privileged flows. |
| 19 |
- Confirm script names in `package.json` before running builds or linters. |
| 20 |
|
| 21 |
## Commands |
| 22 |
|
| 23 |
Defined in `package.json` (e.g. `npm run dev`, `npm run build`, lint, env, e2e). Use those exact names. |
| 24 |
|