bff-scaffold

Generate channel-specific BFF scaffolds with upstream clients, transformers, and middleware.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/paulingham/.claude --skill bff-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bff-scaffold
Source: https://github.com/paulingham/.claude/tree/main/skills/_deferred/bff-scaffold
Command: npx skills add https://github.com/paulingham/.claude --skill bff-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The BFF scaffold unlocks rapid creation of a backend-for-frontend layer tailored to a channel, enabling efficient data aggregation, response shaping, and upstream service wiring without starting from scratch.

Core Features & Use Cases

  • Stepwise scaffolding: generates bff-{channel} structure, upstream clients, transformers, and middleware.
  • Channel-ready integration: builds for web, mobile, voice, and device channels with gateway wiring and local dev setup.
  • Reproducible workflows: provides a repeatable pattern you can customize for new channels or services.

Quick Start

Generate a BFF scaffold for a specified channel, including structure, upstream clients, transformers, middleware, and gateway wiring.

Frequently Asked Questions about bff-scaffold

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

FAQPage Schema
What is a backend for frontend architecture and when do I need a BFF layer?

A backend for frontend (BFF) layer aggregates upstream service data and shapes responses for specific channels like web or mobile. You need a BFF layer to decouple frontend clients from upstream services, enabling tailored data aggregation and response transformation.

How do I generate a BFF scaffold for a mobile or web channel?

To generate a BFF scaffold for a mobile or web channel, specify the target channel to auto-generate a bff-{channel} directory structure. This includes upstream service clients, response transformers, channel middleware, and API gateway wiring.

Can I use this BFF scaffolding tool for voice and device channels, not just web and mobile?

Yes, this BFF scaffolding tool supports voice and device channels in addition to web and mobile. It generates channel-ready integration components, including specific middleware and response transformers tailored to the requirements of each distinct channel.

What is the best way to wire upstream services and set up local dev for a new BFF layer?

The best way to wire upstream services and set up local dev for a new BFF layer is using a stepwise scaffold. It auto-generates upstream clients, API gateway wiring, and local dev setup, providing a reproducible workflow for testing.

Does the generated BFF scaffold include middleware and response transformers for data aggregation?

Yes, the generated BFF scaffold includes channel-specific middleware and response transformers. These components handle data aggregation and response shaping, ensuring upstream service data is correctly formatted before reaching the frontend client.

Why create separate BFF scaffolds for different channels instead of a single shared backend?

Creating separate BFF scaffolds for different channels avoids over-fetching data and tightly coupling services. A channel-tailored BFF ensures response shaping and middleware are optimized for specific client needs, maintaining a reproducible pattern for new services.