wordpress-workspace-preview-routing-debug

作成者: automattic

WordPress Workspace Agentのプレビュー、編集モード、認証、プロキシ、およびURLルーティングの動作を、シンプルなWordPress.com、Jetpack、Atomicサイト間でデバッグします。使用…

npx skills add https://github.com/automattic/workspace --skill wordpress-workspace-preview-routing-debug

WordPress Workspace Preview Routing Debug

Use this skill for preview/auth/editor-mode problems in the WordPress Agent window or detached preview.

Workflow

  1. Ground the report in the current code path.
    • Inspect Sources/WordPressAgentPreviewURLResolver.swift, Sources/WordPressAgentWindowView.swift, Sources/WPCOMClient.swift, and relevant Sources/AppState.swift preview methods.
    • Search with rg -n "preview|frame_nonce|jetpack_frame_nonce|unmapped|Atomic|cookie|requested|effective|private|proxy" Sources.
  2. Preserve the preview trust rules.
    • Show the requested user-facing URL in UI.
    • Do not expose effective preview URLs, frame nonces, auth bootstrap URLs, or private preview details.
    • Reject localhost and private-network URLs.
  3. Check site type and mode.
    • Simple WordPress.com, Jetpack, and Atomic sites can require different preview URL, unmapped-host, nonce, cookie, or read-access handling.
    • Distinguish signed-out view, authenticated preview, and editor mode.
  4. Check proxy and routing overrides.
    • Inspect Sources/NetworkRoutingSettings.swift and the WordPress.com auth-cookie bootstrap in Sources/WPCOMClient.swift.
    • The app has a developer setting to bypass the macOS system proxy for sandbox routing, but the preview cookie-bootstrap flow intentionally uses a one-off direct session because proxy routing has produced wp-login.php 200 responses with empty auth cookies.
    • Keep normal API traffic aligned with the user's network setting unless the code path is specifically browser-cookie infrastructure.
  5. Reproduce with focused signals.
    • Prefer app logs, existing preview loading states, and targeted code inspection before inventing shell-only repros.
    • Verify loading/preparation states, navigation updates, requested-vs-effective URL display, and mode switch behavior.
  6. Keep comments where behavior is non-obvious.
    • Proxy bypass, cookie bootstrap, nonce handling, and URL rewriting deserve concise code comments when changed.

Output

  • Lead with the failing route or trust boundary.
  • Include file references and the specific site/mode assumptions.
  • Recommend tests for public URL, same-site URL, preview URL, editor URL, internal navigation, and rejected private URL.

automatticのその他のスキル

testing-js
automattic
JavaScriptファイルの構文エラーをチェックするためのガイドライン
setup
automattic
dn CLIがインストールされ、設定されていることを確認します。ユーザーが初めてdomain-namesプラグインをインストールしたとき、またはdnコマンドがCLIの理由で失敗したときに使用します…
studio-cli
automattic
Studio CLIを使用して、ローカルのWordPressサイト、認証、プレビューサイトを管理します。Studio CLIコマンドの実行や管理が必要な場合に、このスキルを呼び出してください。
dn-info
automattic
登録済みドメインの詳細情報をdn CLIで取得します。ユーザーが有効期限、ネームサーバー、連絡先などのドメイン詳細を確認したい場合に使用します。
qa
automattic
抽出されたWXRコンテンツを元のソースサイトとページごとに比較します。欠落しているテキスト、見出し、画像、リンクを見つけます。WXRにパッチを適用して修正するか、…
add-skill
automattic
a8c-designプラグインに新しいスキルを追加します。Claude Codeスキルを構築し、それを共有のAutomattic a8c-designプラグインに貢献したい場合に使用します —…
design-foundations
automattic
解放されたサイトから一貫性のあるdesign-foundation JSONを構築する — 証跡付きの意味論的な色・タイポグラフィ・スペーシングの役割。部分的なスキャフォールドを消費する…
wp-phpstan
automattic
WordPressプロジェクト(プラグイン/テーマ/サイト)でPHPStan静的解析の設定、実行、修正を行う際に使用:phpstan.neonのセットアップ、ベースライン、…