api-patterns

Make API calls with Connect Query and handle responses properly.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "api-patterns" with this command: npx skills add redpanda-data/console/redpanda-data-console-api-patterns

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

tanstack-router-migration

No summary provided by upstream source.

Repository SourceNeeds Review
General

react-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

e2e-tester

No summary provided by upstream source.

Repository SourceNeeds Review