proxy-testing
БесплатноЗапускает вложенные скриптыНе проверенTest autoconsent via regional proxies in Playwright. Use when verifying rule changes across regions (US, EU, UK, etc.), or investigating region-dependent CMP…
от duckduckgo★ 139 звёзд на GitHubОб этом скилле
Proxy Testing
This skill provides a JS library to run autoconsent via regional proxies in Playwright. It is the default for regional testing.
Oxylabs remote browsers are available too, through the oxylabs-testing skill. They get past most bot walls (captchas, challenge pages, "access denied" pages) that some sites show to our proxies, but they cost money per session, so use them only for the regions where our proxies don't get you the real site.
Rule changes are verified with a two-level regional policy.
The core region set (default for detection, iteration, and verification) covers us (CCPA), gb (UK GDPR), de (EEA GDPR), plus the reported region from the task when specified (if the reported region is not a supported proxy region, use the closest supported one, e.g. es for pt). Iterate in the single most relevant region; run the full core set once when the fix is stable.
Escalate to the expanded set (us, gb, de, fr, nl, pl, au, ca, jp) if any of these is true:
- core results diverge
- the rule contains region-dependent logic
- the fix relies on language-specific or brittle structural selectors
- the change touches a widely-used generic rule (as final pre-PR validation)
- a non-core region named in the report behaves differently.
The remaining GDPR/EEA regions (ch, no, it, es, se, dk) are optional even in an expanded pass: test them only when named in the report or clearly relevant (e.g. the site's ccTLD).
Important! Autoconsent results can have false positives. When testing, always inspect the screenshots and confirm that opt-out was successful.
Prerequisites
npm run prepublish # builds dist/ (content script and package bundles) and rules/rules.json, rules/compact-rules.json
Environment variables:
REGIONAL_PROXY_<TWO_LETTER_REGION_CODE>(for example,REGIONAL_PROXY_US,REGIONAL_PROXY_GB,REGIONAL_PROXY_AU, etc.) - a complete proxy URL with anhttp://,https://, orsocks5://scheme. Examples:socks5://usc-socks-tr-cluster.duckduckgo.com:80,https://proxy.example.com:443.REGIONAL_PROXY_USERNAMEandREGIONAL_PROXY_PASSWORD(optional) - shared credentials, passed to Playwright forhttps://proxies only. They are ignored forhttp://andsocks5://proxies.
Never embed credentials in a proxy URL.
Usage
Test one URL:
import { formatResult, testUrl } from './.agents/skills/proxy-testing/scripts/regional-proxy.mjs';
const result = await testUrl('https://www.wohnen.de/', 'de');
console.log(formatResult(result));
Test multiple regions:
import { formatResult, testRegions } from './.agents/skills/proxy-testing/scripts/regional-proxy.mjs';
const results = await testRegions('https://www.wohnen.de/', ['us', 'de', 'fr']);
for (const result of results) {
console.log(formatResult(result));
}
Use an existing page:
import { launchRegionalProxyBrowser, testPage } from './.agents/skills/proxy-testing/scripts/regional-proxy.mjs';
const browser = await launchRegionalProxyBrowser('de');
const page = await browser.newPage();
const result = await testPage(page, 'https://www.wohnen.de/', 'de');
await browser.close();
Get proxy config for Playwright Test:
import { defineConfig } from '@playwright/test';
import { buildProxyConfig } from './.agents/skills/proxy-testing/scripts/regional-proxy.mjs';
export default defineConfig({
use: {
proxy: buildProxyConfig('us'),
},
});
API
testUrl(url, regionKey, options?)— test one URL in a single region; launches a proxied browser, runs autoconsent, returns aTestResult.testRegions(url, regions?, options?)— test one URL across several regions (defaults toCORE_REGIONS), a fresh browser per region; returnsTestResult[]. Remember to include the reported region when not already covered.CORE_REGIONS— the core region set (default); add the reported region when not already covered.EXPANDED_REGIONS— the expanded region set used on escalation.ALL_REGIONS— all supported regions.testPage(page, url, regionKey, options?)— run a full test on a page you created yourself (you own the browser/context); returns aTestResult.injectAutoconsent(page, options?)— set up isolated-world injection; call beforepage.goto(). Returns a context (received,hasMessage,waitForCompletion,waitForMessage,collectResult).buildProxyConfig(regionKey)— build the Playwright proxy object for a region from its env vars; returns{ server, username, password }forhttps://proxies when credentials are set, otherwise{ server }.launchRegionalProxyBrowser(regionKey, options?)— launch a Chromium browser routed through the region's proxy.formatResult(result)— format aTestResultas a human-readable summary line.
Options (all optional):
action—'optOut'(default),'optIn', ornullto only detect (no opt-out/opt-in performed).- `sc
Установить proxy-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл proxy-testing?
Test autoconsent via regional proxies in Playwright. Use when verifying rule changes across regions (US, EU, UK, etc.), or investigating region-dependent CMP behavior.
Как установить скилл proxy-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл proxy-testing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic