Skip to content

Automattic/wordpress-activitypub / .agents/skills/review

review

Verified

Shared base for reviewing a diff, a branch or a PR in this plugin. How to read the diff, which repo guidelines to load for the changed paths, and the shape of a finding. Used by the code-review and security-audit agents.

FileKindSize
SKILL.mdskill md6.6 KB
guidelines/accessibility.mdmarkdown759 B
guidelines/authorization.mdmarkdown4.9 KB
guidelines/content-exposure.mdmarkdown6.9 KB
guidelines/cron.mdmarkdown897 B
guidelines/inbox.mdmarkdown7.6 KB
guidelines/integrations.mdmarkdown2.0 KB
guidelines/multisite.mdmarkdown1018 B
guidelines/output.mdmarkdown3.3 KB
guidelines/remote-fetch.mdmarkdown6.4 KB
guidelines/signatures.mdmarkdown4.5 KB
guidelines/supply-chain.mdmarkdown596 B
judge.mdmarkdown1.3 KB

guidelines/cron.md

View on GitHub
# Scheduled callbacks

Cron callbacks with side effects someone can see.

Applies to: `includes/scheduler/**`, `includes/class-scheduler.php`, and any new `wp_schedule_event` or `wp_schedule_single_event`

- A callback that sends email, push notifications, outbound requests or federated activities guards against running twice. WP-Cron can fire the same callback more than once for one period: concurrent loopback workers, `register_schedules()` on reactivation, a manual `wp cron event run`, traffic spikes.
- The guard is an atomic claim before the side effect, usually `add_option( $key, $value, '', false )` keyed on the period, recipient or activity, with an early return when the claim fails. Check-then-send, time windows and transient locks are not race-safe.
- With a `$force` parameter, the claim is still written on forced runs, or the next scheduled run sends the same message again.
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall