optimize-network — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited optimize-network (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this skill to run a safe, evidence-first network optimization workflow. The default posture is read-only diagnosis, then small reversible experiments, then before/after verification. Never treat VPN, proxy, TUN, or routing tools as junk processes.
Follow these rules before any command that could affect connectivity:
sudo, interface down/up, DHCP reset, route change, or network service disable must be confirmed by the user first.Choose one mode and state it briefly:
execute_direct: read-only diagnosis, report generation, or a user-approved reversible command.plan_first: multi-step optimization, DNS change, service-order change, AWDL/AirDrop test, or anything that may affect connectivity.clarify_first: OS is unknown, user is remote over the network, proxy/VPN ownership is unclear, or the requested change would modify VPN/proxy/TUN state.Use these handoff fields in the report: goal, context, constraints, actions, evidence, decision, rollback, next step.
Prefer fresh local measurements over assumptions:
scutil --nwi, scutil --dns, scutil --proxy, route -n get default.networkQuality -v and, when available, speedtest-cli.dig +tries=1 +time=2 +stats against relevant domains.nettop, lsof, Mihomo read-only connections API when present.Do not claim improvement from a single noisy datapoint. Call out variance when results are mixed.
Identify the operating system and active path:
uname -a
sw_vers 2>/dev/null || true
command -v networkQuality || true
command -v speedtest-cli || true
command -v speedtest || true
scutil --nwi 2>/dev/null || true
scutil --proxy 2>/dev/null || trueIf macOS is detected, prefer the bundled read-only snapshot helper:
~/.claude/skills/optimize-network/scripts/macos_network_snapshot.shRun the bandwidth/responsiveness portion only when the user is ready for a bandwidth-consuming test:
RUN_NETWORKQUALITY=1 ~/.claude/skills/optimize-network/scripts/macos_network_snapshot.shIf testing from a local Codex skill copy instead of an installed Spellbook copy, use the equivalent path under ~/.agents/skills/optimize-network/scripts/.
Record:
networkQuality -v or speedtest-cli download/upload/latency.dig timing for user-relevant domains.Limit the finding list to the most likely 3-4 bottlenecks. Common categories:
networkQuality.Separate confirmed facts from hypotheses.
Only apply a change after explaining risk and rollback.
DNS A/B test
Use when DNS lookup is repeatedly slow or inconsistent. Save current DNS first:
networksetup -getdnsservers Wi-FiCandidate examples for China mainland networks: 223.5.5.5, 119.29.29.29, 114.114.114.114. Test by setting, flushing cache, repeating dig and curl -w, then keep only if it clearly improves results. Roll back with the saved DNS:
networksetup -setdnsservers Wi-Fi <saved-dns...>
dscacheutil -flushcacheNetwork service order
Use when inactive adapters are above the real interface and route evidence suggests confusion. First show the current order:
networksetup -listnetworkserviceorderPropose the exact new order. Preserve VPN/proxy services and do not remove them. Apply only after confirmation:
networksetup -ordernetworkservices "<primary>" "<secondary>" "<other-services...>"Unused service disable
Use only for clearly unused physical/virtual adapters, and prefer disable over delete. Never disable VPN/proxy/TUN services by default. Show:
networksetup -listallnetworkservicesApply only after confirmation:
networksetup -setnetworkserviceenabled "<service-name>" offRollback:
networksetup -setnetworkserviceenabled "<service-name>" onAWDL/AirDrop A/B test
Use when Wi-Fi signal is strong but gateway ping has periodic spikes. This may affect AirDrop, AirPlay, Handoff, Universal Control, and Apple Watch unlock. It usually requires sudo, so confirm first.
Test window:
sudo ifconfig awdl0 down
ping -c 30 <gateway>
sudo ifconfig awdl0 upDo not leave awdl0 down unless the user explicitly wants that tradeoff.
mDNS/DNS cache refresh
Use when local name resolution or stale DNS is suspected. dscacheutil -flushcache is low risk. mDNSResponder restart needs confirmation if sudo is required:
dscacheutil -flushcache
sudo killall -HUP mDNSResponderBackground traffic
Report top talkers from nettop or lsof. Do not kill processes. Suggest the user pause sync/download/remote desktop apps or ask for confirmation before closing anything.
Bufferbloat / SQM
If loaded latency is high while bandwidth is adequate, local macOS tweaks are unlikely to fix the root cause. Recommend router-side SQM/CAKE/FQ-CoDel if available, with upload/download shaping at roughly 85-90% of measured stable throughput. Treat this as manual router work unless the user explicitly asks for router configuration.
Proxy path optimization
If Clash/Mihomo is active, inspect read-only state before proposing changes:
curl -s --max-time 2 --unix-socket /tmp/verge/verge-mihomo.sock http://localhost/connections
curl -s --max-time 2 --unix-socket /tmp/verge/verge-mihomo.sock http://localhost/configsSummarize only the fields needed for diagnosis. Do not paste raw /configs, full proxy definitions, provider URLs, auth material, or full connection host lists into a public report. Do not change proxy groups, TUN, rules, DNS hijack, or route exclusions from this skill unless the user explicitly asks. If a proxy-specific fix is needed and a clash-doctor or clash-routes skill exists, use that skill or hand off to it.
Repeat the baseline commands after each accepted change. Compare:
chatgpt.com, api.openai.com, GitHub, package registries, or the user's work domains.If results are mixed, revert the change unless the user prefers the tradeoff.
Use this structure:
**Routing**
Mode: execute_direct | plan_first | clarify_first
Goal:
Constraints:
**Baseline**
- Path: direct | system proxy | TUN | unknown
- Download/upload:
- Idle latency:
- Loaded latency/responsiveness:
- Gateway ping:
- DNS:
- Wi-Fi/Ethernet:
**Findings**
1. [Evidence-backed bottleneck]
2. [Evidence-backed bottleneck]
3. [Evidence-backed bottleneck]
**Actions**
- Done:
- Skipped:
- Proposed:
- Rollback:
**After**
- Same metrics as baseline.
- Delta:
**Decision**
- Keep/revert/no change:
- Remaining risks:
- Next step:Before finalizing, ensure:
Use these prompts when evaluating the skill manually:
Structured eval cases live in evals/evals.json; use them when checking that proxy-safe routing, rollback language, and before/after evidence stay intact.
v1.0 - 2026-05-24 - Initial proxy-safe Codex network optimization workflow based on the viral Codex network optimization pattern and local macOS/Clash diagnostic lessons.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.