enforce-thin-proxy

Audit proxy endpoints for adherence to a four-step extraction, forwarding, logging, and error enrichment pattern.

8|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/chrislema/claude-environments --skill enforce-thin-proxy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enforce-thin-proxy
Source: https://github.com/chrislema/claude-environments/tree/main/skills/enforce-thin-proxy
Command: npx skills add https://github.com/chrislema/claude-environments --skill enforce-thin-proxy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill prevents business logic from leaking into proxy layers, ensuring that your infrastructure remains maintainable, decoupled, and performant.

Core Features & Use Cases

  • Thickness Assessment: Automatically flags proxies that perform validation, data transformation, or business decisions instead of simple routing.
  • Consistency Enforcement: Verifies that all proxy endpoints follow the standardized four-step pattern of extract, forward, log, and return.
  • Use Case: Use this during a code review of your API gateway or edge functions to identify and refactor bloated proxy code that is incorrectly handling domain-specific rules.

Quick Start

Run the enforce-thin-proxy skill to audit all proxy functions in the current directory and generate a migration report for any logic that belongs in the worker layer.

Frequently Asked Questions about enforce-thin-proxy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent business logic from leaking into proxy layers?

To prevent business logic from leaking into proxy layers, audit endpoints to ensure they strictly perform request extraction, forwarding, logging, and error enrichment. Proxy layers must remain thin and decoupled from domain-specific validation or transformation to keep infrastructure maintainable.

What is the standard pattern for thin proxy routing in service-oriented architectures?

The standard pattern for thin proxy routing is a four-step operational sequence: extract, forward, log, and return. This enforces consistency across boundary layers, ensuring API gateways and edge functions avoid absorbing business logic and remain decoupled.

How do I audit API gateway code for proxy thickness during a code review?

Audit API gateway code during a code review by scanning proxy functions to flag any that perform validation, data transformation, or business decisions. Generate a migration report to identify bloated proxy code and refactor logic that belongs in the worker layer.

Does this proxy audit work for edge functions and service-oriented architectures?

Yes, this proxy audit applies to service-oriented architectures and edge functions. It evaluates boundary layers to verify they remain thin and decoupled, ensuring domain-specific rules are not incorrectly handled within the proxy infrastructure.

What are the limitations of keeping proxy layers thin?

A key limitation of keeping proxy layers thin is that they cannot perform domain-specific validation or data transformation. If your edge functions require complex business decisions rather than simple routing, a thin proxy pattern will require refactoring logic into the worker layer.