AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Bff Transport Boundary

skill-hsienw-ai-agent-engineering-playbook-bff-transport-boundary · by HsienW

Design and review Backend-for-Frontend transport boundaries. Use when implementing or changing request parsing, response mapping, streaming proxy behavior, CORS, header allowlists, authentication boundaries, timeouts, cancellation, error envelopes, or upstream orchestration.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-hsienw-ai-agent-engineering-playbook-bff-transport-boundary

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-hsienw-ai-agent-engineering-playbook-bff-transport-boundary)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
16d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Bff Transport Boundary? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

BFF Transport Boundary

Skill Interface

  • Name: bff-transport-boundary.
  • Description: Design and review Backend-for-Frontend transport boundaries for request parsing, response mapping, streaming proxy behavior, CORS, header allowlists, authentication boundaries, timeouts, cancellation, error envelopes, and upstream orchestration.
  • Parameters: BFF route or transport boundary, inbound request shape, upstream targets, authentication and authorization context, header policy, streaming behavior, timeout and cancellation rules, error envelope shape, and verification commands.
  • Instructions: Use this skill before implementing or changing BFF transport behavior. Keep orchestration and transport safety in the BFF, validate untrusted inputs, propagate cancellation, bound streaming resources, map errors explicitly, and verify success plus failure paths.

A BFF owns transport safety and orchestration. It should not absorb product reasoning, model prompts, workflow planning, or domain decisions that belong to backend services.

Ownership

The BFF owns:

  • Request parsing and runtime validation.
  • Authentication and authorization boundaries.
  • Header allowlists.
  • CORS and security headers.
  • Request-size limits and rate limits.
  • Timeout and cancellation propagation.
  • Upstream request orchestration.
  • Stream forwarding and backpressure.
  • Transport error mapping.
  • Request tracing and audit metadata.

The BFF does not own:

  • Model reasoning.
  • Prompt construction.
  • Agent planning.
  • Workflow graph routing.
  • Natural-language intent classification.
  • Tool implementation details.

Request Rules

  • Treat headers, cookies, query parameters, route parameters, body fields,

multipart metadata, filenames, MIME types, and forwarded-address headers as untrusted.

  • Validate at the transport boundary.
  • Do not forward arbitrary inbound headers upstream.
  • Do not let clients control upstream hosts, internal URLs, authorization

targets, trace ownership, or filesystem paths.

Streaming Rules

  • Do not buffer unbounded upstream streams in memory.
  • Respect backpressure.
  • Do not write after the response is closed or destroyed.
  • Release listeners, timers, and readers on every terminal path.
  • When the downstream client disconnects, abort upstream work when supported.

Define terminal reasons:

  • completed
  • client_cancelled
  • client_disconnected
  • bff_timeout
  • upstream_timeout
  • upstream_error
  • malformed_upstream_event
  • process_shutdown

Error Contract

Separate HTTP status, stable error code, developer message, user message key, retryability, and terminal reason.

Never expose stack traces, internal URLs, provider responses, authorization headers, cookies, tokens, or raw internal exception names.

Observability

Include request id, trace id, route, method, status, upstream target category, duration, bytes in/out, terminal reason, and error code where relevant.

Verification

Test success, invalid request, forbidden request, malformed upstream response, client disconnect, timeout, cancellation, upstream error, duplicate events, backpressure behavior, and cleanup of listeners and timers.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.