Agent skill

Bff Design

by citypaul in citypaul/.dotfiles

Decide whether a system needs a backend-for-frontend, how many, and what each one may own: adoption signals and honest costs, one-experience-one-BFF granularity with frontend-team ownership, the…

Custom licenceAuto-check passedBackend & APIs

Install Bff Design

skills CLI
$ npx skills add citypaul/.dotfiles --skill bff-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install citypaul/.dotfiles bff-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/citypaul/.dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/claude/.claude/skills/bff-design .claude/skills/bff-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bff-design
GitHub stars
740
Token cost
~3.4k tokens
SKILL.md length
1,737 words
Files
6 (incl. references)
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

Decide whether a system needs a backend-for-frontend, how many, and what each one may own: adoption signals and honest costs, one-experience-one-BFF granularity with frontend-team ownership, the…

  • Works in 3 steps: Separate surfaces, honestly policed.… → A new consumer gets its own surface.… → Watch for it: record the accepted…
  • Aggregating upstream services
  • SKILL.md covers Do You Need One?, One Experience, One BFF, Shape, Don't Decide and Aggregation, Resilience,…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bff Design is an agent skill from citypaul/.dotfiles. Decide whether a system needs a backend-for-frontend, how many, and what each one may own: adoption signals and honest costs, one-experience-one-BFF granularity with frontend-team ownership, the shape-don't-decide rule, upstream aggregation with partial-failure and resilience budgets, identity-keyed BFF caching, mediating user identity toward upstream services (token exchange, confused-deputy prevention), and the alternatives (shared gateway, GraphQL federation, token-mediating backend, direct SPA→API…

Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `agents/openai.yaml`, `references/adoption-and-granularity.md` and `references/aggregation-and-resilience.md`).

It sits in Backend & APIs, covering OAuth and OpenID Connect, API design and GraphQL. It works with GraphQL.

When your agent uses it

  • Aggregating upstream services
  • Handling upstream failures
  • Forwarding user identity downstream
  • Weighing GraphQL against per-client BFFs

Example prompts

  • “/bff-design”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Separate surfaces, honestly policed. Browser and native apps are public clients — nothing they carry cryptographically authenticates the…
  2. A new consumer gets its own surface. Another experience (including a partner integration you build and own — SoundCloud runs dedicated…
  3. Watch for it: record the accepted credential mode, issuer, and client registration per request (see observability for the wide-event…

What it can do on your machine

Read from SKILL.md and the folder at commit cd4028d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bff Design loads about 3.4k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 256 tokens; SKILL.md has 1,737 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~256
When it runs · the whole SKILL.md, loaded when a task matches
~3.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,737 words (~3,357 tokens).

“A backend-for-frontend is an ownership pattern before it is a technology: the API a client application uses is part of that application, owned by the team that owns the frontend, and consumed by no other application (Calçado, the pattern's originator)…”

— opening of SKILL.md by citypaul, Custom licence
name
bff-design

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files (references) in claude/.claude/skills/bff-design of citypaul/.dotfiles.

  • SKILL.md
  • agents/openai.yaml
  • references/adoption-and-granularity.md
  • references/aggregation-and-resilience.md
  • references/alternatives.md
  • references/upstream-identity.md

Open the folder on GitHubat commit cd4028d

Compare with similar skills

Bff Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bff Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bff Design this skillcitypaul/.dotfiles740—~3.4kAutomated safety check: PassCustom licence
Discover APIrand/cc-polymath181—~1.5kAutomated safety check: PassMIT
Nodejs Backend Patternsever-works/ever-works16218 repos~4kAutomated safety check: PassAGPL-3.0
API DesignerJeffallan/claude-skills12k1 repos~2kAutomated safety check: PassMIT
API Design Principlesjh941213/my-cc-harness12518 repos~3.4kAutomated safety check: PassNone
API And Interface Designdzhalaevd/Donatello1358 repos~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • Discover API

    rand/cc-polymath

    Automatically discover API design skills when working with REST APIs, GraphQL schemas, API authentication, OAuth, JWT, rate limiting, API versioning, error handling, or endpoint design.

    181 GitHub stars~1.5k tokensUpdated 7 mo ago
    Backend & APIsAuto-check passed
  • Nodejs Backend Patterns

    ever-works/ever-works

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.

    162 GitHub starsUsed in 18 repos~4k tokens
    Backend & APIsAuto-check passed
  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 1 repo~2k tokens
    Backend & APIsAuto-check passed
  • API Design Principles

    jh941213/my-cc-harness

    REST 및 GraphQL API 설계 원칙 가이드. An agent skill from jh941213/my-cc-harness.

    125 GitHub starsUsed in 18 repos~3.4k tokens
    Backend & APIsAuto-check passed
  • API And Interface Design

    dzhalaevd/Donatello

    Guides stable API and interface design. An agent skill from dzhalaevd/Donatello.

    135 GitHub starsUsed in 8 repos~2.6k tokens
    Backend & APIsAuto-check passed
  • Designing APIs

    CloudAI-X/claude-workflow-v2

    Designs REST and GraphQL APIs including endpoints, error handling, versioning, and documentation.

    1.4k GitHub starsUsed in 1 repo~1.2k tokens
    Backend & APIsAuto-check passed

More from citypaul/.dotfiles

All 44 skills in this repo
  • Find Skills

    citypaul/.dotfiles

    Discover and, with authorization, install agent skills from the open skills ecosystem.

    740 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Render Code Shape

    citypaul/.dotfiles

    Render the shape of code — module boundaries, the types that cross them, signatures, and a cited call graph — for code that already exists or a change about to be built.

    740 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Structure Codebase

    citypaul/.dotfiles

    Design, audit, and evolve physical source and package structures that expose real architectural boundaries while keeping related behavior together.

    740 GitHub stars~4.4k tokensUpdated 2 days ago
    Auto-check passed
  • Test Design Reviewer

    citypaul/.dotfiles

    Review test quality using Dave Farley's eight properties of good tests.

    740 GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Characterisation Tests

    citypaul/.dotfiles

    A skill your agent uses when modifying existing code that lacks tests and you need to document its actual current behavior before making changes -- the legacy code dilemma where you need tests to…

    740 GitHub stars~3.6k tokensUpdated 2 days ago
    Auto-check passed
  • CI Debugging

    citypaul/.dotfiles

    Systematic CI/CD failure diagnosis using hypothesis-first investigation, local reproduction, and environment delta analysis.

    740 GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check: notes

Works with

Categories

Questions about Bff Design

What does Bff Design do?

Decide whether a system needs a backend-for-frontend, how many, and what each one may own: adoption signals and honest costs, one-experience-one-BFF granularity with frontend-team ownership, the…. dotfiles.

When should I use Bff Design?

Bff Design fits situations like: aggregating upstream services; handling upstream failures; forwarding user identity downstream; weighing GraphQL against per-client BFFs.

How do I install Bff Design in Claude Code?

Run `npx skills add citypaul/.dotfiles --skill bff-design -a claude-code`. Or copy the skill folder (claude/.claude/skills/bff-design in citypaul/.dotfiles) into .claude/skills/bff-design in your project. Claude Code loads it when a task matches its description.

How do I install Bff Design in Codex?

Run `npx skills add citypaul/.dotfiles --skill bff-design -a codex`. Or copy the skill folder (claude/.claude/skills/bff-design in citypaul/.dotfiles) into .agents/skills/bff-design in your project. Codex loads it when a task matches its description.

Can I use Bff Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add citypaul/.dotfiles --skill bff-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bff-design, .gemini/skills/bff-design, .github/skills/bff-design and .opencode/skills/bff-design in your project.

What does Bff Design need to run?

SKILL.md names no scripts, command-line tools or credentials: Bff Design is instructions for the agent only.

Does Bff Design access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Bff Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bff Design use?

Bff Design has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Bff Design use?

About 3.4k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Bff Design?

Skills that share tags, products or a category with Bff Design: Discover API (rand/cc-polymath, 181 stars), Nodejs Backend Patterns (ever-works/ever-works, 162 stars), API Designer (Jeffallan/claude-skills, 12k stars) and API Design Principles (jh941213/my-cc-harness, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bff Design?

citypaul (a GitHub user) maintains it in citypaul/.dotfiles, which has 740 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 9, 2026.

Source: citypaul/.dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.