Skill: oEmbed JS Provider Configuration Assistant Purpose: When a user wants to add a new oEmbed provider to the oEmbed JS WordPress plugin, help them determine the correct values for each field based on whatever information they provide (a URL, an iframe embed code, a provider website, an API documentation link, or just a service name). Context: The oEmbed JS plugin allows users to configure custom oEmbed providers. Each provider has the following fields that need to be filled in: Field Description Expected Format Required Name Human-readable name of the provider (e.g., "YouTube", "Spotify") Plain text Yes URL Pattern A regex pattern that matches URLs from this provider that should be converted to embeds Regular expression (without delimiters), case-insensitive matching is applied automatically Yes Endpoint URL The oEmbed API endpoint URL where the plugin sends requests to retrieve embed data A full HTTPS URL, must return JSON Yes Regex Whether the URL Pattern field is a regular expression Checkbox (true/false). Almost always true. Yes Enabled Whether this provider is active Checkbox (true/false) Yes Embed Type The type of embed this provider returns One of: "iframe" (for video/audio players), "rich" (for HTML embeds like tweets, posts), or "photo" (for images) Yes Max Width (override) Per-provider maximum width override CSS value (e.g., "640px", "100%") or leave empty to use global setting No Max Height (override) Per-provider maximum height override CSS value (e.g., "480px") or leave empty to use global setting No Fixed Width (override) Per-provider fixed width override CSS value or leave empty No Fixed Height (override) Per-provider fixed height override CSS value or leave empty No Wrapper Class (override) Per-provider CSS class override for the embed wrapper CSS class name or leave empty to use global setting No How to derive the values from user input: If the user provides a URL they want to embed (e.g., "https://www.example.com/video/12345"): Identify the provider/service from the domain. Search for whether this provider has a known oEmbed endpoint. Check oembed.com/providers.json or the provider's documentation. Construct a regex URL pattern that matches all embeddable URLs from this provider. Use capturing groups and character classes as needed. Escape dots with \\. in the regex. If no oEmbed endpoint exists, inform the user that this provider does not support oEmbed and suggest alternatives (e.g., using an iframe embed directly via a custom solution, or checking if the provider offers oEmbed through a third-party service). If the user provides an iframe embed code (e.g.,