Connect Query patterns for API calls. Use when working with mutations, queries, or data fetching.
66
48%
Does it follow best practices?
Impact
97%
1.15xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./frontend/.claude/skills/api-patterns/SKILL.mdMake API calls with Connect Query and handle responses properly.
| 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 |
| Location | Purpose |
|---|---|
/src/react-query/ | Connect Query hooks |
/src/protogen/ | Generated protos (DO NOT EDIT) |
Regenerate protos: task proto:generate (from repo root)
See rules/ directory for detailed guidance on queries, mutations, cache invalidation, and error handling.
02210fa
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.