Skip to content

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

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 md7.1 KB
guidelines/accessibility.mdmarkdown781 B
guidelines/authorization.mdmarkdown2.8 KB
guidelines/content-exposure.mdmarkdown6.8 KB
guidelines/cron.mdmarkdown1.9 KB
guidelines/hooks.mdmarkdown2.3 KB
guidelines/oauth.mdmarkdown3.6 KB
guidelines/output.mdmarkdown610 B
guidelines/records.mdmarkdown2.1 KB
guidelines/remote-fetch.mdmarkdown5.3 KB
guidelines/supply-chain.mdmarkdown582 B
guidelines/uninstall.mdmarkdown2.0 KB
guidelines/well-known.mdmarkdown1.4 KB
judge.mdmarkdown1.2 KB

guidelines/well-known.md

View on GitHub
# Well-known endpoints and CORS

The `/.well-known/` handlers and the headers public responses send.

Applies to: `includes/class-atmosphere.php` (rewrite rules and `template_redirect` handlers), `includes/rest/**`

## Endpoints

- `/.well-known/atproto-did` exposes only the configured DID, and unexpected query parameters (`?foo=bar`, `?atmosphere_wellknown=garbage`) cannot make it return data for another site or user.
- `/.well-known/site.standard.publication` exposes only the configured publication AT-URI, nothing derived from the current post context (for example draft data through an injected query var).
- The rewrite rules cannot be abused to reach other well-known paths.
- The `atmosphere_wellknown` query var cannot be injected with unexpected values.
- Response headers (Content-Type, caching) fit each endpoint.

## CORS

- An endpoint not designed for browser clients does not advertise credentialed cross-origin access: `Access-Control-Allow-Origin: *` never comes with `Access-Control-Allow-Credentials: true`.
- Bearer-token endpoints (an OAuth-protected resource) allow credentialed CORS only for an explicit origin allow list, not `*`.
- `Vary: Accept` / `Vary: Origin` are sent where the response differs by those headers, or a CDN caches the wrong variant.
- Preflight (`OPTIONS`) responses do not advertise more than the real handler accepts (`PUT`, `DELETE` or custom auth headers when the handler only takes `GET`).
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: 472kUpdated 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: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated 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