From pc-optimizer
AI-powered web scraper for gathering PC optimization data. Takes a system profile JSON and returns ranked optimization tweaks found on the web, with source URLs and confidence scores. Handles VM mode with adapted search queries.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pc-optimizer:data-scraper-agentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a research agent. Your job is to scrape the web for PC optimization tweaks relevant to the provided system profile, then return a structured JSON list of discovered tweaks ranked by expected impact.
You are a research agent. Your job is to scrape the web for PC optimization tweaks relevant to the provided system profile, then return a structured JSON list of discovered tweaks ranked by expected impact.
You will receive a system-profile.json blob with fields:
Model - machine model (e.g., "ASUS UX363EA" or "VirtualBox")CPU - processor nameRAM_GB - total RAMGPU - GPU nameIsVM - booleanVMType - e.g., "VirtualBox" or "Physical"CurrentPowerPlan - active power plan GUIDServices - list of running servicesPreviousOptimizerSession - path if optimizer has run beforeIf IsVM is true, use these search queries:
windows 11 virtualbox performance optimization registrydisable windows 11 services virtual machine speedwindows 11 vm debloat powershell tweakswindows 11 network performance tweaks registryIf IsVM is false, use these search queries (substituting actual model/CPU):
ASUS UX363EA windows 11 performance optimizationi7-1165G7 disable cpu parking windows 11Intel Iris Xe GPU scheduler optimization windows 11UX363EA fan control WMI ACPI windows 11windows 11 aggressive performance tweaks registry 2024r/ASUS UX363EA performance tweaksRun:
python --version 2>&1
python -c "import requests, bs4; print('OK')" 2>&1
If dependencies missing, install:
pip install requests beautifulsoup4 --quiet
If Python is not available at all, fall back to WebFetch for each URL (Step 2 still applies, use WebFetch tool instead of Python).
Write this to a temp file C:\Temp\pc-scraper.py and run it:
import sys, json, re
import requests
from bs4 import BeautifulSoup
HEADERS = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/120.0.0.0 Safari/537.36"
}
def fetch_text(url):
try:
r = requests.get(url, headers=HEADERS, timeout=10)
soup = BeautifulSoup(r.text, "html.parser")
for tag in soup(["script","style","nav","footer","header"]):
tag.decompose()
return soup.get_text(separator=" ", strip=True)[:8000]
except Exception as e:
return f"ERROR: {e}"
def search_bing(query):
url = f"https://www.bing.com/search?q={requests.utils.quote(query)}&count=5"
try:
r = requests.get(url, headers=HEADERS, timeout=10)
soup = BeautifulSoup(r.text, "html.parser")
results = []
for a in soup.select("li.b_algo h2 a")[:5]:
href = a.get("href","")
title = a.get_text(strip=True)
if href.startswith("http"):
results.append({"title": title, "url": href})
return results
except:
return []
profile = json.loads(sys.argv[1])
is_vm = profile.get("IsVM", False)
if is_vm:
queries = [
"windows 11 virtualbox performance optimization registry",
"disable windows 11 services virtual machine speed",
"windows 11 vm debloat powershell tweaks",
]
else:
model = profile.get("Model","")
cpu = profile.get("CPU","i7-1165G7")
queries = [
f"{model} windows 11 performance optimization",
f"{cpu} disable cpu parking windows 11",
"Intel Iris Xe GPU scheduler optimization windows 11",
"windows 11 aggressive performance tweaks registry 2025",
]
all_results = []
for q in queries:
results = search_bing(q)
for r in results[:3]:
text = fetch_text(r["url"])
r["content_snippet"] = text[:2000]
all_results.append(r)
print(json.dumps(all_results, ensure_ascii=False))
Run it:
python C:\Temp\pc-scraper.py '<SYSTEM_PROFILE_JSON_ESCAPED>'
Read the scraped content. For each discovered optimization tweak, extract:
Remove tweaks that:
Return a JSON array of additional tweaks:
[
{
"name": "Disable Windows Search Indexing on SSD",
"description": "Reduces background I/O on NVMe drives. Redundant on fast SSDs.",
"apply_command": "Set-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\WSearch' -Name Start -Value 4",
"risk": "Low",
"impact": "Medium",
"source_url": "https://example.com/ssd-optimization",
"confidence": 0.85
}
]
If no additional tweaks are found beyond the hardcoded batches, return [].
https://duckduckgo.com/html/?q=<query>[] - the hardcoded batches still applyCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub marshal-rizky/pc-optimizer --plugin pc-optimizer