Skip to main content

api-patterns

Connect Query patterns for API calls. Use when working with mutations, queries, or data fetching.

Source facts

Repository
redpanda-data/console
Last source activity
February 17, 2026 at 19:13
Detected SKILL.md language
English
Stars
4,336
Forks
429

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
5 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
api-patterns
description
Connect Query patterns for API calls. Use when working with mutations, queries, or data fetching.
# API Patterns Make API calls with Connect Query and handle responses properly. ## Activation Conditions - Making API calls - Using Connect Query hooks - Cache invalidation - Mutations and optimistic updates - Toast notifications for errors ## Quick Reference | Action | Rule | |--------|------| | Fetch data | `use-connect-query.md` | | After mutation | `api-invalidate-cache.md` | | Handle errors | `api-toast-errors.md` (use `formatToastErrorMessage` in onError) | | Protobuf files | `protobuf-no-edit.md` | ## Key Locations | Location | Purpose | |----------|---------| | `/src/react-query/` | Connect Query hooks | | `/src/protogen/` | Generated protos (DO NOT EDIT) | Regenerate protos: `task proto:generate` (from repo root) ## Rules See `rules/` directory for detailed guidance on queries, mutations, cache invalidation, and error handling.
View on GitHub