/programming:af-gatewayfrom programming
Set up or extend the dio gateway/client/interceptor/endpoints backend-call layer (AbstractGateway, LoggedClient/NonLoggedClient, auth + refresh, ResponseDto envelope).
Ships in programming. Installing the plugin adds it to Claude Code.
Use this when the task is between a repository and the wire: bootstrap the
network layer, add an endpoint family or a concrete client, wire/reorder
interceptors, add an SSL-pinned host, or stand up a gRPC channel. To write the
repository that consumes these clients, use /af-repository instead.
Read ONLY skills/absolute-flutter/references/06-gateway-backend.md. The
AppError funnel it mentions is owned by 04-usecases.md — only read that if
DioException.asAppError() / the AppError hierarchy does not yet exist.
App/Feature/Example to the real name)assets/templates/gateway/abstract_gateway.dart
(DioForNative base: options, HTTP adapter choice, SSL hook, the ordered
interceptor assembly, and the LoggedClient/NonLoggedClient families).token_interceptor.dart,
refresh_token_interceptor.dart, retry_interceptor.dart into
lib/gateway/interceptor/. Order is load-bearing:
debug → retry → logger → encrypt → apiKey → refresh → token (refresh
BEFORE token-inject). additionalInterceptors returns [refresh, token].assets/templates/gateway/app_client.dart. Keep
all three singletons; the refresh-only client MUST stay a plain
NonLoggedClient (no auth interceptors) or refresh recurses on a 401.assets/templates/gateway/endpoints.dart; add private
prefix consts + public paths. Use {param} placeholders + Endpoints.fill(...).abstract_grpc_gateway.dart; point the channel at
env.grpcUrl and expose the generated ...ServiceClient getters.https://api.example.com.registerLazySingleton the interceptors, registerSingleton the
clients (constructor-inject the interceptors) in gateway_binding.dart /
service_binding.dart — see /af-di.DioException.asAppError() maps 401 → Logout, offline →
NetworkException, parsed body → Default, else → UnknownException, and the
synthetic-401 path routes to Logout.flutter analyze; verify SSL pinning on a real prod build.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub felipeoff/my-claude-code-skills --plugin programming13 commands in this plugin
/af-bootstrap/af-bootstrap — scaffold a new Flutter appScaffold a new Flutter app from zero in the layered clean-architecture + rx_notifier MVVM shape — folder tree, DI bootstrap, pubspec + codegen, main.dart wiring./af-design-system/af-design-system — design tokens + context surfaceSet up the design system — ThemeExtension token palettes accessed via BuildContext extensions (context.colors/text/icons), raw hex in one class, atoms./af-di