tcpwatch-electron | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / tcpwatch-electron

tcpwatch-electron

maintained by bbmorten

star 0 account_tree 1 verified_user MIT License
bolt View GitHub

name: tcpwatch-electron description: Project-specific guidance for the tcpwatch macOS Electron app (Go tcpwatch CLI + Electron/React UI). Includes required change checklist and validation steps.

tcpwatch Electron (Project Skill)

What this is

This skill documents project-specific workflows and expectations for the tools/tcpwatch Go CLI and the Electron app in tools/tcpwatch/app.

Change checklist (must follow)

When you implement a change (code, packaging, workflow, docs):

  1. Update docs

    • Update README.md for quick-start / high-level user-facing changes.
    • Update USER_GUIDE.md for detailed user-facing behavior, troubleshooting, and permissions.
  2. Keep contracts in sync

    • If IPC changes, update both:
      • tools/tcpwatch/app/electron/preload.cjs (exposed API)
      • tools/tcpwatch/app/src/renderer/types.ts (TypeScript typings)
  3. Validate locally (when feasible)

    • From tools/tcpwatch/app:
      • npm run typecheck
      • npm run build:electron
    • If UI/build outputs moved, verify packaging inputs include the correct renderer output folder (currently renderer-dist).

Repo conventions worth remembering

  • Renderer build output is tools/tcpwatch/app/renderer-dist (to avoid collisions with electron-builder output dist).
  • Packet capture uses tshark.
    • Capture filters use tshark -f (BPF). Display filters would be -Y (Wireshark filter syntax).
    • "Expert Information" analysis reads Wireshark expert fields via tshark (e.g. _ws.expert.*).
    • If the UI has a port filter, capture should be scoped accordingly (currently tcp port <port>).
    • Split output index.json includes per-stream endpoints and best-effort reverse-DNS hostnames.
      • Reverse DNS can be disabled with TCPWATCH_RDNS=0.
      • Tuning: TCPWATCH_RDNS_TIMEOUT_MS and TCPWATCH_RDNS_CONCURRENCY.
    • Splitting supports a snaplen truncation setting (default 200 bytes/packet; 0 disables) via editcap -s.
    • Captures UI can import external .pcap/.pcapng files by auto-splitting and generating index.json.
      • Also supports drag & drop onto the Captures page.
    • Captures UI can also run Analyze (Claude + mcpcap MCP tools) using .github/prompts/packet-analysis.md.
    • DNS UI can extract DNS traffic to a new dns.pcapng and run Analyze using .github/prompts/dns-analysis.md.
      • In packaged builds, the prompt is bundled under process.resourcesPath/prompts/packet-analysis.md.
      • In packaged builds, the DNS prompt is bundled under process.resourcesPath/prompts/dns-analysis.md.
      • In packaged builds, user config can live under app.getPath('userData') (e.g. .env and .mcp.json).

Release / packaging

  • See .github/specs/tcpwatch-release.md for the release checklist and tag/version rules.

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 0
GitHub Forks 1
Created Jan 2026
Last Updated 4个月前
tools tools system admin

Related Skills

docker-expert
chevron_right
caffeine
chevron_right
telnyx-network
chevron_right
discord-governance
chevron_right
plex

plex

openclaw
star 2.4k
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.