snap-o-network-inspector
Skill114 starsChanged 59 days agoApache-2.0View on GitHub
Inspect Android network captures and intercept HTTP calls with the Snap-O CLI for a selected device/socket. Use for request/response details, websocket events, API response overrides, mock responses, or delays with Python route handlers.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- app-macos/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- tool-sdk/host/AGENTS.mdAGENTS.md
- snap-o-tweaksSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to inspect network traffic or override API responses in an Android app.
- Very specific: line 12
Use the Network CLI bundled with the Snap-O plugin:
- Very specific: line 49
Use --no-app-info to skip package and process lookup.
- Very specific: line 85
Use --no-stream for a one-shot buffered snapshot.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Snap-O Network Tool
Use this skill to inspect network traffic or override API responses in an Android app.
CLI Path
Use the Network CLI bundled with the Snap-O plugin:
SNAPO_BIN=/path/to/snap-o/skills/snap-o-network-inspector/scripts/snapo-networkResolve scripts/snapo-network relative to the directory containing this SKILL.md; do not assume the current working directory. The script requires Python 3 and Android Platform Tools; no Python packages, compiler toolchain, or macOS application are required.
The script resolves adb from PATH, ANDROID_SDK_ROOT, or ANDROID_HOME. Use --adb <path> or SNAPO_ADB to select a specific ADB executable or wrapper. Wrappers selecting a remote ADB server must tunnel Snap-O forwards back to localhost; otherwise, pass both --adb-host and --adb-port.
Listings use ADB process and package information without contacting the app. JSON rows contain pid, processName, and packageName; unresolved identity fields are null. Friendly app labels and icons are not loaded.
Current Command Surface
snapo-network list: lists available Snap-O Network Tool servers.snapo-network requests: emits CDP network events for a server.snapo-network show: shows full details for a request id, including headers and bodies.snapo-network intercept <file.py>: runs Python route handlers to edit or mock HTTP responses; requires Snap-O OkHttp interception support in the app.
Useful global selectors:
-s,--serial: use a specific device serial.-d: use the single connected USB device.-e: use the single connected emulator.--adb: use a specific ADB executable or wrapper.--adb-host,--adb-port: connect directly to an explicit remote ADB server; otherwise the configured ADB command selects its endpoint.
Inspection Flow
- List available servers.
"$SNAPO_BIN" list --jsonFor a remote ADB endpoint, append --adb-host <host> --adb-port <port> to list, requests, show, or intercept; the script uses the ADB server directly. Otherwise, its localhost forward is removed automatically when the command exits.
Use --no-app-info to skip package and process lookup.
- Pick a target serial and socket. If multiple devices or sockets are available, select them explicitly.
- Pull captured events.
"$SNAPO_BIN" requests -s <serial> -n <socket_name> --filter '<url-filter>' --no-stream --json--filter uses the same case-insensitive URL syntax as the Network Tool search bar. Separate terms must all match, a term prefixed with - is excluded, and quotes or backslashes can escape whitespace.
snapo-network requests replaces request Authorization and Cookie values and response Set-Cookie values with [REDACTED].
- Inspect one request deeply when full request or response details are required.
"$SNAPO_BIN" show -s <serial> -n <socket_name> -r <request_id> --jsonThis output can contain URL query values and request or response bodies.
- Re-check command help if output differs.
"$SNAPO_BIN" --help
"$SNAPO_BIN" list --help
"$SNAPO_BIN" requests --help
"$SNAPO_BIN" show --help
"$SNAPO_BIN" intercept --helpOutput Notes
--jsonemits NDJSON, so process it line by line.snapo-network requestsemits Chrome DevTools Protocol-style records with top-levelmethodandparamsfields.- Use
--no-streamfor a one-shot buffered snapshot. snapo-network interceptwrites runner logs to stderr and does not accept--json,--filter, or--no-stream.- Network protocol 2 uses a tool-owned
/network/protocolversion check, HTTP history and body reads, and SSE for live events. Interception registers routes with a POST that returns its own SSE connection. The CLI requires an updated Android Network library.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

