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
- Hook reference → `rg 'do_action\|apply_filters'` across `inc/`
256
263
- BerlinDB schema → read `inc/database/` directly
@@ -259,6 +266,14 @@ Use the codebase itself for API/hook research:
259
266
260
267
The Edit tool **requires** a prior Read call on the same file in the **current conversation session**. A prior read from a previous conversation does not count — if the session restarts or the context is cleared, re-read every file before editing it. If you attempt to edit without reading first, the tool will fail. Always read the complete target file before editing — even for small changes.
261
268
269
+
**Required per-file workflow — follow this every time:**
270
+
271
+
1. Call `Read` on the target file.
272
+
2. Immediately call `Edit` on that same file.
273
+
3. If you need to edit another file, call `Read` on that next file first.
274
+
275
+
Do **not** read all files at session start and edit them later. The pattern `Read(A) → Read(B) → Edit(A)` is correct only if A's content has not changed; in practice, read immediately before each edit to stay safe.
276
+
262
277
When working on multiple files in the same session: read each file immediately before editing it, not at the start of the session. Reading file A, then file B, then editing file A will fail if A's content changed between your read and your edit.
263
278
264
279
### WP-CLI and Bash Prerequisites
@@ -345,3 +360,12 @@ bootstrapped. Use WP-CLI for WordPress-context commands instead:
345
360
wp eval'echo get_option("blogname");'# correct — WP context available
346
361
php -r 'echo get_option("blogname");'# wrong — fatal: Call to undefined function
347
362
```
363
+
364
+
**Do not pass `--standard=` to PHPCS** — the coding standard is already declared in
365
+
`.phpcs.xml.dist` (and `.phpcs.xml` if present). Passing `--standard=WordPress` manually
366
+
overrides the project config and ignores custom rules. Run PHPCS without a `--standard=` flag:
0 commit comments