一键导入
camofox-stack
Skill for utilizing the CamoFox anti-detection browser stack (camoufox, camofox-browser, camofox-mcp) for agentic web scraping and automation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Skill for utilizing the CamoFox anti-detection browser stack (camoufox, camofox-browser, camofox-mcp) for agentic web scraping and automation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Post-quantum cryptography secrets management system for protecting API keys, tokens, and private data.
Expert instructions to implement and verify ML-DSA-65 post-quantum cryptographic signatures and agentic workflow security.
Enterprise-grade codebase intelligence via a TWO-LAYER knowledge graph. Use GitNexus (MCP-native, AST-precise, call-graph aware) as the always-on operational layer for code call-chains, blast-radius, and rename. Use Graphify (multimodal, code+docs+papers+video+image) as the on-demand semantic enrichment layer for cross-document reasoning, PR triage, and visual deliverables. Trigger on: "how does X work", "what calls Y", "what breaks if I change Z", "show me the architecture", "ingest this paper/RFC", "triage my PRs", "client briefing", "merge-order risk", "find dead code", "explain this symbol", "find god nodes", or any codebase question. Skips guessing, fast-paths through cached graphs.
Multi-tool coding skill integrating gstack (Claude Code skills), claude (Claude Code), and mini-live (mini-swe-agent with Live-SWE-agent config). Use when spawning Claude Code sessions for coding work, running security audits, code reviews, QA testing URLs, building features end-to-end, or planning before building. Also configures and orchestrates sub-agents to maximize utilization of all AI subscriptions and APIs. For MCP-equipped sub-agent dispatch with provider fallback, pair with pi-mini-orchestrator skill.
Multi-agent orchestration via fixed claude→mini rotation with scoped MCP tools and provider fallback chains. Every dispatch gets exactly the MCP servers it needs, a provider chain that auto-recovers from API failures, and its own git worktree for filesystem isolation. Use when dispatching subagent tasks, running parallel coding work across subscriptions, or orchestrating complex multi-step code changes.
Enhances and hardens markdown documents through two independent pipelines — (1) fusing external knowledge bases into a target document via multi-agent orchestration, and (2) recursively optimizing documents for multi-model LLM effectiveness using a split→optimize→review→merge architecture.
| name | camofox-stack |
| description | Skill for utilizing the CamoFox anti-detection browser stack (camoufox, camofox-browser, camofox-mcp) for agentic web scraping and automation. |
You are an expert in Anti-Detection Browser Automation. You understand the three-layer architecture of the CamoFox ecosystem and how to leverage it for stealth web automation.
The CamoFox stack consists of three distinct layers, derived from the three repositories you integrated. It is crucial to understand how they interlock into a single stack:
camoufox (Core Engine)
camofox-browser (Server/CLI)
camofox-mcp (Agent Bridge)
camofox-browser API.When running this stack on a standard machine (e.g., 16GB unified memory Mac):
camofox-browser): ~100MB RAM overhead.camofox-mcp): ~50MB RAM overhead.camoufox): ~1.2GB base per isolated user context. Camoufox runs multiple heavy plugin-container processes to manage anti-detect spoofing and isolated tracking protection.userId sessions to max 5-8 contexts. Running more than 8 contexts will result in severe memory pressure and swapping on a 16GB Mac. If you need more tabs, reuse the same userId context, which adds a much smaller ~50-100MB per additional tab.camofox-browser automatically manages idle contexts via LRU eviction, but you must aggressively manage active context count.When writing automation scripts inside the agent environment, prefer the camofox CLI for rapid prototyping.
Important Quirk: Always capture the tabId returned by camofox open and pass it to subsequent commands, especially in shell scripts. Relying on implicit active tab state can lead to "No active tab found" errors during fast execution.
# Open URL and capture the tab ID
TAB_ID=$(camofox open https://example.com | grep -o 'tabId: .*' | cut -d' ' -f2)
# Get structured element tree using the captured tab ID
camofox snapshot $TAB_ID --format json --user agent-1
# Interact safely
camofox click e1 $TAB_ID --user agent-1
camofox type e3 "search query" $TAB_ID --user agent-1
# Save state
camofox session save my-session --user agent-1
Instead of injecting arbitrary JavaScript (which can trigger anti-bot systems), use the native Structured Extraction feature:
{
"kind": "extractStructured",
"schema": {
"kind": "object",
"fields": {
"title": { "kind": "text", "selector": "h1" }
}
}
}
Never hardcode credentials in your agent scripts. Use the camofox auth vault:
# Inject credentials directly into the browser without the LLM seeing the password
camofox auth load my-service --inject --username-ref e5 --password-ref e12
When tasked with a web scraping or automation task that requires bypassing bot detection:
camofox-browser is running (curl http://localhost:9377/health).CAMOFOX_PROXY_PROFILES_FILE or explicit --proxy-host arguments. No browser engine can spoof an IP address!camofox snapshot).[eN] refs from the snapshot to click and type.camofox extract-structured with a strict JSON schema.If you decide to use curl or language-native HTTP clients instead of the CLI, note that the /tabs endpoint requires both a userId and a sessionKey in the JSON body. The sessionKey determines the scope of session reuse and proxy bindings.
# Correct REST API Usage
curl -X POST http://localhost:9377/tabs \
-H 'Content-Type: application/json' \
-d '{"userId": "agent1", "sessionKey": "task1", "url": "https://example.com"}'
# Returns: {"tabId": "...", "url": "..."}