# Build Reliable Applications at the Edge

Edge platforms differ in runtime limits, storage, and deployment behavior. This skill provides practical patterns for routing, authentication, caching, streaming, and rate limiting.

## Install

```bash
npx skillstore add ai agent hub/ariegoldkin-edge-computing-patterns
```

## Metadata

- Status: approved
- Slug: ariegoldkin-edge-computing-patterns
- Version: 1.0.0
- Author version: 1.0.0
- Skillstore revision: r2
- Version status: valid
- Tree hash: 5cc61f976d34cac2d8bdf8efe0e3cb7e13c4d1c7434e247c794e14bf192a284e
- Author: AI Agent Hub
- GitHub username: ArieGoldkin
- License: MIT
- Repository: https://github.com/ArieGoldkin/ai-agent-hub/tree/main/skills/edge-computing-patterns
- Ref: 89edfdc710d0846129dcee6a929477b04f08052c
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, env\_access
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/ariegoldkin-edge-computing-patterns
- Manifest: https://skillstore.pages.dev/api/skills/ariegoldkin-edge-computing-patterns/manifest

## Capabilities

- Compares Cloudflare Workers, Vercel Edge Functions, and Deno Deploy constraints.
- Demonstrates geo-routing and request rewriting at edge locations.
- Shows JWT authentication patterns for Cloudflare Workers.
- Explains KV-based rate limiting and shared edge caching.
- Identifies Web APIs available in edge runtimes and unsupported Node.js APIs.
- Recommends bundle, streaming, monitoring, CORS, and secret-management practices.

## Use Cases

- Select an Edge Platform: Compare runtime limits, locations, and free tiers against application requirements.
- Implement Edge Middleware: Design request routing, localization, experiments, authentication, and origin forwarding.
- Review Traffic Controls: Assess caching and rate-limiting patterns before production deployment.

## Prompt Templates

### Compare Edge Platforms

```
Compare Cloudflare Workers, Vercel Edge Functions, and Deno Deploy for [application]. Prioritize [latency, runtime, cost, or locations]. Recommend one platform.
```

### Design Edge Middleware

```
Design edge middleware for [framework and platform]. Include [routing, localization, or experiments], request flow, required headers, and failure handling.
```

### Plan an Edge Migration

```
Review this Node.js workload: [description]. Identify incompatible APIs, suitable Web API replacements, storage changes, caching boundaries, and migration risks.
```

### Architect Global Traffic Control

```
Design a production edge architecture for [workload]. Cover authentication, atomic rate limiting, public caching, streaming, observability, consistency, and platform constraints.
```

## Limitations

- Platform limits and pricing can change after publication.
- Examples are illustrative and require security review before production use.
- The skill does not provide deployment commands or complete project scaffolding.
- It does not benchmark latency, consistency, or cost for a specific workload.

## Best Practices

- Verify current platform limits and supported APIs before implementation.
- Treat authentication, cache policy, and rate limits as separate security boundaries.
- Test cold starts, cache behavior, failure paths, and geographic consistency.

## Anti Patterns

- Do not assume Node.js filesystem, process, or native module support.
- Do not place personalized responses in a shared cache without explicit safeguards.
- Do not use eventually consistent KV counters for strict distributed rate limits.

## Security Audit

- Audited at: 2026-07-23T06:13:45.229\+00:00
- Summary: All 34 static findings are false positives caused by documentation, expected edge APIs, TypeScript syntax, and public runtime metadata. No command execution, secret-file access, reconnaissance, prompt injection, or malicious network intent appears. Semantic review found shared-cache exposure risk and a non-atomic KV rate limiter in instructional examples.

## Stats

- Views: 229
- Downloads: 10
- Favorites: 0
- Popularity score: 0
