Skip to content
Back to skills

Network

ASecurity

Reduce API payload sizes and network latency. Profiles byte sizes, enforces compression and HTTP caching, and migrates heavy endpoints to GraphQL or protobuf when warranted.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add v0idOS/performance-deity --skill network --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Network?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Network
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/v0idos-network/badge)](https://www.skillsdirectory.com/skills/v0idos-network)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Reduce API payload sizes and network latency. Profiles byte sizes, enforces compression and HTTP caching, and migrates heavy endpoints to GraphQL or protobuf when warranted.
---

Execute all four phases in order.

## Phase 1 — Payload Profiling

1. Identify the API endpoint.
2. Measure the raw JSON response size in bytes.
3. Identify the nested or repeated structures contributing the most bytes.

## Phase 2 — Compression & Caching

1. Check response headers. Verify `Content-Encoding: gzip` or `Content-Encoding: br` is present. If not, enable it server-side.
2. Add HTTP caching headers:
   - `Cache-Control: max-age=<N>, stale-while-revalidate=<N>`
   - `ETag` for conditional GET support

## Phase 3 — Serialization

If the payload exceeds 1MB:
- Migrate to GraphQL so clients request only the fields they need, or
- Migrate to Protocol Buffers (protobuf) for binary serialization.
- For real-time data, use Server-Sent Events or WebSockets to eliminate repeated full-payload polling.

## Phase 4 — Report

| Metric | Before | After |
|---|---|---|
| Payload size | X KB | Y KB |
| Transfer time (3G sim) | Xms | Yms |
| Cache hit rate | 0% | Z% |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.