api-patterns
Connect Query patterns for API calls. Use when working with mutations, queries, or data fetching.
How do I install this agent skill?
npx skills add https://github.com/redpanda-data/console --skill api-patternsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides architectural patterns and coding standards for using Connect Query in a React application. It contains no executable code, no external downloads from untrusted sources, and no security risks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
5/5 files flagged
What does this agent skill do?
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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/redpanda-data/console/api-patterns">View api-patterns on skillZs</a>