Back to list
redpanda-data

api-patterns

by redpanda-data

Redpanda Console is a developer-friendly UI for managing your Kafka/Redpanda workloads. Console gives you a simple, interactive approach for gaining visibility into your topics, masking data, managing consumer groups, and exploring real-time data with time-travel debugging.

4,220🍴 409📅 Jan 23, 2026

Use Cases

Efficient Code Generation

Auto-generate boilerplate code to reduce development time.

🔍

Code Review Assistance

Analyze PR changes and suggest improvements.

🔧

Refactoring Suggestions

Suggest refactoring options to improve code quality.

SKILL.md


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

ActionRule
Fetch datause-connect-query.md
After mutationapi-invalidate-cache.md
Handle errorsapi-toast-errors.md (use formatToastErrorMessage in onError)
Protobuf filesprotobuf-no-edit.md

Key Locations

LocationPurpose
/src/react-query/Connect Query hooks
/src/protogen/Generated protos (DO NOT EDIT)

Regenerate protos: task proto:generate (from repo root)

Basic Patterns

Query

import { useQuery } from '@connectrpc/connect-query';
import { getUser } from 'protogen/user-UserService_connectquery';

const { data, isLoading, error } = useQuery(
  getUser,
  { id: userId },
  { enabled: !!userId }
);

Mutation

import { useMutation } from '@connectrpc/connect-query';
import { createUser } from 'protogen/user-UserService_connectquery';

const mutation = useMutation(createUser, {
  onSuccess: () => {
    queryClient.invalidateQueries({ queryKey: ['getUser'] });
  },
});

mutation.mutate({ name, config });

Rules

See rules/ directory for detailed guidance.

Score

Total Score

80/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 1000以上

+15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon