Automattic/wordpress-atmosphere / .agents/skills/review
review
UnverifiedShared 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.1 KB |
| guidelines/accessibility.md | markdown | 781 B |
| guidelines/authorization.md | markdown | 2.8 KB |
| guidelines/content-exposure.md | markdown | 6.8 KB |
| guidelines/cron.md | markdown | 1.9 KB |
| guidelines/hooks.md | markdown | 2.3 KB |
| guidelines/oauth.md | markdown | 3.6 KB |
| guidelines/output.md | markdown | 610 B |
| guidelines/records.md | markdown | 2.1 KB |
| guidelines/remote-fetch.md | markdown | 5.3 KB |
| guidelines/supply-chain.md | markdown | 582 B |
| guidelines/uninstall.md | markdown | 2.0 KB |
| guidelines/well-known.md | markdown | 1.4 KB |
| judge.md | markdown | 1.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`).
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |